コード例 #1
0
 def delete(self):
     result = User.delete_one(self.root.db, username=self.name)
     if result and result['ok'] != 1:
         raise NotFound(self)
コード例 #2
0
ファイル: users.py プロジェクト: hadrien/pyramid_royal
 def delete(self):
     result = User.delete_one(self.root.db, username=self.name)
     if result and result['ok'] != 1:
         raise NotFound(self)