Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
parse_qs(query_string) -> dict

Build a params dictionary from a query_string.
If keep_blank_values is True (the default), keep
values that are blank.

        def parse_qs(query_string, keep_blank_values=True):
    """parse_qs(query_string) -> dict

    Build a params dictionary from a query_string.
    If keep_blank_values is True (the default), keep
    values that are blank.
    """

    if image_map_pattern.match(query_string):
        # Server-side image map. Map the coords to "x" and "y"
        # (like CGI::Request does).
        pm = query_string.split(",")
        return {"x": int(pm[0]), "y": int(pm[1])}
    else:
        pm = _parse_qs(query_string, keep_blank_values)
        return dict((k, v[0]) for k, v in pm.items() if v)
        


src/c/i/circuits-minpor-0.3/circuits_minpor/portal.py   circuits-minpor(Download)
from circuits_bricks.app.logger import Log
from circuits.web.sessions import Sessions
from circuits.web.utils import parse_qs, parse_body
from threading import Thread, Semaphore
import rbtranslations
        response.cookie[self.channel+".session"]["path"] = self._portal_path
        # Decode query parameters and body
        event.kwargs = parse_qs(request.qs)
        parse_body(request, response, event.kwargs)
        # Is this a portal request?

src/c/i/circuits-3.0.0.dev/circuits/web/dispatchers/dispatcher.py   circuits(Download)
from circuits import handler, BaseComponent, Event
 
from circuits.web.utils import parse_qs
from circuits.web.events import response
from circuits.web.errors import httperror
 
        if name is not None and channel is not None:
            event.kwargs = parse_qs(req.qs)
            process(req, event.kwargs)