def __init__(self, req, model, language=None, **kw): if language: self.language = language elif 'language' in req.params: self.language = Language.get(req.params['language']) else: self.language = None DataTable.__init__(self, req, model, **kw)
def __init__(self, req, model, parameter=None, contribution=None, unit=None, **kw): for attr, _model in [ ('parameter', common.UnitParameter), ('contribution', common.Contribution), ('unit', common.Unit), ]: if locals()[attr]: setattr(self, attr, locals()[attr]) elif attr in req.params: setattr(self, attr, _model.get(req.params[attr])) else: setattr(self, attr, None) DataTable.__init__(self, req, model, **kw)
def __init__(self, req, model, parameter=None, contribution=None, language=None, search='col', **kw): self.search = search for attr, _model in [ ('parameter', Parameter), ('contribution', Contribution), ('language', Language), ]: if locals()[attr]: setattr(self, attr, locals()[attr]) elif attr in req.params: setattr(self, attr, _model.get(req.params[attr])) else: setattr(self, attr, None) DataTable.__init__(self, req, model, **kw)
def __init__(self, *args, **kw): DataTable.__init__(self, *args, **kw) self.License = aliased(ImageData) self.Place = aliased(ImageData)
def __init__(self, req, model, **kw): DataTable.__init__(self, req, model, **kw) self.fam1 = aliased(Family, name="fam1") self.fam2 = aliased(Family, name="fam2")
def __init__(self, req, model, **kw): DataTable.__init__(self, req, model, **kw) self.f1 = aliased(Feature, name="f1") self.f2 = aliased(Feature, name="f2")
def __init__(self, req, model, eid=None, **kw): DataTable.__init__(self, req, model, eid=eid, **kw) self.vars = [] if self.parameter: self.vars = [aliased(Value_data, name='var%s' % i) for i in range(len(self.parameter.jsondata['varspec']))]