[Zope] another "issue.1999.01"-Problem
Tom Schwaller
Tom.Schwaller@linux-magazin.de
Sat, 11 Sep 1999 20:49:16 +0200
Chris Walter wrote:
>
> Martijn Pieters <mj@antraciet.nl> writes:
>
> > >works as expected. Is sequence-item not a string in the above example?
> >
> > sequence-item is two variables in Python: sequence minus item. Use
> > _['sequence-item'] instead.
> >
thanks for the answer, this was of course a FAQ ;-)
> So I was explaining this to someone here the other day(after I had
> told them what legal ZOPE variables were) and an obvious question is
> "well since these are so common why do they have illegal zope variable
> names?" Is it historical? Also would it be possible to have copies
> of the varaibles availiable with names such as sequence_item in future
> releases?
I personally never liked this illegal names, Would be nice to have them
as
sequence_item,...
Today seems my problem day: :-) After getting answers for all this
problems
of course I have another one
I want to delete the image-object with id="banner" in the "Wo"-Folder
("Wo" means "Where" in German)
e.g.
<dtml-call "manage_delObjects(ids=['banner'])"> .
<dtml-if "_.hasattr(Wo, 'banner')">
does not work as a condition, because Aquisition takes place. I have
an object banner at the root-directory!
Question: What is the correct was of programming the following:
Delete an image with id="banner" in a certain Folder named "Wo",
but only if there is really one contained there (Aquisition is not
allowed).
I really tried all kind af namespace-manipulations here,
also the _.None.. stuff, but I can't find a solution.
--
Tom - a little bit confused and sorry for all this questions..