2005-08-18 | paulb | raw annotate files changeset graph | [project @ 2005-08-18 21:09:56 by paulb] Fixed the calendar example (and added missing deployment programs). |
1 #!/usr/bin/env python 2 3 """ 4 Webware plug-in code. 5 """ 6 7 __version__ = "0.1" 8 9 from WebStack.Adapters.Webware import WebStackServletFactory 10 from Calendar import CalendarResource 11 12 # NOTE: Initialising a shared resource. 13 14 resource = CalendarResource() 15 16 def InstallInWebKit(appServer): 17 global resource 18 app = appServer.application() 19 app.addServletFactory(WebStackServletFactory(app, resource, [".cal"])) 20 21 # vim: tabstop=4 expandtab shiftwidth=4