Commits

Erik Bray  committed 9375aa5 Draft

Started stubbing some things out

  • Participants
  • Parent commits 1a10a77

Comments (0)

Files changed (3)

File setup.py

File contents unchanged.

File traceasyorder/__init__.py

+from . import web_ui

File traceasyorder/web_ui.py

+from trac.core import Component
+from trac.web.api import IRequestFilter
+from trac.web.chrom import ITemplateProvider
+
+
+class EasyOrderModule(Component):
+    implements(IRequestFilter, ITemplateProvider)
+
+    # IRequestFilter methods
+    def pre_process_request(self, req, handler):
+        return handler
+
+    def post_process_request(self, req, template, data, content_type):
+        return template, data, content_type
+
+    # ITemplateProvider methods
+    def get_htdocs_dirs(self):
+        return ()
+
+    def get_templates_dirs(self):
+        return()