mirror of
https://github.com/evennia/evennia.git
synced 2026-04-05 15:37:17 +02:00
Added comprehensive encoding handling to support both player-level encoding choices as well as global multiple encodings through the settings file.
This commit is contained in:
parent
7904916dba
commit
745df8356f
5 changed files with 69 additions and 34 deletions
|
|
@ -273,7 +273,7 @@ class Attribute(SharedMemoryModel):
|
|||
such as dhango model instances, cannot be directly stored/pickled
|
||||
in an attribute, so we have to be clever about it.
|
||||
Types of objects and how they are handled:
|
||||
* str - stored directly in field
|
||||
* str - s5Atored directly in field
|
||||
* django model object - store its dbref in field
|
||||
* any other python structure - pickle in field
|
||||
|
||||
|
|
@ -813,7 +813,8 @@ class TypedObject(SharedMemoryModel):
|
|||
"""
|
||||
Returns all attributes defined on the object.
|
||||
"""
|
||||
return [attr for attr in self.objattribute_set.all()]
|
||||
attr_set_all = eval("self.%s_set.all()" % (self.attribute_model_name.lower()))
|
||||
return [attr for attr in attr_set_all]
|
||||
|
||||
def attr(self, attribute_name=None, value=None, delete=False):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue