[open-ils-commits] r843 - in servres/trunk/conifer: . syrup/views (gfawcett)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Mar 24 23:44:47 EDT 2010
Author: gfawcett
Date: 2010-03-24 23:44:44 -0400 (Wed, 24 Mar 2010)
New Revision: 843
Added:
servres/trunk/conifer/here.py
Modified:
servres/trunk/conifer/syrup/views/_common.py
servres/trunk/conifer/syrup/views/general.py
Log:
put HERE definition in its own module.
Added: servres/trunk/conifer/here.py
===================================================================
--- servres/trunk/conifer/here.py (rev 0)
+++ servres/trunk/conifer/here.py 2010-03-25 03:44:44 UTC (rev 843)
@@ -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/trunk/conifer/syrup/views/_common.py
===================================================================
--- servres/trunk/conifer/syrup/views/_common.py 2010-03-23 16:08:10 UTC (rev 842)
+++ servres/trunk/conifer/syrup/views/_common.py 2010-03-25 03:44:44 UTC (rev 843)
@@ -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/trunk/conifer/syrup/views/general.py
===================================================================
--- servres/trunk/conifer/syrup/views/general.py 2010-03-23 16:08:10 UTC (rev 842)
+++ servres/trunk/conifer/syrup/views/general.py 2010-03-25 03:44:44 UTC (rev 843)
@@ -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