[Zope] problems sorting list

Sebastian Kügler sebas@ick-kupplungen.de
Fri, 28 Sep 2001 12:54:34 +0200


> > > > I have the following problem with it, i could not yet figure out how
to
> > sort
> > > > the items by bobobas modification time
> > >
> > >    <dtml-in documents sort="bobobase_modification_time"> works for me.
> >
> > I am doing this in a python script, sorting in dtml has not been a
problem.
>
> from DTML import SortEx
> return SortEx(documents, (("bobobase_modification_time",),))


I am getting the following error while importing DTML, the first line though

the error is:
Error Type: ImportError
Error Value: import of "DTML" is unauthorized
the last lines from the traceback are these:

  File /usr/local/zope/lib/python/Products/PythonScripts/PythonScript.py,
line 363, in _exec
    (Object: output_news_py)
    (Info: ({'script': <PythonScript instance at 8a1d808>, 'context':
<Folder instance at 89f3718>, 'container': <Folder instance at 8870198>,
'traverse_subpath': []}, (), {}, None))
  File Script (Python), line 21, in output_news_py
    (Object: guarded_getitem)
  File /usr/local/zope/lib/python/AccessControl/ZopeGuards.py, line 213, in
guarded_import
ImportError: (see above)


Any more ideas?



tia,


Sebastian Kügler
________________________
Webmaster NSM