Re: [Zope] can ZPTs be located in LocalFS?
Chris, I like the patch - page templates work great! This may be silly, but is it reasonable to think that the same idea could be used to support python scripts as well? (ie: can a file named "x.py" in a LocalFS be forced to render as a python script). I wouldn't mind working on it if it makes sense. Roy. Chris Beaven writes:
Yes I believe it does
Roy Mathew wrote:
Hi Chris,
Thanks for the reply. Do you know if this works with Zope 2.7? the version at zope.org doesn't...
Roy.
Chris Beaven writes:
Hi Roy, I patched LocalFS to work with page templates, and that patch was added to the work of andreas': http://www.easyleading.org/Downloads/LocalFS-1.2-andreas.tar.gz/view
It should really be the "official" localFS since it betters the original but doesn't introduce problems like ZODB bloating that people have been talking about with the CVS 1.1 version...
Chris
Roy Mathew wrote:
Folks,
I am wondering if there is any way to force a file located in a LocalFS or ZFSPath directory to be recognized as a Page template. In other words, I want ZOPE to interpret the content of files named with a ".pt" extension to be recognized as a Page Template and interpreted accordingly.
If my ZFSPath directory is named "ExternalFiles", then I want to be able to do stuff like <span tal:replace="here/ExternalFiles/myfile.pt"/> and have the contents of myfile.pt be interpreted as TAL constructs. Currently I just see the raw contents in my html output.
Thanks, Roy.
__________________________________ Do you Yahoo!? Yahoo! Movies - Buy advance tickets for 'Shrek 2' http://movies.yahoo.com/showtimes/movie?mid=1808405861
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Roy Mathew wrote at 2004-5-17 18:16 -0400:
I like the patch - page templates work great!
This may be silly, but is it reasonable to think that the same idea could be used to support python scripts as well? (ie: can a file named "x.py" in a LocalFS be forced to render as a python script). I wouldn't mind working on it if it makes sense.
You can do it -- in the same way. We usually use the "Filesystem Directory View" instead of "LocalFS". The main difference "Directory View" is read only -- not to bad for executable objects. -- Dieter
participants (2)
-
Dieter Maurer -
Roy Mathew