Re: [Trac] Using the plugin "ticketcalendarplugin" to generate an internal error when I visit the page

2017-03-15 Thread RjOllos


On Tuesday, March 14, 2017 at 8:47:28 PM UTC-7, Mingxing Tian wrote:
>
>
>
> 在 2017年3月15日星期三 UTC+8上午11:43:49,Jun Omae写道:
>>
>> Hi, 
>>
>> On Wed, Mar 15, 2017 at 12:39 PM, Mingxing Tian  wrote: 
>> > Using the plugin "ticketcalendarplugin" to generate an internal error 
>> when I 
>> > visit the page: 
>> > 
>> > 2017-03-15 11:36:23,666 Trac[main] ERROR: Internal Server Error: 
>> > , referrer 
>> > 'http://trac.xxx.cn/admin' 
>> > Traceback (most recent call last): 
>> >   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 613, 
>> in 
>> > _dispatch_request 
>> > dispatcher.dispatch(req) 
>> >   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 253, 
>> in 
>> > dispatch 
>> > resp = chosen_handler.process_request(req) 
>> >   File "build/bdist.linux-x86_64/egg/ticketcalendar/web_ui.py", line 
>> 765, in 
>> > process_request 
>> > data = calendar.template_data(req, query) 
>> >   File "build/bdist.linux-x86_64/egg/ticketcalendar/web_ui.py", line 
>> 296, in 
>> > template_data 
>> > tickets = query.execute(req, db) 
>> >   File "/usr/lib/python2.6/site-packages/trac/ticket/query.py", line 
>> 295, in 
>> > execute 
>> > sql, args = self.get_sql(req, cached_ids, authname, tzinfo, locale) 
>> >   File "/usr/lib/python2.6/site-packages/trac/ticket/query.py", line 
>> 639, in 
>> > get_sql 
>> > (','.join(str(id) for id in cached_ids))) 
>> > TypeError: 'ConnectionWrapper' object is not iterable 
>>
>> Are you using the plugin on Trac 1.2? Could you please create new 
>> ticket with the details about your environment via 
>> https://trac-hacks.org/newticket?component=TicketCalendarPlugin? 
>>
>> -- 
>> Jun Omae  (大前 潤) 
>>
>
>
> Yes, look `https://trac-hacks.org/ticket/13108` 
> , I'm created it!
>

Regarding the first issue in comment:8 (1), you were probably using 
DateFieldPlugin prior to Trac 1.2 and it stores the date as a string, not a 
timestamp. In Trac 1.2 you can use a custom field of type "time" and the 
value will be stored as a timestamp. If you were using DateFieldPlguin 
you'll need to convert your existing fields using a custom script, and 
start using the time custom field. See also (2).

(1) https://trac-hacks.org/ticket/13108#comment:8
(2) https://trac-hacks.org/ticket/11856

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] Using the plugin "ticketcalendarplugin" to generate an internal error when I visit the page

2017-03-14 Thread Jun Omae
Hi,

On Wed, Mar 15, 2017 at 12:39 PM, Mingxing Tian  wrote:
> Using the plugin "ticketcalendarplugin" to generate an internal error when I
> visit the page:
>
> 2017-03-15 11:36:23,666 Trac[main] ERROR: Internal Server Error:
> , referrer
> 'http://trac.xxx.cn/admin'
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 613, in
> _dispatch_request
> dispatcher.dispatch(req)
>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 253, in
> dispatch
> resp = chosen_handler.process_request(req)
>   File "build/bdist.linux-x86_64/egg/ticketcalendar/web_ui.py", line 765, in
> process_request
> data = calendar.template_data(req, query)
>   File "build/bdist.linux-x86_64/egg/ticketcalendar/web_ui.py", line 296, in
> template_data
> tickets = query.execute(req, db)
>   File "/usr/lib/python2.6/site-packages/trac/ticket/query.py", line 295, in
> execute
> sql, args = self.get_sql(req, cached_ids, authname, tzinfo, locale)
>   File "/usr/lib/python2.6/site-packages/trac/ticket/query.py", line 639, in
> get_sql
> (','.join(str(id) for id in cached_ids)))
> TypeError: 'ConnectionWrapper' object is not iterable

Are you using the plugin on Trac 1.2? Could you please create new
ticket with the details about your environment via
https://trac-hacks.org/newticket?component=TicketCalendarPlugin?

-- 
Jun Omae  (大前 潤)

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


[Trac] Using the plugin "ticketcalendarplugin" to generate an internal error when I visit the page

2017-03-14 Thread Mingxing Tian
Using the plugin "ticketcalendarplugin" to generate an internal error when 
I visit the page:

2017-03-15 11:36:23,666 Trac[main] ERROR: Internal Server Error: 
, referrer 
'http://trac.xxx.cn/admin'
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 613, in 
_dispatch_request
dispatcher.dispatch(req)
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 253, in 
dispatch
resp = chosen_handler.process_request(req)
  File "build/bdist.linux-x86_64/egg/ticketcalendar/web_ui.py", line 765, 
in process_request
data = calendar.template_data(req, query)
  File "build/bdist.linux-x86_64/egg/ticketcalendar/web_ui.py", line 296, 
in template_data
tickets = query.execute(req, db)
  File "/usr/lib/python2.6/site-packages/trac/ticket/query.py", line 295, 
in execute
sql, args = self.get_sql(req, cached_ids, authname, tzinfo, locale)
  File "/usr/lib/python2.6/site-packages/trac/ticket/query.py", line 639, 
in get_sql
(','.join(str(id) for id in cached_ids)))
TypeError: 'ConnectionWrapper' object is not iterable



-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.