app/soc/views/models/sponsor.py
author Sverre Rabbelier <srabbelier@gmail.com>
Thu, 05 Feb 2009 23:52:27 +0000
changeset 1230 b1b1897e4df1
parent 1219 aad447d05cfc
child 1248 f318538394d9
permissions -rw-r--r--
Cleanup in org_app and replace ReferenceProperty with LinkProperty Using LinkProperty allows the org to host their idea's list on Melange through the Document system, and then specify the URL of that document. This also makes it possible for the orgs to specify a document that is not hosted on Melange. Patch by: Sverre Rabbelier
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
363
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
     1
#!/usr/bin/python2.5
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
     2
#
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
     3
# Copyright 2008 the Melange authors.
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
     4
#
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
     5
# Licensed under the Apache License, Version 2.0 (the "License");
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
     6
# you may not use this file except in compliance with the License.
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
     7
# You may obtain a copy of the License at
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
     8
#
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
     9
#   http://www.apache.org/licenses/LICENSE-2.0
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    10
#
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    11
# Unless required by applicable law or agreed to in writing, software
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    12
# distributed under the License is distributed on an "AS IS" BASIS,
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    13
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    14
# See the License for the specific language governing permissions and
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    15
# limitations under the License.
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    16
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    17
"""Views for Sponsor profiles.
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    18
"""
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    19
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    20
__authors__ = [
429
e50e18936f06 Fixed typo in e-mail address
Sverre Rabbelier <srabbelier@gmail.com>
parents: 409
diff changeset
    21
    '"Sverre Rabbelier" <sverre@rabbelier.nl>',
583
12960609a69c Fills in the Founded By box in edit sponsor with the user's public name
Lennard de Rijk <ljvderijk@gmail.com>
parents: 569
diff changeset
    22
    '"Lennard de Rijk" <ljvderijk@gmail.com>',
363
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    23
    '"Pawel Solyga" <pawel.solyga@gmail.com>',
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    24
  ]
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    25
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    26
387
c55195361cb6 Addressed comments by Todd on r822
Sverre Rabbelier <srabbelier@gmail.com>
parents: 363
diff changeset
    27
from soc.logic import dicts
1219
aad447d05cfc Fix import sorting in soc.views.models.sponsor module.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1203
diff changeset
    28
from soc.logic.models.host import logic as host_logic
1163
d8c50be19232 Cleaned up access.py
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1144
diff changeset
    29
from soc.logic.models.sponsor import logic as sponsor_logic
995
886c981fda2c Added rights check to sponsor.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 993
diff changeset
    30
from soc.views.helper import access
1071
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    31
from soc.views.helper import redirects
658
9964b1571ef8 Factor out the Group part of Sponsor
Sverre Rabbelier <srabbelier@gmail.com>
parents: 656
diff changeset
    32
from soc.views.models import group
363
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    33
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    34
import soc.models.sponsor
993
99c46908b4b6 Renamed role_names to role_logic and made it a dictionary.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 989
diff changeset
    35
import soc.logic.dicts
363
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    36
import soc.logic.models.sponsor
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    37
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    38
658
9964b1571ef8 Factor out the Group part of Sponsor
Sverre Rabbelier <srabbelier@gmail.com>
parents: 656
diff changeset
    39
class View(group.View):
499
d22e4fe8e64b Fix missing dots in doc strings and some other doc string corrections.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 494
diff changeset
    40
  """View methods for the Sponsor model.
363
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    41
  """
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    42
656
a76f1b443ea4 Cleanups in the views module
Sverre Rabbelier <srabbelier@gmail.com>
parents: 654
diff changeset
    43
  def __init__(self, params=None):
363
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    44
    """Defines the fields and methods required for the base View class
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    45
    to provide the user with list, public, create, edit and delete views.
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    46
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    47
    Params:
656
a76f1b443ea4 Cleanups in the views module
Sverre Rabbelier <srabbelier@gmail.com>
parents: 654
diff changeset
    48
      params: a dict with params for this View
387
c55195361cb6 Addressed comments by Todd on r822
Sverre Rabbelier <srabbelier@gmail.com>
parents: 363
diff changeset
    49
    """    
363
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    50
1007
3b66772d21a5 Major refactor of the access module
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1003
diff changeset
    51
    rights = access.Checker(params)
3b66772d21a5 Major refactor of the access module
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1003
diff changeset
    52
    rights['create'] = ['checkIsDeveloper']
1203
38225f2ad3a6 Renamed checkHasRole to checkHasActiveRole.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1189
diff changeset
    53
    rights['edit'] = [('checkHasActiveRole', [host_logic, 'link_id']),
1189
14357ec13647 More access related fixes
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1163
diff changeset
    54
                      ('checkIsActive', [sponsor_logic, None, 'link_id'])]
1007
3b66772d21a5 Major refactor of the access module
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1003
diff changeset
    55
    rights['delete'] = ['checkIsDeveloper']
1203
38225f2ad3a6 Renamed checkHasRole to checkHasActiveRole.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1189
diff changeset
    56
    rights['home'] = [('checkHasActiveRole', host_logic)]
1007
3b66772d21a5 Major refactor of the access module
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1003
diff changeset
    57
    rights['list'] = ['checkIsDeveloper']
1203
38225f2ad3a6 Renamed checkHasRole to checkHasActiveRole.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1189
diff changeset
    58
    rights['list_requests'] = [('checkHasActiveRole', [host_logic, 'link_id'])]
38225f2ad3a6 Renamed checkHasRole to checkHasActiveRole.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1189
diff changeset
    59
    rights['list_roles'] = [('checkHasActiveRole', [host_logic, 'link_id'])]
995
886c981fda2c Added rights check to sponsor.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 993
diff changeset
    60
656
a76f1b443ea4 Cleanups in the views module
Sverre Rabbelier <srabbelier@gmail.com>
parents: 654
diff changeset
    61
    new_params = {}
a76f1b443ea4 Cleanups in the views module
Sverre Rabbelier <srabbelier@gmail.com>
parents: 654
diff changeset
    62
    new_params['logic'] = soc.logic.models.sponsor.logic
995
886c981fda2c Added rights check to sponsor.py.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 993
diff changeset
    63
    new_params['rights'] = rights
989
f52654ea6350 Moved listRequests from club to group view.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 934
diff changeset
    64
716
26dc12dae79f Changed "Sponsor" to "Program Owner"
Lennard de Rijk <ljvderijk@gmail.com>
parents: 658
diff changeset
    65
    new_params['name'] = "Program Owner"
656
a76f1b443ea4 Cleanups in the views module
Sverre Rabbelier <srabbelier@gmail.com>
parents: 654
diff changeset
    66
    new_params['module_name'] = "sponsor"
1025
1f83f05f522b Add grouping to the existing views
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1007
diff changeset
    67
    new_params['sidebar_grouping'] = 'Programs'
606
65d35584ee31 Make forms generic
Sverre Rabbelier <srabbelier@gmail.com>
parents: 605
diff changeset
    68
656
a76f1b443ea4 Cleanups in the views module
Sverre Rabbelier <srabbelier@gmail.com>
parents: 654
diff changeset
    69
    params = dicts.merge(params, new_params)
a76f1b443ea4 Cleanups in the views module
Sverre Rabbelier <srabbelier@gmail.com>
parents: 654
diff changeset
    70
a76f1b443ea4 Cleanups in the views module
Sverre Rabbelier <srabbelier@gmail.com>
parents: 654
diff changeset
    71
    super(View, self).__init__(params=params)
363
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
    72
1071
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    73
  def _getExtraMenuItems(self, role_description, params=None):
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    74
    """Used to create the specific Sponsor menu entries.
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    75
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    76
    For args see group.View._getExtraMenuItems().
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    77
    """
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    78
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    79
    submenus = []
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    80
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    81
    group_entity = role_description['group']
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    82
    roles = role_description['roles']
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    83
  
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    84
    if roles.get('host'):
1104
02997d6661fa Added a Create a New Program link to the Program Owners's menu.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1097
diff changeset
    85
      # add a link to create a new program
02997d6661fa Added a Create a New Program link to the Program Owners's menu.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1097
diff changeset
    86
      submenu = (redirects.getCreateRedirect(group_entity,
1144
f89bbc9b20a6 Rename 'Create a new document' links to 'Create a New Document', also rename 'Create a new Program' to 'Create a New Program' in soc.views.models modules.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1104
diff changeset
    87
          {'url_name': 'program'}),"Create a New Program", 'any_access')
1104
02997d6661fa Added a Create a New Program link to the Program Owners's menu.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1097
diff changeset
    88
      submenus.append(submenu)
02997d6661fa Added a Create a New Program link to the Program Owners's menu.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1097
diff changeset
    89
1071
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    90
      # add a link to the management page
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    91
      submenu = (redirects.getListRolesRedirect(group_entity, params), 
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    92
          "Manage Program Administrators", 'any_access')
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    93
      submenus.append(submenu)
1003
b13da1ddcd50 Added sidebar entries for club entities.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 998
diff changeset
    94
1071
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    95
      # add a link to invite an a host
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    96
      submenu = (redirects.getInviteRedirectForRole(group_entity, 'host'), 
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    97
          "Invite a Host", 'any_access')
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    98
      submenus.append(submenu)
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
    99
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
   100
      # add a link to the request page
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
   101
      submenu = (redirects.getListRequestsRedirect(group_entity, params), 
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
   102
          "List Host Invites", 'any_access')
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
   103
      submenus.append(submenu)
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
   104
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
   105
      # add a link to the edit page
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
   106
      submenu = (redirects.getEditRedirect(group_entity, params), 
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
   107
          "Edit Sponsor Profile", 'any_access')
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
   108
      submenus.append(submenu)
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
   109
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
   110
      # add a link to resign as a host
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
   111
      submenu = (redirects.getManageRedirect(roles['host'], 
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
   112
          {'url_name': 'host'}), 
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
   113
          "Resign as Host", 'any_access')
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
   114
      submenus.append(submenu)
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
   115
1097
1f7015b33a0c Add a 'Create new document' link for clubs, sponsors and programs
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1071
diff changeset
   116
      submenu = (redirects.getCreateDocumentRedirect(group_entity, 'sponsor'),
1144
f89bbc9b20a6 Rename 'Create a new document' links to 'Create a New Document', also rename 'Create a new Program' to 'Create a New Program' in soc.views.models modules.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1104
diff changeset
   117
          "Create a New Document", 'any_access')
1097
1f7015b33a0c Add a 'Create new document' link for clubs, sponsors and programs
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1071
diff changeset
   118
      submenus.append(submenu)
1f7015b33a0c Add a 'Create new document' link for clubs, sponsors and programs
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1071
diff changeset
   119
1071
dfa86ed03a66 Added menu entries for a specific Sponsor Entity.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 1063
diff changeset
   120
    return submenus
1003
b13da1ddcd50 Added sidebar entries for club entities.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 998
diff changeset
   121
363
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
   122
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
   123
view = View()
399
b82852e6963e Various improvements to the generic View code
Sverre Rabbelier <srabbelier@gmail.com>
parents: 389
diff changeset
   124
b82852e6963e Various improvements to the generic View code
Sverre Rabbelier <srabbelier@gmail.com>
parents: 389
diff changeset
   125
create = view.create
363
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
   126
delete = view.delete
d35ffa6ca643 Add a framework for generic views
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff changeset
   127
edit = view.edit
1003
b13da1ddcd50 Added sidebar entries for club entities.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 998
diff changeset
   128
home = view.home
399
b82852e6963e Various improvements to the generic View code
Sverre Rabbelier <srabbelier@gmail.com>
parents: 389
diff changeset
   129
list = view.list
989
f52654ea6350 Moved listRequests from club to group view.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 934
diff changeset
   130
list_requests = view.listRequests
998
125257161908 Implemented the listing of all the roles in for a specific group.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 996
diff changeset
   131
list_roles = view.listRoles
399
b82852e6963e Various improvements to the generic View code
Sverre Rabbelier <srabbelier@gmail.com>
parents: 389
diff changeset
   132
public = view.public
858
e79e7a22326f Add an export() view, and implement it as text/text for Document.
Todd Larsen <tlarsen@google.com>
parents: 799
diff changeset
   133
export = view.export
934
9fcc08971efe Add a 'pick' view to the appropriate views
Sverre Rabbelier <srabbelier@gmail.com>
parents: 858
diff changeset
   134
pick = view.pick