def __init__(self, name, type, **kwargs): self.name = name self.translated_name = gettext(name) self.type = type # these are overridable by keyword arg self.editable = True self.use_disk = False for k,v in kwargs.iteritems(): setattr(self, k, v)
def __init__(self, name, type, **kwargs): self.name = name self.translated_name = gettext(name) self.type = type # these are overridable by keyword arg self.editable = True self.use_disk = False for k, v in kwargs.iteritems(): setattr(self, k, v)