demandimport and ldap hook
JamieEchlin
jamie.echlin at credit-suisse.com
Wed Jun 22 04:48:05 CDT 2011
Morning,
First post so please advise if this is better posted to the general forum.
I am trying to write an "in-process" hook that will validate that each
author in a change group is a member of a particular ldap group.
I am using python-ldap. When the hook runs I get the error:
ImportError: No module named pyasn1.type
After some experimentation I found that it works if at the top of my hook
script I use:
from mercurial import demandimport; demandimport.disable()
Are there any negative consequences to doing this, or should this be done a
better way?
Regards, jamie
--
View this message in context: http://mercurial.808500.n3.nabble.com/demandimport-and-ldap-hook-tp3094838p3094838.html
Sent from the Development mailing list archive at Nabble.com.
More information about the Mercurial-devel
mailing list