[open-ils-commits] r8468 - trunk/Open-ILS/src/python/oils

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jan 22 15:36:49 EST 2008


Author: erickson
Date: 2008-01-22 15:10:20 -0500 (Tue, 22 Jan 2008)
New Revision: 8468

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

Modified: trunk/Open-ILS/src/python/oils/org.py
===================================================================
--- trunk/Open-ILS/src/python/oils/org.py	2008-01-22 20:04:26 UTC (rev 8467)
+++ trunk/Open-ILS/src/python/oils/org.py	2008-01-22 20:10:20 UTC (rev 8468)
@@ -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