Subversion Repositories SmartDukaan

Rev

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

Rev 2445 Rev 2783
Line 17... Line 17...
17
    warehouseId = Field(Integer)
17
    warehouseId = Field(Integer)
18
    addedOn = Field(DateTime)
18
    addedOn = Field(DateTime)
19
    loggedOn = Field(DateTime)
19
    loggedOn = Field(DateTime)
20
    status = Field(Integer)
20
    status = Field(Integer)
21
    otherInfo = Field(String(200))
21
    otherInfo = Field(String(200))
22
    isAdmin = Field(Boolean)
22
    role = Field(Integer)
23
    using_options(shortnames=True)
23
    using_options(shortnames=True)
24
    using_table_options(mysql_engine="InnoDB")
24
    using_table_options(mysql_engine="InnoDB")
25
    
25
    
26
    def to_thrift_object(self):
26
    def to_thrift_object(self):
27
        '''
27
        '''
28
        Returns the thrift object corresponding to this dashboard user object.
28
        Returns the thrift object corresponding to this dashboard user object.
29
        Doesn't set the password in the object being returned.
29
        Doesn't set the password in the object being returned.
30
        '''
30
        '''
31
        t_dashboard_user = TDashboardUser()
31
        t_dashboard_user = TDashboardUser()
32
        t_dashboard_user.username = self.username
32
        t_dashboard_user.username = self.username
33
        t_dashboard_user.admin = self.isAdmin
33
        t_dashboard_user.role = self.role
34
        t_dashboard_user.warehouseId = self.warehouseId
34
        t_dashboard_user.warehouseId = self.warehouseId
35
        return t_dashboard_user
35
        return t_dashboard_user