Changeset 14307 for lang/python
- Timestamp:
- 06/20/08 21:54:05 (5 months ago)
- Files:
-
- 1 modified
-
lang/python/pit/pit.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/python/pit/pit.py
r14293 r14307 13 13 def set(name, opts={}): 14 14 profile = Pit.__load() 15 re t = {}15 result = {} 16 16 if opts.has_key('data'): 17 re t = opts['data']17 result = opts['data'] 18 18 else: 19 19 if not os.environ.has_key('EDITOR'): … … 29 29 print 'No Changes' 30 30 result = yaml.load(result) 31 profile[name] = result 32 yaml.dump(profile, 33 open(Pit.__profile, 'w'), 34 default_flow_style=False) 35 return result 31 32 profile[name] = result 33 yaml.dump(profile, 34 open(Pit.__profile, 'w'), 35 default_flow_style=False) 36 return result 36 37 37 38 @staticmethod … … 41 42 if opts.has_key('require'): 42 43 for k, v in opts['require'].iteritems(): 43 ret[k] = v 44 if not ret.has_key(k): 45 ret[k] = v 44 46 ret = Pit.set(name,{'config' : ret}) 45 47 return ret or {'username' : '', 'password' : ''}
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)