On Jan 12, 5:07 pm, Ethan Jucovy <[email protected]> wrote:
> On Thu, Jan 12, 2012 at 10:57 AM, Chris Nelson <[email protected]>wrote:
>
> > ticketsByID[t['id']] = t.values.copy()
>
> > Which gives me:
> > AttributeError: 'builtin_function_or_method' object has no attribute 'copy'
>
> The error message is telling you that ``t.values`` is a function.

Right, so 'tickets' is actually not a list of ticket objects... Chris,
it really makes sense for your code to follow the common Trac practice
of passing actual objects around instead of mutating them into various
structures. It just makes it so much harder for everyone, and makes
code less readable and questions harder to anwser. In everything I
read in your question and code, t should be a trac.ticket.model.Ticket
object - and 'tickets' should be a list of them....


:::simon

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.

Reply via email to