def formatted_listing(self): formatter = TableFormatter(self.context, self.request, self.context.debate_takes, columns=self.columns()) formatter.updateBatching() return formatter()
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()
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()
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()