http://hg.code.sf.net:8000/p/roundup/code/atom-log/tip/roundup/instance.py Mercurial Repository: p/roundup/code: roundup/instance.py history 2025-01-07T20:22:33-05:00 feat: add templating utils method dynamically; method to set http code http://hg.code.sf.net:8000/p/roundup/code/#changeset-2a7c3eeaf167484beb05fecb7348f43d10cf8a7e John Rouillard rouilj@ieee.org 2025-01-07T20:22:33-05:00 2025-01-07T20:22:33-05:00
changeset 2a7c3eeaf167
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description feat: add templating utils method dynamically; method to set http code

Added new utils.set_http_response(integer) to set the HTML response
code from a template. Useful for error handling inside template.

Also noted that a real TemplatingUtils (like set_http_response) method
gets the TemplatingUtils object instance, but there is no way to do
this with registerUtil() from an extension file.

Added new instance.registerUtilMethod() method to register a function
in an extension as a method passing the client instance in as the first
parameter (aka self).
files
fix: keep python2 working a little longer. http://hg.code.sf.net:8000/p/roundup/code/#changeset-586f76eb33e880272bf46663f139a35deb23fc69 John Rouillard rouilj@ieee.org 2024-07-16T02:10:25-04:00 2024-07-16T02:10:25-04:00
changeset 586f76eb33e8
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description fix: keep python2 working a little longer.
files
refactor!: replace os.listdir() with os.scandir() http://hg.code.sf.net:8000/p/roundup/code/#changeset-1045425c23b2a30a8648a346d8f68b22a6e1a9de John Rouillard rouilj@ieee.org 2024-07-16T01:05:49-04:00 2024-07-16T01:05:49-04:00
changeset 1045425c23b2
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description refactor!: replace os.listdir() with os.scandir()

In many places we did a listdir() then a stat to see if it's a file or
directory. This change removes the need for the stat call. Also for
larger directories, scandir() is an iterator, so less memory use.

There is one remnant of listdir used in an error handler. That
requires a stat on each element in the directory, so there is no
benefit to using scandir() other than a slight memory saving on a
rarely used piece of code.

BREAKING CHANGE:

Python 2 requires installation of scandir pip package after this
commit.
files
[issue2550923_computed_property] merge default trunk into branch http://hg.code.sf.net:8000/p/roundup/code/#changeset-78585199552a3c66903099676995416ad3f6f688 John Rouillard rouilj@ieee.org 2023-11-05T11:38:18-05:00 2023-11-05T11:38:18-05:00
changeset 78585199552a
branch issue2550923_computed_property
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description merge default trunk into branch
files
refactor: issue2551293 - remove schema_hook from Tracker instance. http://hg.code.sf.net:8000/p/roundup/code/#changeset-771d7c43c76f02aceb42a10ab436e26ca9f26a71 John Rouillard rouilj@ieee.org 2023-09-28T09:43:37-04:00 2023-09-28T09:43:37-04:00
changeset 771d7c43c76f
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description refactor: issue2551293 - remove schema_hook from Tracker instance.

Not used, obsolete.
files
[issue2550923_computed_property] merge from tip into issue2550923_computed_property http://hg.code.sf.net:8000/p/roundup/code/#changeset-82bbb95e5690cdc18b9003f7b071054d41b2e882 John Rouillard rouilj@ieee.org 2023-06-08T00:10:32-04:00 2023-06-08T00:10:32-04:00
changeset 82bbb95e5690
branch issue2550923_computed_property
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description merge from tip into issue2550923_computed_property
files
flake8 fixes: whitespace, remove unused imports http://hg.code.sf.net:8000/p/roundup/code/#changeset-07ce4e4110f587bf6a878f9c15a9cb22537969ed John Rouillard rouilj@ieee.org 2023-03-18T14:16:31-04:00 2023-03-18T14:16:31-04:00
changeset 07ce4e4110f5
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description flake8 fixes: whitespace, remove unused imports
files
[issue2550923_computed_property] merge from main tip. This should fix test failure in Markdown2TestCase.test_string_markdown_code_block_attribute by merging html diff method used in tests. http://hg.code.sf.net:8000/p/roundup/code/#changeset-ca90f7270cd4c4f8a894821e225c76483cebc64d John Rouillard rouilj@ieee.org 2022-11-07T22:58:38-05:00 2022-11-07T22:58:38-05:00
changeset ca90f7270cd4
branch issue2550923_computed_property
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description merge from main tip. This should fix test failure in Markdown2TestCase.test_string_markdown_code_block_attribute by merging html diff method used in tests.
files
Add i18n object to roundupdb.Database http://hg.code.sf.net:8000/p/roundup/code/#changeset-408fd477761fa40fd7dfa13c4a25be572cd46dd9 Ralf Schlatterbeck rsc@runtux.com 2022-05-03T14:51:59+02:00 2022-05-03T14:51:59+02:00
changeset 408fd477761f
branch
bookmark
tag
user Ralf Schlatterbeck <rsc@runtux.com>
description Add i18n object to roundupdb.Database

This makes the i18n object accessible everywhere (including in detectors
where localized error messages were impossible). See issue2551184
files
[issue2550923_computed_property] merge from default branch. Fix travis.ci so CI builds don't error out http://hg.code.sf.net:8000/p/roundup/code/#changeset-e1588ae185dc31c1d5f366991fa603cb07a506f4 John Rouillard rouilj@ieee.org 2022-04-21T16:54:17-04:00 2022-04-21T16:54:17-04:00
changeset e1588ae185dc
branch issue2550923_computed_property
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description merge from default branch. Fix travis.ci so CI builds don't error out
files
post_init must be called on the database http://hg.code.sf.net:8000/p/roundup/code/#changeset-b78c45828e4266c1f083491f95d86501433de220 Ralf Schlatterbeck rsc@runtux.com 2021-11-29T11:31:14+01:00 2021-11-29T11:31:14+01:00
changeset b78c45828e42
branch
bookmark
tag
user Ralf Schlatterbeck <rsc@runtux.com>
description post_init must be called on the database

.. otherwise things set up in post_init (notably rev_multilink
properties) will be missing. Note that post_init is idempotent and can
be called multiple times.
files
[issue2550923_computed_property] merge from trunk. travisci xenil plus more http://hg.code.sf.net:8000/p/roundup/code/#changeset-9906ab204610fb5a9dce81fe181d73c5513195ac John Rouillard rouilj@ieee.org 2021-10-08T00:14:44-04:00 2021-10-08T00:14:44-04:00
changeset 9906ab204610
branch issue2550923_computed_property
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description merge from trunk. travisci xenil plus more
files
[issue2550923_computed_property] merge trunk changes into this branch http://hg.code.sf.net:8000/p/roundup/code/#changeset-30358e3342324d986f0d63dd1b7d04a68366a90c John Rouillard rouilj@ieee.org 2021-09-16T14:30:56-04:00 2021-09-16T14:30:56-04:00
changeset 30358e334232
branch issue2550923_computed_property
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description merge trunk changes into this branch
files
Clean leaking file descriptors. Eliminates ResourceWarnings. http://hg.code.sf.net:8000/p/roundup/code/#changeset-808f7a8ed2b627797f18dc600bb5cb58339b503b John Rouillard rouilj@ieee.org 2021-09-05T23:38:10-04:00 2021-09-05T23:38:10-04:00
changeset 808f7a8ed2b6
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Clean leaking file descriptors. Eliminates ResourceWarnings.
files
Test case for backend not defined; remove unreachable code http://hg.code.sf.net:8000/p/roundup/code/#changeset-fbce23af2120e4f6ce3bfc43927a87642db3dd88 John Rouillard rouilj@ieee.org 2021-03-02T00:08:51-05:00 2021-03-02T00:08:51-05:00
changeset fbce23af2120
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Test case for backend not defined; remove unreachable code

Verify that error is raised in configuration.py if backend is not
defined in config.ini.

Remove unreachable code from instance.py that detects that backend is
not defined. It hasn't been reachable since version 1.6.1 because the
configuration.py module made the backend option mandatory. Hence
configuration.py raises the error and never passes control back to the
unreachable code.
files
[issue2550923_computed_property] Merge trunk into branch http://hg.code.sf.net:8000/p/roundup/code/#changeset-1a15089c2e4939c2a84ecd2fad6a04641c5f1fe7 John Rouillard rouilj@ieee.org 2021-02-06T20:15:26-05:00 2021-02-06T20:15:26-05:00
changeset 1a15089c2e49
branch issue2550923_computed_property
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Merge trunk into branch
files
Remove old code import imp, old style trackers db/backend_name http://hg.code.sf.net:8000/p/roundup/code/#changeset-778a9f45506769b8bf5cad1322c3fc3500a4c1d8 John Rouillard rouilj@ieee.org 2020-12-20T15:43:07-05:00 2020-12-20T15:43:07-05:00
changeset 778a9f455067
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Remove old code import imp, old style trackers db/backend_name

Module imp is depricated. Removing that means rewriting old style
trackers that used imp to load schema and config files. So removed
code supporting old style trackers that have been depricated since
2008.

Added test to verify that existence of dbinit.py triggers alert that
tracker is old style and not supported.

Also remove support for depricated db/backend_name file for specifying
backend. It is now specified in config.ini's [rdbms] backend.

It looks like not specifying an [rdbms] backend key in config.ini
throws a config error. However I left in a check and throw an
exception with details if there is an empty backend value. But I don't
think it will ever be triggered.

Removed unused import of imp in a number of test files.
files
[issue2550923_computed_property] Initial implementation of Computed property http://hg.code.sf.net:8000/p/roundup/code/#changeset-1e5ed659e8ca17d3d9ff71803ec6d6e756dd7646 John Rouillard rouilj@ieee.org 2020-11-27T18:09:00-05:00 2020-11-27T18:09:00-05:00
changeset 1e5ed659e8ca
branch issue2550923_computed_property
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Initial implementation of Computed property

It supports query/display in html, rest and xml interfaces.
You can specify a cache parameter, but using it raises
NotImplementedError.

It does not support: search, sort or grouping by the computed field.

Checking in on a branch to get more eyeballs on it and maybe some
people to help.
files
issue2551083 Replace BaseException and Exception with RoundupException http://hg.code.sf.net:8000/p/roundup/code/#changeset-c177e7128dc987e64d2a829d2dc81dc4538da17e John Rouillard rouilj@ieee.org 2020-04-03T16:18:59-04:00 2020-04-03T16:18:59-04:00
changeset c177e7128dc9
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description issue2551083 Replace BaseException and Exception with RoundupException

issue2551083 - Replace BaseException and Exception as base classes
with new RoundupException (inheriting from Exception) for most roundup
exceptions.
files
Flake8 cleanup. Formating only no code changes. http://hg.code.sf.net:8000/p/roundup/code/#changeset-8ccb41b477d1a1c474fe616749cc19124b069ca0 John Rouillard rouilj@ieee.org 2019-12-31T21:22:48-05:00 2019-12-31T21:22:48-05:00
changeset 8ccb41b477d1
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Flake8 cleanup. Formating only no code changes.
files
Fix: DeprecationWarning: Using or importing the ABCs from 'collections' http://hg.code.sf.net:8000/p/roundup/code/#changeset-5258e89e896af985f407ddf0ff065b926dc3e1f0 John Rouillard rouilj@ieee.org 2019-06-12T21:19:22-04:00 2019-06-12T21:19:22-04:00
changeset 5258e89e896a
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Fix: DeprecationWarning: Using or importing the ABCs from 'collections'
instead of from 'collections.abc' is deprecated, and in 3.8 it will
stop working
files
Python 3 preparation: use isinstance(x, collections.Callable) instead of callable(x). http://hg.code.sf.net:8000/p/roundup/code/#changeset-5a871a2506707f1b855e6b11a06d047bf507e25d Joseph Myers jsm@polyomino.org.uk 2018-07-25T00:13:52+00:00 2018-07-25T00:13:52+00:00
changeset 5a871a250670
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: use isinstance(x, collections.Callable) instead of callable(x).

Tool-assisted patch.
files
Python 3 preparation: update calls to dict methods. http://hg.code.sf.net:8000/p/roundup/code/#changeset-23b8e6067f7cdf5ff451f0a99cac4fb288e56859 Joseph Myers jsm@polyomino.org.uk 2018-07-24T23:04:42+00:00 2018-07-24T23:04:42+00:00
changeset 23b8e6067f7c
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: update calls to dict methods.

Tool-assisted patch. Changes of iterkeys / itervalues / iteritems to
keys / values / items are fully automated, but may make things less
efficient in Python 2. Automated tools want to add list() around many
calls to keys / values / items, but I thought most such list()
additions were unnecessary because it seemed the result of keys /
values / items was just iterated over while the set of dict keys
remained unchanged, rather than used in a way requiring an actual
list, or used while the set of keys in the dict could change. It's
quite possible I missed some cases where list() was really needed, or
left in some unnecessary list() calls.

In cases where list() was only needed because the resulting list was
then sorted in-place, I changed the code to use calls to sorted().
files
Python 3 preparation: use open() instead of file(). http://hg.code.sf.net:8000/p/roundup/code/#changeset-6fbb7d52e38f2d5946047bb7015685b5c230dbe9 Joseph Myers jsm@polyomino.org.uk 2018-07-24T22:10:24+00:00 2018-07-24T22:10:24+00:00
changeset 6fbb7d52e38f
branch
bookmark
tag
user Joseph Myers <jsm@polyomino.org.uk>
description Python 3 preparation: use open() instead of file().

Tool-assisted patch. Note one case where a simple substitution did not
suffice because the change was in a class that defined its own open()
method earlier, and thus needed to use builtins.open (respectively
__builtin__.open in Python 2).
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
Python 2 and 3 support. Convert Exception into BaseException in core code. http://hg.code.sf.net:8000/p/roundup/code/#changeset-32f95ec6bd8e058056dd9ab57d641a19f904281f John Rouillard rouilj@ieee.org 2017-09-04T21:56:49-04:00 2017-09-04T21:56:49-04:00
changeset 32f95ec6bd8e
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Python 2 and 3 support. Convert Exception into BaseException in core code.
files
make roundup-admin init function set the transaction source. Otherwise when initial_data.py is loaded as part of init, db.tx_Source is set to None and thus checks like db.tx_Source in [ 'cli' ] will fail. http://hg.code.sf.net:8000/p/roundup/code/#changeset-6a4317738a903a3f8f809f0c34dbc8ee03daacbd John Rouillard rouilj@ieee.org 2017-03-22T22:03:01-04:00 2017-03-22T22:03:01-04:00
changeset 6a4317738a90
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description make roundup-admin init function set the transaction source. Otherwise when initial_data.py is loaded as part of init, db.tx_Source is set to None and thus checks like db.tx_Source in [ 'cli' ] will fail.
files
Add support for an integer type to join the existing number type. http://hg.code.sf.net:8000/p/roundup/code/#changeset-e424987d294ab827d33f4e5253522b2e86563162 John Rouillard rouilj@ieee.org 2016-06-05T00:17:26-04:00 2016-06-05T00:17:26-04:00
changeset e424987d294a
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Add support for an integer type to join the existing number type.

Commit patch supplied for issue2550886. This can be used for
properties used for ordering, counts etc. where a decimal point
isn't needed. Developed by Anthony (antmail). Doc updates written by
John Rouillard.
files
Configure the database backend in the config.ini http://hg.code.sf.net:8000/p/roundup/code/#changeset-5251e97b1de091d220c0ca7b0d3383c895b39259 John Kristensen john@jerrykan.com 2014-12-22T13:30:20+11:00 2014-12-22T13:30:20+11:00
changeset 5251e97b1de0
branch
bookmark
tag
user John Kristensen <john@jerrykan.com>
description Configure the database backend in the config.ini

The database backend is currently configured in the 'db/backend_name'
file which is just another file that needs to be configured when setting
up or migrating a tracker instance. By moving this setting into the
config.ini it helps to reduce the number of files that need to be
configured and is more logical place for users to find the setting.
files
[routing] Transform instance.web_handlers to list to maintain order http://hg.code.sf.net:8000/p/roundup/code/#changeset-01d14361cae7ccbab59158db766db49f1422b0ca anatoly techtonik techtonik@gmail.com 2015-09-11T09:44:31+03:00 2015-09-11T09:44:31+03:00
changeset 01d14361cae7
branch routing
bookmark
tag
user anatoly techtonik <techtonik@gmail.com>
description Transform instance.web_handlers to list to maintain order
files
[routing] Improve docs for registerHandler http://hg.code.sf.net:8000/p/roundup/code/#changeset-082ee3ded101c2ec974525208615c34b25d233df anatoly techtonik techtonik@gmail.com 2015-09-11T08:16:38+03:00 2015-09-11T08:16:38+03:00
changeset 082ee3ded101
branch routing
bookmark
tag
user anatoly techtonik <techtonik@gmail.com>
description Improve docs for registerHandler
files
[routing] Add support for extensions to provide custom pages to Roundup http://hg.code.sf.net:8000/p/roundup/code/#changeset-7920d700e580d850fa4892793af09b035374e215 anatoly techtonik techtonik@gmail.com 2014-11-25T17:29:38+03:00 2014-11-25T17:29:38+03:00
changeset 7920d700e580
branch routing
bookmark
tag
user anatoly techtonik <techtonik@gmail.com>
description Add support for extensions to provide custom pages to Roundup
and update CHANGES.txt

1. Added registerHandler() extension point to instance.Tracker
to register URL handlers for specific routes
2. Added processing of extension routes to client.cgi
3. Added example plugins/extensions/custompage.py
files
Implementation for: http://hg.code.sf.net:8000/p/roundup/code/#changeset-6e9b9743de89d2acc152b890dc6848f811ffadce John Rouillard rouilj@ieee.org 2013-04-23T23:06:09-04:00 2013-04-23T23:06:09-04:00
changeset 6e9b9743de89
branch
bookmark
tag
user John Rouillard <rouilj@ieee.org>
description Implementation for:

http://issues.roundup-tracker.org/issue2550731

Add mechanism for the detectors to be able to tell the source of the
data changes.

Support for tx_Source property on database handle. Can be
used by detectors to find out the source of a change in an auditor to
block changes arriving by unauthenticated mechanisms (e.g. plain email
where headers can be faked). The property db.tx_Source has the
following values:
* None - Default value set to None. May be valid if it's a script
that is created by the user. Otherwise it's an error and indicates
that some code path is not properly setting the tx_Source property.
* "cli" - this string value is set when using roundup-admin and
supplied scripts.
* "web" - this string value is set when using any web based
technique: html interface, xmlrpc ....
* "email" - this string value is set when using an unauthenticated
email based technique.
* "email-sig-openpgp" - this string value is set when email with a
valid pgp signature is used. (*NOTE* the testing for this mode
is incomplete. If you have a pgp infrastructure you should test
and verify that this is properly set.)

This also includes some (possibly incomplete) tests cases for the
modes above and an example of using ts_Source in the customization.txt
document.
files
templating: rename precompileTemplates to precompile http://hg.code.sf.net:8000/p/roundup/code/#changeset-e339583eae8e203c43a3c5af0eef0a7949d83c7b anatoly techtonik techtonik@gmail.com 2013-01-21T23:51:39+03:00 2013-01-21T23:51:39+03:00
changeset e339583eae8e
branch
bookmark
tag
user anatoly techtonik <techtonik@gmail.com>
description templating: rename precompileTemplates to precompile
files
Restore compatibility with an old style trackers (not sure if http://hg.code.sf.net:8000/p/roundup/code/#changeset-f7e68ae4926cd07e5f56f002159d662b6e60ba26 anatoly techtonik techtonik@gmail.com 2013-01-11T00:46:23+03:00 2013-01-11T00:46:23+03:00
changeset f7e68ae4926c
branch
bookmark
tag
user anatoly techtonik <techtonik@gmail.com>
description Restore compatibility with an old style trackers (not sure if
they work at all).
files
Rename templating.get_templates to get_loader http://hg.code.sf.net:8000/p/roundup/code/#changeset-ec359e7c6c9501252484dc22d14e0f8f6a791538 anatoly techtonik techtonik@gmail.com 2013-01-06T16:39:21+03:00 2013-01-06T16:39:21+03:00
changeset ec359e7c6c95
branch
bookmark
tag
user anatoly techtonik <techtonik@gmail.com>
description Rename templating.get_templates to get_loader
files
API break: rename Templates to Loader for zopetal and chameleon http://hg.code.sf.net:8000/p/roundup/code/#changeset-fd72576e07edef8d73a8d94994da29e1c0123ba2 anatoly techtonik techtonik@gmail.com 2013-01-06T16:36:33+03:00 2013-01-06T16:36:33+03:00
changeset fd72576e07ed
branch
bookmark
tag
user anatoly techtonik <techtonik@gmail.com>
description API break: rename Templates to Loader for zopetal and chameleon
engines.
files
More fix for improvements on instance.py. http://hg.code.sf.net:8000/p/roundup/code/#changeset-48b73776601c301118c1b24845d79999674f209b Cheer Xiao xiaqqaix@gmail.com 2012-04-23T11:33:20+08:00 2012-04-23T11:33:20+08:00
changeset 48b73776601c
branch
bookmark
tag
user Cheer Xiao <xiaqqaix@gmail.com>
description More fix for improvements on instance.py.
Loading of schema.py with "optimize" set didn't honor libdir, which is
inconsistent with loading of schema.py with "optimize" unset and loading of
other files in tracker home.
files
Fix improvements on instance.py. http://hg.code.sf.net:8000/p/roundup/code/#changeset-7b7cfb4b00eb4553a7760caccc996451b3b3da29 Ralf Schlatterbeck rsc@runtux.com 2012-02-24T12:11:10+01:00 2012-02-24T12:11:10+01:00
changeset 7b7cfb4b00eb
branch
bookmark
tag
user Ralf Schlatterbeck <rsc@runtux.com>
description Fix improvements on instance.py.
Variable libdir must be set before call to load_interfaces.
files
Small improvements on instance.py by Cheer Xiao. http://hg.code.sf.net:8000/p/roundup/code/#changeset-7017c8dd704c4b4c2c72dae5b260bd8c54bd55c6 Ralf Schlatterbeck rsc@runtux.com 2012-02-24T10:00:09+01:00 2012-02-24T10:00:09+01:00
changeset 7017c8dd704c
branch
bookmark
tag
user Ralf Schlatterbeck <rsc@runtux.com>
description Small improvements on instance.py by Cheer Xiao.
- _load_python split into three functions: _compile, _exec and _execfile,
mimicing corresponding builtin functions; also the os.path fiddling is
isolated to _exec, the motivation being that lib/ should be available
for interfaces.py besides extensions and detectors.
- all variables named `vars` are renamed to `env` as "vars" shadows the
builtin with the same name.
files
New Chameleon templating engine, engine is now configurable. http://hg.code.sf.net:8000/p/roundup/code/#changeset-a2eb4fb3e6d8fcd01ac01c68d08d904df3077534 Ralf Schlatterbeck rsc@runtux.com 2012-02-23T18:10:03+01:00 2012-02-23T18:10:03+01:00
changeset a2eb4fb3e6d8
branch
bookmark
tag
user Ralf Schlatterbeck <rsc@runtux.com>
description New Chameleon templating engine, engine is now configurable.
We now have two configurable templating engines, the old Zope TAL
templates (called zopetal in the config) and the new Chameleon (called
chameleon in the config). A new config-option "template_engine" under
[main] can take these config-options, the default is zopetal.
Thanks to Cheer Xiao for the idea of making this configurable *and*
for the actual implementation!
Cheer Xiao commit log:
- The original TAL engine ported from Zope is thereafter referred to as
"zopetal", in speech and in code
- A new option "template_engine" under [main] introduced
- Zopetal-specific code stripped from cgi/templating.py to form the new
cgi/engine_zopetal.py
- Interface to Chameleon in cgi/engine_chameleon.py
- Engines are supposed to provide a Templates class that mimics the
behavior of the old cgi.templating.Templates. The Templates class is
preferably subclassed from cgi.templating.TemplatesBase.
- New function cgi.templating.get_templates to get the appropriate engine's
Templates instance according to the engine name
files
Fix override of TemplatingUtils in instance.py. http://hg.code.sf.net:8000/p/roundup/code/#changeset-760483ce731e336f9c9030109306810f3e7edb16 Ralf Schlatterbeck rsc@runtux.com 2012-01-30T14:52:14+01:00 2012-01-30T14:52:14+01:00
changeset 760483ce731e
branch
bookmark
tag
user Ralf Schlatterbeck <rsc@runtux.com>
description Fix override of TemplatingUtils in instance.py.
Thanks to Cheer Xiao for the patch.
files
Removed superfluous import. http://hg.code.sf.net:8000/p/roundup/code/#changeset-0fa45d39efee62f2d23b330af9abac7d97948269 Bernhard Reiter Bernhard.Reiter@intevation.de 2011-06-23T08:26:14+00:00 2011-06-23T08:26:14+00:00
changeset 0fa45d39efee
branch
bookmark
tag
user Bernhard Reiter <Bernhard.Reiter@intevation.de>
description Removed superfluous import.
files
the "file" alias was introduced some time after this code was written http://hg.code.sf.net:8000/p/roundup/code/#changeset-996cc758f7042f70e82901a167611a590e40054f Richard Jones richard@users.sourceforge.net 2011-06-22T21:50:46+00:00 2011-06-22T21:50:46+00:00
changeset 996cc758f704
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description the "file" alias was introduced some time after this code was written
files
Do not depend on a CPython implementation detail anymore... http://hg.code.sf.net:8000/p/roundup/code/#changeset-51aa98cda2cf0d27e7aeaea6346d4a0809b19b0c Bernhard Reiter Bernhard.Reiter@intevation.de 2011-06-22T12:34:31+00:00 2011-06-22T12:34:31+00:00
changeset 51aa98cda2cf
branch
bookmark
tag
user Bernhard Reiter <Bernhard.Reiter@intevation.de>
description Do not depend on a CPython implementation detail anymore...

...to make Roundup more compatible with other Python implementation
like PyPy.

Closes issue2550707. Thanks to Christof Meerwald.
files
Fix setting of sys.path when importing schema.py, fixes issue2550675, http://hg.code.sf.net:8000/p/roundup/code/#changeset-80a9295a60fda3888402d796bd9b06e6fcb0b2d4 Ralf Schlatterbeck schlatterbeck@users.sourceforge.net 2010-10-21T19:19:58+00:00 2010-10-21T19:19:58+00:00
changeset 80a9295a60fd
branch
bookmark
tag
user Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
description Fix setting of sys.path when importing schema.py, fixes issue2550675,

thanks to Bryce L Nordgren for reporting.
files
typo http://hg.code.sf.net:8000/p/roundup/code/#changeset-b9eb72f20b4d56f89fb00ed16564dce80ed578f3 Richard Jones richard@users.sourceforge.net 2010-07-13T05:03:49+00:00 2010-07-13T05:03:49+00:00
changeset b9eb72f20b4d
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description typo
files
doc tweak http://hg.code.sf.net:8000/p/roundup/code/#changeset-72db88cb68b0fa6f5ff5251872987b1ca329a5b2 Richard Jones richard@users.sourceforge.net 2010-07-12T04:02:14+00:00 2010-07-12T04:02:14+00:00
changeset 72db88cb68b0
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description doc tweak
files
use config.DATABASE in cases where 'db' was still hard-coded http://hg.code.sf.net:8000/p/roundup/code/#changeset-a0be2bc223f5173767ca2237f5667c17ba0e756d Ralf Schlatterbeck schlatterbeck@users.sourceforge.net 2010-03-08T15:12:42+00:00 2010-03-08T15:12:42+00:00
changeset a0be2bc223f5
branch
bookmark
tag
user Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
description use config.DATABASE in cases where 'db' was still hard-coded

- in instance when determining the backend
- during init after nuking the db it would create 'db'
files
Add schema consistency checks. http://hg.code.sf.net:8000/p/roundup/code/#changeset-2b75274936bc58278397fb103fcaf0e96f99b7eb Stefan Seefeld stefan@seefeld.name 2009-10-09T13:54:54+00:00 2009-10-09T13:54:54+00:00
changeset 2b75274936bc
branch
bookmark
tag
user Stefan Seefeld <stefan@seefeld.name>
description Add schema consistency checks.
files
Process each message through the mail gateway as a separate transaction. http://hg.code.sf.net:8000/p/roundup/code/#changeset-61cf00ca920a36b0554820b15693c053f0847c95 Ralf Schlatterbeck schlatterbeck@users.sourceforge.net 2009-07-14T09:10:43+00:00 2009-07-14T09:10:43+00:00
changeset 61cf00ca920a
branch
bookmark
tag
user Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
description Process each message through the mail gateway as a separate transaction.

The mail-gateway used to process messages fetched, e.g., via imap in a
single big transaction. Now we process each message coming in via the
mail-gateway in its own transaction. Regression-tests passed.
See also discussion:
http://thread.gmane.org/gmane.comp.bug-tracking.roundup.user/9500
files
XMLRPC improvements: http://hg.code.sf.net:8000/p/roundup/code/#changeset-bbab97f8ffb2f6e94262615a068f7878d9e572c0 Stefan Seefeld stefan@seefeld.name 2009-02-27T17:46:47+00:00 2009-02-27T17:46:47+00:00
changeset bbab97f8ffb2
branch
bookmark
tag
user Stefan Seefeld <stefan@seefeld.name>
description XMLRPC improvements:

* Add support for actions to XMLRPC interface.
* Provide bridge so user actions may be executed
either via CGI or XMLRPC.
* Adjust XMLRPC tests to recent work.
* Cleanup.
files
Sorry for the mega-patch - was all done on the train: http://hg.code.sf.net:8000/p/roundup/code/#changeset-74aebbbea305d4b00ec9eb8c0008eb04215fed49 Richard Jones richard@users.sourceforge.net 2006-12-11T23:36:15+00:00 2006-12-11T23:36:15+00:00
changeset 74aebbbea305
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description Sorry for the mega-patch - was all done on the train:

- handling of required for booelan False and numeric 0 [SF#1608200]
- removed bogus args attr of ConfigurationError [SF#1608056]
- implemented start_response in roundup.cgi [SF#1604304]
files
... ooops ... http://hg.code.sf.net:8000/p/roundup/code/#changeset-46e3d5d0901d170a2783788ae6dc9329f95af877 Ralf Schlatterbeck schlatterbeck@users.sourceforge.net 2006-12-01T10:38:40+00:00 2006-12-01T10:38:40+00:00
changeset 46e3d5d0901d
branch
bookmark
tag
user Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
description ... ooops ...
files
Fixes for directory handling. http://hg.code.sf.net:8000/p/roundup/code/#changeset-21ff756e4549ca460f14240e2b52b0dba31371e7 Ralf Schlatterbeck schlatterbeck@users.sourceforge.net 2006-12-01T10:31:58+00:00 2006-12-01T10:31:58+00:00
changeset 21ff756e4549
branch
bookmark
tag
user Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
description Fixes for directory handling.

alexander smishlajev wrote:
> wouldn't it be better to sys.path.remove(dirpath)? what if an
> extension module modifies sys.path itself?
Done. I'm no longer using del sys.path[1]

alexander smishlajev wrote:
> you shouldn't keep the lib directory in sys.path. if the server runs
> several trackers, they will get confused. taking in account that
> tracker instantiation order is virtually random, the things can get
> quite weird.
>
> besides, long-running server process may instantiate each tracker more
> than once. sys.path will grow longer and longer.
Done. It was necessary to do basically the same thing for optimized and
non-optimized settings -- at some point if it grows longer we might want
to factor this...
files
Directory structure changes. http://hg.code.sf.net:8000/p/roundup/code/#changeset-bf660e65ba45180bdbb89e4b6ea79ace1d2eb898 Ralf Schlatterbeck schlatterbeck@users.sourceforge.net 2006-12-01T09:48:56+00:00 2006-12-01T09:48:56+00:00
changeset bf660e65ba45
branch
bookmark
tag
user Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
description Directory structure changes.

- Implement common directory for imports <tracker_home>/lib
- put directory currently being scanned for modules onto the module path
-- add "extension" directory when scanning extension, and detectors
when scanning detectors.

See also thread discussing these modifications at
http://comments.gmane.org/gmane.comp.bug-tracking.roundup.devel/4450
Note that I currently *do not* remove the lib directory from sys.path
files
unit test fixes http://hg.code.sf.net:8000/p/roundup/code/#changeset-9c8de04a76b1ad1bfefe144d65b1bec5ed0b8ff0 Richard Jones richard@users.sourceforge.net 2004-11-29T02:55:47+00:00 2004-11-29T02:55:47+00:00
changeset 9c8de04a76b1
branch
bookmark
tag
user Richard Jones <richard@users.sourceforge.net>
description unit test fixes
files
register all backend modules for old-style trackers http://hg.code.sf.net:8000/p/roundup/code/#changeset-6574d6736b57242bf3069420320b7ac6bc769954 Alexander Smishlajev a1s@users.sourceforge.net 2004-11-18T16:52:18+00:00 2004-11-18T16:52:18+00:00
changeset 6574d6736b57
branch
bookmark
tag
user Alexander Smishlajev <a1s@users.sourceforge.net>
description register all backend modules for old-style trackers
files
if optimize is set, load the schema file in __init__()... http://hg.code.sf.net:8000/p/roundup/code/#changeset-f50b867747c9c4f2089316f412885cab22ff268a Alexander Smishlajev a1s@users.sourceforge.net 2004-11-11T12:02:30+00:00 2004-11-11T12:02:30+00:00
changeset f50b867747c9
branch
bookmark
tag
user Alexander Smishlajev <a1s@users.sourceforge.net>
description if optimize is set, load the schema file in __init__()...

...and then use compiled code object to apply the schema
when the database is open.
files