[Zope] works under 1.10.3 not under 2.0.0b5 (resend)

Joachim Schmitz perry@ac-copy.net
Thu, 26 Aug 1999 17:06:57 +0200 (CEST)


On Thu, 26 Aug 1999, Jim Fulton wrote:

> Joachim Schmitz wrote:
> > 
> > hi,
> > 
> > I sent this yesterday, does nobody have an idea, what's wrong ?
> > 
> > I have a ZSQL-method insert in my root folder like this:
> > 
> > insert into <!--#var table sql_quote upper --> (
> > <!--#in EinAusgabe -->
> > <!--#unless sequence-start -->,<!--#/unless -->
> > <!--#var name -->
> > <!--#/in -->)
> > <snipp>
> > 
> > also in my root-folder is a dtml-document which calls insert(REQUEST)
> > 
> > this is my folder-structure:
> > 
> > root
> > insert (ZSQL-method)
> > bearbeiten (dtml-document)
> >    kultur
> >         kino
> >             Event
> >             EinAusgabe (TinyTable)
> > 
> > when I now call root/kultur/kino/Event/bearbeiten
> > 
> > under 1.10.3 that correctly inserts my record.
> > under 2.0.0b5 I get a keyerror EinAusgabe from the insert-method, I think
> > it has something to do with difference of dtml-documents versus
> > dtml-methods. But how do I treat a ZSQL-method as an ZSQL-document ?
> 
> Yes. bearbeiten should be a method, not a document.
> 
> Jim
> 
> --

Thanks, that did the trick, but somehow I have the feeling, that this is
more Zope Voodoo than Zen :))



Gruß

Joachim Schmitz

WWW-Consultant

email: js@ac-copy.net
tel: +49-241-89491-0
fax: +49-241-89491-29