hi im new here , first post ... and new to zope.<br><br>i've read the manual ... and zope framework looks very promising ... <br>i started writing a couple of templates ... and run into some basic problems like:<br><br>
Problem 1.<br>is it posible to have a python class ... defined in a script .... like<br>class learn:<br> def print_something(self):<br> print 'it works'<br><br><br>and call it from zpt ... like <span tal:replace="learn/print_something">replace</span>?
<br><br>or how can i call a method from this object ? ... i tryied with python:learn.print_something() and many different ways and i still don't get it.<br><br>i'm starting to suspect that i can use classes only as zope products ...
<br>and call from zpt ... only scripts without classes.<br><br>also do i have to set the properties/attributes of the script which contains the class ... with the methods?<br><br>because by calling learn/print_somthing i get an AttributeError ... url might be invalid etc...
<br><br>Problem 2.<br><br>how can i call/return from an python script a html file which resides in some folder above the script.<br><br>i wanna call abc/index.html ... from abc/def/script.py<br><br>i tryied with the container['
index.html'[ but it doesn't return anything.<br><br>thank you for the patience and sorry for the very basic questions ... but i feel that if i understand this things ... i can really get started with zope.<br>