[Zope] Help with a DTML expression/comparison

2000-10-10 Thread Rudd-O

Hey to everyone,

I'm shooting myself in the foot here with this 
construct:


   
  
 selected
 
  >&dtml-sequence-item;

   


Inserting with dtml-var any of begin_day or sequence-
item yields at some point the same result, logically.  
I'm trying to make the form field default to a formerly 
specified value.

BUT, the comparison between the two, won't work.  Even 
comparing two _.getitems doesn't work.  So it's 
expected that at no point does the selected property 
appear in my html source.

Please help.  I'm shooting myself in the foot here.

Thanks in advance,


Manuel

--
   Universidad Federico Santa Maria - Campus Guayaquil

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Help with a DTML expression/comparison

2000-10-10 Thread Tim Cook

"Manuel Amador (Rudd-O) Gerente de desarrollo Alpha Omega
Creative Solutions http://www.alomega.com/" wrote:

> BUT, the comparison between the two, won't work.  Even
> comparing two _.getitems doesn't work.  So it's
> expected that at no point does the selected property
> appear in my html source.
> 
> Please help.  I'm shooting myself in the foot here.



Honorific:



  
" SELECTED>
  
">
  



This works for me where valid_honors is a list of honorifics
(['Mr.', 'Ms.','Dr.', ...])

HTH,
-- Tim Cook --
Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT
* It's easy to stop making mistakes. Just stop having ideas.  *
FreePM Project Coordinator http://www.freepm.org
OSHCA Founding Supporter http://www.oshca.org

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Help with a DTML expression/comparison

2000-10-10 Thread Phil Harris

Manuel,

You'll probably find that your comparing a string 'begin_day' to an integer
'sequence-item'.

Try something like:

 

hth

Phil


- Original Message -
From: "Manuel Amador (Rudd-O) Gerente de desarrollo Alpha Omega Creative
Solutions http: //www.alomega.com/" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 10, 2000 9:56 PM
Subject: [Zope] Help with a DTML expression/comparison


> Hey to everyone,
>
> I'm shooting myself in the foot here with this
> construct:
>
> 
>
>   
>   
>  selected
>  
>   >&dtml-sequence-item;
>
>
> 
>
> Inserting with dtml-var any of begin_day or sequence-
> item yields at some point the same result, logically.
> I'm trying to make the form field default to a formerly
> specified value.
>
> BUT, the comparison between the two, won't work.  Even
> comparing two _.getitems doesn't work.  So it's
> expected that at no point does the selected property
> appear in my html source.
>
> Please help.  I'm shooting myself in the foot here.
>
> Thanks in advance,
>
>
> Manuel
>
> --
>Universidad Federico Santa Maria - Campus Guayaquil
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> 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 )
>


___
Zope maillist  -  [EMAIL PROTECTED]
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 )