RE: [Zope] Setting the sort var in dtml-in ...sort=sortVar

2001-01-18 Thread Max M

From: Dieter Maurer [mailto:[EMAIL PROTECTED]]

Max M writes:

  Does anybody know if it is possible to programatically set the sort
  parameter in something like: dtml-in getAllComments sort=fwd_thread

There is a product on zope.org that enhances sorting capabilities
drastically. Unfortunately, its name is difficult to remember
(at least for me), something with ZIE in it, I think.
I would try to search for "sort" on zope.org.

Thanks, but I think that I will do my own sort routine. Then I can also add
a few application specifik goodies.

I just though that there was a "simple" way that I had overlooked.

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 )




Re: [Zope] Setting the sort var in dtml-in ...sort=sortVar

2001-01-18 Thread Dieter Maurer

Max M writes:
  Does anybody know if it is possible to programatically set the sort
  parameter in something like: dtml-in getAllComments sort=fwd_thread
There is a product on zope.org that enhances sorting capabilities
drastically. Unfortunately, its name is difficult to remember
(at least for me), something with ZIE in it, I think.
I would try to search for "sort" on zope.org.


Dieter

___
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] Setting the sort var in dtml-in ...sort=sortVar

2001-01-18 Thread Loren Stafford

See the concurrent thread "Variable sort ..."

-- Loren

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Max M
Sent: Wednesday, January 17, 2001 15:58
To: Zope@Zope. Org
Subject: [Zope] Setting the sort var in dtml-in ...sort=sortVar


Does anybody know if it is possible to programatically set the sort
parameter in something like: dtml-in getAllComments sort=fwd_thread

It's the fwd_thread in "sort=fwd_thread" i want to set via dtml to avoid:

dtml-if "sortBy=='fwd_thread'"
dtml-in getAllComments sort=fwd_thread
Do sorted stuff
/dtml-in
dtml-elif "sortBy=='author'"
dtml-in getAllComments sort=author
Do sorted stuff
/dtml-in
etc.
etc.
/dtml-if

Or alternativley, is it possible to use the sort from dtml-in in a Python
Product as a method on the list that getAllComments() returns?

Yes I could roll my own but it would be easier to use Zope's, if I knew how
to.

regards Max M

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 )



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