Subversion Repositories SmartDukaan

Rev

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

Rev 21093 Rev 21097
Line 134... Line 134...
134
    using_options(shortnames=True)
134
    using_options(shortnames=True)
135
    using_table_options(mysql_engine="InnoDB")
135
    using_table_options(mysql_engine="InnoDB")
136
 
136
 
137
class PincodeStates(Entity):
137
class PincodeStates(Entity):
138
    pin = Field(Integer(6), primary_key=True)
138
    pin = Field(Integer(6), primary_key=True)
139
    state = Field(String(64))
139
    statename = Field(String(64))
140
    using_options(shortnames=True)
140
    using_options(shortnames=True)
141
    using_table_options(mysql_engine="InnoDB")
141
    using_table_options(mysql_engine="InnoDB")
142
 
142
 
143
def initialize(dbname="logistics",db_hostname="localhost", echoOn=True, setup=True):
143
def initialize(dbname="logistics",db_hostname="localhost", echoOn=True, setup=True):
144
    #metadata.bind = "sqlite:///logistics.sqlite" #need to read it from configserver.
144
    #metadata.bind = "sqlite:///logistics.sqlite" #need to read it from configserver.