From: Raphael R. <r....@bi...> - 2007-05-29 07:24:43
|
Todd R. Johnson wrote: [..] > docs. Neither of the following works: > > python: issuperclass(obj_item, 'BaseEntry') > > python: issuperclass(obj_item, BaseEntry) > Have you tried 'isinstance' instead? Of course you need to import the base class which you cannot do in TTW code, so you need to wrap it in an external method. Or, easier still, use the bibtool's 'getPublicationTypes' (or similar) helper method. It's there for a reason ;-) Raphael > The first gives the error that arg1 must be a class. The second says that > BaseEntry is not defined. > > Todd |