On 15/12/2010 12:58, Benedict Verheyen wrote:
I'm moving my development environment (python, Django, virtualenv) from Windows
to Linux (Debian more specific). However, on one app (uses Django), i have a 
log on
module that uses AD to authenticate users.
It's based on the active_directory wrapper of Tim Golden.
That needs the win32 module but installation of pywin32 fails on importing:

import _winreg
ImportError: No module named _winreg

Kind of logical in hindsight :)

However, this makes programming and testing under Linux a bit of a pain if 
you're
dealing with Windows specific stuff.
What is the correct way to proceed (i want to keep my development environment 
in Linux)?

I could adjust my software modules to use the Linux counterparts of the AD 
functions
that i have to authenticate.
Or is there another way to deal with this?

Well I'm not sure how far something like WINE would take you,
but I suggest that trying to develop Windows-specific code in
a Linux Dev environment is creating a rod for your own back.

For the specific case you mention, you should be able to switch,
lock, stock & barrel to python-ldap or other LDAP modules. But
that means a fairly major rewrite, plus that's only one issue.
None of the Windows-specific stuff will work: registry, win32api
calls, whatever you're pulling out of the pywin32 packages.

TJG
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to