datatracker/ietf/group/features.py
Robert Sparks 461af5af19 Adds views of active areas, area groups, teams, and directorates.
Adds navigation to those views to the base menus.

Unifies URL patterns shared between group/urls and group/urls_info, 
exposing the same view at, e.g., /group/stir and /wg/stir/.

Improves testing, primarily of group/info.py 

Commit ready for merge.
 - Legacy-Id: 9924
2015-07-30 21:51:38 +00:00

27 lines
924 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 # i.e. drafts/RFCs
has_materials = False
customize_workflow = False
about_page = "group_about"
default_tab = about_page
material_types = ["slides"]
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_materials = True
self.default_tab = "group_about"
if self.has_chartering_process:
self.about_page = "group_charter"