Changed the way ExitCommands work by adding at_traverse() as a new hook to do the actual moving. This should allow for more flexibility in overloading new Exit typeclasses without having to re-implement the Exit Cmdset functionality more than necessary. By default the same error hooks are called wether the failure is due to a lock or some other error, this is (now) easy to modify as needed.

This commit is contained in:
Griatch 2012-10-14 13:11:13 +02:00
parent d80daccb70
commit 99c2dda8dc
2 changed files with 37 additions and 13 deletions

View file

@ -1,12 +1,12 @@
"""
Makes it easier to import by grouping all relevant things already at this level.
Makes it easier to import by grouping all relevant things already at this level.
You can henceforth import most things directly from src.objects
You can henceforth import most things directly from src.objects
Also, the initiated object manager is available as src.objects.manager.
"""
from src.objects.objects import *
from src.objects.objects import *
from src.objects.models import ObjectDB
manager = ObjectDB.objects