[Product-Developers] DataGridField

Héctor Velarde hector.velarde at gmail.com
Thu Jul 5 13:20:07 UTC 2012


On 05/07/12 01:46, ajung wrote:
> What is the real usecase for storing empty data rows?

what is the point on answering a question with another question that 
clarifies nothing?

the variable is there, so obviously there is a use case not only for 
Alejandro, but for the authors of the product:

from 
https://github.com/collective/Products.DataGridField/blob/master/Products/DataGridField/DataGridField.py#L162

     # create sortable tuples
     if (not self.allow_empty_rows) and empty:
         logger.debug("Filtered out an empty row")
     else:
         logger.debug("Appending cleaned row:" + str(val))
         cleaned.append((order, val.copy()))

documentation may not be clear on this.

regards

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4939 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20120705/1d8e404c/attachment.p7s>


More information about the Product-Developers mailing list