Пример #1
0
 def normalize_settings(cls, sett):
     """:meth:`pluggdapps.plugin.ISettings.normalize_settings` interface
     method."""
     sett['encoding'] = sett['encoding'].lower()
     sett['IHTTPInBound'] = h.parsecsvlines(sett['IHTTPInBound'])
     sett['IHTTPOutBound'] = h.parsecsvlines(sett['IHTTPOutBound'])
     return sett
Пример #2
0
 def normalize_settings( cls, sett ):
     """:meth:`pluggdapps.plugin.ISettings.normalize_settings` interface
     method."""
     sett['encoding'] = sett['encoding'].lower()
     sett['IHTTPInBound'] = h.parsecsvlines( sett['IHTTPInBound'] )
     sett['IHTTPOutBound'] = h.parsecsvlines( sett['IHTTPOutBound'] )
     return sett
Пример #3
0
 def normalize_settings( cls, sett ):
     """:meth:`pluggdapps.plugin.ISettings.normalize_settings` interface 
     method."""
     sett['nocache'] = h.asbool( sett['nocache'] )
     sett['optimize'] = h.asint( sett['optimize'] )
     sett['lex_debug'] = h.asint( sett['lex_debug'] )
     sett['yacc_debug'] = h.asint( sett['yacc_debug'] )
     sett['strict_undefined'] = h.asbool( sett['strict_undefined'] )
     sett['directories'] = h.parsecsvlines( sett['directories'] )
     sett['tag.plugins'] = h.parsecsvlines( sett['tag.plugins'] )
     sett['beautify_html'] = h.asbool( sett['beautify_html'] )
     sett['memcache'] = h.asbool( sett['memcache'] )
     sett['helpers'] = h.parsecsv( sett['helpers'] )
     return sett
Пример #4
0
 def normalize_settings(cls, sett):
     """:meth:`pluggdapps.plugin.ISettings.normalize_settings` interface 
     method."""
     sett['nocache'] = h.asbool(sett['nocache'])
     sett['optimize'] = h.asint(sett['optimize'])
     sett['lex_debug'] = h.asint(sett['lex_debug'])
     sett['yacc_debug'] = h.asint(sett['yacc_debug'])
     sett['strict_undefined'] = h.asbool(sett['strict_undefined'])
     sett['directories'] = h.parsecsvlines(sett['directories'])
     sett['tag.plugins'] = h.parsecsvlines(sett['tag.plugins'])
     sett['beautify_html'] = h.asbool(sett['beautify_html'])
     sett['memcache'] = h.asbool(sett['memcache'])
     sett['helpers'] = h.parsecsv(sett['helpers'])
     return sett