[Zope] Newbie Questions

Alex Reid alex@phiz.net
Mon, 8 Jan 2001 15:01:32 -0000


Solved my first query using <dtml-with> ... hmm!
Any less verbose ways?

----- Original Message -----
From: Alex Reid <alex@phiz.net>
To: <zope@zope.org>
Sent: Monday, January 08, 2001 2:32 PM
Subject: [Zope] Newbie Questions


> I am finally starting to make some decent progress with Zope now... more
and
> more I think to myself ... "I wonder if...." and most of the time I am
> pleasantly suprised when it works!
>
> A couple of quick questions:
>
> - How would I display the value at a variable whose name is stored in
> another variable?
> In Perl this would simply be a double dollar type of affair
> $name = "Alex";
> $myvar = "name";
> print $$myvar;
>
> - I am creating a 'form' method so I don't have to create separate forms
for
> INSERT and UPDATE actions. This works, only how do I tell Zope to ignore
the
> fact that <dtml-var company_id> doesn't exist when in INSERT mode? It is
> there in the value="" parameter for the edit mode to pre-populate the
> element.
>
> Thanks in advance
>
> Alex
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )