From: <tre...@us...> - 2010-06-23 14:22:35
|
Revision: 292 http://spd.svn.sourceforge.net/spd/?rev=292&view=rev Author: treibholz Date: 2010-06-23 14:22:29 +0000 (Wed, 23 Jun 2010) Log Message: ----------- added --local option Modified Paths: -------------- trunk/src/spd-cli trunk/src/spdCore.py Modified: trunk/src/spd-cli =================================================================== --- trunk/src/spd-cli 2010-05-27 16:20:14 UTC (rev 291) +++ trunk/src/spd-cli 2010-06-23 14:22:29 UTC (rev 292) @@ -64,12 +64,18 @@ default=False, help = "print output in wide mode (means as a table)") +parser.add_option( "-l", "--local", + action="store_true", + dest = "localStore", + default=False, + help = "do not operate on the configured RCS, only use the local password container") + (options, args) = parser.parse_args() # }}} -pc = spdCore.PasswordContainer(ConfigFile) +pc = spdCore.PasswordContainer(ConfigFile,options.localStore) interface = spdCLI.cli(ConfigFile) Modified: trunk/src/spdCore.py =================================================================== --- trunk/src/spdCore.py 2010-05-27 16:20:14 UTC (rev 291) +++ trunk/src/spdCore.py 2010-06-23 14:22:29 UTC (rev 292) @@ -50,7 +50,7 @@ debug: if set to true, the database is /tmp/spd_debug.db autoload: if set to False, the data is not loaded automatically""" - def __init__(self,file,debug=False,autoload=True): #{{{ + def __init__(self,file,localStore=False,debug=False,autoload=True): #{{{ if not debug: self.__sql = sqlite3.connect(":memory:") @@ -92,7 +92,10 @@ self.passwordFG = c.get('Colors', 'passwordFG') self.passwordBG = c.get('Colors', 'passwordBG') - self.vcs = c.get('Main','vcs') + if localStore: + self.vcs = 'none' + else: + self.vcs = c.get('Main','vcs') self.users=[] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |