~ubuntu-branches/ubuntu/oneiric/ubuntuone-client/oneiric

« back to all changes in this revision

Viewing changes to ubuntuone/syncdaemon/volume_manager.py

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Moya
  • Date: 2010-06-23 23:08:15 UTC
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20100623230815-4m3ugh10u9x9xzw5
Tags: upstream-1.3.2
ImportĀ upstreamĀ versionĀ 1.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
541
541
        # check AQ wait conditions
542
542
        self.m.action_q.check_conditions()
543
543
 
544
 
    def handle_SV_SHARE_CHANGED(self, share_info):
 
544
    def handle_SV_SHARE_CHANGED(self, info):
545
545
        """ handle SV_SHARE_CHANGED event """
546
 
        if str(share_info.share_id) not in self.shares:
 
546
        if str(info.share_id) not in self.shares:
547
547
            self.log.debug("New share notification, share_id: %s",
548
 
                     share_info.share_id)
549
 
            dir_name = self._build_share_path(share_info.share_name,
550
 
                                              share_info.from_visible_name)
 
548
                           info.share_id)
 
549
            dir_name = self._build_share_path(info.share_name,
 
550
                                              info.from_visible_name)
551
551
            path = os.path.join(self.m.shares_dir, dir_name)
552
 
            share = Share.from_notify_holder(share_info, path)
 
552
            share = Share.from_notify_holder(info, path)
553
553
            self.add_share(share)
554
554
        else:
555
 
            self.log.debug('share changed! %s', share_info.share_id)
556
 
            self.share_changed(share_info)
 
555
            self.log.debug('share changed! %s', info.share_id)
 
556
            self.share_changed(info)
557
557
 
558
558
    def handle_SV_SHARE_DELETED(self, share_id):
559
559
        """ handle SV_SHARE_DELETED event """