Package qubx :: Module vcheck_client
[hide private]
[frames] | no frames]

Module vcheck_client

source code

Check over network for updates, invoked by qubx.cube.Cube (main window aka QubX) shortly after startup, and daily thereafter.

Copyright 2012-2013 Research Foundation State University of New York This file is part of QUB Express.

QUB Express is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QUB Express is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License, named LICENSE.txt, in the QUB Express program directory. If not, see <http://www.gnu.org/licenses/>.

Classes [hide private]
  vcheck_client_task
Checks for updates in a background thread, prompts the user.
Functions [hide private]
 
get_changes(key='qubx', guid='', m='')
Returns (changelog, version_str, download_url) of updates newer than QUBX_VERSION, as requested from http://qub.mandelics.com/vcheck; returns (None, None, None) on failure.
source code
 
get_tag(xml, tagname)
Returns the substring between desired start and end tags in a really simple xml document.
source code
 
print_task_exc(task, typ, val, tb)
Writes any version-checking exceptions to the console.
source code
 
show_changes(changes, version, url)
Displays the list of updates returned by get_changes in a new window; offers a button to download the latest version.
source code
 
whois(m, elsie) source code
Variables [hide private]
  WHEL = 'Invalid registration. Please subscribe on our web site.'
  __package__ = 'qubx'