I'm trying to use Template::Plugin::Class to access the moniker method of my class. My moniker method overrides the UNIVERSAL::moniker method in the base class I inherit from (Class::DBI). So in my template I have:

[% class_name = 'foo' ;
   class_obj = USE Class(class_name) ;
   class_obj.moniker ;
%]

What gets printed is 'proxy', which is the last element of 'Template::Plugin::Class::Proxy'! It appears that the proxy object inherits from UNIVERSAL::moniker somewhere along the line. That wouldn't be too bad but that method gets called instead of the override in my class.

Does anybody know how to fix this?

Thanks and regards,
Dave


_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to