]> scripts.mit.edu Git - wizard.git/blob - wizard/app/mediawiki.py
Add infrastructure for app subclasses.
[wizard.git] / wizard / app / mediawiki.py
1 import re
2
3 from wizard import deploy
4
5 def make_regex(var):
6     return re.compile('^\$' + var + r'''\s*=\s*((["\']).*\2;)$''', re.M)
7
8 wizard_to_var = \
9         {'WIZARD_IP': 'IP' # obsolete
10         ,'WIZARD_SITENAME': 'wgSitename'
11         ,'WIZARD_SCRIPTPATH': 'wgScriptPath'
12         ,'WIZARD_EMERGENCYCONTACT': 'wgEmergencyContact'
13         ,'WIZARD_DBSERVER': 'wgDBserver'
14         ,'WIZARD_DBNAME': 'wgDBname'
15         ,'WIZARD_DBUSER': 'wgDBuser'
16         ,'WIZARD_DBPASSWORD': 'wgDBpassword'
17         ,'WIZARD_PROXYKEY': 'wgProxyKey'}
18
19 class Application(deploy.Application):
20     pass