Example #1
0
	def connect(self):
		print "---------------------------------------"
		print "Connecting to account: "+self.ac_name
		print "---------------------------------------"
		webnotes.set_as_admin()
		self.conn = webnotes.db.Database(ac_name = self.ac_name)
		self.conn.use(self.db_name or self.db_login)
Example #2
0
def do_transfer(dt_list = [], account_list = [], mod_list = []):
	webnotes.conn = webnotes.db.Database(use_default = 1)
	webnotes.set_as_admin()
	account = AccountManager()
	account.sync_accounts(dt_list = dt_list, account_list = account_list, modules = mod_list)