pombreda / gcalcli

Automatically exported from code.google.com/p/gcalcli
0 stars 0 forks source link

problems using authenticated proxy with bash #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. andrea@penguin:~$ http_proxy=my.proxy.org:8080
2. andrea@penguin:~$ proxy-user=user
bash: proxy-user=user: command not found

Hi , the two required variables (proxy-user and proxy-password) can't be
set in bash , because the - sign is a reserved character .
changing 
        proxy_username = os.environ.get('proxy-username')
        proxy_password = os.environ.get('proxy-password')
to 
        proxy_username = os.environ.get('proxy_username')
        proxy_password = os.environ.get('proxy_password')
in  /usr/lib/python2.5/site-packages/atom/service.py

seems to fix the problem.

Original issue reported on code.google.com by andrea.g...@gmail.com on 9 Jan 2008 at 1:13

GoogleCodeExporter commented 9 years ago
In a later version of the python gdata/atom module proxy_username and 
proxy_password are supported.  It now accepts both '-' and '_'.

Original comment by eda...@insanum.com on 5 Aug 2011 at 5:02