mirror of
https://github.com/evennia/evennia.git
synced 2026-04-17 21:59:06 +02:00
Some deprecation fixes for django1.4+. Added the ability to add lists to Attribute-stores lists using e.g. obj.db.mylist + [1,2,3,4]
This commit is contained in:
parent
c943b13351
commit
89c33a9197
7 changed files with 29 additions and 16 deletions
|
|
@ -132,6 +132,10 @@ class _SaverList(_SaverMutable, MutableSequence):
|
|||
super(_SaverList, self).__init__(*args, **kwargs)
|
||||
self._data = list(*args)
|
||||
@_save
|
||||
def __add__(self, otherlist):
|
||||
self._data = self._data.__add__(otherlist)
|
||||
return self._data
|
||||
@_save
|
||||
def insert(self, index, value):
|
||||
self._data.insert(index, self._convert_mutables(value))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue