app/soc/views/models/host.py
changeset 744 cd9bf163473c
parent 725 6180b32d990f
child 755 1ed041c0cdc6
equal deleted inserted replaced
743:e6ab5b0c2fda 744:cd9bf163473c
    35 import soc.models.host
    35 import soc.models.host
    36 import soc.logic.models.host
    36 import soc.logic.models.host
    37 import soc.views.helper
    37 import soc.views.helper
    38 import soc.views.models.sponsor
    38 import soc.views.models.sponsor
    39 
    39 
       
    40 # TODO(pawel.solyga): Rename all list methods and functions to something else
       
    41 # and remove this tolist assignment
    40 tolist = list
    42 tolist = list
    41 
    43 
    42 
    44 
    43 class CreateForm(helper.forms.BaseForm):
    45 class CreateForm(helper.forms.BaseForm):
    44   """Django form displayed when creating a Host.
    46   """Django form displayed when creating a Host.
   115 
   117 
   116     params = dicts.merge(params, new_params)
   118     params = dicts.merge(params, new_params)
   117 
   119 
   118     super(View, self).__init__(params=params)
   120     super(View, self).__init__(params=params)
   119 
   121 
   120   def list(self, request, access_type,
   122   def list(self, request, access_type, page_name=None, 
   121                page_name=None, params=None, filter=None):
   123            params=None, filter=None):
   122     """See base.View.list
   124     """See base.View.list.
   123 
   125 
   124     Passes a filter to base.View.list so that only hosts from a sponsor
   126     Passes a filter to base.View.list so that only hosts from a sponsor
   125     that this user is host for are listed.
   127     that this user is host for are listed.
   126     """
   128     """
   127 
   129