http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/roundup/cgi/PageTemplates/PageTemplate.py Mercurial Repository: p/roundup/code: roundup/cgi/PageTemplates/PageTemplate.py history 2026-02-26T09:46:02-05:00 fix: replace except: with except Exception: (by haosenwang1018@github) http://hg.code.sf.net:8000/p/roundup/code/#changeset-fed0f839c26062bca99304a0198a17cf21554915 John Rouillard rouilj@ieee.org 2026-02-26T09:46:02-05:00 2026-02-26T09:46:02-05:00
changeset fed0f839c260
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: replace except: with except Exception: (by haosenwang1018@github)

Remove bare 'except:' statements replace with 'except Exception'.

In roundup_xmlrpc_server.py I changed Exception to BaseException so
the database gets closed on signals as well. The rest of the changes
do not look like they affect data integrity and are commited as
supplied.
files
removed FasterStringIO http://hg.code.sf.net:8000/p/roundup/code/#changeset-c8902d3984343b29224bf29080eef58a736ef939 Christof Meerwald cmeerw@cmeerw.org 2018-07-29T15:52:15+01:00 2018-07-29T15:52:15+01:00
changeset c8902d398434
branch
bookmark
tag
user Christof Meerwald <cmeerw@cmeerw.org>
description removed FasterStringIO
files
Python 3 preparation: StringIO. http://hg.code.sf.net:8000/p/roundup/code/#changeset-55f09ca366c484e1c06dd34a4efead3f1634d7d7 Joseph Myers jsm@polyomino.org.uk 2018-07-25T09:08:29+00:00 2018-07-25T09:08:29+00:00
changeset 55f09ca366c4
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: StringIO.

This generally arranges for StringIO and cStringIO references to use
io.StringIO for Python 3 but io.BytesIO for Python 2, consistent with
the string representations generally used in Roundup. A special
FasterStringIO in the TAL code, which referenced internals of the old
Python 2 StringIO module, is cut down so it doesn't actually do
anything beyond the StringIO class it inherits from (it would also be
reasonable to remove FasterStringIO completely). One place in
roundup_server.py clearly needing binary I/O is made to use io.BytesIO
unconditionally.
files
Python 3 preparation: make relative imports explicit. http://hg.code.sf.net:8000/p/roundup/code/#changeset-d26921b851c328681aa6638475ce2cdae29963b4 Joseph Myers jsm@polyomino.org.uk 2018-07-24T22:22:08+00:00 2018-07-24T22:22:08+00:00
changeset d26921b851c3
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: make relative imports explicit.

Tool-generated patch.
files
Python 3 preparation: change "x.has_key(y)" to "y in x". http://hg.code.sf.net:8000/p/roundup/code/#changeset-0942fe89e82e3e84d95a3d0ca5d8d15502f57348 Joseph Myers jsm@polyomino.org.uk 2018-07-24T22:08:17+00:00 2018-07-24T22:08:17+00:00
changeset 0942fe89e82e
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: change "x.has_key(y)" to "y in x".

(Also likewise "not in" where appropriate.) Tool-generated patch.
files
Python 3 preparation: "raise" syntax. http://hg.code.sf.net:8000/p/roundup/code/#changeset-35ea9b1efc1494f29fb07690e7087686de58e0f3 Joseph Myers jsm@polyomino.org.uk 2018-07-24T21:39:58+00:00 2018-07-24T21:39:58+00:00
changeset 35ea9b1efc14
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: "raise" syntax.

Changing "raise Exception, value" to "raise Exception(value)".
Tool-assisted patch. Particular cases to check carefully are the one
place in frontends/ZRoundup/ZRoundup.py where a string exception
needed to be fixed, and the one in roundup/cgi/client.py involving
raising an exception with a traceback (requires three-argument form of
raise in Python 2, which as I understand it requires exec() to avoid a
Python 3 syntax error).
files
Remove keyword expansions from CVS. All regression tests passed afterwards. http://hg.code.sf.net:8000/p/roundup/code/#changeset-6e3e4f24c75376f61ae0bf0e9ee334567585c38e Eric S. Raymond esr@thyrsus.com 2011-11-16T09:51:38-05:00 2011-11-16T09:51:38-05:00
changeset 6e3e4f24c753
branch
bookmark
tag
user Eric S. Raymond <esr@thyrsus.com>
description Remove keyword expansions from CVS. All regression tests passed afterwards.
files
update PageTemplates to latest Zope codebase http://hg.code.sf.net:8000/p/roundup/code/#changeset-b43efe461b3e59cd6f2a6a0d8ee6970b84d81ad1 Richard Jones richard@users.sourceforge.net 2004-05-21T05:56:46+00:00 2004-05-21T05:56:46+00:00
changeset b43efe461b3e
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description update PageTemplates to latest Zope codebase
files
documentation cleanup http://hg.code.sf.net:8000/p/roundup/code/#changeset-fc52d57c6c3e1527f340677f484744a40f645ad4 Richard Jones richard@users.sourceforge.net 2004-02-11T23:55:10+00:00 2004-02-11T23:55:10+00:00
changeset fc52d57c6c3e
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description documentation cleanup
files
Replaced the content() callback ickiness with Page Template macro usage http://hg.code.sf.net:8000/p/roundup/code/#changeset-b862bbf2067a91539a08bca37a4437e01fa6b579 Richard Jones richard@users.sourceforge.net 2002-09-25T02:10:25+00:00 2002-09-25T02:10:25+00:00
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
Adhering to ZPL http://hg.code.sf.net:8000/p/roundup/code/#changeset-c08b3820edd1e2edb4c225cdae6839449497d50e Richard Jones richard@users.sourceforge.net 2002-09-07T22:43:17+00:00 2002-09-07T22:43:17+00:00
changeset c08b3820edd1
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description Adhering to ZPL
files
moved http://hg.code.sf.net:8000/p/roundup/code/#changeset-b9988e118055f23a0685ebfe4ca61b4b96a95d0c Richard Jones richard@users.sourceforge.net 2002-09-05T00:37:09+00:00 2002-09-05T00:37:09+00:00
changeset b9988e118055
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description moved
files