| changeset | 9c3ec0a5c7fc |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | John Rouillard <rouilj@ieee.org> |
| description | chore: remove __future print_funcion from code. Not needed as of Python 3. |
| files |
| changeset | 6763813d9d34 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | John Rouillard <rouilj@ieee.org> |
| description | issue2551350 - Python changes for 3.12 with roundup 2.3.0 cgitb.py Fix change in pydoc.html.header() signature. It dropped foreground and background color arguments in 3.11 and newer. Also enable test code for the html function. |
| files |
| changeset | 6c5f8da9fca7 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | John Rouillard <rouilj@ieee.org> |
| description | fix: cgitb crashes if there is no line number set. I am not sure why: context.position[0] is None when an exception happens while processing templates. This causes a second exception because of a print statement matching %d to None. The second exception blows away any chance at getting useful info. So fix it by passing line number -1. Hopefully people will recognize that as bogus and interpret it as no line number was available. Fixing the underlying cause (in ZopeTAL???) would be better though. |
| files |
| changeset | 57f34b0b912c |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | John Rouillard <rouilj@ieee.org> |
| description | flake8 fixes move import to top, indentation, remove trailing whitespace ... |
| files |
| changeset | 3129d73e8535 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | John Rouillard <rouilj@ieee.org> |
| description | flake8 plus tests for cgitb.py flake8 fixes for cgitb.py. Also set up tests for functions in unit. Need tests before making some other changes in cgitb.py. |
| files |
| changeset | 70e6b053193b |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | John Rouillard <rouilj@ieee.org> |
| description | pep8 fixes |
| files |
| changeset | 883c9e90b403 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | John Rouillard <rouilj@ieee.org> |
| description | Fix problem with cgi.escape being depricated a different way. This way uses anypy and is cleaner. Also fixes incorrect/incomplete change that resulted in escaped in TAL generated by TALInterpreter.py. The escaped quotes break javascript etc. defined using tal string: values. TODO: add test cases for TAL. This wouldn't have snuck through for a month if we had good coverage of that library. |
| files |
| changeset | 1a835db41674 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | John Rouillard <rouilj@ieee.org> |
| description | Call cgi.escape only on python 2. Replace with html.escapeif it can be found. |
| files |
| changeset | e70fe1d1215b |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Joseph Myers <jsm@polyomino.org.uk> |
| description | Python 3 preparation: update tokenize use in cgitb.py. Note that the same interface that has changed incompatibly is also used in tools/pygettext.py. That file also needs fixing, but this patch does *not* attempt such a fix. |
| files |
| changeset | 1ab2c81a64df |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Joseph Myers <jsm@polyomino.org.uk> |
| description | Python 3 preparation: avoid string.join(). |
| files |
| changeset | 86b6cea7a975 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Joseph Myers <jsm@polyomino.org.uk> |
| description | Python 3 preparation: avoid string.split(). |
| files |
| changeset | 7172c201dec2 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Joseph Myers <jsm@polyomino.org.uk> |
| description | Python 3 preparation: avoid obsolete types.*Type names. There are references to types.ListType (not actually used), types.TupleType (for which tuple is a sufficient replacement) and types.InstanceType (also removed from the types module in Python 3, it was the type of instances of old-style classes only). Where InstanceType is used it's testing whether an exception is a class or not; support for non-class exceptions was removed in Python 3 and patch 3 in this series removed the sole instance of one in Roundup, so making the code in question unconditional seems reasonable. |
| files |
| changeset | 64b05e24dbd8 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Joseph Myers <jsm@polyomino.org.uk> |
| description | Python 3 preparation: convert print to a function. Tool-assisted patch. It is possible that some "from __future__ import print_function" are not in fact needed, if a file only uses print() with a single string as an argument and so would work fine in Python 2 without that import. |
| files |
| changeset | 6e3e4f24c753 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Eric S. Raymond <esr@thyrsus.com> |
| description | Remove keyword expansions from CVS. All regression tests passed afterwards. |
| files |
| changeset | 74476eaac38a |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | more modernisation |
| files |
| changeset | b1e614c6759f |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Stefan Seefeld <stefan@seefeld.name> |
| description | Improve error reporting. |
| files |
| changeset | 7500a9bb8bf9 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Alexander Smishlajev <a1s@users.sourceforge.net> |
| description | message translator is passed by the client in function arguments; more messages marked for translation, especially in pt_html(); fix vim modeline |
| files |
| changeset | cafdf8b7cc69 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Alexander Smishlajev <a1s@users.sourceforge.net> |
| description | use templating translation service instead of commandline-oriented gettext() |
| files |
| changeset | fc52d57c6c3e |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | documentation cleanup |
| files |
| changeset | 15a7aae3f34c |
|---|---|
| branch | maint-0.6 |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | fix #white in cgitb |
| files |
| changeset | 0e19e99075e3 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | fix #white in cgitb |
| files |
| changeset | cce5b4309005 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | extra info in template error report |
| files |
| changeset | b862bbf2067a |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | Replaced the content() callback ickiness with Page Template macro usage changed the default CSS style to be less offensive to some ;) better handling of Page Template compilation errors removed dependency on ComputedAttribute |
| files |
| changeset | 7e193bbda38e |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | added generic item editing . much nicer layout of template rendering errors . added context/is_edit_ok and context/is_view_ok convenience methods and implemented use of them in the classic template |
| files |
| changeset | e5826025eeb7 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | more Log removal |
| files |
| changeset | 04b44df7af1d |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | removed some property name clashes |
| files |
| changeset | cf22c87d6fce |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | tweak |
| files |
| changeset | 0f9aa62917bd |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | much nicer error messages when there's a templating error |
| files |
| changeset | 55ab0c5b49f9 |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Richard Jones <richard@users.sourceforge.net> |
| description | New CGI interface support |
| files |