Esempio n. 1
0
 def delete(self, req, resp, id):
     user = obj(req, luxon_user, sql_id=id, hide=('password', ))
     user.commit()
     return user
Esempio n. 2
0
 def create(self, req, resp):
     user = obj(req, luxon_user, hide=('password', ))
     if req.json.get('password') is not None:
         user['password'] = hash(req.json['password'])
     user.commit()
     return user
Esempio n. 3
0
 def update(self, req, resp, id):
     user = obj(req, luxon_user, sql_id=id, hide=('password', ))
     if req.json.get('password') is not None:
         user['password'] = hash(req.json['password'])
     user.commit()
     return user
Esempio n. 4
0
 def delete(self, req, resp, id):
     domain = obj(req, luxon_domain, sql_id=id)
     domain.commit()
     return domain
Esempio n. 5
0
 def user(self, req, resp, id):
     return obj(req, luxon_user, sql_id=id, hide=('password', ))
Esempio n. 6
0
 def domain(self, req, resp, id):
     return obj(req, luxon_domain, sql_id=id)
Esempio n. 7
0
 def create(self, req, resp):
     domain = obj(req, luxon_domain)
     domain.commit()
     return domain
Esempio n. 8
0
 def create(self, req, resp):
     tenant = obj(req, luxon_tenant)
     tenant.commit()
     return tenant
Esempio n. 9
0
 def delete(self, req, resp, id):
     tenant = obj(req, luxon_tenant, sql_id=id)
     tenant.commit()
     return tenant
Esempio n. 10
0
 def delete(self, req, resp, id):
     role = obj(req, luxon_role, sql_id=id)
     role.commit()
     return role
Esempio n. 11
0
 def tenant(self, req, resp, id):
     return obj(req, luxon_tenant, sql_id=id)
Esempio n. 12
0
 def create(self, req, resp):
     role = obj(req, luxon_role)
     role.commit()
     return role
Esempio n. 13
0
 def role(self, req, resp, id):
     return obj(req, luxon_role, sql_id=id)
Esempio n. 14
0
 def delete(self, req, resp, id):
     endpoint = obj(req, luxon_endpoint, sql_id=id)
     endpoint.commit()
     return endpoint
Esempio n. 15
0
 def create(self, req, resp):
     endpoint = obj(req, luxon_endpoint)
     endpoint.commit()
     return endpoint
Esempio n. 16
0
 def endpoint(self, req, resp, id):
     return obj(req, luxon_endpoint, sql_id=id)