from .__init__ import \ __pic_head__ as __head__, \ __pic_heads__ as __heads__ # __customer_business_detail_head__ as __head_detail__, \ # __customer_business_detail_rates_head__ as __head_detail_rates__, \ # __customer_business_detail_deals_head__ as __head_detail_deals__, \ # __customer_business_detail_images_url_head__ as __head_detail_images_url__ field_inputs = {} field_inputs_user = {} field_inputs_wrap = _field_inputs_wrap.copy() field_inputs['business_id'] = { 'validator': validate.natural(), 'required': True, 'type': fields.Integer() } field_inputs['type'] = { 'required': True, 'validator': validate.str_in_list(argument=['customer'], ), 'type': fields.String(), } field_inputs_wrap['orderBy'] = { 'validator': validate.str_in_list( default='id', argument=['id'], ), 'type': fields.String(default='id'), }
from module.common import field_inputs_wrap as _field_inputs_wrap from module.common import field_inputs_ref as _field_inputs_ref from module.common import field_inputs as _field_inputs from module.common import field_inputs_wrap_head # for serialize from .__init__ import \ __user_users_head__ as __head__ field_inputs = {} field_inputs_user = {} field_inputs_wrap = _field_inputs_wrap.copy() field_inputs['id'] = { 'validator': validate.natural(), #'required': True, 'type': fields.Integer() } field_inputs['name'] = { 'validator': validate.str_range(argument={ 'low': 1, 'high': 255 }), 'type': fields.String(default="") } #field_inputs['sid'] = { # 'validator': validate.str_range(argument={'low': 1, 'high': 255}), # 'type': fields.String() # } # TODO: validator with email field_inputs['login'] = {