141 |
141 |
142 # get the current user |
142 # get the current user |
143 properties = {'account': users.get_current_user()} |
143 properties = {'account': users.get_current_user()} |
144 user_entity = user_logic.logic.getForFields(properties, unique=True) |
144 user_entity = user_logic.logic.getForFields(properties, unique=True) |
145 |
145 |
146 ###### |
146 # TODO(ljvderijk): Construct the Unhandled Request list |
147 # Construct the Unhandled Request list |
|
148 ###### |
|
149 |
147 |
150 # only select the requests for this user that haven't been handled yet |
148 # only select the requests for this user that haven't been handled yet |
151 filter = {'requester': user_entity, |
149 filter = {'requester': user_entity, |
152 'accepted' : True, |
150 'accepted' : True, |
153 'declined' : False} |
151 'declined' : False} |
154 |
152 |
155 # TODO(SRabbelier) make into a usefull redirect |
153 # TODO(SRabbelier): make into a usefull redirect |
156 # params['list_action'] = '/host/create' |
154 # params['list_action'] = '/host/create' |
157 params['list_description'] = "An overview of your unhandled requests" |
155 params['list_description'] = "An overview of your unhandled requests" |
158 |
156 |
159 uh = helper.lists.getListContent(request, params, self._logic, filter) |
157 uh = helper.lists.getListContent(request, params, self._logic, filter) |
160 |
158 |
161 ###### |
159 # TODO(ljvderijk): Construct the other Request lists here |
162 # TODO(ljvderijk) Construct the other Request lists here |
|
163 ###### |
|
164 |
160 |
165 contents = [uh] |
161 contents = [uh] |
166 return self._list(request, params, contents, page_name) |
162 return self._list(request, params, contents, page_name) |
167 |
163 |
168 def _editSeed(self, request, seed): |
164 def _editSeed(self, request, seed): |