Rev 6289 | Blame | Compare with Previous | Last modification | View Log | RSS feed
'''Created on 30-Oct-2012@author: anupam'''from elixir.entity import Entityfrom elixir.fields import Fieldfrom elixir.options import using_options, using_table_optionsfrom sqlalchemy.types import String, Integerfrom shop2020.thriftpy.model.v1.order.ttypes import TelecomCircle as t_TelecomCircleclass TelecomCircle(Entity):'''classdocs'''id = Field(Integer, primary_key=True)name = Field(String(256))code = Field(String(8))using_options(shortnames=True)using_table_options(mysql_engine="InnoDB")def __init__(self):'''Constructor'''def to_thrift_object(self, ):'''Copies attributes to thrift object'''thriftObject = t_TelecomCircle()thriftObject.id = self.idthriftObject.name = self.namethriftObject.code = self.codereturn thriftObject