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

def magicicada::dbusiface::DBusInterface::_process_share_info (   self,
  data 
) [private]

Process share data.

Definition at line 335 of file dbusiface.py.

00335                                        :
        """Process share data."""
        all_items = []
        for d in data:
            logger.debug("    Share data: %r", d)

            # some processing
            dfb = d['free_bytes']
            free_bytes = None if dfb == '' else int(dfb)

            s = ShareData(
                accepted=bool(d['accepted']),
                access_level=d['access_level'],
                free_bytes=free_bytes,
                name=d['name'],
                node_id=d['node_id'],
                other_username=d['other_username'],
                other_visible_name=d['other_visible_name'],
                path=d['path'],
                volume_id=d['volume_id'],
            )
            all_items.append(s)
        return all_items

    @retryable
    def get_shares_to_me(self):


Generated by  Doxygen 1.6.0   Back to index