From: gfawcett Date: Fri, 17 Dec 2010 04:05:43 +0000 (+0000) Subject: move debugging code to __main__. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3bbbe632b9d8fd5705d56eb8f2aa067041ef97ce;p=Syrup.git move debugging code to __main__. git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@1110 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- diff --git a/conifer/libsystems/ezproxy.py b/conifer/libsystems/ezproxy.py index 9729b55..833f07a 100644 --- a/conifer/libsystems/ezproxy.py +++ b/conifer/libsystems/ezproxy.py @@ -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/')