def _getAction(self): """ Returns a string with the current URL and coded querystring. This is used for the ACTION property of the login form. """ res = self._sess._request.path + "?auth_check_flag=1" for item in self._sess._request.query.keys(): if item[:5] == "auth_": pass # IGNORE old auth stuff else: res = res + "&" + weblib.urlEncode(item) + \ "=" + weblib.urlEncode(self._sess._request.query[item]) return res
def _getAction(self): ## MAJOR KLUDGE HERE! ################################# res = "banking.app" ####### this stuff is stolen from AUTH ################ # add in a query string of our own: res = res + "?auth_check_flag=1" for item in self._sess._request.query.keys(): if item[:5] == "auth_": pass # IGNORE old auth stuff else: res = res + "&" + weblib.urlEncode(item) + \ "=" + weblib.urlEncode(self._sess._request.query[item]) return res
def link_category(path): 'return a link to a category.' import weblib return "shop.py?action=show_category&path=%s" \ % weblib.urlEncode(path)