[Zope] sort error.

Andreas Kostyrka andreas@mtg.co.at
Tue, 24 Aug 1999 13:40:16 +0200 (CEST)


Hi!

I've been fooling around with getting sorting on a dynamic base done, and
now I've got this:

sortfunc: (DTML method)
<dtml-if "_.len(sortkey)>0">
<dtml-return sortkey>
<dtml-else>
<dtml-return id>
</dtml-if>
index_html: (DTML method)
...
<dtml-in "objectValues(['FMFolder','FMFile'])" sort=sortfunc>
...

I now get the following error message:
Traceback (innermost last):
  File
/home2/redhat/BUILD/Zope-2.0.0b5-src/lib/python/ZPublisher/Publish.py,
line 209, in publish_module
  File
/home2/redhat/BUILD/Zope-2.0.0b5-src/lib/python/ZPublisher/Publish.py,
line 179, in publish
  File /home2/redhat/BUILD/Zope-2.0.0b5-src/lib/python/Zope/__init__.py,
line 199, in zpublisher_exception_hook
    (Object: CatalogAware)
  File
/home2/redhat/BUILD/Zope-2.0.0b5-src/lib/python/ZPublisher/Publish.py,
line 165, in publish
  File
/home2/redhat/BUILD/Zope-2.0.0b5-src/lib/python/ZPublisher/mapply.py, line
154, in mapply
    (Object: index_html)
  File
/home2/redhat/BUILD/Zope-2.0.0b5-src/lib/python/ZPublisher/Publish.py,
line 102, in call_object
    (Object: index_html)
  File /home2/redhat/BUILD/Zope-2.0.0b5-src/lib/python/OFS/DTMLMethod.py,
line 145, in __call__
    (Object: index_html)
  File
/home2/redhat/BUILD/Zope-2.0.0b5-src/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
    (Object: index_html)
  File
/home2/redhat/BUILD/Zope-2.0.0b5-src/lib/python/DocumentTemplate/DT_In.py,
line 646, in renderwob
    (Object: objectValues(['FMFolder','FMFile']))
  File
/home2/redhat/BUILD/Zope-2.0.0b5-src/lib/python/DocumentTemplate/DT_In.py,
line 719, in sort_sequence
    (Object: objectValues(['FMFolder','FMFile']))
AttributeError: (see above)

Andreas
--
Andreas Kostyrka                     | andreas@mtg.co.at
phone: +43/1/7070750                 | phone: +43/676/4091256   
MTG Handelsges.m.b.H.                | fax:   +43/1/7065299
Raiffeisenstr. 16/9                  | 2320 Zwoelfaxing AUSTRIA