It's very, very...  great news that Ross Lazarus's multikey
sort patch for dtml-in tag is included in current Zope CVS
and will be included in Zope 2.2.

<dtml in "foo" sort=akey,anotherkey>

But for me one important thing is very missed.
Possibillity of use expression syntax for sort= attribute.

Maybe syntax:
<dtml in "foo" sort="expression_which_returns_sort_keys_string">
would be possible ?

eg.
<dtml in "foo" sort="fun()">
where fun() will returns appropriate Python string
eq. 'firstname,surname,height, width,weight'  :)

I hate constructions like this:

<dtml-if something>
  <dtml in "foo" sort=key1,key2,key3>
<dtml-elif something>
  <dtml in "foo" sort=key1,key3,key2>
<dtml-elif something>
  <dtml in "foo" sort=key2,key1,key3>
<dtml-elif something>
  <dtml in "foo" sort=key2,key3,key1>
<dtml-elif something>
  <dtml in "foo" sort=key3,key1,key2>
<dtml-else>
  <dtml in "foo" sort=key3,key2,key1>

...

</dtml-in>

What you think about ?.

Adam Karpierz
[EMAIL PROTECTED]




_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to