summaryrefslogtreecommitdiff
path: root/docs/narr/MyProject/myproject/models.py
blob: 42efd9e0b6366a7f7a63c2b5d3c28654aa9e5600 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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