Subversion Repositories SmartDukaan

Rev

Rev 6289 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6289 Rev 7096
Line 5... Line 5...
5
'''
5
'''
6
 
6
 
7
from elixir.entity import Entity
7
from elixir.entity import Entity
8
from elixir.fields import Field
8
from elixir.fields import Field
9
from elixir.options import using_options, using_table_options
9
from elixir.options import using_options, using_table_options
10
from sqlalchemy.types import String
10
from sqlalchemy.types import String, Integer
-
 
11
from shop2020.thriftpy.model.v1.order.ttypes import TelecomCircle as t_TelecomCircle
11
 
12
 
12
class TelecomCircle(Entity):
13
class TelecomCircle(Entity):
13
    '''
14
    '''
14
    classdocs
15
    classdocs
15
    '''
16
    '''
-
 
17
    id = Field(Integer, primary_key=True)
16
    name = Field(String(256))
18
    name = Field(String(256))
17
    code = Field(String(8))
19
    code = Field(String(8))
18
    using_options(shortnames=True)
20
    using_options(shortnames=True)
19
    using_table_options(mysql_engine="InnoDB")
21
    using_table_options(mysql_engine="InnoDB")
20
 
22
 
21
 
23
 
22
    def __init__(self):
24
    def __init__(self):
23
        '''
25
        '''
24
        Constructor
26
        Constructor
25
        '''
27
        '''
-
 
28
        
-
 
29
    def to_thrift_object(self, ):
-
 
30
        '''
-
 
31
        Copies attributes to thrift object
-
 
32
        '''
-
 
33
        thriftObject = t_TelecomCircle()
-
 
34
        thriftObject.id = self.id
-
 
35
        thriftObject.name = self.name
-
 
36
        thriftObject.code = self.code
-
 
37
        return thriftObject