Skip to content

Commit

Permalink
Cleanup: Remove Pully
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jun 13, 2024
1 parent 39ee30b commit ae54778
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 10,980 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
C2CGEOFORM_MO_FILES = $(addprefix c2cgeoform/locale/, fr/LC_MESSAGES/c2cgeoform.mo de/LC_MESSAGES/c2cgeoform.mo)
PULLY_MO_FILES = $(addprefix c2cgeoform/pully/locale/, fr/LC_MESSAGES/pully.mo)


.PHONY: all
Expand All @@ -23,7 +22,7 @@ help:

.PHONY: install
install: pip-install compile-catalog

.PHONY: pip-install
pip-install: .build/venv
.build/venv/bin/pip install -r requirements.txt
Expand Down Expand Up @@ -51,7 +50,7 @@ test:
.build/venv/bin/python setup.py test

.PHONY: compile-catalog
compile-catalog: $(C2CGEOFORM_MO_FILES) $(PULLY_MO_FILES)
compile-catalog: $(C2CGEOFORM_MO_FILES)

.PHONY: dist
dist: .build/venv compile-catalog
Expand Down Expand Up @@ -80,7 +79,6 @@ clean:
rm -f .build/venv/c2cgeoform.wsgi
rm -f .build/apache.conf
rm -f $(C2CGEOFORM_MO_FILES)
rm -f $(PULLY_MO_FILES)

.PHONY: cleanall
cleanall:
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# c2cgeoform

`c2cgeoform` is a framework easing the creation of web pages with forms. Users
of `c2cgeoform` declaratively create *models*
([example](c2cgeoform/pully/model.py)), from which the framework
of `c2cgeoform` declaratively create *models*, from which the framework
can create forms, views, lists, …

`c2cgeoform` supports various data types, including *geometry* types (points,
Expand Down
37 changes: 1 addition & 36 deletions c2cgeoform/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def main(global_config, **settings):
""" This function returns a Pyramid WSGI application.
This a is test application for the model and templates defined in
c2cgeoform/pully.
c2cgeoform.
"""
apply_local_settings(settings)
engine = engine_from_config(settings, 'sqlalchemy.')
Expand All @@ -126,41 +126,6 @@ def main(global_config, **settings):
config.include('pyramid_mako')
config.include(includeme)

config.add_translation_dirs('pully/locale')

from .schema import register_schema
from pully import model
register_schema(
'fouille',
model.ExcavationPermission,
templates_user=resource_filename('c2cgeoform', 'pully/templates'),
excludes_user=['reference_number', 'validated'],
overrides_user={
# override the title for a field in the user form
'request_date': {'title': 'Date'},
# do not show the 'verified' field of ContactPerson for the user
'contact_persons': {'excludes': ['verified']}
},
show_captcha=True,
recaptcha_public_key=settings.get('recaptcha_public_key'),
recaptcha_private_key=settings.get('recaptcha_private_key'))
model.setup_test_data(settings)
register_schema(
'comment', model.Comment, show_confirmation=False, show_captcha=True,
recaptcha_public_key=settings.get('recaptcha_public_key'),
recaptcha_private_key=settings.get('recaptcha_private_key'))

config.add_route('bus_stops', '/bus_stops')
config.add_view('c2cgeoform.pully.views.bus_stops.bus_stops',
route_name='bus_stops', renderer='json',
request_method='GET')

config.add_route('addresses', '/addresses')
config.add_view('c2cgeoform.pully.views.addresses.addresses',
route_name='addresses', renderer='json',
request_method='GET')

config.scan('c2cgeoform.pully')
config.add_c2cgeoform_views()

return config.make_wsgi_app()
1 change: 0 additions & 1 deletion c2cgeoform/pully/__init__.py

This file was deleted.

Loading

0 comments on commit ae54778

Please sign in to comment.