Author: jmorliaguet
Date: Sat Oct 22 18:11:32 2005
New Revision: 28543

Modified:
   z3lab/cpsskins/branches/jmo-perspectives/browser/authoring/__init__.py
   z3lab/cpsskins/branches/jmo-perspectives/browser/manager/__init__.py
   z3lab/cpsskins/branches/jmo-perspectives/elements/__init__.py
   z3lab/cpsskins/branches/jmo-perspectives/elements/interfaces.py
Log:

- removed Element.edit()



Modified: z3lab/cpsskins/branches/jmo-perspectives/browser/authoring/__init__.py
==============================================================================
--- z3lab/cpsskins/branches/jmo-perspectives/browser/authoring/__init__.py      
(original)
+++ z3lab/cpsskins/branches/jmo-perspectives/browser/authoring/__init__.py      
Sat Oct 22 18:11:32 2005
@@ -203,7 +203,7 @@
         """Edit the element: assign a value to an attribute (name).
         """
         element = self._getElementById(id)
-        element.edit(name, value)
+        element.name = value
 
     def copyElement(self, id):
         """Copy an element to the clipboard.

Modified: z3lab/cpsskins/branches/jmo-perspectives/browser/manager/__init__.py
==============================================================================
--- z3lab/cpsskins/branches/jmo-perspectives/browser/manager/__init__.py        
(original)
+++ z3lab/cpsskins/branches/jmo-perspectives/browser/manager/__init__.py        
Sat Oct 22 18:11:32 2005
@@ -65,7 +65,7 @@
         chooser = INameChooser(container)
         theme = Theme()
         name = chooser.chooseName('', theme)
-        theme.edit('title', name.replace('-', ' '))
+        theme.title = name.replace('-', ' ')
         container[name] = theme
 
         # Add a page
@@ -88,7 +88,7 @@
         def set_width(element, width):
             IFormattable(
                 IDisplayable(element).getDisplay()
-            ).getFormat('layout').edit('width', width)
+            ).getFormat('layout')['width'] = width
 
         set_width(theme['page']['top'], '100%')
         set_width(theme['page']['main'], '100%')

Modified: z3lab/cpsskins/branches/jmo-perspectives/elements/__init__.py
==============================================================================
--- z3lab/cpsskins/branches/jmo-perspectives/elements/__init__.py       
(original)
+++ z3lab/cpsskins/branches/jmo-perspectives/elements/__init__.py       Sat Oct 
22 18:11:32 2005
@@ -40,12 +40,6 @@
         id = getattr(self, 'identifier', '')
         return str(id)
 
-    def edit(self, k, v):
-        if hasattr(self, k):
-           setattr(self, k, v)
-        elif self.has_key(k):
-           self[k] = v
-
     def name(self):
         return zapi.name(self)
 

Modified: z3lab/cpsskins/branches/jmo-perspectives/elements/interfaces.py
==============================================================================
--- z3lab/cpsskins/branches/jmo-perspectives/elements/interfaces.py     
(original)
+++ z3lab/cpsskins/branches/jmo-perspectives/elements/interfaces.py     Sat Oct 
22 18:11:32 2005
@@ -44,8 +44,6 @@
         """ """
 
     # this will go away
-    def edit(k, v):
-        """ """
 
     def getContentType():
         """ """
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to