コード例 #1
0
ファイル: Control.py プロジェクト: Gonlo2/PyUpManager
    def addAccount( self, host_name, user, password ):
        account_manager = AccountDBManager()

        account = AccountBase( host_name )
        account.user = user
        account.password = password

        db_account = account_manager.add( account )

        return db_account != None
コード例 #2
0
 def __init__(self):
     AccountBase.__init__(self, "GoogleDrive")
コード例 #3
0
ファイル: MegaAccount.py プロジェクト: Gonlo2/PyUpManager
 def __init__(self):
     AccountBase.__init__(self, "Mega")
コード例 #4
0
    def _make_no_db_instance( self, doc ):
        no_db_account = AccountBase( doc[ 'account_host' ] )
        no_db_account.user = doc[ 'user' ]
        no_db_account.password = doc[ 'password' ]

        return no_db_account