[CMF-checkins] CVS: Products/CMFDecor/Extensions - Install.py:1.6

Tres Seaver tseaver@zope.com
Thu, 29 Nov 2001 17:16:48 -0500


Update of /cvs-repository/Products/CMFDecor/Extensions
In directory cvs.zope.org:/tmp/cvs-serv10193/CMFDecor/Extensions

Modified Files:
	Install.py 
Log Message:
 - Insert ZPT skins after 'custom', not before 'content'.

=== Products/CMFDecor/Extensions/Install.py 1.5 => 1.6 ===
         path = skinstool.getSkinPath( skinstool.getDefaultSkin() )
         path = map( string.strip, string.split( path,',' ) )
-        for zptdir in ZPT_SKINS_DIRS:
+        insertion_point = path.index( 'custom' ) + 1
+        for zptdir in ( 'zpt_topic', ) + ZPT_SKINS_DIRS:
             try:
-                path.insert( path.index( 'content' ), zptdir )
+                path.insert( insertion_point, zptdir )
             except ValueError:
                 path.append( zptdir )