[open-ils-commits] r8410 - branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/lib/acq

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 17 16:57:14 EST 2008


Author: erickson
Date: 2008-01-17 16:31:31 -0500 (Thu, 17 Jan 2008)
New Revision: 8410

Modified:
   branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/lib/acq/picklist.py
Log:
added provider fleshing

Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/lib/acq/picklist.py
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/lib/acq/picklist.py	2008-01-17 21:30:56 UTC (rev 8409)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/lib/acq/picklist.py	2008-01-17 21:31:31 UTC (rev 8410)
@@ -31,6 +31,15 @@
             }
         ).recv().content()
 
+        if kwargs.get('flesh_provider'):
+            for entry in entries:
+                if entry.provider():
+                    provider = self.ses.request(
+                        'open-ils.acq.provider.retrieve', 
+                        self.request_mgr.ctx.core.authtoken, 
+                        entry.provider()).recv().content()
+                    entry.provider(provider)
+
         self.picklist.entries(entries)
 
     def retrieve_entry(self, entry_id):



More information about the open-ils-commits mailing list