[Zope-dev] getpath not working

Jason Spisak webmaster@mtear.com
Tue, 20 Jul 1999 14:12:02 -0800


Michel,

<a href="/<!--#var "Catalog.getpath(data_record_id_)"-->"> works fine
inside the Catalog folder, but outside the folder even using <!--#with
Catalog--> I get this traceback:

<P>
  <STRONG>Error Type: AttributeError</STRONG><BR>
  <STRONG>Error Value: getpath</STRONG><BR> 
  </P>

<!--
Traceback (innermost last):
  File /home/mike_weltz/Zope/lib/python/ZPublisher/Publish.py, line 256,
in publish_module
  File /home/mike_weltz/Zope/lib/python/ZPublisher/Publish.py, line 161,
in publish
  File /home/mike_weltz/Zope/lib/python/ZPublisher/mapply.py, line 154,
in mapply
    (Object: index_html)
  File /home/mike_weltz/Zope/lib/python/ZPublisher/Publish.py, line 98,
in call_object
    (Object: index_html)
  File /home/mike_weltz/Zope/lib/python/OFS/DTMLMethod.py, line 150, in __call__
    (Object: index_html)
  File /home/mike_weltz/Zope/lib/python/OFS/DTMLMethod.py, line 145, in __call__
    (Object: index_html)
  File /home/mike_weltz/Zope/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
    (Object: index_html)
  File /home/mike_weltz/Zope/lib/python/DocumentTemplate/DT_With.py,
line 148, in render
    (Object: _(recruiter_stuff=Catalog(recruiter=AUTHENTICATED_USER.getUserName())))
  File
/home/mike_weltz/Zope/lib/python/Products/Calendar/CalendarTag.py, line
206, in render
  File
/home/mike_weltz/Zope/lib/python/Products/Calendar/CalendarTag.py, line
268, in render_day_
  File /home/mike_weltz/Zope/lib/python/DocumentTemplate/DT_In.py, line
689, in renderwob
    (Object: recruiter_stuff)
  File /home/mike_weltz/Zope/lib/python/DocumentTemplate/DT_Util.py,
line 315, in eval
    (Object: Catalog.getpath(data_record_id_))
  File &lt;string&gt;, line 0, in ?
  File /home/mike_weltz/Zope/lib/python/DocumentTemplate/DT_Util.py,
line 126, in careful_getattr
AttributeError: (see above)

-->

Is there another way of getting the url of the object you want for a link?

All my best,

Jason Spisak
webmaster@mtear.com