<br>Hello<br>I'm new to Zope 3, and I'm trying out z3c.macro. I can't seem to get my macro to work with a view class instead of just a page template<br><br>I've registered the macro<br><br> <z3c:macro
<br> template="<a href="http://template.pt">template.pt</a>"<br> name="my_macro"<br> view=".classes.MyClass" <br> /><br><br><br>My view<br><br>class MyClass:<br> def MyFunction(self):
<br> #do something<br><br><br><br>My page template <br><br><metal:block define-macro="my_macro"><br> My text<br> <div tal:content="view/MyFunction" /><br> some text again<br> </div>
<br></metal:block><br><br><br>Unfortunately, I get a component lookup error. Am I using the wrong method to create the view class?<br><br>Regards,<br><br>Mikael M<br><br> <br>