summaryrefslogtreecommitdiff
path: root/docs/narr/MyProject/myproject/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/narr/MyProject/myproject/models.py')
-rw-r--r--docs/narr/MyProject/myproject/models.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/narr/MyProject/myproject/models.py b/docs/narr/MyProject/myproject/models.py
new file mode 100644
index 000000000..42efd9e0b
--- /dev/null
+++ b/docs/narr/MyProject/myproject/models.py
@@ -0,0 +1,14 @@
+from zope.interface import Interface
+from zope.interface import implements
+
+class IMyModel(Interface):
+ pass
+
+class MyModel(object):
+ implements(IMyModel)
+ pass
+
+root = MyModel()
+
+def get_root(environ):
+ return root