#2418: Can't sort SourceStamp listing in Jinja2 build.html template
-------------------------+----------------------------------
Reporter: mikesorrenti | Owner:
Type: enhancement | Status: new
Priority: minor | Milestone: undecided
Version: 0.8.7p1 | Keywords: SourceStamp sort web
-------------------------+----------------------------------
Our buildbot installation is used for several codebases so our
!SourceStamp listing on the individual build pages gets lengthy. I tried
using Jinja2's sort method to sort this listing by the codebase attribute
but failed:
{{{
<type 'exceptions.AttributeError'>: SourceStamp instance has no attribute
'__getitem__'
}}}
Jinja2 sorting happens in filters.py at do_sort, using environment.getitem
to attempt to retrieve the attribute via bracket notation:
{{{
# Jinja2 2.6 environment.py line 353
return obj[argument]
}}}
I attempted to add a simple `__getitem__` method to my local
sourcestamp.!SourceStamp but no dice, are the historical !SourceStamp
objects serialized or something like that?
--
Ticket URL: <http://trac.buildbot.net/ticket/2418>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits