示例#1
0
 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
示例#2
0
 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
示例#3
0
    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
示例#4
0
def link_category(path):
    'return a link to a category.'
    import weblib
    return "shop.py?action=show_category&path=%s" \
           % weblib.urlEncode(path)
示例#5
0
def link_category(path):
    'return a link to a category.'
    import weblib
    return "shop.py?action=show_category&path=%s" \
           % weblib.urlEncode(path)