def __init__(self, *args, **kwargs): if 'prefix' in kwargs: self.prefix = kwargs['prefix'] del kwargs['prefix'] else: self.prefix = None DBStartupPackage.__init__(self, *args, **kwargs)
def do_copy(self, new_ids=False, id_scope=None, id_remap=None): cp = DBStartupPackage.do_copy(self, new_ids, id_scope, id_remap) cp.__class__ = StartupPackage cp.prefix = self.prefix return cp