-
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
without the double star, the formating inject all the environment #5637
Conversation
doc/administrator/editing.rst
Outdated
@@ -56,6 +56,12 @@ is the name of the PostGIS table containing the layer's geographic data. It is | |||
a string of the form ``[<schemaname>.]<tablename>``. If ``schemaname`` is | |||
omitted, the table is assumed to be in the ``public`` schema. The label | |||
corresponding to this field is *Related Postgres table* in the admin interface. | |||
The ``geoTable`` field support named formating and can get values from the | |||
environment variables, for example: |
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.
extra space
c1980cd
to
63e4faf
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.
Thanks :-)
|
||
``[<schemaname>_{some-named-variable}.]<tablename>`` | ||
|
||
with "some-named-variable" defined in the environment. |
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.
with "some-named-variable" defined in the environment. | |
``[<database-connexion-name>.[<schemaname>_{some-named-variable}.]]<tablename>`` |
It should probably not added here, but it's missing...
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.
I have never seen this case ever before, is it an actual existing possibility ?
do you have a practical example of that ?
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.
As I remember @asaunier use it recently, it is linked to the dbsessions
, see: https://camptocamp.github.io/c2cgeoportal/master/integrator/multiple_databases.html
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.
ok thanks
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 :-)
af6d0e9
to
fb79f3e
Compare
doc/administrator/editing.rst
Outdated
@@ -57,6 +57,19 @@ a string of the form ``[<schemaname>.]<tablename>``. If ``schemaname`` is | |||
omitted, the table is assumed to be in the ``public`` schema. The label | |||
corresponding to this field is *Related Postgres table* in the admin interface. | |||
|
|||
The ``geoTable`` field support named formatting and can get values from the |
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.
support -> supports
47e0abc
to
c0c023d
Compare
CI will be fixed with: #5664 |
bcd30e7
to
1056d74
Compare
variables as a gigantic string and the code fail wonderfully. export TOTO=foobar python >>> import os >>> print('{TOTO}'.format(**os.environ)) foobar
1056d74
to
1f2323d
Compare
variables as a gigantic string and the code fail wonderfully.
export TOTO=foobar
python