-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 16.10.2014 21:02, akor...@smartsoftwareinc.com wrote:
> I did find a trac-hacks plugin that was doing something similar to what
> I wanted, which lead me to the IRequestFilter interface that seems to
> work for my purposes (although it's a bit hackish).

Yeah, the name of the site is there for some reason. :-)

> My next step is submitting a search request to an LDAP server to
> determine the group my user is in. I've installed the python-ldap
> library on my machine and confirmed that scripts on my machine can use
> the library, but when I add "import ldap" to my plugin it immediately
> fails to load with an ImportError: No module named ldap. I'm guessing
> this is an issue with getting the python-ldap library into the scope of
> my trac virtual environment but I'm lost beyond that. Has anyone seen
> this issue before?

I guess you installed python-ldap after creating that virtual env? There
are some ways to make globally installed libraries known to a virtual
env too, and you should really find hints about it on the net easily.
Anyway, other than making all libs (exiting at time of virtual env
creation time) known to a new virtual env, there is a method I use [1]
to do this later on and selectively.

Steffen Hoffmann


[1]
http://codersbuffet.blogspot.com/2009/09/mercurial-subversion-and-virtualenv.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlRANmQACgkQ31DJeiZFuHfo7ACZAYDp7I5uBoJNcNKUxeZ+bXG8
jS4AoNyG9Rivm6xrvT3cw+Tre8+Mj3DJ
=Eu79
-----END PGP SIGNATURE-----

-- 
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 http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to