示例#1
0
	def recursive_selected(self,lists):	
		task_list = []
		folder = []
		
		for row in lists:
			filename = row[2]
			path = row[4]
			isdir = row[5]
			if not isdir:
				
				task_list.append(row)
				
			else:
				folder.append((path,filename))

		
		for path,filename in folder:
			npath = os.path.join(path,filename)
			
			list_json = cloudapi.list_path(npath,300,True,self.bdstoken)
			nlists = []
			for row in self.get_pix_list(cloudapi.get_list(list_json )):
				
				nlists.append(row)
			
			task_list += self.recursive_selected(nlists)
		return task_list
示例#2
0
    def recursive_selected(self, lists):
        task_list = []
        folder = []

        for row in lists:
            filename = row[2]
            path = row[4]
            isdir = row[5]
            if not isdir:

                task_list.append(row)

            else:
                folder.append((path, filename))

        for path, filename in folder:
            npath = os.path.join(path, filename)

            list_json = cloudapi.list_path(npath, 300, True, self.bdstoken)
            nlists = []
            for row in self.get_pix_list(cloudapi.get_list(list_json)):

                nlists.append(row)

            task_list += self.recursive_selected(nlists)
        return task_list
示例#3
0
	def populate_view(self,list_json,error=None):
		if list_json:
			self.current_list = []
			file_list = cloudapi.get_list(list_json)
			logger.debug("Size of file_list: %s"%str(len(file_list)))
			pix_list = self.get_pix_list(file_list)
			self.fill_liststore(pix_list)
			#self.loading_spin.stop()
			#self.loading_spin.hide()
			#self.spinn.hide()
			self.spinn.destroy()
示例#4
0
 def populate_view(self, list_json, error=None):
     if list_json:
         self.current_list = []
         file_list = cloudapi.get_list(list_json)
         logger.debug("Size of file_list: %s" % str(len(file_list)))
         pix_list = self.get_pix_list(file_list)
         self.fill_liststore(pix_list)
         #self.loading_spin.stop()
         #self.loading_spin.hide()
         #self.spinn.hide()
         self.spinn.destroy()