ccpn.framework.update package

Submodules

ccpn.framework.update.UpdateAgent module

Module Documentation here

class ccpn.framework.update.UpdateAgent.UpdateAgent[source]

Bases: object

addFiles(filePaths)[source]
checkNumberUpdates()[source]
commitChosen()[source]

Copy chosen local files to server.

commitUpdateDb(serverPassword, updateFiles)[source]
diffUpdates(updateFiles=None, write=<built-in method write of _io.TextIOWrapper object>)[source]
fetchUpdateDb()[source]

Fetch list of updates from server. Specificallly for updateAdmin

haveWriteAccess()[source]

See if can write files to local installation.

installChosen()[source]

Download chosen server files to local installation.

installUpdates()[source]
isUpdateDifferent(filePath, fileHashCode)[source]

See if local file is different from server file.

resetFromServer()[source]
class ccpn.framework.update.UpdateAgent.UpdateFile(installLocation, serverDbRoot, filePath, fileServerTime=None, fileStoredAs=None, fileHashCode=None, shouldInstall=True, shouldCommit=False, isNew=False, serverDownloadScript=None, serverUploadScript=None)[source]

Bases: object

commitDeleteUpdate(serverUser, serverPassword)[source]
commitUpdate(serverUser, serverPassword)[source]
installDeleteUpdate()[source]

Remove file as update action

installUpdate()[source]
ccpn.framework.update.UpdateAgent.calcHashCode(filePath)[source]
ccpn.framework.update.UpdateAgent.downloadFile(serverScript, serverDbRoot, fileName)[source]

Download a file from the server

ccpn.framework.update.UpdateAgent.isBinaryData(data)[source]

Check whether the byte-string is binary

ccpn.framework.update.UpdateAgent.lastModifiedTime(filePath)[source]
ccpn.framework.update.UpdateAgent.uploadData(serverUser, serverPassword, serverScript, fileData, serverDbRoot, fileStoredAs, md5=None)[source]

Upload a file to the server

ccpn.framework.update.UpdateAgent.uploadFile(serverUser, serverPassword, serverScript, fileName, serverDbRoot, fileStoredAs)[source]

Upload a file to the server

ccpn.framework.update.UpdateAgent.uploadFileForDelete(serverUser, serverPassword, serverScript, fileName, serverDbRoot, fileStoredAs)[source]

Upload a file to the server

ccpn.framework.update.UpdatePopup module

Module Documentation Here

class ccpn.framework.update.UpdatePopup.UpdatePopup(parent=None, mainWindow=None, title='Update CCPN code', **kwds)[source]

Bases: ccpn.ui.gui.popups.Dialog.CcpnDialogMainWidget, ccpn.util.Update.UpdateAgent

closeEvent(self, QCloseEvent)[source]
reject()[source]

Dialog-frame close button has been clicked, close if files have been updated or close dialog

resetFromServer()[source]

Get current number of updates from the server