Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
203 ashish 1
'''
2
Created on 02-Jun-2010
3
 
4
@author: gaurav
5
'''
6
 
7
 
8
from elixir import *
9
 
238 ashish 10
 
11
 
12
 
203 ashish 13
class code_words(Entity):
264 ashish 14
    """
15
    Documentation for class code_words
16
    It represents database table for code_words used for parameters taken from forms, it stores
17
    key = name of the parameter
18
    value = the value of the parameter
19
    description = information about the parameter, for what purpose its stored
20
    """
203 ashish 21
    key = Field(String(100))
22
    value = Field(String(1000))
23
    description = Field(String(1000)) 
24
 
25
 
26
def init():
264 ashish 27
    """
28
    Documentation for method init
29
    Before using all the tables described in this module, one has to call this method
30
    """
203 ashish 31
    #print " in datacode definition"
32
    metadata.bind = "mysql://root@localhost/phonecrawler"
33
    metadata.bind.echo = True
34
    setup_all(True)
35
    pass