datatracker/ietf/group/features.py
Ole Laursen 0144ef366b Add description field on group, enable most group info page views to
work without a group type to pave the way for /group/<acronym>/ URLs,
make charter page more generic, enable it to handle descriptions and
walk over all personnel instead of picking out specific types
of roles, add a redirect view on /group/<acronym>/ to lead to either
documents/ or charter/, add simple group.features() class to be able
to condition on group features rather than specific group types,
adjust group pages menu accordingly
 - Legacy-Id: 7758
2014-05-20 10:19:26 +00:00

20 lines
689 B
Python

class GroupFeatures(object):
"""Configuration of group pages and processes to have this collected
in one place rather than scattered over the group page views."""
has_milestones = False
has_chartering_process = False
has_documents = False
customize_workflow = False
default_tab = "group_charter"
def __init__(self, group):
if group.type_id in ("wg", "rg"):
self.has_milestones = True
self.has_chartering_process = True
self.has_documents = True
self.customize_workflow = True
self.default_tab = "group_docs"
elif group.type_id in ("team",):
self.has_documents = True