]> git.llucax.com Git - software/pymin.git/commit
Add support to "operation tagging" to ListSubHandler and DictSubHandler.
authorLeandro Lucarella <llucax@gmail.com>
Thu, 11 Oct 2007 21:06:57 +0000 (18:06 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Thu, 11 Oct 2007 21:06:57 +0000 (18:06 -0300)
commit8b148a195996b9bdc46f1f12b9ba9fb0b6a99714
tree7ac6926983b8bf8c63eae8e4fc72944dc4af92df
parentf5a081744ba31beed226db828e0e16a01ec77c83
Add support to "operation tagging" to ListSubHandler and DictSubHandler.

"Operation tagging" means that if the contained objects has an _add,
_update or _delete attribute, it set them to true when the item is
added, updated or deleted respectively (in case that it's deleted, it's
not removed from the container, but it's not listed either, i.e. the
items are "logically" deleted, not really removed from the container).

Now ListSubHandler and DictSubHandler ihnerit from a new class
ContainerSubHandler which handles 95% of the code. Because of this, now
the "magic" attributes starts with _cont_ instead of _list_ or _dict_.
Existing handler were updated, but new ones should take this into
account.
TODO
pymin/services/dhcp/__init__.py
pymin/services/firewall/__init__.py
pymin/services/proxy/__init__.py
pymin/services/util.py