[cpif] r406 - in trunk: backend frontend-web
svn at argo.es
svn at argo.es
Fri Oct 19 06:55:58 CEST 2007
Author: jcea
Date: Fri Oct 19 06:55:57 2007
New Revision: 406
Log:
Reorganizacion de la zona horaria por defecto del servidor
Modified:
trunk/backend/database.py
trunk/backend/upgrade.py
trunk/frontend-web/globales.py
Modified: trunk/backend/database.py
==============================================================================
--- trunk/backend/database.py (original)
+++ trunk/backend/database.py Fri Oct 19 06:55:57 2007
@@ -1,7 +1,7 @@
# $Id$
-VERSION_DB="2007101901"
+VERSION_DB="2007101902"
import globales
@@ -91,6 +91,7 @@
conf["smtp_use_tls"]=False
conf["smtp_email_sender"]=""
conf["admin_email_address"]=""
+ conf["tz"]="Europe/Madrid"
root["config"]=conf
@monitor
Modified: trunk/backend/upgrade.py
==============================================================================
--- trunk/backend/upgrade.py (original)
+++ trunk/backend/upgrade.py Fri Oct 19 06:55:57 2007
@@ -496,3 +496,20 @@
conn.commit()
+ if root["version del foro"]=="2007101801" :
+ print "Actualizando la base de datos: 2007101801 -> 2007101901"
+ root["version del foro"]="2007101901"
+
+ for usuario in root["usuarios"]["usuarios"].values() :
+ usuario["tz"]=usuario["tz"].zone
+
+ conn.commit()
+
+ if root["version del foro"]=="2007101901" :
+ print "Actualizando la base de datos: 2007101901 -> 2007101902"
+ root["version del foro"]="2007101902"
+
+ root["config"]["tz"]="Europe/Madrid"
+
+ conn.commit()
+
Modified: trunk/frontend-web/globales.py
==============================================================================
--- trunk/frontend-web/globales.py (original)
+++ trunk/frontend-web/globales.py Fri Oct 19 06:55:57 2007
@@ -12,6 +12,3 @@
# Global version of the program
version=None
-# Default TimeZone
-tz="Europe/Madrid"
-
More information about the cpif
mailing list