Back to index

plone3  3.1.7
common.py
Go to the documentation of this file.
00001 from Globals import Persistent
00002 
00003 
00004 class Root(Persistent):
00005     def __init__(self, id):
00006         self.id = id
00007 
00008     def getPhysicalPath(self):
00009         return ('', self.id)
00010 
00011 
00012 class Dummy:
00013 
00014     meta_type="foo"
00015 
00016     def __init__(self, path):
00017         self.path = path
00018 
00019     def getPhysicalPath(self):
00020         return self.path.split('/')
00021 
00022     def __str__(self):
00023         return '<Dummy: %s>' % self.path
00024 
00025     __repr__ = __str__
00026 
00027 
00028 data = {
00029     1 : Dummy("/aa/aa/aa/1.html"),
00030     2 : Dummy("/aa/aa/bb/2.html"),
00031     3 : Dummy("/aa/aa/cc/3.html"),
00032     4 : Dummy("/aa/bb/aa/4.html"),
00033     5 : Dummy("/aa/bb/bb/5.html"),
00034     6 : Dummy("/aa/bb/cc/6.html"),
00035     7 : Dummy("/aa/cc/aa/7.html"),
00036     8 : Dummy("/aa/cc/bb/8.html"),
00037     9 : Dummy("/aa/cc/cc/9.html"),
00038     10 : Dummy("/bb/aa/aa/10.html"),
00039     11 : Dummy("/bb/aa/bb/11.html"),
00040     12 : Dummy("/bb/aa/cc/12.html"),
00041     13 : Dummy("/bb/bb/aa/13.html"),
00042     14 : Dummy("/bb/bb/bb/14.html"),
00043     15 : Dummy("/bb/bb/cc/15.html"),
00044     16 : Dummy("/bb/cc/aa/16.html"),
00045     17 : Dummy("/bb/cc/bb/17.html"),
00046     18 : Dummy("/bb/cc/cc/18.html")
00047    }