Support #5455: Update documentation
Update references to settings
03 Dec 2014
#3 Updated by Nickolas Grigoriadis about 5 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