Example #1
0
 def get_total(self):
     cnds = self.navb.conditions()
     exts = {}
     cols = ['COUNT(*) AS total']
     total = Role.get_roles_summary(cnds, cols)[0]
     self.navb.kw = {}
     return total
Example #2
0
 def get_stats(self):
     cnds = self.navb.conditions()
     cols = ['COUNT(*) AS total']
     exts = {}
     attrs = []
     nat = Role.get_roles_summary(cnds, cols)
     self.navb.kw = {}
     return [nat, attrs]