#642 ✓invalid
Kieran P

DRYML: Removing one field needs all fields specified?

Reported by Kieran P | February 27th, 2010 @ 05:20 AM

The example from the agility tutorial (http://cookbook.hobocentral.net/tutorials/agility#task_reordering), says that to remove the position field, you need to use

<extend tag="form" for="Task">
  <old-form merge>
    <field-list: fields="description, users"/>
  </old-form>
</extend>

However, what if you have 10, 20, or 30 fields? You need to specify each one. IF one gets added, you have to make sure you remember to add it.

I propose a new key to field-list, except_fields

<extend tag="form" for="Task">
  <old-form merge>
    <field-list: except_fields="position"/>
  </old-form>
</extend>

Seems much cleaner and easier to use... thoughts?

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages