[Zope] Calendar Tag Question...

Richard Shebora rlist@apogee-tech.com
Wed, 6 Feb 2002 10:06:10 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C1AEF5.E6926960
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

I have installed the Calendar tag and it works great.  I have been nagged by
not being able to call another DTML method within one of the calendars cells
and passing the current cell's year, month, and day values derived from the
calendar's date variable.

I am calling a method that lists the events for a particular day and should
appear in it's specific days cell.  I am certain there is a simple way to do
it but I cannot find a clear example in the docs including  "As
http://www.zope.org/Members/michel/ZB/AppendixB.dtml reveals"  this one.  I
understand the theory just fine, it is the syntax that I cannot figure out
for this particular problem.  In fact I have always found the specifics of
the answers I need but not many literal examples of how to format in
different situations.  I am making notes because I think I am not the only
one.

Very grateful for any help...

My clients table does not have real date values but is broken into different
fields for ease of reporting I am told.  They are right it does make it
easier to create simple grouped and tabular reports but causes this issue
when not an actual date format.

Example of what does not work.  Why will be obvious to most of you.  I am
just syntax impaired.  :-)

<dtml-set year="'2002'" month="'5'" day="'7'" optional>
<dtml-calendar controls=no images=yes weekdays=17>
<font size=2>
<b><dtml-var date fmt="%d"></b>
<br><dtml-var "events_dtml(year='<dtml-var date fmt=%Y>', month='<dtml-var
date fmt=%m>, day='<dtml-var date fmt=%d>')">
</dtml-calendar>

Thanks,
Richard


------=_NextPart_000_0001_01C1AEF5.E6926960
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D422204714-06022002>I have =
installed the=20
Calendar tag and it works great.&nbsp; I have been nagged by not being =
able to=20
call another DTML method within one of the calendars cells and passing =
the=20
current cell's year, month, and day values derived from the calendar's =
date=20
variable.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D422204714-06022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D422204714-06022002>I am =
calling a=20
method that lists the events for a particular day and should appear in =
it's=20
specific days cell.&nbsp; I am certain there is a simple way to do it =
but I=20
cannot find a clear example in the docs including&nbsp; "<FONT =
size=3D2>As=20
http://www.zope.org/Members/michel/ZB/AppendixB.dtml reveals"&nbsp; this =

one.&nbsp; I understand the theory just fine, it is the syntax that I =
cannot=20
figure out for this particular problem.&nbsp; In fact I have always =
found the=20
specifics of the answers I need but not many literal examples of how to =
format=20
in different situations.&nbsp; I am making notes because I think I am =
not the=20
only one.</FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D422204714-06022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D422204714-06022002>Very =
grateful for=20
any help...</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D422204714-06022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D422204714-06022002>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D422204714-06022002>My =
clients table=20
does not have real date values but is broken into different fields for =
ease of=20
reporting I am told.&nbsp; They are right it does make it easier to =
create=20
simple grouped and tabular reports but causes this issue when not an =
actual date=20
format.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D422204714-06022002></SPAN></FONT>&nbsp;</DIV>Example of what =
does not=20
work.&nbsp; Why will be obvious to most of you.&nbsp; I am just syntax =
impaired.=20
 :-)</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;dtml-set year=3D"'2002'" =
month=3D"'5'" day=3D"'7'"=20
optional&gt;<BR>&lt;dtml-calendar controls=3Dno images=3Dyes=20
weekdays=3D17&gt;<BR>&lt;font size=3D2&gt;<BR>&lt;b&gt;&lt;dtml-var date =

fmt=3D"%d"&gt;&lt;/b&gt;<BR><SPAN=20
class=3D422204714-06022002>&lt;br&gt;</SPAN>&lt;dtml-var "<SPAN=20
class=3D422204714-06022002>events_</SPAN>dtml(<SPAN=20
class=3D422204714-06022002>year</SPAN>=3D<SPAN=20
class=3D422204714-06022002>'</SPAN>&lt;dtml-var date fmt=3D%Y&gt;<SPAN=20
class=3D422204714-06022002>'</SPAN>,&nbsp;<SPAN=20
class=3D422204714-06022002>month</SPAN>=3D'&lt;dtml-var date =
fmt=3D%<SPAN=20
class=3D422204714-06022002>m</SPAN>&gt;,&nbsp;<SPAN=20
class=3D422204714-06022002>day</SPAN>=3D'&lt;dtml-var date fmt=3D%<SPAN=20
class=3D422204714-06022002>d</SPAN><SPAN=20
class=3D422204714-06022002>&gt;'</SPAN>)"&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&lt;/dtml-calendar&gt;<BR></DIV></FONT>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D422204714-06022002>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D422204714-06022002>Richard</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D422204714-06022002></SPAN></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0001_01C1AEF5.E6926960--