Commits

Anonymous committed f208b63

Uumpf! Used global instead of self

Comments (0)

Files changed (1)

Demo/paged_search_ext_s.py

     req_ctrl = SimplePagedResultsControl(True,size=self.page_size,cookie='')
 
     # Send first search request
-    msgid = l.search_ext(
+    msgid = self.search_ext(
       base,
       ldap.SCOPE_SUBTREE,
       search_flt,
     all_results = []
     
     while True:
-      rtype, rdata, rmsgid, rctrls = l.result3(msgid)
+      rtype, rdata, rmsgid, rctrls = self.result3(msgid)
       all_results.extend(rdata)
       result_pages += 1
       # Extract the simple paged results response control
         if pctrls[0].cookie:
             # Copy cookie from response control to request control
             req_ctrl.cookie = pctrls[0].cookie
-            msgid = l.search_ext(
+            msgid = self.search_ext(
               base,
               ldap.SCOPE_SUBTREE,
               search_flt,