[Zope] resolve_url and authorization

Ingo Assenmacher ass@Pool.Informatik.RWTH-Aachen.DE
Tue, 11 Apr 2000 14:03:13 +0200 (MET DST)


Hi.

Config:

Zope 2.1.4
linux/i386

I have a method which searches for objects of certain types with help of
an Catalog.
I use

<dtml-in "Catalog(meta_type='desired_type')">
 <dtml-with "resolve_url(getpath(data_record_id_), REQUEST)">
  <dtml-val id>
 </dtml-with>
</dtml-in>

And this is what I get IF I AM NOT THE SUPER-USER:
Traceback (innermost last):
  File
/amnt/home/assen/Zope-2.1.1-linux2-x86/lib/python/ZPublisher/Publish.py,
line 214, in publish_module
  File
/amnt/home/assen/Zope-2.1.1-linux2-x86/lib/python/ZPublisher/Publish.py,
line 179, in publish
  File
/amnt/home/assen/Zope-2.1.1-linux2-x86/lib/python/ZPublisher/Publish.py,
line 165, in publish
  File
/amnt/home/assen/Zope-2.1.1-linux2-x86/lib/python/ZPublisher/mapply.py,
line 160, in mapply
    (Object: trigger_search)
  File
/amnt/home/assen/Zope-2.1.1-linux2-x86/lib/python/ZPublisher/Publish.py,
line 102, in call_object
    (Object: trigger_search)
  File
/amnt/home/assen/Zope-2.1.1-linux2-x86/lib/python/OFS/DTMLMethod.py, line
145, in __call__
    (Object: trigger_search)
  File
/amnt/home/assen/Zope-2.1.1-linux2-x86/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
    (Object: trigger_search)
  File
/amnt/home/assen/Zope-2.1.1-linux2-x86/lib/python/DocumentTemplate/DT_In.py,
line 691, in renderwob
    (Object: Catalog(meta_type='material',  autoren=au, beschreibung=be,
schlagworte=sw, zuordnung=REQUEST['zuordnung'], title=ti))
  File
/amnt/home/assen/Zope-2.1.1-linux2-x86/lib/python/DocumentTemplate/DT_Util.py,
line 335, in eval
    (Object: resolve_url(Catalog.getpath(data_record_id_), REQUEST).id)
    (Info: Catalog)
  File <string>, line 0, in ?
  File
/amnt/home/assen/Zope-2.1.1-linux2-x86/lib/python/DocumentTemplate/DT_Util.py,
line 138, in careful_getattr
Unauthorized: (see above)


I NEED THIS! So, please help!

Thanks!!

regards, ingo.