twisted.python.usage.Options.__init__

Here are the examples of the python api twisted.python.usage.Options.__init__ taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

47 Examples 7

Example 1

Project: nodeset.core
Source File: twistedapi.py
View license
    def __init__(self, *a, **kw):
        self['debug'] = False
        usage.Options.__init__(self, *a, **kw)
        
        # set some twisted option to default values
        self['no_save'] = True

Example 2

View license
    def __init__(self):
        usage.Options.__init__(self)
        self._includes = []
        self._excludes = []
        self['includes'] = None
        self['excludes'] = None

Example 3

View license
    def __init__(self):
        usage.Options.__init__(self)
        self._includes = []
        self._excludes = []
        self['includes'] = None
        self['excludes'] = None

Example 4

Project: SubliminalCollaborator
Source File: tap.py
View license
    def __init__(self, *a, **kw):
        usage.Options.__init__(self, *a, **kw)

        # call the default addCheckers (for backwards compatibility) that will
        # be used if no --auth option is provided - note that conch's
        # UNIXPasswordDatabase is used, instead of twisted.plugins.cred_unix's
        # checker
        super(Options, self).addChecker(conch_checkers.UNIXPasswordDatabase())
        super(Options, self).addChecker(conch_checkers.SSHPublicKeyDatabase())
        if pamauth is not None:
            super(Options, self).addChecker(
                checkers.PluggableAuthenticationModulesChecker())

Example 5

Project: SubliminalCollaborator
Source File: tap.py
View license
    def __init__(self, *a, **kw):
        usage.Options.__init__(self, *a, **kw)

        # call the default addCheckers (for backwards compatibility) that will
        # be used if no --auth option is provided - note that conch's
        # UNIXPasswordDatabase is used, instead of twisted.plugins.cred_unix's
        # checker
        super(Options, self).addChecker(conch_checkers.UNIXPasswordDatabase())
        super(Options, self).addChecker(conch_checkers.SSHPublicKeyDatabase())
        if pamauth is not None:
            super(Options, self).addChecker(
                checkers.PluggableAuthenticationModulesChecker())

Example 6

Project: SubliminalCollaborator
Source File: tap.py
View license
    def __init__(self):
        usage.Options.__init__(self)
        self.service = mail.MailService()
        self.last_domain = None
        for service in self._protoDefaults:
            self[service] = []

Example 7

Project: SubliminalCollaborator
Source File: tap.py
View license
    def __init__(self):
        usage.Options.__init__(self)
        self.service = mail.MailService()
        self.last_domain = None
        for service in self._protoDefaults:
            self[service] = []

Example 8

Project: SubliminalCollaborator
Source File: tap.py
View license
    def __init__(self):
        usage.Options.__init__(self)
        self['verbose'] = 0
        self.bindfiles = []
        self.zonefiles = []
        self.secondaries = []

Example 9

Project: SubliminalCollaborator
Source File: tap.py
View license
    def __init__(self):
        usage.Options.__init__(self)
        self['verbose'] = 0
        self.bindfiles = []
        self.zonefiles = []
        self.secondaries = []

Example 10

Project: vumi
Source File: vumi_redis_tools.py
View license
    def __init__(self):
        usage.Options.__init__(self)
        self['tasks'] = []

Example 11

Project: wokkel
Source File: componentservertap.py
View license
    def __init__(self):
        usage.Options.__init__(self)
        self['domains'] = set()

Example 12

Project: vertex
Source File: q2qclient.py
View license
    def __init__(self, *a, **k):
        Options.__init__(self,*a,**k)
        self.pushers = []

Example 13

Project: punjab
Source File: punjab_plugin.py
View license
    def __init__(self):
        usage.Options.__init__(self)
        self['strports'] = []

Example 14

Project: UPnP-Inspector
Source File: upnp-inspector.py
View license
    def __init__(self):
        usage.Options.__init__(self)
        self['options'] = {}

Example 15

Project: mythbox
Source File: app.py
View license
    def __init__(self, *a, **kw):
        self['debug'] = False
        usage.Options.__init__(self, *a, **kw)

Example 16

Project: mythbox
Source File: app.py
View license
    def __init__(self, *a, **kw):
        self['debug'] = False
        usage.Options.__init__(self, *a, **kw)

Example 17

Project: mythbox
Source File: options.py
View license
    def __init__(self, *args, **kw):
        usage.Options.__init__(self, *args, **kw)
        self.identitys = [] 
        self.conns = None

Example 18

Project: mythbox
Source File: manhole_tap.py
View license
    def __init__(self):
        usage.Options.__init__(self)
        self.users = []
        self['namespace'] = None

Example 19

Project: mythbox
Source File: options.py
View license
    def __init__(self, *args, **kw):
        usage.Options.__init__(self, *args, **kw)
        self.identitys = [] 
        self.conns = None

Example 20

Project: mythbox
Source File: manhole_tap.py
View license
    def __init__(self):
        usage.Options.__init__(self)
        self.users = []
        self['namespace'] = None

Example 21

Project: mythbox
Source File: trial.py
View license
    def __init__(self):
        self['tests'] = set()
        usage.Options.__init__(self)

Example 22

Project: mythbox
Source File: trial.py
View license
    def __init__(self):
        self['tests'] = set()
        usage.Options.__init__(self)

Example 23

Project: ccs-calendarserver
Source File: benchmark.py
View license
    def __init__(self):
        Options.__init__(self)
        self['parameters'] = {}

Example 24

Project: ccs-calendarserver
Source File: benchmark.py
View license
    def __init__(self):
        Options.__init__(self)
        self['parameters'] = {}

Example 25

Project: carml
Source File: temphs.py
View license
    def __init__(self):
        usage.Options.__init__(self)
        self['ports'] = []

Example 26

Project: carml
Source File: temphs.py
View license
    def __init__(self):
        usage.Options.__init__(self)
        self['ports'] = []

Example 27

Project: txtorcon
Source File: circuit_failure_rates.py
View license
    def __init__(self):
        usage.Options.__init__(self)
        self['guards'] = []
        self.docs['guard'] = 'Specify the name, built and failed rates ' \
            'like "SomeTorNode,10,42". Can be specified multiple times.'

Example 28

Project: txtorcon
Source File: circuit_failure_rates.py
View license
    def __init__(self):
        usage.Options.__init__(self)
        self['guards'] = []
        self.docs['guard'] = 'Specify the name, built and failed rates ' \
            'like "SomeTorNode,10,42". Can be specified multiple times.'

Example 29

Project: SubliminalCollaborator
Source File: app.py
View license
    def __init__(self, *a, **kw):
        self['debug'] = False
        usage.Options.__init__(self, *a, **kw)

Example 30

Project: SubliminalCollaborator
Source File: app.py
View license
    def __init__(self, *a, **kw):
        self['debug'] = False
        usage.Options.__init__(self, *a, **kw)

Example 31

Project: SubliminalCollaborator
Source File: options.py
View license
    def __init__(self, *args, **kw):
        usage.Options.__init__(self, *args, **kw)
        self.identitys = []
        self.conns = None

Example 32

Project: SubliminalCollaborator
Source File: options.py
View license
    def __init__(self, *args, **kw):
        usage.Options.__init__(self, *args, **kw)
        self.identitys = []
        self.conns = None

Example 33

View license
    def __init__(self):
        usage.Options.__init__(self)
        self['namespace'] = None

Example 34

View license
    def __init__(self):
        usage.Options.__init__(self)
        self['namespace'] = None

Example 35

Project: SubliminalCollaborator
Source File: lore.py
View license
    def __init__(self, *args, **kw):
        usage.Options.__init__(self, *args, **kw)
        self.config = {}

Example 36

Project: SubliminalCollaborator
Source File: lore.py
View license
    def __init__(self, *args, **kw):
        usage.Options.__init__(self, *args, **kw)
        self.config = {}

Example 37

Project: SubliminalCollaborator
Source File: tap.py
View license
    def __init__(self):
        usage.Options.__init__(self)
        self.groups = []
        self.servers = []
        self.subscriptions = []

Example 38

Project: SubliminalCollaborator
Source File: tap.py
View license
    def __init__(self):
        usage.Options.__init__(self)
        self.groups = []
        self.servers = []
        self.subscriptions = []

Example 39

Project: SubliminalCollaborator
Source File: trial.py
View license
    def __init__(self):
        self['tests'] = set()
        usage.Options.__init__(self)

Example 40

Project: SubliminalCollaborator
Source File: ftp.py
View license
    def __init__(self, *a, **kw):
        usage.Options.__init__(self, *a, **kw)
        self.addChecker(checkers.AllowAnonymousAccess())

Example 41

Project: SubliminalCollaborator
Source File: trial.py
View license
    def __init__(self):
        self['tests'] = set()
        usage.Options.__init__(self)

Example 42

Project: SubliminalCollaborator
Source File: ftp.py
View license
    def __init__(self, *a, **kw):
        usage.Options.__init__(self, *a, **kw)
        self.addChecker(checkers.AllowAnonymousAccess())

Example 43

Project: SubliminalCollaborator
Source File: tap.py
View license
    def __init__(self):
        usage.Options.__init__(self)
        self['indexes'] = []
        self['root'] = None

Example 44

Project: SubliminalCollaborator
Source File: tap.py
View license
    def __init__(self):
        usage.Options.__init__(self)
        self['indexes'] = []
        self['root'] = None

Example 45

Project: SubliminalCollaborator
Source File: tap.py
View license
    def __init__(self, *a, **kw):
        usage.Options.__init__(self, *a, **kw)
        self['groups'] = []

Example 46

Project: SubliminalCollaborator
Source File: tap.py
View license
    def __init__(self, *a, **kw):
        usage.Options.__init__(self, *a, **kw)
        self['groups'] = []

Example 47

Project: droned
Source File: droned-daemon.py
View license
    def __init__(self):
        self.running = False
        self.parentPid = os.getpid()
        Options.__init__(self)
        self.parseOptions() # Automatically parse command line