Subversion Repositories SmartDukaan

Rev

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

Rev 94 Rev 100
Line 12... Line 12...
12
    t_category.id = category.id
12
    t_category.id = category.id
13
    t_category.name = category.name
13
    t_category.name = category.name
14
    t_category.isTopLevel = False
14
    t_category.isTopLevel = False
15
    if category.isRoot == 1:
15
    if category.isRoot == 1:
16
        t_category.isTopLevel = True
16
        t_category.isTopLevel = True
17
    t_category.addedOn = int(time.mktime(category.timetuple()))
17
    t_category.addedOn = int(time.mktime(category.addedOn.timetuple()))
18
    
18
    
19
    if category.parent:
19
    if category.parent:
20
        t_category.parent_id = category.parent.id
20
        t_category.parent_id = category.parent.id
21
    if category.children:
21
    if category.children:
22
        t_category.childCategories = []
22
        t_category.childCategories = []