Custom Query (332 matches)
Results (22 - 24 of 332)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#123 | fixed | NameError: global name 'parameter' is not defined | bas | tomasz.sterna@… |
Description |
I have a Trac 0.11.1 (easy_install trac) installed and running. I downloaded email2trac-0.70 and installed it from email2trac_0.70-1_amd64.deb. After configuring it, I get the following error in syslog when I send mails to the email2trac address: Feb 6 13:39:50 hetzner1 email2trac: Traceback (most recent call last): Feb 6 13:39:50 hetzner1 email2trac: File "/usr/bin/email2trac", line 1465, in <module> tktparser = TicketEmailParser(env, settings, float(version)) Feb 6 13:39:50 hetzner1 email2trac: File "/usr/bin/email2trac", line 228, in __init__ self.REFLOW = int(parameter['reflow']) Feb 6 13:39:50 hetzner1 email2trac: NameError: global name 'parameter' is not defined |
|||
#159 | worksforme | update ticket problem and sample solution | bas | tomasz.kloc@… |
Description |
Hi, I'm using trunk version of Your plugin with Trac 0.11 and Postfix. Create ticket via e-mail works great, but when i try to reply(update) ticket i got following error: email2trac: Traceback (most recent call last): email2trac: File "/usr/local/bin/email2trac", line 1616, in ? tktparser.parse(sys.stdin) email2trac: File "/usr/local/bin/email2trac", line 992, in parse self.ticket_update(m, result.group('reply'), spam_msg) email2trac: File "/usr/local/bin/email2trac", line 705, in ticket_update tkt.save_changes(self.author, body_text, when, None, str( email2trac: File "/usr/lib/python2.4/site-packages/trac-0.10.4-py2.4.egg/trac/ticket/model.py", line 197, in save_changes when = i e()) email2trac: TypeError: int() argument must be a string or a number My quick fix: $ diff email2trac.py.in.orig email2trac.py.in 704a705,708 > try: > int(when) > except ValueError: > when = time.mktime(when.timetuple()) i've used "try" block, because i wasn't sure if 'when' will always be a datetime.datetime instance. |
|||
#102 | fixed | Can't update tickets from an email | bas | tim@… |
Description |
When I reply to a ticket and follow the conventions outlined in the documentation, the ticket does not update (either using commands in the subject or text in the body of the email). I see the following dump in my log: Nov 16 01:19:28 wilsonserver email2trac: TypeError?: unsupported operand type(s) for -: 'int' and 'datetime.datetime' Nov 16 01:19:28 wilsonserver email2trac: Traceback (most recent call last): Nov 16 01:19:28 wilsonserver email2trac: File "/usr/local/bin/email2trac", line 1284, in <module> tktparser.parse(sys.stdin) Nov 16 01:19:28 wilsonserver email2trac: File "/usr/local/bin/email2trac", line 845, in parse if self.ticket_update(m, spam_msg): Nov 16 01:19:28 wilsonserver email2trac: File "/usr/local/bin/email2trac", line 647, in ticket_update tkt.save_changes(self.author, body_text, when) Nov 16 01:19:28 wilsonserver email2trac: File "/usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg/trac/ticket/model.py", line 230, in save_changes when_ts = to_timestamp(when) Nov 16 01:19:28 wilsonserver email2trac: File "/usr/lib/python2.5/site-packages/Trac-0.11.2-py2.5.egg/trac/util/datefmt.py", line 56, in to_timestamp diff = dt - _epoc Nov 16 01:19:28 wilsonserver email2trac: TypeError?: unsupported operand type(s) for -: 'int' and 'datetime.datetime' I am using Trac 0.11.2, Fedora 7, Apache 2.2.7-1, Python 2.5-15 and email2trac-0.40 |