[Trac] Re: AttributeError: 'Environment' object has no attribute 'get_db_cnx'

2017-02-18 Thread RjOllos


On Friday, February 17, 2017 at 5:36:02 PM UTC-8, ivanelson wrote:
>
> After upgrading to version 1.2. I'm having this error while trying to 
> create a ticket:
>
>>
>> 2017-02-17 21:57:16,946 Trac[main] ERROR: Internal Server Error: 
>> , referrer '
>> http://sistemas.claudinosa.com.br/timeline'
>> Traceback (most recent call last):
>>   File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 613, in 
>> _dispatch_request
>> dispatcher.dispatch(req)
>>   File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 263, in 
>> dispatch
>> self._post_process_request(req, *resp)
>>   File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 444, in 
>> _post_process_request
>> resp = f.post_process_request(req, *resp[:-1])
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/TracSubTicketsPlugin-0.2.0.dev_20130618-py2.7.egg/tracsubtickets/web_ui.py",
>>  
>> line 73, in post_process_request
>> children = self.get_children(ticket.id)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/TracSubTicketsPlugin-0.2.0.dev_20130618-py2.7.egg/tracsubtickets/web_ui.py",
>>  
>> line 104, in get_children
>> db = self.env.get_db_cnx()
>> *AttributeError: 'Environment' object has no attribute 'get_db_cnx'*
>
>
> It looks like something on the plugin side. However, it seems that no one 
> has opened a [1] ticket for the plugin fix.
>
> [1] https://trac.edgewall.org/ticket/12334 
>
> Best regards.
>

The issue is fixed in the repository. Try installing from master of:
https://github.com/trac-hacks/trac-subtickets-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: Problems Trac 1.2 Updated from version 1.0 - Cannot find an implementation of the IAttributeProvider interface named SessionAttributeProvider

2017-02-18 Thread RjOllos


On Friday, February 17, 2017 at 5:08:31 PM UTC-8, ivanelson wrote:
>
> Really! I have this plugin installed, but it is disabled in trac.ini
>
> I just removed it in [1] hand and then everything worked after the apache 
> reboot.
>
> [1] 
> rm -rf 
> /usr/local/lib/python2.7/dist-packages/TracUserManagerPlugin-0.5dev_r0-py2.7.egg/
>

I've seen similar behavior with the ExtensionOptions ([user_manager] 
attribute_provider is an ExtensionOption). 
https://trac-hacks.org/browser/usermanagerplugin/0.11/tracusermanager/api.py?rev=13677=156#L147

I'll investigate in:
https://trac.edgewall.org/ticket/12692

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