Package pysql :: Module pysqlupdate
[hide private]
[frames] | no frames]

Module pysqlupdate

source code

This module check for PySQL updates and help user to update PySQL online


Author: Sébastien Renard (sebastien.renard@digitalfox.org)

License: GNU GPL V3

Classes [hide private]
  Version
Pysql Version handling according to release policy Release model : Major.Minor.Fix Major and minor are mandatory, fix is optionnal Release can be "snapshot" (case unsensitive).
Functions [hide private]
 
checkForUpdate(proxy=None, user="", password="")
Check if the current PySQL is the latest one
source code
 
currentVersion()
Returns: current pysql version according to 'version' file
source code
 
update(opener, version)
Update PySQL
source code
Variables [hide private]
  PYSQL_DOWNLOAD = "http://www.digitalfox.org/projets/download/"
  UPDATEDIR = "update"
  PYSQLROOTDIR = "pysql"
Function Details [hide private]

currentVersion()

source code 
Returns:
current pysql version according to 'version' file

update(opener, version)

source code 

Update PySQL

Parameters:
  • opener (urllib2 opener object) - URL handle to download PySQL tarball
  • version (string) - target version for update
Returns:
True if everything is Ok, else False