Subversion Repositories SmartDukaan

Rev

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

Rev 9568 Rev 9621
Line 340... Line 340...
340
    updatedOn = Field(DateTime)
340
    updatedOn = Field(DateTime)
341
    supc = Field(String(255))
341
    supc = Field(String(255))
342
    using_options(shortnames=True)
342
    using_options(shortnames=True)
343
    using_table_options(mysql_engine="InnoDB")
343
    using_table_options(mysql_engine="InnoDB")
344
    
344
    
-
 
345
class ProductFeedSubmit(Entity):
-
 
346
    catalogItemId = Field(Integer, primary_key=True)
-
 
347
    stockLinkedFeed = Field(Boolean)
-
 
348
    using_options(shortnames=True)
-
 
349
    using_table_options(mysql_engine="InnoDB")
345
    
350
    
346
def initialize(dbname='catalog', db_hostname="localhost"):
351
def initialize(dbname='catalog', db_hostname="localhost"):
347
    #metadata.bind = "sqlite:///inventory-new.sqlite" #need to read it from configserver.
352
    #metadata.bind = "sqlite:///inventory-new.sqlite" #need to read it from configserver.
348
    #metadata.bind = 'mysql://root:shop2020@localhost/catalog'
353
    #metadata.bind = 'mysql://root:shop2020@localhost/catalog'
349
    cengine = create_engine('mysql://root:shop2020@' + db_hostname + '/' + dbname, pool_recycle=7200)
354
    cengine = create_engine('mysql://root:shop2020@' + db_hostname + '/' + dbname, pool_recycle=7200)