Robb, Can you give some more info? My first reaction is that it would make more sense to define new object types that hold the data (which hold their own methods to do stuff to the data). But maybe this isn't realistic... what are you actually trying to do? Robb Shecter wrote:
Hi,
Is there a way to assign a handler to some objects based on type or name, similar to what Apache allows? For example, I want to have all *.txt files be processed by a certain external method.
Is there any way to do this? Currently, I'm doing it by generating links to my .txt objects that are actually calls directly to my method with the object name as a paramter... It works, but it's a hack.
Thanks, Robb
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- Chris McDonough - Digital Creations, Inc. Publishers of Zope - http://www.zope.org