[z3-five] Widget for editing Tuple the same way lines works in Zope 2

Morten W. Petersen morten at nidelven-it.no
Fri Nov 17 22:41:34 CET 2006


Hi,

I'm working on the listen product for a customer, and they
need to be able to edit a tuple (all_subscribers property) easily.

The all_subscribers property is currently edited by ticking
checkboxes and filling out text fields.  Is there a widget
that would allow for editing a Tuple property the same
way you edit a lines property in Zope 2?

The current definition for the property / editing view is

    all_subscribers = Tuple(
        title = _(u"All Subscribers"),
        description = _(u"The ids of member subscribers and emails of 
non-member subscribers."),
        required = False,
        value_type = TextLine(title=_(u"User id or email address"),),)

---

    <ploneschema:editform
        for="Products.listen.interfaces.IHaveSubscribers"
        schema="Products.listen.interfaces.ICombinedSubscriptionList"
        fields="all_subscribers"
        name="editAllSubscribers"
        label="Manage Member Subscriptions"
        permission="listen.ManageSubscriptions"
    >
        <widget
            field="all_subscribers"
            class="zope.app.form.browser.sequencewidget.SequenceWidget"
        />
    </ploneschema:editform>

can I use a different widget that enables editing in a lines-like
fashion, or does a new widget have to be developed?

Thanks,

Morten


More information about the z3-five mailing list