Esempio n. 1
0
 def formatted_listing(self):
     formatter = TableFormatter(self.context,
                                self.request,
                                self.context.debate_takes,
                                columns=self.columns())
     formatter.updateBatching()
     return formatter()
Esempio n. 2
0
 def formatted_listing(self):
     formatter = TableFormatter(self.context, self.request, self.listing,
         prefix="attendance",
         visible_column_names=[ c.name for c in self.columns ],
         columns=self.columns
     )
     formatter.updateBatching()
     return formatter()
Esempio n. 3
0
 def formatted_listing(self):
     formatter = TableFormatter(self.context, self.request, self.listing,
         prefix="attendance",
         visible_column_names=[ c.name for c in self.columns ],
         columns=self.columns
     )
     formatter.updateBatching()
     return formatter()
Esempio n. 4
0
 def role_listing(self, role_id, editable):
     listing = []
     users = common.get_local_users_for_subrole(role_id)
     if not users:
         return _("No users available for this role.")
     for user in users:
         data = {}
         data["title"] = IDCDescriptiveProperties(user).title
         data["name"] = self.make_id(user.login, role_id)
         data["is_assigned"] = self.user_is_assigned(user.login, role_id)
         data["editable"] = editable
         listing.append(data)
     formatter = TableFormatter(self.context, self.request, listing, prefix="assignment", columns=self.columns)
     formatter.updateBatching()
     return formatter()
Esempio n. 5
0
 def role_listing(self, role_id, editable):
     listing = []
     users = common.get_users(role_id)
     if not users:
         return _("No users available for this role.")
     for user in users:
         data = {}
         data["title"] = IDCDescriptiveProperties(user).title
         data["name"] = self.make_id(user.login, role_id)
         data["is_assigned"] = self.user_is_assigned(user.login, role_id)
         data["editable"] = editable
         listing.append(data)
     formatter = TableFormatter(self.context,
                                self.request,
                                listing,
                                prefix="assignment",
                                columns=self.columns)
     formatter.updateBatching()
     return formatter()
 def formatted_listing(self):
     formatter = TableFormatter(self.context, self.request,
         self.context.debate_takes, columns=self.columns()
     )
     formatter.updateBatching()
     return formatter()