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

2024-04-04 Thread Jesus Megia
Great!.

Thanks a lot Ryan for your quick answer. At the end this is working 
properly.

I'm going to configure it for the post-commit hook.

Best regards

El jueves, 21 de marzo de 2024 a las 18:43:06 UTC+1, RjOllos escribió:

> On Thursday, March 21, 2024 at 8:01:06 AM UTC-7 jesus...@gmail.com wrote:
>
> Hello,
>
> I'm updating the trac version on my company from version 0.11 to 1.6. 
> Everything is working fine except the trac-pre-commit-hook which show me 
> this error message:
>
> * AttributeError: 'Environment' object has no attribute 'get_db_cnx'*
>
> I have tried different pyton trac-pre-commit-hook versions but all of them 
> give me the same output.
>
> Can you help me to try to solve the problem?
>
> Thans in advance.
>
>
> Suggest using this one: 
> https://trac.edgewall.org/browser/tags/trac-1.6/contrib/trac-pre-commit-hook
>
> If you continue to have an issue the problem may be from a plugin. 
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/768d75bc-2e4a-4f88-b493-5a4958b518bbn%40googlegroups.com.


Re: [Trac] Porting HttpAuthPlugin to Trac 1.6? (was: Problem with accountmanager and xmlrpc)

2024-04-04 Thread Markus Rosjat
hi Martin,

maybe it would help to get some more information about what you tried so
far, like

- what version you installed , trunk, pip
- a full traceback of the exceptions thrown

I guess then people could point out things easier

cheers

Markus

Am Mi., 3. Apr. 2024 um 13:04 Uhr schrieb Martin :

> Hi,
>
> it seems, that I need HttpAuthPlugin to make (XML-) RPC work again on
> Trac 1.6. It used to work fine in Trac 1.4 with the config
>
>  [httpauth]
>  paths = /xmlrpc, /login/xmlrpc
>
> Are there any plans to port the plugin? I naively tried to update it
> using `2to3`, but that did not work.
>
> Thanks in advance for any help!
>
> Cheers, Martin
>
>
> Quoting Martin:
> > Hi,
> >
> > in the past (<= Trac 1.4), I had to use an additional plugin (httpauth)
> > to make xmlrpc work despite accountmanager being active. However, for
> > Trac 1.6 this plugin seems to be gone (or not ported to Python 3). I
> > understood, that accountmanager has been changed in a way that httpauth
> > is not needed anymore, but maybe I'm wrong. Anyone using accountmanager
> > and xmlrpc together successfully? How?
> >
> > Cheers
>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/trac-users/20240403130424.Horde.kvfAx9UYpmMoKoWmG9gbYkx%40webmail.in-berlin.de
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CAJ4osOkNEK3-UQFxBtXWo%2BP39p9f0fqGLV6%3DO0yV09fWpVdDxQ%40mail.gmail.com.