コード例 #1
0
ファイル: client.py プロジェクト: elmom/pypsyc
    def __init__(self, app):
        Config.__init__(self, app)
        self.uni_file = os.path.join(self.settings_folder, 'me')
        self.clientconfig_file = os.path.join(self.settings_folder, 'pypsyc', 'config') 
        
        #self.uni = self.get_uni()
        import random
        self.uni = 'psyc://beta.ve.symlynX.com/~pypsyctest' + ''.join([random.Random().choice('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789') for i in [0]*10])
        #self.uni = raw_input('uni?: ')
        self.host = get_host(self.uni)
        self.username = get_user(self.uni)

        self.ui = 'wx'
コード例 #2
0
ファイル: server.py プロジェクト: elmom/pypsyc
 def __init__(self, app):
     Config.__init__(self, app)
     self.serverconfig_file = os.path.join(self.settings_folder, 'config')