Project

General

Profile

Feature #133

Setting attributes through QuerySetMapper

Added by Stephen Burrows almost 13 years ago. Updated almost 13 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Core
Target version:
-
Start date:
05/10/2011
Due date:
% Done:

0%

Estimated time:

Description

It would be great to be able to use a call like obj.attributes['hello'] = "Foo" to create an attribute called "hello" with a json value of "Foo". Should theoretically be possible, and would make attributes a lot easier to use.

Associated revisions

Revision 9cbb247d (diff)
Added by Stephen Burrows almost 13 years ago

Moved efficient QuerySetMappers into philo.utils and replaced them with a more complex/differentiated implementation that allows flexibility in terms of cacheing vs. lazy fetching and tree vs passthrough vs ordinary. Passthrough accepts any number of entities, and all Mappers support setitem. (Resolves issue #133.) Added a set_value method to Attributes.

History

#1

Updated by Stephen Burrows almost 13 years ago

This is resolved on the attribute_access branch with commit 9cbb247dfb4faa47617438770bb6135155fade16.

#2

Updated by Stephen Burrows almost 13 years ago

  • Status changed from New to Resolved

This was merged into the release with commit 7f6fa6595b4c558d7a97ed00cdb19469db4919df.

Also available in: Atom PDF