Subversion Repositories SmartDukaan

Rev

Rev 238 | Blame | Compare with Previous | Last modification | View Log | RSS feed

'''
Created on 02-Jun-2010

@author: gaurav
'''


from elixir import *




class code_words(Entity):
    """
    Documentation for class code_words
    It represents database table for code_words used for parameters taken from forms, it stores
    key = name of the parameter
    value = the value of the parameter
    description = information about the parameter, for what purpose its stored
    """
    key = Field(String(100))
    value = Field(String(1000))
    description = Field(String(1000)) 

        
def init():
    """
    Documentation for method init
    Before using all the tables described in this module, one has to call this method
    """
    #print " in datacode definition"
    metadata.bind = "mysql://root@localhost/phonecrawler"
    metadata.bind.echo = True
    setup_all(True)
    pass