ccpn.framework.update package

Submodules

ccpn.framework.update.UpdateAgent module

class ccpn.framework.update.UpdateAgent.UpdateAgent(version, showError=None, showInfo=None, askPassword=None, serverUser=None, server='http://www2.ccpn.ac.uk/', serverDbRoot='ccpNmrUpdate', serverDbFile='__UpdateData.db', serverDownloadScript='cgi-bin/update/downloadFile', serverUploadScript='cgi-bin/updateadmin/uploadFile')[source]

Bases: object

addFiles(filePaths)[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.

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

commitUpdate(serverUser, serverPassword)[source]
installUpdate()[source]
ccpn.framework.update.UpdateAgent.calcHashCode(filePath)[source]
ccpn.framework.update.UpdateAgent.downloadFile(serverScript, serverDbRoot, fileName)[source]
ccpn.framework.update.UpdateAgent.lastModifiedTime(filePath)[source]
ccpn.framework.update.UpdateAgent.uploadData(serverUser, serverPassword, serverScript, fileData, serverDbRoot, fileStoredAs)[source]
ccpn.framework.update.UpdateAgent.uploadFile(serverUser, serverPassword, serverScript, fileName, serverDbRoot, fileStoredAs)[source]

ccpn.framework.update.UpdatePopup module

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

Bases: PyQt4.QtGui.QDialog, ccpn.framework.update.UpdateAgent.UpdateAgent

resetFromServer()[source]