Custom Query (58 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (4 - 6 of 58)

1 2 3 4 5 6 7 8 9 10 11 12
Ticket Resolution Summary Owner Reporter
#12 invalid default render() calculates this_file but does not use it apoirier metaperl

Reported by metaperl, 9 years ago.

Description

It makes no sense for the default render method to compute the value of this_file but then not use it:

os.path.join should use this_file not file ... either that or simply get rid of all the computation associated with this_file

#13 fixed ajax.py2js with strings and dicts apoirier vrialland

Reported by vrialland, 9 years ago.

Description

Strings : py2js doesn't escape characters such as ", \n...

current code: ajax.py line 365 : return '"'+value+'"

working: return '"%s"' % value.replace('
', '

').replace("\n","
n").replace('"','
"')


Dicts : An error occurs when a key in the dict contains the minus sign, Python tries to evaluate it:

current code : ajax.py line 323 return '{ ' + ', '.join(% (name, py2js(value, h)) for (name, value) in d.items()?) + '}'

working : return '{ ' + ', '.join(% (py2js(name, h), py2js(value, h)) for (name, value) in d.items()?) + ' }'

#14 fixed Invalid generated code when rendering HeadRender with "async" model apoirier vrialland

Reported by vrialland, 9 years ago.

Description

Sometimes a "missing ) after argument list  http://localhost:8080/static/nagare/ajax.js Line 13" if the response contains special characters.

line 941, 942 of xhtml.py :

css.replace("'", r"\'").replace('\n', ''),
js.replace("'", r"\'").replace('\n', '').encode('utf-8')

working:

css.replace('\\','\\\\').replace("'", r"\'").replace('\n', ''),
js.replace('\\','\\\\').replace("'", r"\'").replace('\n', '').encode('utf-8')
1 2 3 4 5 6 7 8 9 10 11 12
Note: See TracQuery for help on using queries.