Modify

Ticket #860 (closed task: fixed)

Opened 6 years ago

Last modified 6 years ago

Expose set<attr> methods to work correctly

Reported by: ejhernandez@… Owned by: ejhernandez@…
Milestone: 0.11 Component: base
Severity: minor Keywords:
Cc:

Description

In dhcp module, I have found a problem which it might be solved with a new approach when setting a single attribute on a row in a model may be set.

This is the case on a form:

setDefaultGateway('eth0', default_gateway => { 'ip' => '10.0.0.1' });

As we can see, there is redundant information. We may implement a map when selector is just one element not to pass field name attribute, in the example default_gateway since it is set on the _exposedMethods definition.

Attachments

Change History

comment:1 Changed 6 years ago by ejhernandez@…

  • hours changed from 0 to 1.0
  • Status changed from new to closed
  • Resolution set to fixed
  • totalhours changed from 0.0 to 1.0

(In [8547]) Now you can expose a method which just setting an attribute closes #860 (spent 1)

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.