def __init__(self, event, perms_by_contributor, editable): self.event = event self.editable = editable contributor_accounts = Account._byID( perms_by_contributor.keys(), data=True) contributors = [ LiveUpdateContributor(account, perms_by_contributor[account._id]) for account in contributor_accounts.itervalues()] contributors.sort(key=lambda r: r.account.name) SimpleBuilder.__init__( self, contributors, keep_fn=self.keep_item, wrap=self.wrap_item, skip=False, num=0, )