Export to GitHub

evennia - issue #452

Copying objects produces error


Posted on Jan 13, 2014 by Happy Rhino

A) What steps will reproduce the problem?

  1. @create/drop test
  2. @copy test

B) What is the expected output? What do you see instead (tracebacks, error messages)?

@copy test Traceback (most recent call last): File "C:\Dokument\Dropbox\MUD\evennia\src\commands\cmdhandler.py", line 394, in cmdhandler ret = yield cmd.func() File "C:\Dokument\Dropbox\MUD\evennia\src\commands\default\building.py", line 201, in func new_aliases=to_obj_aliases) File "C:\Dokument\Dropbox\MUD\evennia\src\objects\manager.py", line 387, in copy_object destination=new_destination) File "C:\Dokument\Dropbox\MUD\evennia\src\utils\create.py", line 138, in create_object new_object.aliases.add(aliases) File "C:\Dokument\Dropbox\MUD\evennia\src\typeclasses\models.py", line 507, in add tagstr = tagstr.strip().lower() if tagstr is not None else None AttributeError: 'AliasHandler' object has no attribute 'strip'

C) What version/revision of Evennia are you using? On what operating system? Give as much information as possible to make it easier for developers to recreate the problem.

Last version of Evennia as of this date, with most base objects extended through the settings file. Windows 8.1.

Comment #1

Posted on Jan 14, 2014 by Happy Rhino

I fixed this by changing: new_aliases = original_object.aliases to: new_aliases = original_object.aliases.all()

On row 369 in \src\objects\manager.py

Comment #2

Posted on Jan 18, 2014 by Happy Bear

Thanks! Suggested fix is implemented as per r2552780d5b19.

Status: Fixed

Labels:
Type-Defect Priority-Normal