[Zope-CMF] actions_box bug?

marc lindahl marc@bowery.com
Fri, 04 May 2001 17:14:11 -0400


I keep running into this when trying to view some pages:



                exceptions.KeyError on

                An exception occurred in a DTML method or document.

                Error type: KeyError
                Error value: BASEPATH1

                Innermost method: /junk/bowery/actions_box
                Name not found or not allowed: BASEPATH1

                              Namespace Stack (innermost entry at top)
                   ID
                                           Type
                                                                    Contains
name?
                 (N/A)
                        mapping with keys: ['icon']
                                                                    No
                 (N/A)
                        mapping with 4 keys
                                                                    No
                 (N/A)
                        mapping with keys: ['object_actions']
                                                                    No
                 (N/A)
                        mapping with 9 keys
                                                                    No
                 (N/A)
                        mapping with keys: ['document_id', 'document_title']
                                                                    No
                 bowery
                        InstanceDict
                                                                    No
                 (N/A)
                        mapping with 14 keys
                                                                    No


                Source of /junk/bowery/actions_box with fault:

                 <dtml-let isAnon="portal_membership.isAnonymousUser()"
                           AuthClass="isAnon and 'GuestActions' or
'MemberActions'"
                           uname="isAnon and 'Guest'
                                  or
portal_membership.getAuthenticatedMember().getUserName()"
                           obj="this()"
                   
actions="portal_actions.listFilteredActionsFor(obj)"
                           user_actions="actions['user']"
                           folder_actions="actions['folder']"
                           object_actions="actions['object'] +
actions['workflow']"
                           global_actions="actions['global']"
                 >

                 <table class="ActionBox" width="100%">

                  <tr class="&dtml-AuthClass;">
                   <td class="ActionTitle">
                    <img src="&dtml-portal_url;/p_/User_icon" align="left"
alt="User">
                    <dtml-var uname>
                   </td>
                  </tr>
                  <tr class="&dtml-AuthClass;">
                   <td>
                    <dtml-in user_actions mapping>
                     <a href="&dtml-url;"><dtml-var name></a><br>
                    </dtml-in>
                   </td>
                  </tr>

                 <dtml-if folder_actions>
                  <tr class="&dtml-AuthClass;">
                   <td> <dtml-in folder_actions mapping>
                         <a href="&dtml-url;"><dtml-var name></a><br>
                        </dtml-in>
                   </td>
                  </tr>
                 </dtml-if>

                 <dtml-if object_actions>
                  <tr class="&dtml-AuthClass;">
                   <td class="ActionTitle">
                    <dtml-let getIcon="_.hasattr(obj, 'getIcon') and
obj.getIcon()"
                              icon="getIcon or _.getattr(obj, 'icon', '')"
                              typ="_.getattr(obj, 'Type', '')"
                              objID="obj.getId()"
                    >
                      <dtml-if icon>
                      <img src="&dtml-BASEPATH1;/&dtml-icon;" align="left"
alt="&dtml-typ;" />
                      </dtml-if>
                      <dtml-var objID size=15 html_quote>
                     </dtml-let>
                   </td>
                  </tr>
                  <tr class="&dtml-AuthClass;">
                   <td>

                     <dtml-let
review_state="portal_workflow.getInfoFor(this(),
                                             'review_state', '')">
                     <dtml-if review_state>
                     Status: &dtml-review_state;<br>
                     </dtml-if>
                     </dtml-let>

                     <dtml-in object_actions mapping>
                       <a href="&dtml-url;"><dtml-var name></a><br>
                     </dtml-in>
                   </td>
                  </tr>
                 </dtml-if>

                 <dtml-if global_actions>
                  <tr class="&dtml-AuthClass;">
                   <td>
                    <dtml-in global_actions mapping>
                     <a href="<dtml-var url>"><dtml-var name></a><br>
                    </dtml-in>
                   </td>
                  </tr>
                 </dtml-if>

                 </table>

                 </dtml-let>




                Call stack (security context)

                 /junk/bowery/actions_box
                 /junk/bowery/index_html

                in ""


Traceback (innermost last):
  File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line
223, in publish_module
  File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /usr/local/zope/Zope-2.3.1/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
    (Object: Traversable)
  File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/mapply.py, line 160,
in mapply
    (Object: index_html)
  File /usr/local/zope/Zope-2.3.1/lib/python/ZPublisher/Publish.py, line
112, in call_object
    (Object: index_html)
  File /usr/local/zope/Zope-2.3.1/lib/python/Shared/DC/Scripts/Bindings.py,
line 324, in __call__
    (Object: index_html)
  File /usr/local/zope/Zope-2.3.1/lib/python/Shared/DC/Scripts/Bindings.py,
line 354, in _bindAndExec
    (Object: index_html)
  File 
/usr/local/zope/Zope-2.3.1/lib/python/Products/PageTemplates/ZopePageTemplat
e.py, line 247, in _exec
    (Object: index_html)
  File 
/usr/local/zope/Zope-2.3.1/lib/python/Products/CMFDecor/FSPageTemplate.py,
line 162, in pt_render
    (Object: index_html)
  File 
/usr/local/zope/Zope-2.3.1/lib/python/Products/PageTemplates/PageTemplate.py
, line 155, in pt_render
    (Object: index_html)
    (Info: {'container': <CMFSite instance at 8d09fe0>,
 'here': <PortalFolder instance at 9ddd270>,
 'modules': <Products.PageTemplates.ZopePageTemplate._SecureModuleImporter
instance at 85c43f0>,
 'nothing': None,
 'options': {'args': ()},
 'request': <h3>form</h3><table></table><h3>cookies</h3><table><tr
valign="top" 
align="left"><th>tree-s</th><td>'eJyLjlZ3hANPW3UdhWhkkUgMkXRb9djYWKAgXMy9yhc
sFgsA5UET1g'</td></tr><tr valign="top"
align="left"><th>__ac_name</th><td>'marc'</td></tr><tr valign="top"
align="left"><th>dtpref_cols</th><td>'90'</td></tr><tr valign="top"
align="left"><th>__cp</th><td>'x%da%d3%60b%60%60%c8%04b%86hF%20%a1%c1%0a%24%
8aA%dcb6%20%91%91Y%90%91_P%cc%03d%16%e4%17%95%24%e6%c4%17gg%e6%15%83%e5%92%f
2%cbS%8b%2a%8b%05%40jK%12%f3R%12%8bR%e2K%f2%0b%e2%93%12%8b%00%82%f5%14T'</td
></tr><tr valign="top" align="left"><th>portal_skin</th><td>'first'</td></tr><tr
valign="top" 
align="left"><th>dtpref_rows</th><td>'30'</td></tr></table><h3>other</h3><ta
ble><tr valign="top" align="left"><th>dtpref_rows</th><td>'30'</td></tr><tr
valign="top" 
align="left"><th>BASE4</th><td>'http://210.67.3.12/junk/bowery/Artists'</td>
</tr><tr valign="top" align="left"><th>__ac_name</th><td>'marc'</td></tr><tr
valign="top" align="left"><th>dtpref_cols</th><td>'90'</td></tr><tr
valign="top" 
align="left"><th>BASE3</th><td>'http://210.67.3.12/junk/bowery'</td></tr><tr
valign="top" 
align="left"><th>URL2</th><td>'http://210.67.3.12/junk/bowery/Artists'</td><
/tr><tr valign="top"
align="left"><th>BASE1</th><td>'http://210.67.3.12'</td></tr><tr
valign="top" 
align="left"><th>BASE0</th><td>'http://210.67.3.12'</td></tr><tr
valign="top" 
align="left"><th>SERVER_URL</th><td>'http://210.67.3.12'</td></tr><tr
valign="top" align="left"><th>AUTHENTICATED_USER</th><td>admin</td></tr><tr
valign="top" 
align="left"><th>TraversalRequestNameStack</th><td>[]</td></tr><tr
valign="top" 
align="left"><th>BASE5</th><td>'http://210.67.3.12/junk/bowery/Artists/Nitty
'</td></tr><tr valign="top"
align="left"><th>tree-s</th><td>'eJyLjlZ3hANPW3UdhWhkkUgMkXRb9djYWKAgXMy9yhc
sFgsA5UET1g'</td></tr><tr valign="top"
align="left"><th>AUTHENTICATION_PATH</th><td>''</td></tr><tr valign="top"
align="left"><th>__cp</th><td>'x%da%d3%60b%60%60%c8%04b%86hF%20%a1%c1%0a%24%
8aA%dcb6%20%91%91Y%90%91_P%cc%03d%16%e4%17%95%24%e6%c4%17gg%e6%15%83%e5%92%f
2%cbS%8b%2a%8b%05%40jK%12%f3R%12%8bR%e2K%f2%0b%e2%93%12%8b%00%82%f5%14T'</td
></tr><tr valign="top" align="left"><th>portal_skin</th><td>'first'</td></tr><tr
valign="top" 
align="left"><th>URL3</th><td>'http://210.67.3.12/junk/bowery'</td></tr><tr
valign="top" 
align="left"><th>URL0</th><td>'http://210.67.3.12/junk/bowery/Artists/Nitty/
index_html'</td></tr><tr valign="top"
align="left"><th>URL1</th><td>'http://210.67.3.12/junk/bowery/Artists/Nitty'
</td></tr><tr valign="top"
align="left"><th>URL4</th><td>'http://210.67.3.12/junk'</td></tr><tr
valign="top" align="left"><th>URL5</th><td>'http://210.67.3.12'</td></tr><tr
valign="top" 
align="left"><th>BASE6</th><td>'http://210.67.3.12/junk/bowery/Artists/Nitty
/index_html'</td></tr><tr valign="top"
align="left"><th>PUBLISHED</th><td>&lt;FSPageTemplate instance at
8cc11e0&gt;</td></tr><tr valign="top"
align="left"><th>URL</th><td>'http://210.67.3.12/junk/bowery/Artists/Nitty/i
ndex_html'</td></tr><tr valign="top"
align="left"><th>BASE2</th><td>'http://210.67.3.12/junk'</td></tr><tr
valign="top" align="left"><th>traverse_subpath</th><td>[]</td></tr><tr
valign="top" 
align="left"><th>URL0</th><td>http://210.67.3.12/junk/bowery/Artists/Nitty/i
ndex_html</td></tr><tr valign="top"
align="left"><th>URL1</th><td>http://210.67.3.12/junk/bowery/Artists/Nitty</
td></tr><tr valign="top"
align="left"><th>URL2</th><td>http://210.67.3.12/junk/bowery/Artists</td></t
r><tr valign="top" 
align="left"><th>URL3</th><td>http://210.67.3.12/junk/bowery</td></tr><tr
valign="top" 
align="left"><th>URL4</th><td>http://210.67.3.12/junk</td></tr><tr
valign="top" align="left"><th>URL5</th><td>http://210.67.3.12</td></tr><tr
valign="top" align="left"><th>BASE0</th><td>http://210.67.3.12</td></tr><tr
valign="top" align="left"><th>BASE1</th><td>http://210.67.3.12</td></tr><tr
valign="top" 
align="left"><th>BASE2</th><td>http://210.67.3.12/junk</td></tr><tr
valign="top" 
align="left"><th>BASE3</th><td>http://210.67.3.12/junk/bowery</td></tr><tr
valign="top" 
align="left"><th>BASE4</th><td>http://210.67.3.12/junk/bowery/Artists</td></
tr><tr valign="top"
align="left"><th>BASE5</th><td>http://210.67.3.12/junk/bowery/Artists/Nitty<
/td></tr><tr valign="top"
align="left"><th>BASE6</th><td>http://210.67.3.12/junk/bowery/Artists/Nitty/
index_html</td></tr></table><h3>environ</h3><table><tr valign="top"
align="left"><th>HTTP_ACCEPT_ENCODING</th><td>gzip</td></tr><tr valign="top"
align="left"><th>channel.creation_time</th><td>989009355</td></tr><tr
valign="top" 
align="left"><th>HTTP_REFERER</th><td>http://210.67.3.12/junk/bowery/Artists
/Nitty/folder_contents</td></tr><tr valign="top"
align="left"><th>SERVER_PROTOCOL</th><td>1.0</td></tr><tr valign="top"
align="left"><th>SERVER_PORT</th><td>8080</td></tr><tr valign="top"
align="left"><th>PATH_INFO</th><td>/junk/bowery/Artists/Nitty/</td></tr><tr
valign="top" align="left"><th>HTTP_HOST</th><td>210.67.3.12</td></tr><tr
valign="top" align="left"><th>REQUEST_METHOD</th><td>GET</td></tr><tr
valign="top" 
align="left"><th>PATH_TRANSLATED</th><td>/junk/bowery/Artists/Nitty</td></tr
><tr valign="top" align="left"><th>SCRIPT_NAME</th><td></td></tr><tr
valign="top" align="left"><th>SERVER_SOFTWARE</th><td>Zope/Zope 2.3.2
(binary release, python 1.5.2, linux2-x86) ZServer/1.1b1</td></tr><tr
valign="top" 
align="left"><th>HTTP_ACCEPT_LANGUAGE</th><td>en,ja,zh-CN,zh,zh-TW,ko</td></
tr><tr valign="top"
align="left"><th>HTTP_ACCEPT_CHARSET</th><td>iso-8859-1,*,utf-8</td></tr><tr
valign="top" align="left"><th>HTTP_ACCEPT</th><td>image/gif,
image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*</td></tr><tr
valign="top" align="left"><th>REMOTE_ADDR</th><td>127.0.0.1</td></tr><tr
valign="top" 
align="left"><th>HTTP_COOKIE</th><td>portal_skin=&quot;first&quot;;
__ac_name=&quot;marc&quot;; dtpref_rows=&quot;30&quot;;
dtpref_cols=&quot;90&quot;;
__cp=&quot;x%da%d3%60b%60%60%c8%04b%86hF%20%a1%c1%0a%24%8aA%dcb6%20%91%91Y%9
0%91_P%cc%03d%16%e4%17%95%24%e6%c4%17gg%e6%15%83%e5%92%f2%cbS%8b%2a%8b%05%40
jK%12%f3R%12%8bR%e2K%f2%0b%e2%93%12%8b%00%82%f5%14T&quot;;
tree-s=&quot;eJyLjlZ3hANPW3UdhWhkkUgMkXRb9djYWKAgXMy9yhcsFgsA5UET1g&quot;</t
d></tr><tr valign="top"
align="left"><th>SERVER_NAME</th><td>localhost</td></tr><tr valign="top"
align="left"><th>GATEWAY_INTERFACE</th><td>CGI/1.1</td></tr><tr valign="top"
align="left"><th>HTTP_USER_AGENT</th><td>Mozilla/4.75C-CCK-MCD {C-UDP;
EBM-APPLE} (Macintosh; U; PPC)</td></tr><tr valign="top"
align="left"><th>CONNECTION_TYPE</th><td>Keep-Alive</td></tr></table>,
 'root': <Application instance at 8bf8c38>,
 'template': <FSPageTemplate instance at 8cc11e0>,
 'traverse_subpath': []})
  File /usr/local/zope/Zope-2.3.1/lib/python/TAL/TALInterpreter.py, line
198, in __call__
  File /usr/local/zope/Zope-2.3.1/lib/python/TAL/TALInterpreter.py, line
225, in interpret
  File /usr/local/zope/Zope-2.3.1/lib/python/TAL/TALInterpreter.py, line
414, in do_useMacro
  File /usr/local/zope/Zope-2.3.1/lib/python/TAL/TALInterpreter.py, line
225, in interpret
  File /usr/local/zope/Zope-2.3.1/lib/python/TAL/TALInterpreter.py, line
340, in do_insertStructure
  File 
/usr/local/zope/Zope-2.3.1/lib/python/Products/PageTemplates/TALES.py, line
274, in evaluateStructure
  File 
/usr/local/zope/Zope-2.3.1/lib/python/Products/PageTemplates/TALES.py, line
256, in evaluate
  File 
/usr/local/zope/Zope-2.3.1/lib/python/Products/PageTemplates/Expressions.py,
line 234, in __call__
  File 
/usr/local/zope/Zope-2.3.1/lib/python/Products/PageTemplates/Expressions.py,
line 178, in _evalRender
  File 
/usr/local/zope/Zope-2.3.1/lib/python/Products/PageTemplates/Expressions.py,
line 131, in render
    (Object: actions_box)
  File 
/usr/local/zope/Zope-2.3.1/lib/python/Products/CMFCore/FSDTMLMethod.py, line
180, in __call__
    (Object: actions_box)
  File /usr/local/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_String.py,
line 538, in __call__
    (Object: actions_box)
  File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py,
line 307, in debug_render_blocks
  File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py,
line 305, in debug_render_blocks
  File /usr/local/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_Let.py,
line 147, in render
    (Object: isAnon="portal_membership.isAnonymousUser()"
          AuthClass="isAnon and 'GuestActions' or 'MemberActions'"
          uname="isAnon and 'Guest'
                 or
portal_membership.getAuthenticatedMember().getUserName()"
          obj="this()"
          actions="portal_actions.listFilteredActionsFor(obj)"
          user_actions="actions['user']"
          folder_actions="actions['folder']"
          object_actions="actions['object'] + actions['workflow']"
          global_actions="actions['global']")
  File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py,
line 292, in debug_render_blocks
  File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py,
line 307, in debug_render_blocks
  File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py,
line 305, in debug_render_blocks
  File /usr/local/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_Let.py,
line 147, in render
    (Object: getIcon="_.hasattr(obj, 'getIcon') and obj.getIcon()"
             icon="getIcon or _.getattr(obj, 'icon', '')"
             typ="_.getattr(obj, 'Type', '')"
             objID="obj.getId()")
  File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py,
line 292, in debug_render_blocks
  File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py,
line 307, in debug_render_blocks
  File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py,
line 228, in debugException
    (Object: BASEPATH1)
  File /usr/local/zope/Zope-2.3.1/lib/python/Products/ZDebug/DTMLDebug.py,
line 305, in debug_render_blocks
  File /usr/local/zope/Zope-2.3.1/lib/python/DocumentTemplate/DT_Var.py,
line 276, in render
    (Object: BASEPATH1)
TALESError: (see above)