-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project structure #3174
Project structure #3174
Conversation
19fc9c4
to
4fa2d42
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work 👍
Makefile
Outdated
tx push --source --force --no-interactive | ||
tx push --translations --force --no-interactive | ||
tx push --source --resource=geomapfish.c2cgeoportal_geoportal-$(TX_VERSION) | ||
tx push --source --resource=geomapfish.c2cgeoportal_admin-$(TX_VERSION) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No --force --no-interactive
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oups missing :-)
commons/setup.py
Outdated
author="Camptocamp", | ||
author_email="info@camptocamp.com", | ||
url="http://www.camptocamp.com/geospatial-solutions", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://www.camptocamp.com/solutions/geospatial/ is better no ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes :-)
doc/integrator/make.rst
Outdated
* ``PRINT``: Mapfish print is enable, defaults to ``TRUE``. | ||
* ``MAPSERVER``: Mapserver is enable, defaults to ``TRUE``. | ||
* ``TILECLOUD_CHAIN``: ``TRUE`` to indicate that we use TileCloud-chain, defaults to ``TRUE``. | ||
* ``VISIBLE_ENTRY_POINT``: The entry point (path) of the application, defaults to ``/``. | ||
* ``VISIBLE_WEB_HOST``: The hostname, required. | ||
* ``VISIBLE_WEB_PROTOCOL``: The used protocole, defaults to ``https``. | ||
* ``VISIBLE_WEB_PROTOCOL``: The used protocol, defaults to ``https``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/defaults/default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks :-)
docker/build/requirements.txt
Outdated
@@ -4,48 +4,51 @@ Babel==2.5.1 | |||
boto==2.48.0 | |||
bottle==0.12.13 | |||
c2c.cssmin==0.7.dev6 # MakeFile | |||
c2c.template==1.5.1 # setup.py | |||
c2c.template==1.5.1 # geoportal | |||
http://github.com/camptocamp/c2cgeoform/archive/87a4191ef3330b76497bd009e9c0220cbc73c625.zip#egg=c2cgeoform # commons |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
enums = [] | ||
enum_layers = config["vars"].get("layers", {}).get("enum", {}) | ||
for layername in list(enum_layers.keys()): | ||
layerinfos = enum_layers.get(layername, {}) | ||
attributes = layerinfos.get("attributes", {}) | ||
for fieldname in list(attributes.keys()): | ||
values = cls._enumerate_attributes_values(DBSessions, Layers, layerinfos, fieldname) | ||
values = cls._enumerate_attributes_values(models.DBSessions, Layers, layerinfos, fieldname) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes :-)
description='{{package}}, a c2cgeoportal project', | ||
author='camptocamp', | ||
author_email='info@camptocamp.com', | ||
url='http://www.camptocamp.com/geospatial-solutions', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
* rm {package}/form.py | ||
1. The structure of the project change: | ||
* The package name become `{{package}}_geoportal`. | ||
* The package is in the `folder geoportal`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
folder geoportal
-> folder geoportal
(move the quote)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:-)
if re.match(pattern + '$', dst): | ||
print(colorize( | ||
"The {} '{}' is present in the managed_files as '{}' but he will move.".format( | ||
type_, dst, pattern), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
risk of unicode issue ? (with dst ?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not in python3 :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awww cool 🎉
geoportal/setup.py
Outdated
version="2.3.0.dev0", | ||
description="c2cgeoportal", | ||
long_description=README, | ||
classifiers=[ | ||
"Programming Language :: Python", | ||
"Framework :: Pylons", | ||
"Programming Language :: Python :: 3", | ||
"Framework :: Pyramid", | ||
"Topic :: Internet :: WWW/HTTP", | ||
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application", | ||
], | ||
author="Camptocamp", | ||
author_email="info@camptocamp.com", | ||
url="http://www.camptocamp.com/geospatial-solutions", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Update the Git ignores Update the package links Remove the old model Add admin l10n Use the same model
54c0f9f
to
f7e827c
Compare
f7e827c
to
c981feb
Compare
No description provided.