Re: #clear bug?

David Clymer <david-LEGOU7lN1jbY0TyS/[email protected]> Sat, 13 Aug 2005 17:51:10 -0400
Newsgroups gmane.comp.games.mud.client.lyntin
Message-ID <[email protected]>
On Sat, 2005-08-13 at 16:03 -0400, Ned Imming wrote:
> I am getting this error when I attempt to run the clear command.
> #clear
> clear: error in clearing session session.Session sr
> Traceback (most recent call last):
>   File "C:\Python24\Lib\site-packages\lyntin\modules\tintincmds.py",
> line 42, in clear_cmd
>     ses.clear()
>   File "C:\Python24\Lib\site-packages\lyntin\session.py", line 217, in clear
>     for mem in self._engine_instance._managers.values():
> AttributeError: Session instance has no attribute '_engine_instance'

Err...It seems no one uses the #clear command much ;o)

It's a typo. Patch below:


*** modified file 'lyntin/session.py'
--- lyntin/session.py
+++ lyntin/session.py
@@ -214,7 +214,7 @@
     the list of managers registered with the engine and calls
     the clear method with itself.
     """
-    for mem in self._engine_instance._managers.values():
+    for mem in self._engine._managers.values():
       mem.clear(self)

     self._databuffer = []



-davidc


-- 
gpg-key: http://www.zettazebra.com/files/key.gpg
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBC/mtO2XpGgG+SNaERApj/AJ9+DQ+kGNXyaqRokdlLVxWe9+QcMgCfSonW
NgmUr5IynbrlJurLXYmPtH4=
=y8or
-----END PGP SIGNATURE-----