From: Tim K. <svn...@pl...> - 2008-08-12 18:48:36
|
Author: duffyd Date: Tue Aug 12 18:48:33 2008 New Revision: 69787 Modified: Products.PloneFormGen/trunk/Products/PloneFormGen/content/saveDataAdapter.py Log: Adding in a wrapper for the _addDataRow method. Modified: Products.PloneFormGen/trunk/Products/PloneFormGen/content/saveDataAdapter.py ============================================================================== --- Products.PloneFormGen/trunk/Products/PloneFormGen/content/saveDataAdapter.py (original) +++ Products.PloneFormGen/trunk/Products/PloneFormGen/content/saveDataAdapter.py Tue Aug 12 18:48:33 2008 @@ -249,6 +249,13 @@ self._inputItems += 1 + security.declareProtected(ModifyPortalContent, 'addDataRow') + def addDataRow(self, value): + """ a wrapper for the _addDataRow method """ + + self._addDataRow(value) + + def onSuccess(self, fields, REQUEST=None, loopstop=False): """ saves data. |