You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to glashammer
To add configuration variables, are the same the next sentences?
* app.add_config_var('foo/bar', str, bar)
* app.foo_bar = bar
Ali Afshar
unread,
May 5, 2009, 7:21:43 AM5/5/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to glash...@googlegroups.com
Hi,
They are not the same thing at all. it is important to remember that the add_config_var call only adds the availability of that config variable, and sets it to the default.
To access the variable later you can use app.cfg['bar'].
Ali
Kless
unread,
May 5, 2009, 7:45:01 AM5/5/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to glashammer
app.cfg['bar'] or app.conf['bar'] ?
because here [1] it's run with app.conf:
I also have seen in some code using get_app().conf['bar'] [2]. When is
used get_app().conf ?