[CMF-checkins] CVS: CMF/CMFSetup - skins.py:1.8.2.3
Jens Vagelpohl
jens at dataflake.org
Tue Mar 22 14:24:20 EST 2005
Update of /cvs-repository/CMF/CMFSetup
In directory cvs.zope.org:/tmp/cvs-serv16924/CMFSetup
Modified Files:
Tag: CMF-1_5-branch
skins.py
Log Message:
- CMFSetup: When importing skins configurations you can now specify a
layer to be inserted after a given layer. Previously you could only
insert before a given layer.
=== CMF/CMFSetup/skins.py 1.8.2.2 => 1.8.2.3 ===
--- CMF/CMFSetup/skins.py:1.8.2.2 Fri Mar 11 07:22:38 2005
+++ CMF/CMFSetup/skins.py Tue Mar 22 14:23:49 2005
@@ -142,6 +142,13 @@
continue
except ValueError:
pass
+ if 'insert-after' in layer:
+ try:
+ index = path.index(layer['insert-after'])
+ path.insert(index+1, layer['name'])
+ continue
+ except ValueError:
+ pass
path.append(layer['name'])
return str( ','.join(path) )
@@ -266,6 +273,7 @@
'layer': {KEY: 'layers', DEFAULT: ()} },
'layer':
{ 'name': {},
+ 'insert-after' : {},
'insert-before': {} } }
InitializeClass(SkinsToolConfigurator)
More information about the CMF-checkins
mailing list