Re: [Trac] Re: “TracTicketTemplatePlugin”HTTPNotFound: 404 Not Found

2017-05-17 Thread Ryan Ollos
On Wed, May 17, 2017 at 7:23 PM Mingxing Tian  wrote:

>
>
> 在 2017年5月18日星期四 UTC+8上午1:12:16,RjOllos写道:
>
>>
>>
>> On Wednesday, May 17, 2017 at 3:11:05 AM UTC-7, Mingxing Tian wrote:
>>>
>>> I installed a new plugin "TracTicketTemplatePlugin" and did not make an
>>> error when saving the contents of the task template.
>>>
>>>
>>> 
>>>
>>>
>>> 2017-05-17 18:03:57,294 Trac[main] WARNING: [192.168.1.105] HTTPNotFound
>>> : 404 Not Found (未知管理面板)
>>>
>>>
>>> This problem caused me to save the data
>>>
>>>
>>>
>>> Package版本
>>> Trac 1.2
>>> Babel 0.9.4
>>> Genshi 0.7 (without speedups)
>>> GIT 1.7.1
>>> mod_wsgi 3.2 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})
>>> MySQL server: "5.5.49-log", client: "5.1.73", thread-safe: 1
>>> MySQLdb 1.2.3c1
>>> Pygments 2.1.3
>>> Python 2.6.6 (r266:84292, Jul 23 2015, 15:22:56) [GCC 4.4.7 20120313 (
>>> Red Hat 4.4.7-11)]
>>> pytz 2016.4
>>> setuptools 30.2.0
>>> Subversion 1.6.11 (r934486)
>>> Textile 2.3.6
>>> jQuery 1.11.3
>>> jQuery UI 1.11.4
>>> jQuery Timepicker 1.5.5
>>>
>>
>>
>> I'm unsure of the problem. Is the error seen on the
>> /admin/ticket/tickettemplate page?
>>
>> The plugin works well in my testing with Trac 1.2-stable. Are you running
>> version 1.0dev of the plugin?
>>
>> - Ryan
>>
>>
>
>
>
>  I use the latest version: "tractickettemplateplugin/1.0",In addition, I
> use Chinese, for the handling of Asian characters, is it support?
>

I tested with Chinese translation and some random Chinese characters for
the ticket type, which seemed to work. If it doesn't work for you, could
you please send a screen capture of the error?

- Ryan

-- 
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] Re: “TracTicketTemplatePlugin”HTTPNotFound: 404 Not Found

2017-05-17 Thread Mingxing Tian


在 2017年5月18日星期四 UTC+8上午1:12:16,RjOllos写道:
>
>
>
> On Wednesday, May 17, 2017 at 3:11:05 AM UTC-7, Mingxing Tian wrote:
>>
>> I installed a new plugin "TracTicketTemplatePlugin" and did not make an 
>> error when saving the contents of the task template.
>>
>>
>> 
>>
>>
>> 2017-05-17 18:03:57,294 Trac[main] WARNING: [192.168.1.105] HTTPNotFound: 
>> 404 Not Found (未知管理面板)
>>
>>
>> This problem caused me to save the data
>>
>>
>>
>> Package版本
>> Trac 1.2
>> Babel 0.9.4
>> Genshi 0.7 (without speedups)
>> GIT 1.7.1
>> mod_wsgi 3.2 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})
>> MySQL server: "5.5.49-log", client: "5.1.73", thread-safe: 1
>> MySQLdb 1.2.3c1
>> Pygments 2.1.3
>> Python 2.6.6 (r266:84292, Jul 23 2015, 15:22:56) [GCC 4.4.7 20120313 (Red 
>> Hat 4.4.7-11)]
>> pytz 2016.4
>> setuptools 30.2.0
>> Subversion 1.6.11 (r934486)
>> Textile 2.3.6
>> jQuery 1.11.3
>> jQuery UI 1.11.4
>> jQuery Timepicker 1.5.5
>>
>
>
> I'm unsure of the problem. Is the error seen on the 
> /admin/ticket/tickettemplate page?
>
> The plugin works well in my testing with Trac 1.2-stable. Are you running 
> version 1.0dev of the plugin?
>
> - Ryan
>  
>



 I use the latest version: "tractickettemplateplugin/1.0",In addition, I 
use Chinese, for the handling of Asian characters, is it support?

-- 
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] Ticket query

2017-05-17 Thread Peter Suter

On 17.05.2017 10:19, toto200891 wrote:



On Tuesday, May 16, 2017 at 5:50:12 PM UTC+2, hasienda wrote:

I found two issues while reading your code and message:

Make sure to have the permission action named as you desire. In
your message you spoke about 'TICKET_VIEW_STATUS' while it was
written as 'TICKET_VIEW_STATUS' in code.

Yes the permission is given to the user


You may have missed the point:
TICKET_VIEW_STATUS
TICKET_STATUS_VIEW
These are NOT the same. Do not mix them.

Regards,
Peter

--
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] Re: “TracTicketTemplatePlugin”HTTPNotFound: 404 Not Found

2017-05-17 Thread RjOllos


On Wednesday, May 17, 2017 at 3:11:05 AM UTC-7, Mingxing Tian wrote:
>
> I installed a new plugin "TracTicketTemplatePlugin" and did not make an 
> error when saving the contents of the task template.
>
>
> 
>
>
> 2017-05-17 18:03:57,294 Trac[main] WARNING: [192.168.1.105] HTTPNotFound: 
> 404 Not Found (未知管理面板)
>
>
> This problem caused me to save the data
>
>
>
> Package版本
> Trac 1.2
> Babel 0.9.4
> Genshi 0.7 (without speedups)
> GIT 1.7.1
> mod_wsgi 3.2 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})
> MySQL server: "5.5.49-log", client: "5.1.73", thread-safe: 1
> MySQLdb 1.2.3c1
> Pygments 2.1.3
> Python 2.6.6 (r266:84292, Jul 23 2015, 15:22:56) [GCC 4.4.7 20120313 (Red 
> Hat 4.4.7-11)]
> pytz 2016.4
> setuptools 30.2.0
> Subversion 1.6.11 (r934486)
> Textile 2.3.6
> jQuery 1.11.3
> jQuery UI 1.11.4
> jQuery Timepicker 1.5.5
>


I'm unsure of the problem. Is the error seen on the 
/admin/ticket/tickettemplate page?

The plugin works well in my testing with Trac 1.2-stable. Are you running 
version 1.0dev of the plugin?

- Ryan
 

-- 
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] Re: Announcer plugin

2017-05-17 Thread toto200891
Yes I think I can use WorkflowNotificationplugin 

Regards,

SF

On Wednesday, May 17, 2017 at 10:39:03 AM UTC+2, toto200891 wrote:
>
> Basically is it possible to notify a group or person based on the ticket 
> status? As in, when the status is new a group called developpers should be 
> notified and when the ticket is closed, the reporter should be notified?
>
> Notification flow:
>
> new, closed - > reporter
> new -> developpers
> test -> testers
>
> Something like this? Is it possible?
>
> Regards,
> SF
>
> On Wednesday, May 17, 2017 at 10:30:54 AM UTC+2, toto200891 wrote:
>>
>> I would like to send a notification to one group, like when ever a new 
>> ticket is been created. 
>>
>> Currently I am including that group mail id in "always CC" in my 
>> "trac.ini".  But as you know, by doing this the group will recieve 
>> notifications for any modifications on ticket. But I would just like to 
>> have send a notification to the group only when the ticket is created? How 
>> do I do it? Please guide me in this regard?
>>
>> Regards,
>> SF   
>>
>> On Tuesday, May 16, 2017 at 10:48:51 PM UTC+2, RjOllos wrote:
>>>
>>>
>>>
>>> On Tuesday, May 16, 2017 at 6:44:07 AM UTC-7, toto200891 wrote:

  Hi,

 I got this error after installing annoncer plugin 

 AttributeError: 'Environment' object has no attribute 'get_db_cnx'

 File "build/bdist.win32/egg/trac/web/main.py", line 623, in 
 _dispatch_request
   dispatcher.dispatch(req)
 File "build/bdist.win32/egg/trac/web/main.py", line 239, in dispatch
   resp = chosen_handler.process_request(req)
 File "build/bdist.win32/egg/trac/prefs/web_ui.py", line 111, in 
 process_request
   chosen_provider.render_preference_panel(req, panel_id)
 File "build/bdist.win32/egg/announcer/pref.py", line 87, in 
 render_preference_panel
   for name, label, template, data in self._get_boxes(req):
 File "build/bdist.win32/egg/announcer/pref.py", line 82, in _get_boxes
   boxname))
 File "build/bdist.win32/egg/announcer/resolvers.py", line 107, in 
 render_announcement_preference_box
   specified = self.setting.get_user_setting(req.session.sid)[1] or ''
 File "build/bdist.win32/egg/announcer/util/settings.py", line 51, in 
 get_user_setting
   db = self.env.get_db_cnx()

 Package


 Version 
 Trac 1.2.1 
 Babel 2.4.0 
 Genshi 0.7 (without speedups) 
 pysqlite 2.6.0 
 Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC 
 v.1500 32 bit (Intel)] 
 pytz 2017.2 
 setuptools 35.0.2 
 SQLite 3.8.11 
 jQuery 1.11.3
 jQuery UI 1.11.4
 jQuery Timepicker
 Any help is appreciated?

 Regards,

 SF

>>>
>>> The major features of AnnouncerPlugin has been integrated into Trac 1.2. 
>>> What features are you hoping to get by installing the plugin?
>>>
>>> AnnouncerPlugin is not yet compatible with Trac 1.2. You can keep an eye 
>>> on #12120 if you want to wait for a 1.2-compatible version to be available.
>>>
>>> https://trac-hacks.org/ticket/12120
>>>
>>> - Ryan
>>>
>>

-- 
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] “TracTicketTemplatePlugin”HTTPNotFound: 404 Not Found

2017-05-17 Thread Mingxing Tian
I installed a new plugin "TracTicketTemplatePlugin" and did not make an 
error when saving the contents of the task template.




2017-05-17 18:03:57,294 Trac[main] WARNING: [192.168.1.105] HTTPNotFound: 
404 Not Found (未知管理面板)


This problem caused me to save the data



Package版本
Trac 1.2
Babel 0.9.4
Genshi 0.7 (without speedups)
GIT 1.7.1
mod_wsgi 3.2 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})
MySQL server: "5.5.49-log", client: "5.1.73", thread-safe: 1
MySQLdb 1.2.3c1
Pygments 2.1.3
Python 2.6.6 (r266:84292, Jul 23 2015, 15:22:56) [GCC 4.4.7 20120313 (Red 
Hat 4.4.7-11)]
pytz 2016.4
setuptools 30.2.0
Subversion 1.6.11 (r934486)
Textile 2.3.6
jQuery 1.11.3
jQuery UI 1.11.4
jQuery Timepicker 1.5.5


-- 
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] Re: Announcer plugin

2017-05-17 Thread toto200891
Basically is it possible to notify a group or person based on the ticket 
status? As in, when the status is new a group called developpers should be 
notified and when the ticket is closed, the reporter should be notified?

Notification flow:

new, closed - > reporter
new -> developpers
test -> testers

Something like this? Is it possible?

Regards,
SF

On Wednesday, May 17, 2017 at 10:30:54 AM UTC+2, toto200891 wrote:
>
> I would like to send a notification to one group, like when ever a new 
> ticket is been created. 
>
> Currently I am including that group mail id in "always CC" in my 
> "trac.ini".  But as you know, by doing this the group will recieve 
> notifications for any modifications on ticket. But I would just like to 
> have send a notification to the group only when the ticket is created? How 
> do I do it? Please guide me in this regard?
>
> Regards,
> SF   
>
> On Tuesday, May 16, 2017 at 10:48:51 PM UTC+2, RjOllos wrote:
>>
>>
>>
>> On Tuesday, May 16, 2017 at 6:44:07 AM UTC-7, toto200891 wrote:
>>>
>>>  Hi,
>>>
>>> I got this error after installing annoncer plugin 
>>>
>>> AttributeError: 'Environment' object has no attribute 'get_db_cnx'
>>>
>>> File "build/bdist.win32/egg/trac/web/main.py", line 623, in 
>>> _dispatch_request
>>>   dispatcher.dispatch(req)
>>> File "build/bdist.win32/egg/trac/web/main.py", line 239, in dispatch
>>>   resp = chosen_handler.process_request(req)
>>> File "build/bdist.win32/egg/trac/prefs/web_ui.py", line 111, in 
>>> process_request
>>>   chosen_provider.render_preference_panel(req, panel_id)
>>> File "build/bdist.win32/egg/announcer/pref.py", line 87, in 
>>> render_preference_panel
>>>   for name, label, template, data in self._get_boxes(req):
>>> File "build/bdist.win32/egg/announcer/pref.py", line 82, in _get_boxes
>>>   boxname))
>>> File "build/bdist.win32/egg/announcer/resolvers.py", line 107, in 
>>> render_announcement_preference_box
>>>   specified = self.setting.get_user_setting(req.session.sid)[1] or ''
>>> File "build/bdist.win32/egg/announcer/util/settings.py", line 51, in 
>>> get_user_setting
>>>   db = self.env.get_db_cnx()
>>>
>>> Package
>>>
>>>
>>> Version 
>>> Trac 1.2.1 
>>> Babel 2.4.0 
>>> Genshi 0.7 (without speedups) 
>>> pysqlite 2.6.0 
>>> Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 
>>> 32 bit (Intel)] 
>>> pytz 2017.2 
>>> setuptools 35.0.2 
>>> SQLite 3.8.11 
>>> jQuery 1.11.3
>>> jQuery UI 1.11.4
>>> jQuery Timepicker
>>> Any help is appreciated?
>>>
>>> Regards,
>>>
>>> SF
>>>
>>
>> The major features of AnnouncerPlugin has been integrated into Trac 1.2. 
>> What features are you hoping to get by installing the plugin?
>>
>> AnnouncerPlugin is not yet compatible with Trac 1.2. You can keep an eye 
>> on #12120 if you want to wait for a 1.2-compatible version to be available.
>>
>> https://trac-hacks.org/ticket/12120
>>
>> - Ryan
>>
>

-- 
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] Re: Announcer plugin

2017-05-17 Thread toto200891
I would like to send a notification to one group, like when ever a new 
ticket is been created. 

Currently I am including that group mail id in "always CC" in my 
"trac.ini".  But as you know, by doing this the group will recieve 
notifications for any modifications on ticket. But I would just like to 
have send a notification to the group only when the ticket is created? How 
do I do it? Please guide me in this regard?

Regards,
SF   

On Tuesday, May 16, 2017 at 10:48:51 PM UTC+2, RjOllos wrote:
>
>
>
> On Tuesday, May 16, 2017 at 6:44:07 AM UTC-7, toto200891 wrote:
>>
>>  Hi,
>>
>> I got this error after installing annoncer plugin 
>>
>> AttributeError: 'Environment' object has no attribute 'get_db_cnx'
>>
>> File "build/bdist.win32/egg/trac/web/main.py", line 623, in _dispatch_request
>>   dispatcher.dispatch(req)
>> File "build/bdist.win32/egg/trac/web/main.py", line 239, in dispatch
>>   resp = chosen_handler.process_request(req)
>> File "build/bdist.win32/egg/trac/prefs/web_ui.py", line 111, in 
>> process_request
>>   chosen_provider.render_preference_panel(req, panel_id)
>> File "build/bdist.win32/egg/announcer/pref.py", line 87, in 
>> render_preference_panel
>>   for name, label, template, data in self._get_boxes(req):
>> File "build/bdist.win32/egg/announcer/pref.py", line 82, in _get_boxes
>>   boxname))
>> File "build/bdist.win32/egg/announcer/resolvers.py", line 107, in 
>> render_announcement_preference_box
>>   specified = self.setting.get_user_setting(req.session.sid)[1] or ''
>> File "build/bdist.win32/egg/announcer/util/settings.py", line 51, in 
>> get_user_setting
>>   db = self.env.get_db_cnx()
>>
>> Package
>>
>>
>> Version 
>> Trac 1.2.1 
>> Babel 2.4.0 
>> Genshi 0.7 (without speedups) 
>> pysqlite 2.6.0 
>> Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 
>> 32 bit (Intel)] 
>> pytz 2017.2 
>> setuptools 35.0.2 
>> SQLite 3.8.11 
>> jQuery 1.11.3
>> jQuery UI 1.11.4
>> jQuery Timepicker
>> Any help is appreciated?
>>
>> Regards,
>>
>> SF
>>
>
> The major features of AnnouncerPlugin has been integrated into Trac 1.2. 
> What features are you hoping to get by installing the plugin?
>
> AnnouncerPlugin is not yet compatible with Trac 1.2. You can keep an eye 
> on #12120 if you want to wait for a 1.2-compatible version to be available.
>
> https://trac-hacks.org/ticket/12120
>
> - Ryan
>

-- 
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] Ticket query

2017-05-17 Thread toto200891


On Tuesday, May 16, 2017 at 5:50:12 PM UTC+2, hasienda wrote:
>
> I found two issues while reading your code and message:
>
> Make sure to have the permission action named as you desire. In your 
> message you spoke about 'TICKET_VIEW_STATUS' while it was written as 
> 'TICKET_VIEW_STATUS' in code.
>
Yes the permission is given to the user 

>
> For ticket status you'll need to compare to a string, so write it quoted 
> like 'test' or "test".
>
I even modified 'test' to a string format, But still It seems that there is 
something I'm missing. Because the user with TICKET_STATUS_VIEW permission 
still cannot see the ticket with status test. Any help is most appreciated.

> Steffen Hoffmann


Regards,
SF 

-- 
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.