示例#1
0
文件: working.py 项目: iffy/campus
 def __init__(self, thing, *args, **kwargs):
     Item.__init__(self, *args, **kwargs)
     self.store = thing.store
     self.thing = thing
     self.thing.powerUp(self)
示例#2
0
文件: working.py 项目: iffy/campus
 def __init__(self, thing, destination=None, *args, **kwargs):
     Item.__init__(self, *args, **kwargs)
     self.store = thing.store
     self.thing = thing
     self.thing.powerUp(self)
     self.destination = destination
示例#3
0
文件: working.py 项目: iffy/campus
 def __init__(self, store, *args, **kwargs):
     Item.__init__(self, *args, **kwargs)
     self.store = store
     store.powerUp(self)
示例#4
0
文件: service.py 项目: bne/squeal
 def __init__(self, store, username, password):
     Item.__init__(self, store=store, username=username, password=password)
示例#5
0
 def __init__(self, **kw):
     Item.__init__(self, **kw)
     self.content = Content(store=self.store)
     dependency.installOn(self.content, self)
示例#6
0
 def committed(self):
     Item.committed(self)
     if getattr(self, '_committed', None) is not None:
         self._committed(self)
示例#7
0
 def __init__(self, **stuff):
     """
     Override Item's __init__ to re-retrieve this Item from the store.
     """
     Item.__init__(self, **stuff)
     self.verify = (self, self.store.getItemByID(self.storeID))
示例#8
0
文件: test_item.py 项目: bne/squeal
 def committed(self):
     Item.committed(self)
     if getattr(self, '_committed', None) is not None:
         self._committed(self)