Every time I get some time to play with Zope I feel like a complete idiot all over again. It's nice to have constant source of self abuse. I have index_html in my root folder (a publishable resource.. Hah!) I also have a /refs folder, with a quotes folder inside that, with some text/html files inside that. I want to insert one of these files in refs.quotes inline into index_html I had this figured out the other day but I forgot how I did it...probably was using dtml file objects or something... (Zope 2.6.0a1) <dtml-var expr="refs.quotes.file"> while saving this (Save) it doesn't save it, and says instead: says: Error Type: SyntaxError Error Value: unexpected EOF while parsing (line 1) Trying: <dtml-in refs> <dtml-var sequence-item> </dtml-in> says unsliceable object Hope you get a good laugh out of this. :-) -Patrick Price
Never mind. I'm going to ignore DTML and start using TAL which seems to be the way to learn Zope. DTML has just about caused me to give up trying to figure out Zope. Two weeks of scouring the web and I've finally found the best ZPT intro: http://www.zope.org/Wikis/DevSite/Projects/ZPT/IntroductionForDTMLers If only everyone wrote so well!
On Fri, Aug 16, 2002 at 10:53:43AM +0100, Chris Withers wrote:
Patrick Price wrote:
Never mind. I'm going to ignore DTML and start using TAL which seems to be the way to learn Zope.
Ah, step into the light my son, for you have been saved!
*grinz*
Chris
While I am a confirmed pro-ZPT bigot, I do wish that I got more informative errors from it... I sure hope this is addressed in zope 2.6! it's not much fun getting a "Not found" error with absolutely no information about *what* was not found... -- Paul Winkler "Welcome to Muppet Labs, where the future is made - today!"
Paul Winkler wrote:
While I am a confirmed pro-ZPT bigot, I do wish that I got more informative errors from it... I sure hope this is addressed in zope 2.6! it's not much fun getting a "Not found" error with absolutely no information about *what* was not found...
You using 2.5.1? if so, look down the bottom in the traceback, it's usually pretty helpful ;-) cheers, Chris
On Fri, Aug 16, 2002 at 04:03:21PM +0100, Chris Withers wrote:
Paul Winkler wrote:
While I am a confirmed pro-ZPT bigot, I do wish that I got more informative errors from it... I sure hope this is addressed in zope 2.6! it's not much fun getting a "Not found" error with absolutely no information about *what* was not found...
You using 2.5.1?
if so, look down the bottom in the traceback, it's usually pretty helpful ;-)
D'oh! you're right. I was remembering 2.5.0 where the errors were more obscure. still, I'd love to see something like that old DTML Debug product for ZPT... -- Paul Winkler "Welcome to Muppet Labs, where the future is made - today!"
participants (3)
-
Chris Withers -
Patrick Price -
Paul Winkler