[GRASS-dev] [GRASS-SVN] r56452 - grass/trunk/scripts/g.extension

Hi,

2013/5/28 <svn_grass@osgeo.org>:

Author: zarch
Date: 2013-05-28 05:07:34 -0700 (Tue, 28 May 2013)
New Revision: 56452

Modified:
   grass/trunk/scripts/g.extension/g.extension.py
Log:
Add proxy support.
@@ -55,6 +55,27 @@
#% answer: $GRASS_ADDON_BASE
#% required: no
#%end
+#%option
+#% key: http_proxy
+#% type: string
+#% key_desc: http proxy
+#% description: Set the http proxy
+#% required: no
+#%end
+#%option
+#% key: https_proxy
+#% type: string
+#% key_desc: https proxy
+#% description: Set the https proxy
+#% required: no
+#%end
+#%option
+#% key: ftp_proxy
+#% type: string
+#% key_desc: ftp proxy
+#% description: Set the ftp proxy
+#% required: no
+#%end

any idea how to minimize number of newly added parameters?

Thanks, Martin

What about using two option:

proxy_url

proxy_type (ftp/http/https)

this would be one option less...

Cheers
Stefan

-----Original Message-----
From: grass-dev-bounces@lists.osgeo.org [mailto:grass-dev-bounces@lists.osgeo.org] On Behalf Of Martin Landa
Sent: 28. mai 2013 14:29
To: Pietro Zambelli
Cc: GRASS developers list
Subject: Re: [GRASS-dev] [GRASS-SVN] r56452 - grass/trunk/scripts/g.extension

Hi,

2013/5/28 <svn_grass@osgeo.org>:

Author: zarch
Date: 2013-05-28 05:07:34 -0700 (Tue, 28 May 2013) New Revision: 56452

Modified:
   grass/trunk/scripts/g.extension/g.extension.py
Log:
Add proxy support.
@@ -55,6 +55,27 @@
#% answer: $GRASS_ADDON_BASE
#% required: no
#%end
+#%option
+#% key: http_proxy
+#% type: string
+#% key_desc: http proxy
+#% description: Set the http proxy
+#% required: no
+#%end
+#%option
+#% key: https_proxy
+#% type: string
+#% key_desc: https proxy
+#% description: Set the https proxy
+#% required: no
+#%end
+#%option
+#% key: ftp_proxy
+#% type: string
+#% key_desc: ftp proxy
+#% description: Set the ftp proxy
+#% required: no
+#%end

any idea how to minimize number of newly added parameters?

Thanks, Martin
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

2013/5/28 Blumentrath, Stefan <Stefan.Blumentrath@nina.no>:

What about using two option:

proxy_url

proxy_type (ftp/http/https)

or one paramater

proxy="http:<value>"

proxy="http:<value>,ftp:<value>"

...

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi Martin,

Sorry I didn't thought that an higher number of parameter were a problem.

On Tue, May 28, 2013 at 1:57 PM, Martin Landa <landa.martin@gmail.com> wrote:

proxy="http:<value>,ftp:<value>"

Personally I like your solution...
Therefore if there are not objections I could implement it tomorrow.

Pietro

Hi,

On Tue, May 28, 2013 at 10:41 PM, Pietro <peter.zamb@gmail.com> wrote:

Hi Martin,

Sorry I didn't thought that an higher number of parameter were a problem.

On Tue, May 28, 2013 at 1:57 PM, Martin Landa <landa.martin@gmail.com> wrote:

proxy="http:<value>,ftp:<value>"

Personally I like your solution...
Therefore if there are not objections I could implement it tomorrow.

I did, but actually I changed the syntax into:

proxy="http=<value>,ftp=<value>"

otherwise it will conflict with the proxy syntax:

http://DOMAIN\\USERNAME:PASSWORD@SERVER:PORT/

Hi,

2013/5/29 Pietro <peter.zamb@gmail.com>:

I did, but actually I changed the syntax into:

proxy="http=<value>,ftp=<value>"

otherwise it will conflict with the proxy syntax:

http://DOMAIN\\USERNAME:PASSWORD@SERVER:PORT/

sure, thanks. Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa