Logo Search packages:      
Sourcecode: magicicada version File versions  Download package

def magicicada::dbusiface::DBusInterface::get_folders (   self  ) 

Get the folders info from SDT.

Definition at line 281 of file dbusiface.py.

00281                          :
        """Get the folders info from SDT."""
        def process(data):
            """Enhance data format."""
            logger.info("Processing Folders items (%d)", len(data))
            all_items = []
            for d in data:
                logger.debug("    Folders data: %r", d)
                f = FolderData(node=d['node_id'], path=d['path'],
                               suggested_path=d['suggested_path'],
                               volume=d['volume_id'],
                               subscribed=bool(d['subscribed']))
                all_items.append(f)
            return all_items

        logger.info("Getting folders")
        d = self.sync_daemon_tool.get_folders()
        d.addCallback(process)
        return d

    def start(self):


Generated by  Doxygen 1.6.0   Back to index