[Zope-CMF] problem with cmf.zope.org?

marc lindahl marc@bowery.com
Wed, 25 Apr 2001 02:16:13 -0400


I tried to add something to my favorites on http://cmf.zope.org and got
this:

An exception occurred in a DTML method or document.

Error type: KeyError
Error value: design

Innermost method: /PTK/addtoFavorites

        Namespace Stack (innermost entry at top)
     ID
                                Type
 (N/A) 
             mapping with keys: ['homeFolder']
 (N/A) 
             mapping with keys: ['document_id', 'document_title']
 bowerymarc 
             InstanceDict
 REQUEST 
             ZPublisher.HTTPRequest.HTTPRequest


Source of /PTK/addtoFavorites with fault:

 <dtml-let homeFolder="portal_membership.getHomeFolder()">

   <dtml-if expr="not _.hasattr(homeFolder, 'Favorites')">
     <dtml-call expr="homeFolder.manage_addPortalFolder(id='Favorites',
title='Favorites')">
   </dtml-if>

   <dtml-let targetFolder="_.getattr(homeFolder, 'Favorites')"
                   new_id="'fav_' + _.str(_.int(ZopeTime()))"
                  favPath="favorite[_.len(SERVER_URL):]"
                   favObj="restrictedTraverse(favPath)">
     <dtml-call expr="targetFolder.addFavorite(id=new_id,
title=favObj.title, remote_url=favPath)">

   </dtml-let>

   <dtml-call expr="RESPONSE.redirect(favorite + '/view')">
 </dtml-let>




Call stack (security context)

 /PTK/addtoFavorites


REQUEST information

 form

  favorite
          'http://cmf.zope.org/design/system_architecture'


 cookies

  folderfilter
              
'e3MHAAAAU3ViamVjdHMAAAAAcwQAAABUeXBlWwAAAABzBAAAAG9wZW5pAAAAADA='
  __ac_name
              'bowerymarc'
  __ac
              
'Ym93ZXJ5bWFyYzpmZThkNWM3ODAxYjI5YjVjOTk1NWFhYzNkZjJhZGY0ZA%3d%3d%0a'
  portal_skin
              'Basic'


 other

  AUTHENTICATION_PATH
                              'PTK/vurt//'
  VirtualRootPhysicalPath
                              ('', 'PTK')
  portal_skin
                              'Basic'
  PUBLISHED
                              <FSDTMLMethod instance at 87eeff0>
  __ac_name
                              'bowerymarc'
  __ac
                   
'Ym93ZXJ5bWFyYzpmZThkNWM3ODAxYjI5YjVjOTk1NWFhYzNkZjJhZGY0ZA%3d%3d%0a'
  folderfilter
                   
'e3MHAAAAU3ViamVjdHMAAAAAcwQAAABUeXBlWwAAAABzBAAAAG9wZW5pAAAAADA='
  SERVER_URL
                              'http://cmf.zope.org'
  favorite
                   
'http://cmf.zope.org/design/system_architecture'
  URL
                   
'http://cmf.zope.org/Members/bowerymarc/addtoFavorites'
  AUTHENTICATED_USER
                              bowerymarc
  TraversalRequestNameStack
                              []
  URL0
                   
http://cmf.zope.org/Members/bowerymarc/addtoFavorites
  URL1
                              http://cmf.zope.org/Members/bowerymarc
  URL2
                              http://cmf.zope.org/Members
  URL3
                              http://cmf.zope.org
  BASE0
                              http://cmf.zope.org
  BASE1
                              http://cmf.zope.org
  BASE2
                              http://cmf.zope.org/Members
  BASE3
                              http://cmf.zope.org/Members/bowerymarc
  BASE4
                   
http://cmf.zope.org/Members/bowerymarc/addtoFavorites


 environ

  SCRIPT_NAME
  HTTP_ACCEPT_ENCODING
                                gzip
  STUPID_LOG_FILE
                                /usr/local/base/new/var/new_events.log
  channel.creation_time
                                988179258
  HTTP_REFERER
                   
http://cmf.zope.org/PTK//design/system_architecture
  QUERY_STRING
                   
favorite=http%3a//cmf.zope.org/design/system_architecture
  SERVER_PROTOCOL
                                1.0
  SERVER_PORT
                                1480
  PATH_TRANSLATED
                   
/VirtualHostBase/http/cmf.zope.org:80/PTK/VirtualHostRoot/Members/bowerymarc
/addtoFavorites
  REMOTE_ADDR
                                10.0.11.2
  REQUEST_METHOD
                                GET
  SERVER_SOFTWARE
                                Zope/(unreleased version) ZServer/1.1b1
  HTTP_COOKIE
                                portal_skin="Basic"; __ac_name="bowerymarc";
                   
folderfilter="e3MHAAAAU3ViamVjdHMAAAAAcwQAAABUeXBlWwAAAABzBAAAAG9wZW5pAAAAAD
A=";
                   
__ac="Ym93ZXJ5bWFyYzpmZThkNWM3ODAxYjI5YjVjOTk1NWFhYzNkZjJhZGY0ZA%3d%3d%0a"
  PATH_INFO
                   
/VirtualHostBase/http/cmf.zope.org:80/PTK/VirtualHostRoot/Members/bowerymarc
/addtoFavorites
  HTTP_ACCEPT_LANGUAGE
                                en,ja,zh-CN,zh,zh-TW,ko
  HTTP_HOST
                                10.0.11.2:1480
  GATEWAY_INTERFACE
                                CGI/1.1
  SERVER_NAME
                                app1
  HTTP_USER_AGENT
                                Mozilla/4.75C-CCK-MCD {C-UDP; EBM-APPLE}
(Macintosh; U; PPC)
  HTTP_ACCEPT_CHARSET
                                iso-8859-1,*,utf-8
  HTTP_ACCEPT
                                image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, image/png, */*