[Zope] dtml-sendmail integer required?

Jean-Francois.Doyon@CCRS.NRCan.gc.ca Jean-Francois.Doyon@CCRS.NRCan.gc.ca
Wed, 12 Feb 2003 16:50:05 -0500


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C2D2E0.B41334A0
Content-Type: text/plain;
	charset="ISO-8859-1"

Known bug in 2.6.0, which is fixed in 2.6.1 ... Sorry don't have the tracker
id for you !
 
J.F.

-----Original Message-----
From: Davis Marques [mailto:davis@mccalldesign.com]
Sent: Wednesday, February 12, 2003 4:40 PM
To: zope@zope.org
Subject: [Zope] dtml-sendmail integer required?



I just upgraded my Zope from 2.5.1 to 2.6.0 and started receiving this error
message from some dtml-sendmail code:

Error Type: TypeError
Error Value: an integer is required

No traceback is given.  Here's my original DTML-METHOD

 

<dtml-sendmail mailhost="Mailhost">

To:<dtml-var To>

From:<dtml-var From>

Date:<dtml-var "_.DateTime()">

Subject:<dtml-var Subject>

<dtml-var Message>

</dtml-sendmail>

 

I toyed with it for a few hours and the only thing I could conclude was that
it doesn't like the Date value (it wants an int, as you can see above), and
if I remove the Date field (which isn't required anyway (or is it now?) )
I'm left with the following error message:

 

Error Type: NameError
Error Value: global name 'localzone' is not defined

 

I've tried to find the DTML-Sendmail code in the python libraries to see if
I could figure out what it wants, but haven't found it yet.  Can anyone toss
me a clue as to the possible cure/cause for this?

 

D


------_=_NextPart_001_01C2D2E0.B41334A0
Content-Type: text/html;
	charset="ISO-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">


<META content="MSHTML 6.00.2722.900" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline
}
P {
	FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman"
}
SPAN.EmailStyle17 {
	COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
	page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><SPAN class=604294821-12022003><FONT face=Arial color=#0000ff size=2>Known 
bug in 2.6.0, which is fixed in 2.6.1 ... Sorry don't have the tracker id for 
you !</FONT></SPAN></DIV>
<DIV><SPAN class=604294821-12022003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=604294821-12022003><FONT face=Arial color=#0000ff 
size=2>J.F.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Davis Marques 
  [mailto:davis@mccalldesign.com]<BR><B>Sent:</B> Wednesday, February 12, 2003 
  4:40 PM<BR><B>To:</B> zope@zope.org<BR><B>Subject:</B> [Zope] dtml-sendmail 
  integer required?<BR><BR></FONT></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I just upgraded my Zope from 2.5.1 
  to 2.6.0 and started receiving this error message from some dtml-sendmail 
  code:</SPAN></FONT></P>
  <P><STRONG><B><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">Error Type: 
  TypeError</SPAN></FONT></B></STRONG><BR><STRONG><B><FONT 
  face="Times New Roman">Error Value: an integer is 
  required</FONT></B></STRONG></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">No traceback is given.&nbsp; 
  Here's my original DTML-METHOD</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&lt;dtml-sendmail 
  mailhost="Mailhost"&gt;</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">To:&lt;dtml-var 
  To&gt;</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">From:&lt;dtml-var 
  From&gt;</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Date:&lt;dtml-var 
  "_.DateTime()"&gt;</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Subject:&lt;dtml-var 
  Subject&gt;</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&lt;dtml-var 
  Message&gt;</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&lt;/dtml-sendmail&gt;</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I toyed with it for a few hours 
  and the only thing I could conclude was that it doesn't like the Date value 
  (it wants an int, as you can see above), and if I remove the Date field (which 
  isn't required anyway (or is it now?) ) I'm left with the following error 
  message:</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><STRONG><B><FONT face=Arial size=1><SPAN 
  style="FONT-SIZE: 9pt; FONT-FAMILY: Arial">Error Type: 
  NameError</SPAN></FONT></B></STRONG><FONT face=Arial size=1><SPAN 
  style="FONT-SIZE: 9pt; FONT-FAMILY: Arial"><BR><STRONG><B><FONT 
  face=Arial><SPAN style="FONT-FAMILY: Arial">Error Value: global name 
  'localzone' is not defined</SPAN></FONT></B></STRONG></SPAN></FONT></P>
  <P class=MsoNormal><STRONG><B><FONT face=Arial size=1><SPAN 
  style="FONT-SIZE: 9pt; FONT-FAMILY: Arial"></SPAN></FONT></B></STRONG>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I've tried to find the 
  DTML-Sendmail code in the python libraries to see if I could figure out what 
  it wants, but haven't found it yet.&nbsp; Can anyone toss me a clue as to the 
  possible cure/cause for this?</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">D</SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C2D2E0.B41334A0--