On 6/24/13, [email protected] <[email protected]> wrote:
> Author: rjollos
> Date: Mon Jun 24 13:23:53 2013
> New Revision: 1496028
>
> URL: http://svn.apache.org/r1496028
> Log:
> Whitespace cleanup, removed unused import and replaced `dict` with
> dictionary literal.
>
[...]
> - tm._populate(fakereq, ticket, False)
> - all_fields = dict([f['name'], f]
> - for f in tm._prepare_fields(fakereq, ticket)
> - if f['type'] == 'select')
> + tm._populate(req, ticket, False)
> + all_fields = {
> + f['name']: f for f in tm._prepare_fields(req, ticket)
> + if f['type'] == 'select'
> + }
>
It seems after this change (cmiiw) theme plugin will not be loaded in
python 2.6 . Log entry
{{{
2013-06-26 01:16:09,767 Trac[loader] ERROR: Skipping "bhtheme.theme =
bhtheme.theme":
}}}
traceback
{{{#!py
Traceback (most recent call last):
File "/path/to/bloodhound/trac/trac/loader.py", line 68, in _load_eggs
entry.load(require=True)
File
"/path/to/venv/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py",
line 1954, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/path/to/bloodhound/bloodhound_theme/bhtheme/theme.py", line 466
f['name']: f for f in tm._prepare_fields(req, ticket)
^
SyntaxError: invalid syntax (theme.py, line 466)
}}}
--
Regards,
Olemis.
Apache⢠Bloodhound contributor
http://issues.apache.org/bloodhound
Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/
Featured article: