Subversion Repositories SmartDukaan

Rev

Rev 15138 | Rev 15149 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15138 Rev 15144
Line 160... Line 160...
160
    using_table_options(mysql_engine="InnoDB")
160
    using_table_options(mysql_engine="InnoDB")
161
    
161
    
162
class Activation_Codes(Entity):
162
class Activation_Codes(Entity):
163
    code = Field(String(10))
163
    code = Field(String(10))
164
    created = Field(DateTime, default=func.now())
164
    created = Field(DateTime, default=func.now())
-
 
165
    using_options(shortnames=True)
-
 
166
    using_table_options(mysql_engine="InnoDB")
165
 
167
 
166
 
168
 
167
def initialize(dbname='dtr', db_hostname="localhost", echo=True):
169
def initialize(dbname='dtr', db_hostname="localhost", echo=True):
168
    #metadata.bind = "sqlite:///inventory-new.sqlite" #need to read it from configserver.
170
    #metadata.bind = "sqlite:///inventory-new.sqlite" #need to read it from configserver.
169
    #metadata.bind = 'mysql://root:shop2020@localhost/catalog'
171
    #metadata.bind = 'mysql://root:shop2020@localhost/catalog'