Exemple #1
0
 def __init__(self, thing, *args, **kwargs):
     Item.__init__(self, *args, **kwargs)
     self.store = thing.store
     self.thing = thing
     self.thing.powerUp(self)
Exemple #2
0
 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
Exemple #3
0
 def __init__(self, store, *args, **kwargs):
     Item.__init__(self, *args, **kwargs)
     self.store = store
     store.powerUp(self)
Exemple #4
0
 def __init__(self, store, username, password):
     Item.__init__(self, store=store, username=username, password=password)
Exemple #5
0
 def __init__(self, **kw):
     Item.__init__(self, **kw)
     self.content = Content(store=self.store)
     dependency.installOn(self.content, self)
Exemple #6
0
 def committed(self):
     Item.committed(self)
     if getattr(self, '_committed', None) is not None:
         self._committed(self)
 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))
Exemple #8
0
 def committed(self):
     Item.committed(self)
     if getattr(self, '_committed', None) is not None:
         self._committed(self)