def _redirect(self, action_result, code=303): if isinstance(action_result, list): uri_params = [] for arg in action_result: if arg is None: arg = '' uri_params.append(urllib2.quote(arg.encode('utf-8'), safe="")) raise internal_redirect(self.uri_fmt % tuple(uri_params)) elif action_result is not None and action_result != self.ident: uri_params = list(self.model_args[:-1]) uri_params += [urllib2.quote(action_result.encode('utf-8'), safe="")] raise internal_redirect(self.uri_fmt % tuple(uri_params))
def _render_element(self, ident): self._redirect(ident) uri_params = [] for arg in self.model_args: if arg is None: arg = '' uri_params.append(urllib2.quote(arg.encode('utf-8'), safe="")) raise internal_redirect(self.uri_fmt % tuple(uri_params))
def _render_element(self, ident): self._redirect(ident) uri_params = [] for arg in self.model_args: if arg is None: arg = "" uri_params.append(urllib2.quote(arg.encode("utf-8"), safe="")) raise internal_redirect(self.uri_fmt % tuple(uri_params))
def get(self): self.lookup() internal_uri = self.info.replace('plugins/kimchi', '') raise internal_redirect(internal_uri)
def data(self): internal_uri = self.info.replace('plugins/kimchi', '') raise internal_redirect(internal_uri)
def get(self): self.lookup() internal_uri = self.info['uri'].replace('plugins/gingerbase', '') raise internal_redirect(internal_uri)
def get(self): self.lookup() raise internal_redirect(self.info['uri'])
def get(self): self.lookup() raise internal_redirect(self.info)