Ignore:
Timestamp:
09/12/08 12:14:25 (12 years ago)
Author:
spascoe
Message:

Added work arround for ticket:1014.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows/trunk/cows/qs_util.py

    r4570 r4572  
    3333    return dict 
    3434 
    35 def parse_qsl(qs, keep_blank_values=0, strict_parsing=0): 
     35def parse_qsl(qs, keep_blank_values=0, strict_parsing=0, semicolon_separator=1): 
    3636    """Parse a query given as a string argument. 
    3737 
     
    5252    Returns a list, as G-d intended. 
    5353    """ 
    54     pairs = [s2 for s1 in qs.split('&') for s2 in s1.split(';')] 
     54    if semicolon_separator: 
     55        pairs = [s2 for s1 in qs.split('&') for s2 in s1.split(';')] 
     56    else: 
     57        pairs = qs.split('&') 
    5558    r = [] 
    5659    for name_value in pairs: 
Note: See TracChangeset for help on using the changeset viewer.