debian/compat
author |
Sylvain Thénault <sylvain.thenault@logilab.fr> |
|
Wed, 22 Jun 2011 18:53:38 +0200 |
changeset 7553 |
935423529f45 |
parent 858 |
e6ae125d5903
|
child 11832 |
e8be49ecb522 |
permissions |
-rw-r--r-- |
[datafeed cw parser] refactor: split logic that was in the parser
into:
* an "item builder" component, turning an etree xml node into a specific
python dictionnary representing an entity
* "action" components, selected given an entity, a relation and its role
in the relation, and responsible to link the entity to given related
items (eg dictionnary)
This changes make it easy to add new action or to override existing
one's behaviour according to the entity, the relation, etc...
Also refactor the xml view so one can also override what's
included in the tag used to mark the entity as used by a relation,
hopefully allowing to reduce the number of http requests needed for
a full datafeed import.