ADComputer fails: assert container_object.__class__.__str__ == 'ADContainer' unbound method issue
Asked by
Don Gauthier
As I try to use the ADComputer it fails on the assert line: assert container_
Here is my code:
import win32api
import pythoncom
import pyad
from pyad import adbase, adobject
from pyad import adquery,
import pdb
dn = pyad.adcontaine
if dn.__class_
print dn.__class__
else:
print 'DN String is not ADContainer'
print dn.__class_
Here is my output:
python test_addcomputer.py
DN String is not ADContainer
<unbound method ADContainer.
Can you help me out with this?
Thanks, Don
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- Zakir Durumeric Edit question
- Last query:
- Last reply:
To post a message you must log in.