def run(self):
		# setAppionDB
		apProject.setAppiondbBySessionName(self.sessionname)

		import sinedon
		apdbname = sinedon.getConfig('appiondata')['db']
		print 'Change apPath in database %s' % apdbname

		# update
		query = "update %s.`ApPathData` set `path` = '%s' where %s.`ApPathData`.`path` like '%s'" % (apdbname,self.new_path, apdbname,self.old_path)

		print query
		# send the query to the database linked to sinedon module named appiondata
		directq.complexMysqlQuery('appiondata',query)
		print 'Path changed from %s to %s' % (self.old_path, self.new_path)		
    def run(self):
        # setAppionDB
        apProject.setAppiondbBySessionName(self.sessionname)

        import sinedon
        apdbname = sinedon.getConfig('appiondata')['db']
        print 'Change apPath in database %s' % apdbname

        # update
        query = "update %s.`ApPathData` set `path` = '%s' where %s.`ApPathData`.`path` like '%s'" % (
            apdbname, self.new_path, apdbname, self.old_path)

        print query
        # send the query to the database linked to sinedon module named appiondata
        directq.complexMysqlQuery('appiondata', query)
        print 'Path changed from %s to %s' % (self.old_path, self.new_path)
	def __init__(self, sessionname):
		apProject.setAppiondbBySessionName(sessionname)
		self.sessionname = sessionname
		import sinedon
		self.apdbname = sinedon.getConfig('appiondata')['db']
 def __init__(self, sessionname):
     apProject.setAppiondbBySessionName(sessionname)
     self.sessionname = sessionname
     import sinedon
     self.apdbname = sinedon.getConfig('appiondata')['db']