[open-ils-commits] r798 - in servres/branches/2010-02-campus-integration-reorg/conifer: . syrup/views (gfawcett)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Feb 25 21:58:26 EST 2010


Author: gfawcett
Date: 2010-02-25 21:58:24 -0500 (Thu, 25 Feb 2010)
New Revision: 798

Added:
   servres/branches/2010-02-campus-integration-reorg/conifer/here.py
Modified:
   servres/branches/2010-02-campus-integration-reorg/conifer/syrup/views/_common.py
   servres/branches/2010-02-campus-integration-reorg/conifer/syrup/views/general.py
Log:
put HERE definition in its own module.

Added: servres/branches/2010-02-campus-integration-reorg/conifer/here.py
===================================================================
--- servres/branches/2010-02-campus-integration-reorg/conifer/here.py	                        (rev 0)
+++ servres/branches/2010-02-campus-integration-reorg/conifer/here.py	2010-02-26 02:58:24 UTC (rev 798)
@@ -0,0 +1,5 @@
+import os
+
+BASE_DIRECTORY = os.path.abspath(os.path.dirname(__file__))
+
+HERE = lambda s: os.path.join(BASE_DIRECTORY, s)

Modified: servres/branches/2010-02-campus-integration-reorg/conifer/syrup/views/_common.py
===================================================================
--- servres/branches/2010-02-campus-integration-reorg/conifer/syrup/views/_common.py	2010-02-26 01:12:47 UTC (rev 797)
+++ servres/branches/2010-02-campus-integration-reorg/conifer/syrup/views/_common.py	2010-02-26 02:58:24 UTC (rev 798)
@@ -38,6 +38,7 @@
 from conifer.libsystems.z3950.marcxml import marcxml_to_dictionary, marcxml_dictionary_to_dc
 from conifer.syrup.fuzzy_match import rank_pending_items
 from django.core.urlresolvers import reverse
+from conifer.here import HERE
 
 #-----------------------------------------------------------------------------
 # Z39.50 Support

Modified: servres/branches/2010-02-campus-integration-reorg/conifer/syrup/views/general.py
===================================================================
--- servres/branches/2010-02-campus-integration-reorg/conifer/syrup/views/general.py	2010-02-26 01:12:47 UTC (rev 797)
+++ servres/branches/2010-02-campus-integration-reorg/conifer/syrup/views/general.py	2010-02-26 02:58:24 UTC (rev 798)
@@ -6,11 +6,6 @@
 #import libxslt
 import os
 
-
-BASE_DIRECTORY = os.path.abspath(os.path.dirname(__file__))
-HERE = lambda s: os.path.join(BASE_DIRECTORY, s)
-
-
 #-----------------------------------------------------------------------------
 
 def welcome(request):



More information about the open-ils-commits mailing list