Exemple #1
0
 def __init__(self):
     entity.__init__(self)
     self.user_id = field(zpid)  #This will not use mongo reference. i don't like fk
     self.reciever = field(zpstr)
     self.country = field(zpstr)
     self.district = field(zpstr)
     self.address = field(zpstr)
     self.email = field(zpstr)
     self.tel1 = field(zpstr)
     self.zipcode = field(zpstr)
     self.user_memo = field(zpstr)
Exemple #2
0
 def __init__(self):
     entity.__init__(self)
     self.username = field(zpstr)
     self.password = field(zpstr)
     self.salt = field(zpstr)
     self.nick = field(zpstr)
     self.avatar = field(zpstr)
     self.email = field(zpstr)
     self.tel1 = field(zpstr)
     self.tel2 = field(zpstr)
     self.last_login_ip =field(zpstr)
     self.last_login_time = field(zpdatetime)
     self.address = field(zpstr)
     self.zipcode = field(zpstr)
     self.district = field(zpstr)
Exemple #3
0
 def __init__(self):
     entity.__init__(self)
     self.code = field(zpstr)
     self.title = field(zpstr)
     self.avatar_path = field(zpstr)
     self.content = field(zpstr)
     self.spec = field(zpstr)
     self.category_id = field(zpid)
     #price and count
     self.price = field(zpfloat)
     self.sell_price = field(zpfloat)
     self.sale_price = field(zpfloat)
     self.stock_count = field(zpint, -1)
     #seo
     self.friendly_code = field(zpstr)
     self.page_desc = field(zpstr)
     self.hot = field(zpint)
     #----------------
     self.status = field(zpint)
     self.type = field(zpint)
Exemple #4
0
 def __init__(self):
     entity.__init__(self)
     self.code = field(zpstr)
     self.status = field(zpint, 1)
     # money
     self.amount = field(zpfloat, 0)
     self.fee_ship = field(zpfloat, 0)
     self.fee_paid = field(zpfloat, 0)
     self.payment_type = field(zpint, 1)
     # user info
     self.user_id = field(zpid)  #This will not use mongo reference. i don't like fk
     self.reciever = field(zpstr)
     self.country = field(zpstr)
     self.district = field(zpstr)
     self.address = field(zpstr)
     self.email = field(zpstr)
     self.tel1 = field(zpstr)
     self.zipcode = field(zpstr)
     self.user_memo = field(zpstr)
     #delivery
     self.delivery_corp_id = field(zpid)
     self.delivery_sheet_code = field(zpstr)
     self.seller_memo = field(zpstr)
Exemple #5
0
 def __init__(self):
     entity.__init__(self)
     #self._id = field(zpid)
     self.title = field(zpstr)
     self.query_url_pattern = field(zpstr)
Exemple #6
0
 def __init__(self):
     entity.__init__(self)
     self.title = field(zpstr)
     self.parent_id = field(zpid)
     self.friendly_code = field(zpstr)
Exemple #7
0
 def __init__(self):
     entity.__init__(self)
     self.path = field(zpstr)
     self.title = field(zpstr)
     self.display_order = field(zpint, 0)
     self.goods_id = field(zpid)
Exemple #8
0
 def __init__(self):
     entity.__init__(self)
     self.goods_id = field(zpid)
     self.category_id = field(zpid)
Exemple #9
0
 def __init__(self):
     entity.__init__(self)