From 8b87980586c4dfa331452e35c8196e191af098df Mon Sep 17 00:00:00 2001 From: Richard Darst Date: Wed, 01 Jul 2009 03:30:31 +0000 Subject: change to not use isinstance() in determing types - reload() of modules messed this up greatly, in certain cases. Modules get re-executed when you reload(), which causes the classes to be redefined, meaning that the classes stored in the Meeting object are *not* any longer subclasses of items.* - With the other fixes I did, this was only going to be a problem if supybot reloaded the MeetBot module during a meeting, however, it's best to plan for that anyway. - I switch to comparing m.itemtype to a string value. Not as elegant, but works for now. darcs-hash:20090701033031-82ea9-cf69f235e06d70dd70265f5c5481e4c8262ec971.gz --- (limited to 'items.py') diff --git a/items.py b/items.py index d6c715b..f74e07b 100644 --- a/items.py +++ b/items.py @@ -28,6 +28,7 @@ def inbase(i, chars='abcdefghijklmnopqrstuvwxyz', place=0): # they exist to aid in HTML-formatting. # class _BaseItem(object): + itemtype = None def get_replacements(self): replacements = { } for name in dir(self): -- cgit v0.9.1