[open-ils-commits] r1110 - servres/trunk/conifer/libsystems (gfawcett)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Dec 16 23:05:45 EST 2010
Author: gfawcett
Date: 2010-12-16 23:05:43 -0500 (Thu, 16 Dec 2010)
New Revision: 1110
Modified:
servres/trunk/conifer/libsystems/ezproxy.py
Log:
move debugging code to __main__.
Modified: servres/trunk/conifer/libsystems/ezproxy.py
===================================================================
--- servres/trunk/conifer/libsystems/ezproxy.py 2010-12-17 04:05:40 UTC (rev 1109)
+++ servres/trunk/conifer/libsystems/ezproxy.py 2010-12-17 04:05:43 UTC (rev 1110)
@@ -39,10 +39,10 @@
return ''.join((prefix, '.', self.host, suffix))
+if __name__ == '__main__':
+ host = 'ezproxy.uwindsor.ca'
+ pwd = 'leddy'
+ s = EZProxyService(host, pwd)
-host = 'ezproxy.uwindsor.ca'
-pwd = 'leddy'
-s = EZProxyService(host, pwd)
-
-print s.proxify('http://jstor.org/')
-print s.proxify('http://jstor.org.ezproxy.uwindsor.ca/')
+ print s.proxify('http://jstor.org/')
+ print s.proxify('http://jstor.org.ezproxy.uwindsor.ca/')
More information about the open-ils-commits
mailing list