[Zope] how do i escape a name with . in it?

Navindra Umanee navindra@cs.mcgill.ca
Mon, 10 Jun 2002 10:25:45 -0400

Bakhtiar A Hamid <kedai@kedai.com.my> wrote:
> i think we need to pass the client, and mapping
> still untested
>  <dtml-in 
> expr="_['dot.kde.org'](_.None,_)(sort_on='date',sort_order='reverse')"
>  size=40>
> which is ugly, methinks

Ugliness has never been a concern! If only I could get it to
work... :-)

  <strong>Error Type: AttributeError</strong><br>
  <strong>Error Value: no __call__ method defined</strong><br>

  File /var/zope/lib/python/DocumentTemplate/DT_In.py, line 655, in renderwob
    (Object: _['dot.kde.org'](_.None,_)(sort_on='date',sort_order='reverse'))
  File /var/zope/lib/python/DocumentTemplate/DT_Util.py, line 339, in eval
    (Object: _['dot.kde.org'](_.None,_)(sort_on='date',sort_order='reverse'))
    (Info: _)
  File &lt;string&gt;, line 0, in ?
AttributeError: (see above)

> go with the script python.  just a one line change

Hmmm, this doesn't work either.  I get a weird unauthorised error,
although I tried full access.

  File /var/zope/lib/python/Products/PythonScripts/Guarded.py, line 273, in __getattr__
  File /var/zope/lib/python/Products/PythonScripts/Guarded.py, line 152, in __careful_getattr__
Unauthorized: __getslice__