[Zope] ZFSPath

frasse frasseff at netscape.net
Sun Apr 11 09:30:14 EDT 2004


Hi
I try to run ZFSPath example
http://zope.org/Members/asterisk/ZFSPath
but it is telling me "This resource may be trying to reference a 
nonexistent object or variable 'listdir'."

I did following steps
1) Create a ZFSPath object in my folder
2)  name ID as darkforest
3) In ZFSPath Properties  I put a path "/darkforest " and title "Share 
file system"
4) I try to run the following  Zope Page Template (ZPT)

<html>
 <head>
   <title tal:content="template/title">file share </title>
 </head>
 <body>
   <h2 tal:content="here/darkforest">path</h2>
   <div tal:define="contents here/listdir">
       <p><a href="..">..</a></p>
       <p tal:repeat="element contents">
         <a href="#" tal:content="element/darkforest" 
tal:attributes="href element/darkforest">file</a>
       </p>
   </div>
 </body>
</html>

any idea what is wrong ?

thx
Frasse





More information about the Zope mailing list