RE: [Zope] Design/DTML question

2001-01-10 Thread Dennis Nichols

At 1/10/01 01:22 PM, Timothy Wilson wrote:
>On Wed, 10 Jan 2001, Dennis Nichols wrote:
> > Or, if you insist that dates flow down the columns like I do, you could 
> use
> > this untested revision of Max's solution
>   
>
>This doesn't seem to work. The if statement only evaluates to true the first
>time through the loop.

Because the objects in the loop had no 'id' attribute? In any case, here's 
a complete tested example:





   
 
   
 

 
 
   
 
   




--
Dennis Nichols
[EMAIL PROTECTED]


___
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] Design/DTML question

2001-01-10 Thread Max M

From: Timothy Wilson

> Or, if you insist that dates flow down the columns like I do, you could
use
> this untested revision of Max's solution:

Oh typical spine reaction I didn't read the dates, just assumed that it was
left/right as usual.

This untested code might work then: (The no-break tag  is really
underestimated. It can save loads of table tags.)


   
  
 

 
  
   
   
  
  (_['batch-size']/2)">

 
  
   



Max M. W. Rasmussen,Denmark.   New Media Director
private: [EMAIL PROTECTED] work: [EMAIL PROTECTED]
-
Specialization is for insects.  -  Robert A. Heinlein


___
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] Design/DTML question

2001-01-10 Thread Timothy Wilson

On Wed, 10 Jan 2001, Dennis Nichols wrote:

> Or, if you insist that dates flow down the columns like I do, you could use 
> this untested revision of Max's solution:
> 
> 
>
>  
>
>  _.int(_['sequence-index'])*2==_.int(_['count-id'])+1">
> 
>  
>  
>
>  
>
> 

This doesn't seem to work. The if statement only evaluates to true the first
time through the loop. I agree that the dates must flow down, so don't I
need to have some way to do the following:




 
 




It's the [some later index] part that would seem to be the
bugger. Doable? Perhaps this would be a perfect application for a
PythonScript?

-Tim

--
Tim Wilson  | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN |  | http://slashdot.org/
[EMAIL PROTECTED] || http://linux.com/


___
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] Design/DTML question

2001-01-10 Thread Dennis Nichols

At 1/10/01 04:44 PM, Max Møller Rasmussen wrote:
>From: Timothy Wilson [mailto:[EMAIL PROTECTED]]
>
> >Right now, I've got the dates stored in a TinyTable. I can iterate through
> >that list and generate the links, but I can't figure out how to display the
> >table in two columns.
>
>   

Or, if you insist that dates flow down the columns like I do, you could use 
this untested revision of Max's solution:


   
 
   
 

 
 
   
 
   


Gosh, wouldn't it be nice to have a sequence-midpoint ? But then somebody 
would surely want a sequence-first-quartile and so on :-)


--
Dennis Nichols
[EMAIL PROTECTED]


___
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] Design/DTML question

2001-01-10 Thread Max Møller Rasmussen

From: Timothy Wilson [mailto:[EMAIL PROTECTED]]

>Right now, I've got the dates stored in a TinyTable. I can iterate through
>that list and generate the links, but I can't figure out how to display the
>table in two columns.












 








regards Max M

___
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] Design/DTML question

2001-01-10 Thread Timothy Wilson

Hi everyone,

I'm working on a Web page for our local school board. I'd like to create a
table that would display links to past board meeting minutes. The table
would look like this: (Note: dates are bogus)

+---+
| Meeting Minutes   |
|   |
| Monday, Jan. 10  Monday, Mar. 7   |
| Tuesday, Jan. 24 Monday, Mar. 20  |
| Monday, Feb. 7   Monday, Apr. 5   |
| Monday, Feb. 27  Tues., Apr. 19   |
|   |
|1999 | 2000 | 2001 |
+---+

By default, dates for the current year would be displayed, but clicking on
the years at the bottom of the table would display those dates.

Right now, I've got the dates stored in a TinyTable. I can iterate through
that list and generate the links, but I can't figure out how to display the
table in two columns.


 


will print the dates in a single column, but how can I iterate through and
refer to two different dates in one  pass? (Does that make sense?)

The second thing I'm tring to figure out is how to make the year links at
the bottom generate the new table of dates from a different TinyTable. Maybe
I should use the same TinyTable for all of the meeting dates and pull out
whichever year I need when the table is rendered.

I'm also wondering if I should implement these meeting minutes and agendas
in a ZClass. At first it seemed like this would be too simple to bother
with, but now I'm wondering if a ZClass would be a better approach. I'd
appreciate any comments.

-Tim 

--
Tim Wilson  | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN |  | http://slashdot.org/
[EMAIL PROTECTED] || http://linux.com/


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