source: WAeUP_SRP/trunk/patches/PatchBasicWidgetsUnprepare.py @ 15730

Last change on this file since 15730 was 3673, checked in by jens, 16 years ago
  • unclutter package by moving all patch files into a dedicated subfolder and importing it.
  • Property svn:keywords set to Id
File size: 333 bytes
Line 
1def unprepare(self, datastructure):
2    # Remove costly things already stored from the datastructure
3    try:
4        del datastructure[self.getWidgetId()]
5    except KeyError:
6        # unprepare may be called several times
7        pass
8from Products.CPSSchemas.BasicWidgets import CPSFileWidget
9CPSFileWidget.unprepare = unprepare
Note: See TracBrowser for help on using the repository browser.