[cpif] r84 - trunk/frontend-web
svn at argo.es
svn at argo.es
Wed May 23 18:16:30 CEST 2007
Author: alvaro
Date: Wed May 23 18:16:30 2007
New Revision: 84
Log:
Cambiados los paths. Ahora se utiliza os.path.join
Modified:
trunk/frontend-web/skins.py
Modified: trunk/frontend-web/skins.py
==============================================================================
--- trunk/frontend-web/skins.py (original)
+++ trunk/frontend-web/skins.py Wed May 23 18:16:30 2007
@@ -22,10 +22,10 @@
for i in os.listdir(sdir):
control = True
for j in skin_files.values():
- if not os.path.exists("%s/%s/%s" % (sdir, i, j)):
+ if not os.path.exists(os.path.join(sdir, i, j)): #FIXME: use join
control = False
if control:
- available_skins[i]=dict([(k,"%s/%s/%s" % (sdir,i,j)) for k,j in skin_files.items()])
+ available_skins[i]=dict([(k,os.path.join(sdir,i,j)) for k,j in skin_files.items()]) # FIXME
if "default" not in available_skins: # FIXME: an~adir un skin de fallback?
raise "Error, no tenemos el skin por defecto!!"
print available_skins.keys()
More information about the cpif
mailing list