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"))
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"))
def onSyncWebDAVEventUpdateUI (self, event): accountOK = Sharing.isWebDAVSetUp(self.itsView) haveActiveShares = Sharing.checkForActiveShares(self.itsView) event.arguments ['Enable'] = accountOK and haveActiveShares
def onSyncWebDAVEventUpdateUI(self, event): accountOK = Sharing.isWebDAVSetUp(self.itsView) haveActiveShares = Sharing.checkForActiveShares(self.itsView) event.arguments["Enable"] = accountOK and haveActiveShares