[cpif] r173 - trunk/backend

svn at argo.es svn at argo.es
Wed Jun 20 22:16:36 CEST 2007


Author: jcea
Date: Wed Jun 20 22:16:35 2007
New Revision: 173

Log:
OpenID de prueba para Alvaro

Modified:
   trunk/backend/database.py
   trunk/backend/upgrade.py

Modified: trunk/backend/database.py
==============================================================================
--- trunk/backend/database.py	(original)
+++ trunk/backend/database.py	Wed Jun 20 22:16:35 2007
@@ -1,7 +1,7 @@
 # $Id$
 
 
-VERSION_DB="2007062001"
+VERSION_DB="2007062002"
 
 from globales import thread_len
 

Modified: trunk/backend/upgrade.py
==============================================================================
--- trunk/backend/upgrade.py	(original)
+++ trunk/backend/upgrade.py	Wed Jun 20 22:16:35 2007
@@ -86,4 +86,12 @@
       root["usuarios"]["usuarios"]["jcea"]["OpenID"].add("http://www.argo.es/~jcea/")
     conn.commit()
 
+  if root["version del foro"]=="2007062001" :
+    print "Actualizando la base de datos: 2007062001 -> 2007062002"
+    root["version del foro"]="2007062002"
+    if "alvaro" in root["usuarios"]["usuarios"] :
+      root["usuarios"]["usuarios"]["alvaro"]["OpenID"].add("http://alvaro.lopez.myopenid.com/")
+    conn.commit()
+
+
 



More information about the cpif mailing list