[PEAK] AddOn.exists_for

Sergey Schetinin maluke at gmail.com
Mon Mar 3 04:59:42 EST 2008


When checking for exising addon to value of a base type it throws an
exception instead of returning False.

>>> from peak.util.addons import AddOn
>>> AddOn.exists_for(1)
Traceback (most recent call last):
....
TypeError: cannot create weak reference to 'int' object

-- 
Best Regards,
Sergey Schetinin

http://s3bk.com/ -- S3 Backup
http://word-to-html.com/ -- Word to HTML Converter



More information about the PEAK mailing list