Discussion:
[Agilo for Trac] TicketQuery in other Trac Systems doesn't work after upgrading to binary-agilo 1.3.11-pro
Sven1978
2013-10-08 12:31:12 UTC
Permalink
Hello,

first the tec. Details :

I have trac V 1.0.1 and agilo 1.3.11 since last week. Before it was the
same trac and agilo 1.3.9. After upgrading the agilo system works but today
we have see that the ticket Queries in the other trac Systems do not work.

For ex:

The Ticket Quey of a wiki page is :

[[TicketQuery(milestone=Naechste
Version|Spaeter&status=closed,order=owner,desc=1,format=table,col=summary|owner)]]


It throws the error :

*Error: Macro TicketQuery(milestone=Naechste
Version|Spaeter&status=closed,order=owner,desc=1,format=table,col=summary|owner)
failed*

i_links



The Log entry is :



2013-10-08 14:11:29,836 Trac[formatter] ERROR: Macro TicketQuery(milestone=Naechste Version|Spaeter&status=closed,order=owner,desc=1,format=table,col=summary|owner) failed:

Traceback (most recent call last):

File "C:\Python27\lib\site-packages\trac\wiki\formatter.py", line 765, in _macro_formatter

return macro.ensure_inline(macro.process(args))

File "C:\Python27\lib\site-packages\trac\wiki\formatter.py", line 356, in process

text = self.processor(text)

File "C:\Python27\lib\site-packages\trac\wiki\formatter.py", line 343, in _macro_processor

text)

File "C:\Python27\lib\site-packages\trac\ticket\query.py", line 1319, in expand_macro

req=formatter.context.req)

File "C:\Python27\lib\site-packages\binary_agilo-1.3.11_pro-py2.7.egg\agilo\ticket\model.py", line 1521, in custom_template_data

result['fields'].pop('i_links')

KeyError: 'i_links'



*Can somebody tell me what the problem is ?*

*
*

*Thanks *



Sven
--
--
Follow Agilo on Twitter: http://twitter.com/agilofortrac
Please support us by reviewing and voting on:
http://userstories.com/products/8-agilo-for-scrum
http://ohloh.net/p/agilo-trac
http://freshmeat.net/projects/agiloforscrum

You have received this message because you are subscribed to
the "Agilo for Trac" Google Group. This group is focused on
supporting Agilo for Trac users and is moderated by
Agilo Software GmbH <http://www.agilosoftware.com>.

To post to this group, send email to agilo-/***@public.gmane.org
To unsubscribe from this group, send an email to
agilo+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/agilo

---
You received this message because you are subscribed to the Google Groups "Agilo for Trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to agilo+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Stefano Rago
2013-10-14 14:10:45 UTC
Permalink
Hi Sven,
I have trac V 1.0.1 and agilo 1.3.11 since last week. Before it was the same trac and agilo 1.3.9. After upgrading the agilo system works but today we have see that the ticket Queries in the other trac Systems do not work.
I have been able to reproduce this issue, and it's, in fact, a bug, that we will address in our next update.
Thanks for pointing out the problem.

In the meantime, you can fix the problem on your local installation manually, if you feel like.
Just replace these lines around line 1521 of agilo/ticket/model.py


result['fields'].pop('i_links')
result['fields'].pop('o_links')


with these:

if 'i_links' in result['fields']:
result['fields'].pop('i_links')
if 'o_links' in result['fields']:
result['fields'].pop('o_links')

Please let us know if you have problems.

Cheers

Stefano Rago
--
--
Follow Agilo on Twitter: http://twitter.com/agilofortrac
Please support us by reviewing and voting on:
http://userstories.com/products/8-agilo-for-scrum
http://ohloh.net/p/agilo-trac
http://freshmeat.net/projects/agiloforscrum

You have received this message because you are subscribed to
the "Agilo for Trac" Google Group. This group is focused on
supporting Agilo for Trac users and is moderated by
Agilo Software GmbH <http://www.agilosoftware.com>.

To post to this group, send email to agilo-/***@public.gmane.org
To unsubscribe from this group, send an email to
agilo+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/agilo

---
You received this message because you are subscribed to the Google Groups "Agilo for Trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to agilo+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
mark lommers
2013-10-21 14:24:19 UTC
Permalink
Post by Stefano Rago
Hi Sven,
On Oct 8, 2013, at 2:31 PM, Sven1978 <sven.kaechelin-
I have trac V 1.0.1 and agilo 1.3.11 since last week. Before it was the
same trac and agilo 1.3.9. After upgrading the agilo system works but today
we have see that the ticket Queries in the other trac Systems do not work.
Post by Stefano Rago
I have been able to reproduce this issue, and it's, in fact, a bug, that
we will address in our next update.
Post by Stefano Rago
Thanks for pointing out the problem.
In the meantime, you can fix the problem on your local installation
manually, if you feel like.
Post by Stefano Rago
Just replace these lines around line 1521 of agilo/ticket/model.py
result['fields'].pop('i_links')result['fields'].pop('o_links')
    result['fields'].pop('i_links')
    result['fields'].pop('o_links')
Please let us know if you have problems.
Cheers
Stefano Rago
Hi Stefano,

I tried to implement you fix but I still get the same errors:

Bestand "build/bdist.freebsd-6.2-RELEASE-i386/egg/trac/web/main.py", regel
513, in _dispatch_request
dispatcher.dispatch(req)
Bestand "build/bdist.freebsd-6.2-RELEASE-i386/egg/trac/web/main.py", regel
235, in dispatch
resp = chosen_handler.process_request(req)
Bestand "build/bdist.freebsd-6.2-RELEASE-i386/egg/trac/ticket/query.py",
regel 933, in process_request
return self.display_html(req, query)
Bestand "build/bdist.freebsd-6.2-RELEASE-i386/egg/trac/ticket/query.py",
regel 1052, in display_html
data = query.template_data(context, tickets, orig_list, orig_time, req)
Bestand "/usr/local/lib/python2.5/site-packages/binary_agilo-1.3.11_PRO-
py2.5.egg/agilo/ticket/model.py", regel 1521, in custom_template_data
if 'i_links' in result['fields']:

Any clue what I can do.

Regards,
Mark
--
--
Follow Agilo on Twitter: http://twitter.com/agilofortrac
Please support us by reviewing and voting on:
http://userstories.com/products/8-agilo-for-scrum
http://ohloh.net/p/agilo-trac
http://freshmeat.net/projects/agiloforscrum

You have received this message because you are subscribed to
the "Agilo for Trac" Google Group. This group is focused on
supporting Agilo for Trac users and is moderated by
Agilo Software GmbH <http://www.agilosoftware.com>.

To post to this group, send email to agilo-/***@public.gmane.org
To unsubscribe from this group, send an email to
agilo+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/agilo

---
You received this message because you are subscribed to the Google Groups "Agilo for Trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to agilo+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Stefano Rago
2013-10-28 12:43:31 UTC
Permalink
Hi Mark,

Can you please post the whole stack trace?
Unfortunately from what you posted, it is not visible what the cause of the error is.
Also, please can you provide the whole content of your patched agilo/ticket/model.py file?

Thanks!

Stefano
Post by Sven1978
Post by Stefano Rago
Hi Sven,
On Oct 8, 2013, at 2:31 PM, Sven1978 <sven.kaechelin-
I have trac V 1.0.1 and agilo 1.3.11 since last week. Before it was the
same trac and agilo 1.3.9. After upgrading the agilo system works but today
we have see that the ticket Queries in the other trac Systems do not work.
Post by Stefano Rago
I have been able to reproduce this issue, and it's, in fact, a bug, that
we will address in our next update.
Post by Stefano Rago
Thanks for pointing out the problem.
In the meantime, you can fix the problem on your local installation
manually, if you feel like.
Post by Stefano Rago
Just replace these lines around line 1521 of agilo/ticket/model.py
result['fields'].pop('i_links')result['fields'].pop('o_links')
result['fields'].pop('i_links')
result['fields'].pop('o_links')
Please let us know if you have problems.
Cheers
Stefano Rago
Hi Stefano,
Bestand "build/bdist.freebsd-6.2-RELEASE-i386/egg/trac/web/main.py", regel
513, in _dispatch_request
dispatcher.dispatch(req)
Bestand "build/bdist.freebsd-6.2-RELEASE-i386/egg/trac/web/main.py", regel
235, in dispatch
resp = chosen_handler.process_request(req)
Bestand "build/bdist.freebsd-6.2-RELEASE-i386/egg/trac/ticket/query.py",
regel 933, in process_request
return self.display_html(req, query)
Bestand "build/bdist.freebsd-6.2-RELEASE-i386/egg/trac/ticket/query.py",
regel 1052, in display_html
data = query.template_data(context, tickets, orig_list, orig_time, req)
Bestand "/usr/local/lib/python2.5/site-packages/binary_agilo-1.3.11_PRO-
py2.5.egg/agilo/ticket/model.py", regel 1521, in custom_template_data
Any clue what I can do.
Regards,
Mark
--
--
Follow Agilo on Twitter: http://twitter.com/agilofortrac
http://userstories.com/products/8-agilo-for-scrum
http://ohloh.net/p/agilo-trac
http://freshmeat.net/projects/agiloforscrum
You have received this message because you are subscribed to
the "Agilo for Trac" Google Group. This group is focused on
supporting Agilo for Trac users and is moderated by
Agilo Software GmbH <http://www.agilosoftware.com>.
To unsubscribe from this group, send an email to
For more options, visit this group at
http://groups.google.com/group/agilo
---
You received this message because you are subscribed to the Google Groups "Agilo for Trac" group.
For more options, visit https://groups.google.com/groups/opt_out.
--
--
Follow Agilo on Twitter: http://twitter.com/agilofortrac
Please support us by reviewing and voting on:
http://userstories.com/products/8-agilo-for-scrum
http://ohloh.net/p/agilo-trac
http://freshmeat.net/projects/agiloforscrum

You have received this message because you are subscribed to
the "Agilo for Trac" Google Group. This group is focused on
supporting Agilo for Trac users and is moderated by
Agilo Software GmbH <http://www.agilosoftware.com>.

To post to this group, send email to agilo-/***@public.gmane.org
To unsubscribe from this group, send an email to
agilo+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/agilo

---
You received this message because you are subscribed to the Google Groups "Agilo for Trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to agilo+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Loading...