RE: [Zope] A Better Way (Stupid DTML code)

2000-07-25 Thread Baker, Dennis [sjmr]


 -Original Message-
 From: Andy McKay [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 24, 2000 6:52 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [Zope] A Better Way (Stupid DTML code)
 
 
 Okay now im really curious what does min-provid tell you, I 
 had a quick
 rummage through the docs and couldnt see any reference to this.

From the DTML users guide...
http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.7.3.html

Basically it does what it says,  gives you the minimum of a value from a
dtml-in list.

 
 - Original Message -
 From: "Bill Anderson" [EMAIL PROTECTED]
 To: "Baker, Dennis [sjmr]" [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Monday, July 24, 2000 6:40 PM
 Subject: Re: [Zope] A Better Way (Stupid DTML code)
 
 
  "Baker, Dennis [sjmr]" wrote (quote rearranged to be *after* the
  previous message, as it should be:):
 
-Original Message-
From: Andy McKay [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 21, 2000 5:27 PM
To: [EMAIL PROTECTED]
    Subject: Re: [Zope] A Better Way (Stupid DTML code)
   
   
Other smug answers include:
- dont put - in your SQL methods
- use your SQL to give the variable a different name
- use python
  
   I suppose my smug reply would be that min- is a 
 variable generated
 by
   dtml-in,  I didn't pick the variable name.
  
 
  Touche'
 
 
  Bill
 
  --
  Do not meddle in the affairs of sysadmins, for they are 
 easy to annoy,
  and have the root password.
 
  ___
  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 )
 
 


___
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] A Better Way (Stupid DTML code)

2000-07-24 Thread Baker, Dennis [sjmr]

I suppose my smug reply would be that min- is a variable generated by
dtml-in,  I didn't pick the variable name.  

 -Original Message-
 From: Andy McKay [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 21, 2000 5:27 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [Zope] A Better Way (Stupid DTML code)
 
 
 Other smug answers include:
 - dont put - in your SQL methods
 - use your SQL to give the variable a different name
 - use python
 
 - Original Message - 
 From: "Phil Harris" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]; "Dennis Baker" [EMAIL PROTECTED]
 Sent: Friday, July 21, 2000 4:29 PM
 Subject: Re: [Zope] A Better Way (Stupid DTML code)
 
 
  dtml-in SQL_list_providers
dtml-if "_.int(_['min-provid'])  2"
  dtml-if sequence-start
h3Search for Member Information/H3
dtml-var MemberSearchForm
  /dtml-if
/dtml-if
  /dtml-in
  
  - Original Message - 
  From: Dennis Baker [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Saturday, July 22, 2000 12:08 AM
  Subject: [Zope] A Better Way (Stupid DTML code)
  
  
   Ok,  there has to be a better way of doing this,  I just 
 want to show a
   dialog if there minimum value of a field is lower than 
 20,000.  This is
   the only way I could figure out to do this,  Python seems 
 to choke on
   variables with Hyphens so I have to use the dtml-let  
 It works but
   it's a STUPID way to do things.
   
   
   dtml-in SQL_list_providers
 dtml-let min_provid=min-provid
   dtml-if "min_provid  '2'"
 dtml-if sequence-start
   h3Search for Member Information/H3
   !-- ** Show the Member Search Form **  --
   dtml-var MemberSearchForm
 /dtml-if
   /dtml-if
 /dtml-let
   /dtml-in
   
   
   ___
   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 )
  
 
 
 ___
 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 )




Re: [Zope] A Better Way (Stupid DTML code)

2000-07-24 Thread Andy McKay

Okay now im really curious what does min-provid tell you, I had a quick
rummage through the docs and couldnt see any reference to this.

- Original Message -
From: "Bill Anderson" [EMAIL PROTECTED]
To: "Baker, Dennis [sjmr]" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, July 24, 2000 6:40 PM
Subject: Re: [Zope] A Better Way (Stupid DTML code)


 "Baker, Dennis [sjmr]" wrote (quote rearranged to be *after* the
 previous message, as it should be:):

   -Original Message-
   From: Andy McKay [mailto:[EMAIL PROTECTED]]
   Sent: Friday, July 21, 2000 5:27 PM
   To: [EMAIL PROTECTED]
   Subject: Re: [Zope] A Better Way (Stupid DTML code)
  
  
   Other smug answers include:
   - dont put - in your SQL methods
   - use your SQL to give the variable a different name
   - use python
 
  I suppose my smug reply would be that min- is a variable generated
by
  dtml-in,  I didn't pick the variable name.
 

 Touche'


 Bill

 --
 Do not meddle in the affairs of sysadmins, for they are easy to annoy,
 and have the root password.

 ___
 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 )




Re: [Zope] A Better Way (Stupid DTML code)

2000-07-21 Thread Andy McKay

Other smug answers include:
- dont put - in your SQL methods
- use your SQL to give the variable a different name
- use python

- Original Message - 
From: "Phil Harris" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; "Dennis Baker" [EMAIL PROTECTED]
Sent: Friday, July 21, 2000 4:29 PM
Subject: Re: [Zope] A Better Way (Stupid DTML code)


 dtml-in SQL_list_providers
   dtml-if "_.int(_['min-provid'])  2"
 dtml-if sequence-start
   h3Search for Member Information/H3
   dtml-var MemberSearchForm
 /dtml-if
   /dtml-if
 /dtml-in
 
 - Original Message - 
 From: Dennis Baker [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, July 22, 2000 12:08 AM
 Subject: [Zope] A Better Way (Stupid DTML code)
 
 
  Ok,  there has to be a better way of doing this,  I just want to show a
  dialog if there minimum value of a field is lower than 20,000.  This is
  the only way I could figure out to do this,  Python seems to choke on
  variables with Hyphens so I have to use the dtml-let  It works but
  it's a STUPID way to do things.
  
  
  dtml-in SQL_list_providers
dtml-let min_provid=min-provid
  dtml-if "min_provid  '2'"
dtml-if sequence-start
  h3Search for Member Information/H3
  !-- ** Show the Member Search Form **  --
  dtml-var MemberSearchForm
/dtml-if
  /dtml-if
/dtml-let
  /dtml-in
  
  
  ___
  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 )
 


___
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 )