Author: jmorliaguet
Date: Sun May 21 23:02:39 2006
New Revision: 3191

Modified:
   cpsskins/branches/paris-sprint-2006/standard/filters/style/css.py
   cpsskins/branches/paris-sprint-2006/standard/filters/style/views.py
   cpsskins/branches/paris-sprint-2006/ui/panels/settings.pt

Log:

- enable CSS background-images



Modified: cpsskins/branches/paris-sprint-2006/standard/filters/style/css.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/standard/filters/style/css.py   
(original)
+++ cpsskins/branches/paris-sprint-2006/standard/filters/style/css.py   Sun May 
21 23:02:39 2006
@@ -101,7 +101,7 @@
                     if isWebColor(r):
                         q = str(r)
                     elif isWebImage(r):
-                        q = '++image++%s' % q.split('@')[-1]
+                        q = 'url(++image++%s)' % q.split('@')[-1]
                 if not q:
                     continue
                 props.append('%s:%s' % (p, q))

Modified: cpsskins/branches/paris-sprint-2006/standard/filters/style/views.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/standard/filters/style/views.py 
(original)
+++ cpsskins/branches/paris-sprint-2006/standard/filters/style/views.py Sun May 
21 23:02:39 2006
@@ -132,8 +132,8 @@
         return self.getStyleData()
 
     def getFieldNames(self):
-        return (u'font', u'color', u'background-color', u'padding', u'margin',
-                u'border', u'text-transform')
+        return (u'font', u'color', u'background-color', 'background-image',
+                u'padding', u'margin', u'border', u'text-transform')
 
     def getStyleData(self):
         data = self.data

Modified: cpsskins/branches/paris-sprint-2006/ui/panels/settings.pt
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ui/panels/settings.pt   (original)
+++ cpsskins/branches/paris-sprint-2006/ui/panels/settings.pt   Sun May 21 
23:02:39 2006
@@ -13,7 +13,7 @@
     <td class="section">
       <div class="sections">
         <ul class="items">
-          <li tal:repeat="section python: ['perspective', 'widget', 'style', 
'color']">
+          <li tal:repeat="section python: ['perspective', 'widget', 'style', 
'color', 'image']">
             <a tal:attributes="href 
string:javascript:CPSSkins.getModelById('settings-section').setData({'form': 
{'section': '$section'}})" tal:content="section">SECTION</a></li>
         </ul>
         <br style="clear:both"/>
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to