From: Mark Huang Date: Wed, 6 Sep 2006 19:17:25 +0000 (+0000) Subject: - add default auth structure X-Git-Tag: pycurl-7_13_1~790 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=3d6262825ccdd5970a15071e50e24f17a2e2c6c3;p=plcapi.git - add default auth structure --- diff --git a/Shell.py b/Shell.py index 232bf287..b76e869e 100755 --- a/Shell.py +++ b/Shell.py @@ -5,7 +5,7 @@ # Mark Huang # Copyright (C) 2005 The Trustees of Princeton University # -# $Id: plcsh,v 1.3 2006/01/09 19:57:24 mlhuang Exp $ +# $Id: Shell.py,v 1.1 2006/09/06 15:33:59 mlhuang Exp $ # import os, sys @@ -41,6 +41,11 @@ for (opt, optval) in opts: api = PLCAPI(config) +auth = {'AuthMethod': "capability", + 'Username': api.config.PLC_API_MAINTENANCE_USER, + 'AuthString': api.config.PLC_API_MAINTENANCE_PASSWORD, + 'Role': "admin"} + class Dummy: """ Dummy class to support tab completion of API methods with dots in