Author: jmorliaguet Date: Wed Mar 22 16:43:38 2006 New Revision: 2691 Modified: cpsskins/branches/jmo-perspectives/ui/standard/formats/style.py Log:
- more test fixes Modified: cpsskins/branches/jmo-perspectives/ui/standard/formats/style.py ============================================================================== --- cpsskins/branches/jmo-perspectives/ui/standard/formats/style.py (original) +++ cpsskins/branches/jmo-perspectives/ui/standard/formats/style.py Wed Mar 22 16:43:38 2006 @@ -124,7 +124,10 @@ if not isinstance(v, dict): raise TypeError, \ """Only dictionaries can be stored in the style objects.""" - self.data[self._wrap(k)] = v + if v: + self.data[self._wrap(k)] = v + elif k in self: + del self[k] def __delitem__(self, k): del self.data[self._wrap(k)] -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins