move debugging code to __main__.
authorgfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Fri, 17 Dec 2010 04:05:43 +0000 (04:05 +0000)
committergfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Fri, 17 Dec 2010 04:05:43 +0000 (04:05 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@1110 6d9bc8c9-1ec2-4278-b937-99fde70a366f

conifer/libsystems/ezproxy.py

index 9729b55..833f07a 100644 (file)
@@ -39,10 +39,10 @@ class EZProxyService(object):
         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/')