Package buildbot :: Package scripts :: Module base :: Class SubcommandOptions
[frames] | no frames]

Class SubcommandOptions

source code

              object --+        
                       |        
                    dict --+    
                           |    
twisted.python.usage.Options --+
                               |
                              SubcommandOptions
Known Subclasses:

Instance Methods
new empty dictionary

__init__(self, *args)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
dict
loadOptionsFile(self, _here=None)
Find the .buildbot/options file.
source code
 
postOptions(self)
I am called after the options are parsed.
source code

Inherited from twisted.python.usage.Options: __hash__, __str__, getSynopsis, getUsage, opt_help, opt_version, parseArgs, parseOptions

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, __sizeof__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values, viewitems, viewkeys, viewvalues

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Class Variables
  buildbotOptions = None
hash(x)
  requiredOptions = []

Inherited from twisted.python.usage.Options: completionData, defaultSubCommand, parent, subCommand

Properties

Inherited from object: __class__

Method Details

__init__(self, *args)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Returns:
new empty dictionary

Overrides: object.__init__
(inherited documentation)

loadOptionsFile(self, _here=None)

source code 

Find the .buildbot/options file. Crawl from the current directory up towards the root, and also look in ~/.buildbot . The first directory that's owned by the user and has the file we're looking for wins. Windows skips the owned-by-user test.

Returns: dict
a dictionary of names defined in the options file. If no options file was found, return an empty dict.

postOptions(self)

source code 

I am called after the options are parsed.

Override this method in your subclass to do something after the options have been parsed and assigned, like validate that all options are sane.

Overrides: twisted.python.usage.Options.postOptions
(inherited documentation)