Changeset 3816

Show
Ignore:
Timestamp:
06/10/08 10:57:33 (3 months ago)
Author:
k0s
Message:

if urllib fails, just pass on the query as is. could have space issues that may also need fixing; fixes #3157

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • autoqueryplugin/0.11/autoquery/autoquery.py

    r3703 r3816  
    7979        if template == 'ticket.html': 
    8080            query = self.env.href() + '/query?%s=%s' + self.query_args 
    81             data['query_link'] = lambda x, y: query % (x, urllib.quote_plus(y)) 
     81            def query_link(x, y): 
     82                try: 
     83                    y = urllib.quote_plus(y) 
     84                except KeyError: 
     85                    pass 
     86                return query % ( x, y ) 
     87 
     88            data['query_link'] = query_link 
    8289            template = 'autoquery_ticket.html' 
    8390        return (template, data, content_type)