Merge lp:~ntoll/fom/instance-pre-populate-search-812246 into lp:fom
Proposed by
Nicholas Tollervey
Status: | Merged |
---|---|
Merge reported by: | Nicholas Tollervey |
Merged at revision: | not available |
Proposed branch: | lp:~ntoll/fom/instance-pre-populate-search-812246 |
Merge into: | lp:fom |
Diff against target: | 0 lines |
To merge this branch: | bzr merge lp:~ntoll/fom/instance-pre-populate-search-812246 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jamu Kakar | Approve | ||
Review via email: mp+68252@code.launchpad.net |
Description of the change
This branch introduces the following changes:
1) When calling the filter() method on subclasses of Object FOM will use the /values API to attempt to pre-populate the attribute values. This ensures that the results are instantiated *with* initial values and no more lazy-getting of attributes is required (thus saving time and calls to Fluidinfo).
2) Changes in the unit tests to reflect this new functionality.
This change was made in light of behaviour observed whilst writing the O'Reilly book.
To post a comment you must log in.
[1]
- '{"ids": ["466"]}')
+ '''{"results"
+ "fluiddb/
+ "fluiddb/
+ "fluiddb/about": {"value": "Object about the user ntoll"}}}}}''')
There are a few bits of code like this. I think they'd be easier to
read if the data was split up a bit and used the json module:
Nice work, +1!