Added functionality to Attributes to store and update dicts and lists dynamically. One side effect of this is that dicts and tuples need to be stored as custom object types which means that e.g. isintance(obj.db.mylist) == type(list) will return False. In order to do checks like this, use src.utils.utils.inherits_from() instead. The Attribute system now also supports tuples. All other iterables except dicts, lists and tuples are stored and retrieved as lists, same as before.

This fixes issue 189.
This commit is contained in:
Griatch 2011-09-20 12:37:45 +02:00
parent 0af6dff175
commit 475361ad28
4 changed files with 161 additions and 31 deletions

View file

@ -472,7 +472,6 @@ class Exit(Object):
for handling reloads and avoid tracebacks if this is called while
the typeclass system is rebooting.
"""
#print "Exit:create_exit_cmdset "
class ExitCommand(command.Command):
"""
This is a command that simply cause the caller