コード例 #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
ファイル: test_content.py プロジェクト: rgravina/Igloo
 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)