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
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 )
At 1/8/01 02:32 PM, Alex Reid wrote:
- 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.
<dtml-var company_id missing> -- Dennis Nichols nichols@tradingconnections.com
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Alex Reid Sent: maandag 8 januari 2001 15:33 To: zope@zope.org Subject: [Zope] Newbie 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;
<dtml-var "_[myvar]"> cb
participants (3)
-
Alex Reid -
Cornelis J. de Brabander -
Dennis Nichols