application version checking against database
Hamilton, William
whamil1 at entergy.com
Fri Sep 7 09:12:09 EDT 2007
> From: imageguy
>
> We are trying to implement a system that checks the version of the
> application against a version number stored in the database. We don't
> want the app and the db don't become out of sync.
>
> We have tried setting a __version__ variable in the top most module,
> however, it seems that this is not accessible for the modules that are
> subsequently imported. There are a several locations in the app where
> we want to do the version check, but we would like to have one place
> to set the version number, namely the top level module.
>
> We have thought of creating a Version class and passing it around, but
> aren't really keen on that idea.
>
> Any suggestions/ideas would be helpful.
>
>
> NOTE: the app is developed in wxPython.
>
You could add a Version module that contains the version number and any
functions related to the version checking, and import that into the
modules that do version checking.
--
-Bill Hamilton
More information about the Python-list
mailing list