Il 28/07/2010 14:35, Hans-Peter Locher ha scritto:
> Hi,
> I recently came up with the need for a MultiLine DataGrid Column.
> Are there more people needing such a thing,
> should it go to Products.DataGridField,
> or is it a rare usecase?
>
>
> == Motivation ==
>
> I want to write a custom content type having a datagrid field
> for adding html snippets (for adserver integration) to a Plone instance.
>
> The Editors of the site then can just cut and paste the whole html 
> snippets to the datagrid
> (as that's the way they get them from the ad company)
>
> Having a multiline Column, leading to a textarea in the edit form
> would enable to create a schema for that usecase.
>
>
> == Proposal & Implementation ==
>
> new class MultiLineColumn ( or TextAreaColumn ), with own edit macros
>
> class MultiLineColumn(Column):
> """ Column to input multiple lines of text
> """
>
> def __init__(self, label, default=None, label_msgid=None, 
> visible=True, cols=5, rows=15):
> """ Create a column, regard cols + rows for the <textarea> displayed
> in the edit macro
> """
>
>
> Thanks for any opinions.
> mr_savage

I've implemented it at edit macros level, it is a tal:condition between 
input or textarea. I mean, it can be a flag on the "single line" Column 
type.
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to