[cpif] r415 - trunk/backend

svn at argo.es svn at argo.es
Sat Oct 20 01:21:54 CEST 2007


Author: jcea
Date: Sat Oct 20 01:21:52 2007
New Revision: 415

Log:
Problemas con los smileys en windows

Modified:
   trunk/backend/database.py

Modified: trunk/backend/database.py
==============================================================================
--- trunk/backend/database.py	(original)
+++ trunk/backend/database.py	Sat Oct 20 01:21:52 2007
@@ -234,8 +234,8 @@
     files[i[1]]=None # Eliminate duplicates
 
   for i in files.keys() :
-    i=i.replace("/",os.sep)
-    img=open(os.path.join(directory,i),"rb").read()  # Binary data *must* be read as binary under MS-Windows
+    i2=i.replace("/",os.sep)
+    img=open(os.path.join(directory,i2),"rb").read()  # Binary data *must* be read as binary under MS-Windows
     result,img_metadata=check_image(img)
     if result : raise RuntimeError("ERROR al cargar los iconos:",result)
     files[i]=save_static(conn,"smileys",img,img_metadata,update=False)



More information about the cpif mailing list