[Checkins] SVN: z3ext.skintool/trunk/ Check is skin exists, if not use z3ext as default

Nikolay Kim fafhrd91 at gmail.com
Tue May 12 04:09:24 EDT 2009


Log message for revision 99861:
  Check is skin exists, if not use z3ext as default

Changed:
  U   z3ext.skintool/trunk/CHANGES.txt
  U   z3ext.skintool/trunk/src/z3ext/skintool/tool.py

-=-
Modified: z3ext.skintool/trunk/CHANGES.txt
===================================================================
--- z3ext.skintool/trunk/CHANGES.txt	2009-05-12 07:13:34 UTC (rev 99860)
+++ z3ext.skintool/trunk/CHANGES.txt	2009-05-12 08:09:23 UTC (rev 99861)
@@ -5,6 +5,8 @@
 1.1.3 (2009-04-??)
 ------------------
 
+- Check is skin exists, if not use z3ext as default
+
 - Do not use z3c.autoinclude
 
 

Modified: z3ext.skintool/trunk/src/z3ext/skintool/tool.py
===================================================================
--- z3ext.skintool/trunk/src/z3ext/skintool/tool.py	2009-05-12 07:13:34 UTC (rev 99860)
+++ z3ext.skintool/trunk/src/z3ext/skintool/tool.py	2009-05-12 08:09:23 UTC (rev 99861)
@@ -33,7 +33,9 @@
 layers_byname = {}
 layers_registry = {}
 
+default_skin = 'z3ext'
 
+
 class SkinTool(object):
     interface.implements(ISkinTool)
 
@@ -53,6 +55,9 @@
         # second add skin
         if self.skin:
             skin = skins_byname.get(self.skin)
+            if not skin:
+                skin = skins_byname.get(default_skin)
+
             if skin:
                 bases.append(skin)
                 info = skins_registry.get(skin)



More information about the Checkins mailing list