mirror of
https://github.com/evennia/evennia.git
synced 2026-03-20 23:06:31 +01:00
Removed .typeclass and .dbobj references in codebase.
This commit is contained in:
parent
1130dc5757
commit
70da53569d
23 changed files with 60 additions and 127 deletions
|
|
@ -202,19 +202,10 @@ class TickerHandler(object):
|
|||
is a boolean True if obj was a database object,
|
||||
False otherwise.
|
||||
"""
|
||||
try:
|
||||
obj = obj.typeclass
|
||||
except AttributeError:
|
||||
pass
|
||||
dbobj = None
|
||||
try:
|
||||
dbobj = obj.dbobj
|
||||
except AttributeError:
|
||||
pass
|
||||
isdb = True
|
||||
if dbobj:
|
||||
if hasattr(obj, "db_key"):
|
||||
# create a store_key using the database representation
|
||||
objkey = pack_dbobj(dbobj)
|
||||
objkey = pack_dbobj(obj)
|
||||
isdb = True
|
||||
else:
|
||||
# non-db object, look for a property "key" on it, otherwise
|
||||
# use its memory location.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue