On 01/12/2012 11:13 AM, osimons wrote:
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...
If it isn't, I don't know where it stopped being one. Or maybe it never
was, I'm taking the results of something like `Query('id=23|45') and
handling each row as a "ticket". On thinking about it, I guess that
doesn't give me a list of ticket objects, it gives me a list of
dictionaries with each dictionary holding attributes of a ticket. Which
is fine for my purposes but leaves me wondering why I can't deepcopy the
resulting dictionary.
> ...
--
Christopher Nelson, Software Engineering Manager
SIXNET - Solutions for Your Industrial Networking Challenges
331 Ushers Road, Ballston Lake, NY 12019
Tel: +1.518.877.5173, Fax: +1.518.877.8346 www.sixnet.com
--
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.