[Zope] R: [Zope] range with variables

Armin Wappenschmidt armin.wappenschmidt@sdrc.com
Tue, 27 Jun 2000 12:42:58 +0200


Marcel Preda wrote:
> 
> ----- Original Message -----
> From: Armin Wappenschmidt <awappens@ford.com>
> To: <zope@zope.org>
> Sent: Tuesday, June 27, 2000 10:50 AM
> Subject: [Zope] range with variables
> 
> > Hi all,
> >
> > I've a problem using the following dtml construct:
> >
> > <dtml-let start=Variable_from_Formular> # <-- that's the problem!!!!!!
> > <dtml-let stop="100">
> > <dtml-let period="5">
> >    <dtml-in "_.range(start,stop,period)">
> >       <dtml-comment> do something </dtml-comment>
> >    </dtml-in>
> > </dtml-let>
> > </dtml-let>
> > </dtml-let>
> >
> >
> > How can I set the variable "start" from a user given input?
> >
> 
> 
> The problem is that in both cases the `startindex' is a string,
> you have tu convert it to int.
> 
> <dtml-call "REQUEST.set('start_int',_.string.atoi(startindex)">
> 

The conversion from string to int was the problem. Now it works! :)

Thanks!

armin

-- 
Armin Wappenschmidt - Consultant Engineer
----------------------------------------------------------------------------
 SDRC Ford Program Office                SDRC Software und Service GmbH
 Spessartstrasse (D-MD/PA-2)             Martin-Behaim-Strasse 12
 D-50725 Koeln-Merkenich                 D-63263 Neu-Isenburg
 Phone  (+49) 0221-90 33619              Phone   (+49) 06102-747-0
 Fax    (+49) 0221-90 31243              Fax     (+49) 06102-747 299
 PROFS  AWAPPENS                        
mailto:armin.wappenschmidt@sdrc.com
----------------------------------------------------------------------------
                _/_/_/_/   _/_/_/     _/_/_/      _/_/_/_/
               _/         _/    _/   _/    _/    _/
              _/_/_/_/   _/     _/  _/_/_/      _/
                   _/   _/     _/  _/   _/     _/
            _/_/_/_/   _/_/_/_/   _/     _/   _/_/_/_/
            S O F T W A R E  U N D  S E R V I C E  G M B H
----------------------------------------------------------------------------