Adjust ldap_osrf_sync for generic BC generation
authorDan Scott <dscott@laurentian.ca>
Thu, 10 Jan 2013 22:10:44 +0000 (17:10 -0500)
committerDan Scott <dscott@laurentian.ca>
Tue, 7 May 2013 18:58:24 +0000 (14:58 -0400)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
tools/patron-load/ldap_osrf_sync

index ba8e250..cf3c9b8 100755 (executable)
@@ -497,7 +497,7 @@ def create_evergreen_user(auth, user):
     try:
         barcode = osrf_request(
             'open-ils.actor', 'open-ils.actor.generate_patron_barcode', 
-            auth, usr.id()
+            auth, usr.id(), '000070'
         ).send()
     except Exception, exc:
         print >> sys.stderr, exc
@@ -509,11 +509,12 @@ def create_evergreen_user(auth, user):
             AuthException(evt.text_code), user.usrname)
         return None
  
-    user.barcode = barcode['evergreen.lu_update_barcode']
+    user.barcode = barcode['evergreen.actor_update_barcode']
 
     create_stat_cats(egau, user)
 
     print("Created: %s with barcode %s" % (egau.usrname(), user.barcode))
+    
     return egau.usrname(), user.barcode
 
 def update_ldap_barcode(con, user):