Support #6049
Support #5455: Update documentation
Update references to settings
Start date:
03 December 2014
Due date:
% Done:
0%
Estimated time:
Patch proposed:
No
Planning:
History
Updated by Mikaël Ates about 8 years ago
- Subject changed from Mettre à jour la référence aux settings to Update references to settings
- Description updated (diff)
Updated by Nickolas Grigoriadis about 8 years ago
Since there is some nice information in authentic2.app_settings a simple script like this as part of the docgen rule would help quickly resolve the A2_ settings.
#!/usr/bin/env python from authentic2 import app_settings for key,val in app_settings.defaults.items(): try: keys = set([key]).union(val.names) if val.has_default(): print '%s = ``%s``' % (' / '.join(keys), repr(val.default)) else: print '%s' % ' / '.join(keys) print ' %s' % (val.definition if val.definition else '--No definition--') print '' except AttributeError: pass