Changeset 857256d


Ignore:
Timestamp:
Apr 27, 2010, 3:39:45 AM (15 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, client
Children:
b1e217a
Parents:
6eb1795
git-author:
Alex Dehnert <adehnert@…> (04/27/10 03:39:45)
git-committer:
Alex Dehnert <adehnert@…> (04/27/10 03:39:45)
Message:

Make depth of the committee hierarchy configurable

The UA and ESP have a two-level hierarchy:

UA:

  • General
    • Senate, Exec, Operating
  • Committees
    • All the committees

ESP:

  • Programs
    • All the programs
  • Officers
    • All the officers

However, many groups are likely to have a natural single-level hierarchy,
and Remit should not force them to contort their accounting to fit
Remit's needs.

Location:
remit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • remit/settings.py

    r6eb1795 r857256d  
    2626
    2727BASE_COMMITTEE_PATH = ['Accounts', 'Assets', ]
     28COMMITTEE_HIERARCHY_LEVELS = 2
    2829
    2930AUTH_SOCK = None # Path to SocketAuth socket
  • remit/vouchers/views.py

    r82211ea r857256d  
    4141        self.strip_levels = base_area.depth
    4242        areas = (base_area.get_descendants()
    43             .filter(depth__lte=base_area.depth+2)
     43            .filter(depth__lte=base_area.depth+settings.COMMITTEE_HIERARCHY_LEVELS)
    4444            .exclude(name='Holding')
    4545        )
Note: See TracChangeset for help on using the changeset viewer.