示例#1
0
    def onSyncWebDAVEvent (self, event):
        """
          Synchronize WebDAV sharing.
        The "File | Sync | WebDAV" menu item
        """
        # commit repository changes before synch
        # @@@DLD bug 1998 - update comment above and use refresh instead?
        self.RepositoryCommitWithStatus()

        # find all the shared collections and sync them.
        self.setStatusMessage (_("Checking shared collections..."))
        if Sharing.checkForActiveShares(self.itsView):
            self.setStatusMessage (_("Synchronizing shared collections..."))
            Sharing.syncAll(self.itsView)
        else:
            self.setStatusMessage (_("No shared collections found"))
            return
        self.setStatusMessage (_("Shared collections synchronized"))
示例#2
0
    def onSyncWebDAVEvent(self, event):
        """
          Synchronize WebDAV sharing.
        The "File | Sync | WebDAV" menu item
        """
        # commit repository changes before synch
        # @@@DLD bug 1998 - update comment above and use refresh instead?
        self.RepositoryCommitWithStatus()

        # find all the shared collections and sync them.
        self.setStatusMessage(_("Checking shared collections..."))
        if Sharing.checkForActiveShares(self.itsView):
            self.setStatusMessage(_("Synchronizing shared collections..."))
            Sharing.syncAll(self.itsView)
        else:
            self.setStatusMessage(_("No shared collections found"))
            return
        self.setStatusMessage(_("Shared collections synchronized"))
示例#3
0
 def onSyncWebDAVEventUpdateUI (self, event):
     accountOK = Sharing.isWebDAVSetUp(self.itsView)
     haveActiveShares = Sharing.checkForActiveShares(self.itsView)
     event.arguments ['Enable'] = accountOK and haveActiveShares
示例#4
0
 def onSyncWebDAVEventUpdateUI(self, event):
     accountOK = Sharing.isWebDAVSetUp(self.itsView)
     haveActiveShares = Sharing.checkForActiveShares(self.itsView)
     event.arguments["Enable"] = accountOK and haveActiveShares