Exemplo n.º 1
0
 def json(self):
     return dict(id=self.id,
                 name=self.username,
                 email=self.email,
                 status=self.status,
                 user_create_time=str(self.user_create_time),
                 user_update_time=str(self.user_update_time),
                 role=get_role(self.role),
                 email_alerts=self.email_alerts)
Exemplo n.º 2
0
 def json(self):
     return dict(id=self.id,
                 name=self.username,
                 email=self.email,
                 status=self.status,
                 user_create_time=str(self.user_create_time),
                 user_update_time=str(self.user_update_time),
                 role=get_role(self.role),
                 email_alerts=self.email_alerts)
Exemplo n.º 3
0
 def role(id):
     return get_role(id)