webserver, sites and settings splitted
included some new functions from the perl file the clearsilver templates have to be modified next
This commit is contained in:
parent
2fec1260c5
commit
697d5f9b0c
5 changed files with 249 additions and 183 deletions
24
pythonrewrite/bin2/CryptoBoxWebserverSettings.py
Normal file
24
pythonrewrite/bin2/CryptoBoxWebserverSettings.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
class CryptoBoxWebserverSettings:
|
||||
'''this is the motherclass of all cbx site settings
|
||||
|
||||
put the stuff in here, that every site will need access to'''
|
||||
|
||||
def setSettings(self, website):
|
||||
'''a dictionary gets filled here, with values from the configfile
|
||||
|
||||
there can also be set some useful standards here'''
|
||||
website.settings={}
|
||||
## put all found Settings values in the dictionary
|
||||
for key in self.cbxPrefs["Settings"].keys():
|
||||
website.settings["Settings."+key] = self.cbxPrefs["Settings"][key]
|
||||
#self.log.info(self.settings)
|
||||
|
||||
|
||||
def print_foo(self):
|
||||
'''a stupid demo method
|
||||
|
||||
if there are methods necessary for more than one site,
|
||||
put them in here like this stupid demo'''
|
||||
self.log.info("'print_foo' was called by some site and triggerd an inheritated method")
|
||||
self.cbx_inheritance_test("fooooooooooooobaaaaaaaaaaaaaaaaaaaar")
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue