[Zope3-Users] How to access external files/directory?browser:resourceDirectory?

Nylan Nylan at gmx.net
Tue Jun 10 04:26:14 EDT 2008


Hi,

Looks like a simple problem, but how can i open files?
...project/browser/resource/[file1..fileX]

I thought it would be possible with the browser:resourceDirectory directive.
It works somehow.

But I'm having some problems.I can access the resource only once.
..
xslt_dir=getAdapter(self.request,Interface, name='xslt')
xslt_file=xslt_dir.get(filename+'.xslt').GET()
..
The second time xslt is empty. 
No exception is thrown, when accessing the resource.

Is it the wrong way to access the file?

Help appreciated!

Best regards




More information about the Zope3-users mailing list