Subversion Repositories SmartDukaan

Rev

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

Rev 238 Rev 264
Line 9... Line 9...
9
 
9
 
10
 
10
 
11
 
11
 
12
 
12
 
13
class code_words(Entity):
13
class code_words(Entity):
-
 
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
    """
14
    key = Field(String(100))
21
    key = Field(String(100))
15
    value = Field(String(1000))
22
    value = Field(String(1000))
16
    description = Field(String(1000)) 
23
    description = Field(String(1000)) 
17
 
24
 
18
        
25
        
19
def init():
26
def init():
-
 
27
    """
-
 
28
    Documentation for method init
-
 
29
    Before using all the tables described in this module, one has to call this method
-
 
30
    """
20
    #print " in datacode definition"
31
    #print " in datacode definition"
21
    metadata.bind = "mysql://root@localhost/phonecrawler"
32
    metadata.bind = "mysql://root@localhost/phonecrawler"
22
    metadata.bind.echo = True
33
    metadata.bind.echo = True
23
    setup_all(True)
34
    setup_all(True)
24
    pass    
35
    pass    
25
36