Example #1
0
 def __init__(self, allTables,   dicUser):
     Thread.__init__(self)
     constants.__init__(self)
     dumps.__init__(self)
     
     self.dicUser = dicUser
     self.imap_server = dicUser['Email']['ImapHost']
     self.imap_port = dicUser['Email']['ImapPort']
     # imap username (if blank, you will be prompted at startup)
     self.imap_user = dicUser['Email']['ImapLoginUser']
     
     # imap password (if blank, you will be prompted at startup)
     self.imap_password = dicUser['Email']['ImapPassword']
     
     #seconds to sleep between each check
     self.sleep_time = 60
     
     # if 1 use SSL, otherwise don't
     self.use_ssl=dicUser['Email']['ImapSSL']
     self.use_crypt=dicUser['Email']['ImapCrypt']
     # number of seconds to display message
     self.display_timeout=5
     
     # if 1, print some debug info; otherwise don't
     self.debug=0
     self.rpc = cuon.XMLRPC.xmlrpc.myXmlRpc()
     # font to display message in 
     self.display_font='-adobe-helvetica-*-*-normal-*-34-*-*-*-*-*-*-*'
     
     # color of message
     self.isplay_color='black'
     
     self.singleDMS = cuon.DMS.SingleDMS.SingleDMS(allTables)
     self.documentTools = cuon.DMS.documentTools.documentTools()
     self.misc = cuon.Misc.misc.misc()
Example #2
0
    def __init__(self, servermod=False):
        # gladeXml.__init__(self)
        constants.__init__(self)
        rawWindow.__init__(self, servermod)

        self.Find = False
        self.lastTab = -1
        self.servermod = servermod
        MyXML.__init__(self)
        messages.__init__(self)
        self.Search = False
        self.cursor = None
        # xmlrpc.__init__(self)
        self.FirstInit = True
        self.ModulNumber = 1

        self.AutoInsert = False

        self.OrderStatus = {}
        self.OrderStatus["ProposalStart"] = 300
        self.OrderStatus["ProposalEnd"] = 399

        self.doEdit = -1
        self.noEdit = -1

        self.oldTab = -1

        self.sWhereStandard = ""
        self.sWhereSearch = None
        self.sepInfo = {}

        self.checkClient()

        self.testV = "Hallo"

        self.rpc = cuon.XMLRPC.xmlrpc.myXmlRpc()
        # x = self.rpc.callRP('src.XML.py_readDocument','cuon_addresses')
        self.DataEntries = {}
        self.tabOption = 0
        #        self.setLogLevel(0)
        self.actualEntries = None

        self.editAction = "closeMenuItemsForEdit"
        self.editEntries = False
        self.dicKeys = {}
        self.dicKeys["CTRL"] = gtk.gdk.CONTROL_MASK
        self.dicKeys["SHIFT"] = gtk.gdk.SHIFT_MASK
        self.dicKeys["ALT"] = gtk.gdk.MOD1_MASK
        self.dicKeys["NONE"] = 0

        # as an example, make ctrl+e focus the widget "entry":
        # entry.add_accelerator("grab_focus", accel_group, 'e',
        # gtk.GDK.CONTROL_MASK, 0)

        self.NameOfTree = "tree1"
        self.sb_id = None
Example #3
0
 def __init__(self, userjid, password):
    
     
     
     constants.__init__(self)
    
     self.filename = 'dic_jabberusers'
     self.me = jid.JID(userjid)
     self.juser = userjid
     self.factory = client.basicClientFactory(self.me, password)
     #self.Server = xmlrpclib.ServerProxy(self.XMLRPC_PROTO + '://' + self.XMLRPC_HOST + ':' + `self.XMLRPC_PORT`)
     self.theXmlstream = None
     self.dicUsers = {}
     self.factory.addBootstrap('//event/stream/authd',self.authd)