def serverInit(): import Executables, CodeSources, MimeTypes, InitTags Executables.initTemplateMimeTypes() CodeSources.installIntoTraceback() MimeTypes.loadMimeTypes() InitTags.initTags() InitTags.initHiddenNamespace()
def serverInit(): import Executables, CodeSources, MimeTypes, InitTags Executables.initTemplateMimeTypes() CodeSources.installIntoTraceback() MimeTypes.loadMimeTypes() InitTags.initTags() InitTags.initHiddenNamespace()
# # Copyright (C) 2001 Andrew T. Csillag <*****@*****.**> # # You may distribute under the terms of either the GNU General # Public License or the SkunkWeb License, as specified in the # README file. # import sys sys.path.append('/home/drew/devel/skunk/pylibs') import Component Component.globalNamespace['Component'] = Component import MimeTypes MimeTypes.loadMimeTypes() sys.stderr = sys.__stderr__ import Error try: print Component.callComponent('foo.html', {}, cache=1) except: print "an error occurred" print Error.logException() print Component.postRequestRenderList
# # Copyright (C) 2001 Andrew T. Csillag <*****@*****.**> # # You may distribute under the terms of either the GNU General # Public License or the SkunkWeb License, as specified in the # README file. # import sys sys.path.append('/home/drew/devel/skunk/pylibs') import Component Component.globalNamespace['Component'] = Component import MimeTypes MimeTypes.loadMimeTypes() sys.stderr = sys.__stderr__ import Error try: print Component.callComponent('foo.html', {}, cache=1) except: print "an error occurred" print Error.logException() print Component.postRequestRenderList