Exemplo n.º 1
0
    def __init__(self):
        # Is called on instance creation
        ServiceBase.__init__(self)
        self.connectors = []

        # Default configuration
        self.setOption(
            'smtpserver',
            NoSave(ConfigText(default="smtp.server.com", fixed_size=False)),
            _("SMTP Server"))
        self.setOption('smtpport', NoSave(ConfigNumber(default=587)),
                       _("SMTP Port"))
        self.setOption('smtpssl', NoSave(ConfigYesNo(default=True)),
                       _("SMTP SSL"))
        self.setOption('smtptls', NoSave(ConfigYesNo(default=True)),
                       _("SMTP TLS"))
        self.setOption('timeout', NoSave(ConfigNumber(default=30)),
                       _("Timeout"))

        self.setOption('username',
                       NoSave(ConfigText(default="user", fixed_size=False)),
                       _("User name"))
        self.setOption('password', NoSave(ConfigPassword(default="password")),
                       _("Password"))

        self.setOption(
            'mailfrom',
            NoSave(ConfigText(default="*****@*****.**", fixed_size=False)),
            _("Mail from"))
        self.setOption('mailto', NoSave(ConfigText(fixed_size=False)),
                       _("Mail to or leave empty (From will be used)"))
Exemplo n.º 2
0
	def __init__(self):
		# Is called on instance creation
		ServiceBase.__init__(self)
		#self.sockets = []

		# Default configuration
		self.setOption('growlhost', NoSave(ConfigText(default="host", fixed_size=False)), _("Growl Host name"))
		self.setOption('growlport', NoSave(ConfigNumber(default=23053)), _("Growl Port"))
		self.setOption('timeout', NoSave(ConfigNumber(default=3)), _("Timeout"))
		self.setOption('password', NoSave(ConfigPassword()), _("Password"))
		self.setOption('sticky', NoSave(ConfigYesNo(default=True)), _("Send as sticky"))
		self.setOption('priority', NoSave(ConfigNumber(default=1)), _("Send with priority"))
Exemplo n.º 3
0
	def __init__(self):
		# Is called on instance creation
		ServiceBase.__init__(self)
		#self.sockets = []
		
		# Default configuration
		self.setOption( 'growlhost',  NoSave(ConfigText(default="host", fixed_size = False)),  _("Growl Host name") )
		self.setOption( 'growlport',  NoSave(ConfigNumber(default = 23053)),                   _("Growl Port") )
		self.setOption( 'timeout',    NoSave(ConfigNumber(default = 3)),                       _("Timeout") )
		self.setOption( 'password',   NoSave(ConfigPassword()),                                _("Password") )
		self.setOption( 'sticky',     NoSave(ConfigYesNo(default = True)),                     _("Send as sticky") )
		self.setOption( 'priority',   NoSave(ConfigNumber(default = 1)),                       _("Send with priority") )
Exemplo n.º 4
0
	def __init__(self):
		# Is called on instance creation
		ServiceBase.__init__(self)
		self.connectors = []
		
		# Default configuration
		self.setOption( 'smtpserver', NoSave(ConfigText(default="smtp.server.com", fixed_size = False)),    _("SMTP Server") )
		self.setOption( 'smtpport',   NoSave(ConfigNumber(default = 587)),                                  _("SMTP Port") )
		self.setOption( 'smtpssl',    NoSave(ConfigYesNo(default = True)),                                  _("SMTP SSL") )
		self.setOption( 'smtptls',    NoSave(ConfigYesNo(default = True)),                                  _("SMTP TLS") )
		self.setOption( 'timeout',    NoSave(ConfigNumber(default = 30)),                                   _("Timeout") )
		
		self.setOption( 'username',   NoSave(ConfigText(default="user", fixed_size = False)),               _("User name") )
		self.setOption( 'password',   NoSave(ConfigPassword(default="password")),                           _("Password") )
		
		self.setOption( 'mailfrom',   NoSave(ConfigText(default = "*****@*****.**", fixed_size = False)), _("Mail from") )
		self.setOption( 'mailto',     NoSave(ConfigText(fixed_size = False)),                               _("Mail to or leave empty") )
Exemplo n.º 5
0
 def __init__(self):
     # Is called on instance creation
     ServiceBase.__init__(self)
     # Default configuration
     self.setOption('timeout', NoSave(ConfigNumber(default=30)),
                    _("Timeout"))
Exemplo n.º 6
0
	def __init__(self):
		# Is called on instance creation
		ServiceBase.__init__(self)
		# Default configuration
		self.setOption( 'timeout', NoSave(ConfigNumber(default = 30)), _("Timeout") )