hi im new here , first post ... and new to zope.<br><br>i&#39;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>&nbsp;&nbsp; def print_something(self):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &#39;it works&#39;<br><br><br>and call it from zpt ... like &lt;span tal:replace=&quot;learn/print_something&quot;&gt;replace&lt;/span&gt;?
<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&#39;t get it.<br><br>i&#39;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[&#39;
index.html&#39;[ but it doesn&#39;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>