[open-ils-commits] r8469 - branches/acq-experiment/Open-ILS/src/python/oils

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jan 22 15:39:16 EST 2008


Author: erickson
Date: 2008-01-22 15:12:47 -0500 (Tue, 22 Jan 2008)
New Revision: 8469

Modified:
   branches/acq-experiment/Open-ILS/src/python/oils/org.py
Log:
more org utility code

Modified: branches/acq-experiment/Open-ILS/src/python/oils/org.py
===================================================================
--- branches/acq-experiment/Open-ILS/src/python/oils/org.py	2008-01-22 20:10:20 UTC (rev 8468)
+++ branches/acq-experiment/Open-ILS/src/python/oils/org.py	2008-01-22 20:12:47 UTC (rev 8469)
@@ -32,6 +32,10 @@
         OrgUtil._flat_org_tree[node.id()] = node
         for child in node.children():
             OrgUtil.flatten_org_tree(child)
+
+    @staticmethod
+    def get_org_unit(org_id):
+        return OrgUtil._flat_org_tree[org_id]
         
 
     @staticmethod



More information about the open-ils-commits mailing list