def __init__(self): PersistentMapping.__init__(self) self.blogs = IOBTree() self.categories = Categories() self.tags = Tags()
def __init__(self, key, proxy): PersistentMapping.__init__(self) self._p_oid = hash(key) self._p_jar = self # we are our own data manager self._p_key = key self._p_proxy = proxy self._p_joined = False
def __init__(self, content_id, data=None, **kwargs): if not data: data = {} PersistentMapping.__init__(self) Base.__init__(self, content_id, data=data) self._order = []
def __init__(self, crumb_name, owner, id): PersistentMapping.__init__(self) self.item_number = 0 self.timestamp = datetime.now() self.id = id self.owner = owner # Name used in breadcrumps self.crumb_name = crumb_name
def __init__(self, id, title, config): PersistentMapping.__init__(self) self.title = title self.id = id self.set_config(config) # Import here to avoid import dependencies loop from ulearnhub.models.services import ServicesContainer self.services = ServicesContainer(self)
def __init__(self, log): #self.start_time = log['start_time'] #self.players = log['players'] #self.units = log['units'] #self.grid = log['grid'] #self['init_locs'] = log['init_locs'] PersistentMapping.__init__(self, init_locs=log['init_locs'], start_time=log['start_time'], units=log['units'], grid=log['grid'], owners=log['owners'],)
def __init__(self, unit=None, type='pass', target=None, when=None, num=None): PersistentMapping.__init__(self, unit=unit, type=type, target=target, num=num, when=now())
def __init__(self, log): #self.start_time = log['start_time'] #self.players = log['players'] #self.units = log['units'] #self.grid = log['grid'] #self['init_locs'] = log['init_locs'] PersistentMapping.__init__( self, init_locs=log['init_locs'], start_time=log['start_time'], units=log['units'], grid=log['grid'], owners=log['owners'], )
def __init__(self, num=1, pass_count=0, hp_count=0, old_defsquad_hp=0, queued=PersistentMapping(), locs=PersistentMapping(), HPs=PersistentMapping(), game_over=False): PersistentMapping.__init__(self, num=num, pass_count=pass_count, hp_count=hp_count, old_defsquad_hp=old_defsquad_hp, queued=queued, locs=locs, HPs=HPs, game_over=game_over)
def __init__(self, family=None): PersistentMapping.__init__(self) if family is not None: self.family = family
def __init__(self): PersistentMapping.__init__(self) Contacts(self) Projects(self) Users(self)
def __init__(self, title): PersistentMapping.__init__(self) self.title = title
def __init__(self, body): PersistentMapping.__init__(self) self.body = body
def __init__(self, victors, prisoners, awards, event='battle'): PersistentMapping.__init__(self, event=event, victors=victors, prisoners=prisoners, awards=awards)
def __init__(self, num, result): PersistentMapping.__init__(self, num=num, result=result, when=now())
def __init__(self, event, kwargs): PersistentMapping.__init__(self, event, **kwargs)
def __init__(self, *args, **kw): PersistentMapping.__init__(self, *args, **kw) self._by_rev_index = {}
def __init__(self, crumb_name): PersistentMapping.__init__(self) # Name used in breadcrumps self.crumb_name = crumb_name
def __init__(self): PersistentMapping.__init__(self) self[DEFAULT] = DefaultViewletsForType()
def __init__(self): PersistentMapping.__init__(self)
def __init__(self, d=None): # _ct is creation time self._ct = time.time() PersistentMapping.__init__(self, d)
def __init__(self, parent, name): PersistentMapping.__init__(self) self.__parent__ = parent self.__name__ = name self.__parent__[name] = self
def __init__(self, name): PersistentMapping.__init__(self) self.__name__ = name self.id = name self.name = name
def __init__(self, dict=None): self._keys = [] BaseDict.__init__(self, dict) if dict is not None: self._keys = self.data.keys()