From: erickson Date: Thu, 6 Mar 2008 14:16:47 +0000 (+0000) Subject: updated to use flesh_attrs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6c360b7b28371f95f869c0b5a1ea292608f978ea;p=Evergreen.git updated to use flesh_attrs git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@8880 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/oilsweb/oilsweb/controllers/acq/picklist.py b/Open-ILS/web/oilsweb/oilsweb/controllers/acq/picklist.py index ce9551e1cc..d07dd2291d 100644 --- a/Open-ILS/web/oilsweb/oilsweb/controllers/acq/picklist.py +++ b/Open-ILS/web/oilsweb/oilsweb/controllers/acq/picklist.py @@ -10,7 +10,6 @@ from oils.event import Event from oils.org import OrgUtil - class PicklistController(BaseController): def view(self, **kwargs): @@ -38,7 +37,7 @@ class PicklistController(BaseController): def view_lineitem(self, **kwargs): r = RequestMgr() pl_manager = oilsweb.lib.acq.picklist.PicklistMgr(r) - lineitem = pl_manager.retrieve_lineitem(kwargs.get('id'), flesh=1, flesh_provider=True) + lineitem = pl_manager.retrieve_lineitem(kwargs.get('id'), flesh_attrs=1, flesh_provider=True) pl_manager.id = lineitem.picklist() picklist = pl_manager.retrieve() r.ctx.acq.picklist.value = pl_manager.picklist diff --git a/Open-ILS/web/oilsweb/oilsweb/lib/acq/picklist.py b/Open-ILS/web/oilsweb/oilsweb/lib/acq/picklist.py index b9c14318fd..851e9a7227 100644 --- a/Open-ILS/web/oilsweb/oilsweb/lib/acq/picklist.py +++ b/Open-ILS/web/oilsweb/oilsweb/lib/acq/picklist.py @@ -55,7 +55,7 @@ class PicklistMgr(object): "offset" : kwargs.get('offset'), "limit" : kwargs.get('limit'), "idlist" : kwargs.get('idlist'), - "flesh" : 1, + "flesh_attrs" : 1, "clear_marc" : 1 } ).recv().content() @@ -98,7 +98,7 @@ class PicklistMgr(object): def retrieve_lineitem(self, lineitem_id, **kwargs): - args = {'flesh': kwargs.get('flesh')} + args = {'flesh_attrs': kwargs.get('flesh_attrs')} lineitem = self.ses.request( 'open-ils.acq.lineitem.retrieve', self.request_mgr.ctx.core.authtoken.value, lineitem_id, args).recv().content()