[Zope] ZDebug Wizzard interference

Albert Boulanger aboulanger@ldeo.columbia.edu
Wed, 06 Sep 2000 17:25:14 -0400


Shane wrote

>
>
> http://www.zope.org/Members/hathawsh/ZDebug/index_html
>
> ZDebug is a set of patches to Zope that help in the deciphering of DTML
> errors and authorization exceptions.  Because this is the first
> release, remember to make a backup before installing.

Looks like ZDebug does not work to well with wizards -- I suspect because
of ZCallable. I am using a PTK snapshot from today, latest Zope. Did a test
with and w/o ZDebug. Wizard works fine w/o. By the way I like where ZDebug
is going!

This is what happens when you ad a portal....

An exception occurred in a DTML method or document.

                       Error type: exceptions.IndexError
                       Error value: list index out of range

                       Innermost method:
/vpatch/PortalWizard/wizard_fillin_fields

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


                       Source of /vpatch/PortalWizard/wizard_fillin_fields
with fault:

                        <dtml-let
pagevars="_.getattr(wizard_pages[wizard_index], 'wizard_variables', [])">
                        <dtml-in "REQUEST.form.keys()">
                         <dtml-let key="_['sequence-item']">
                          <dtml-if "key[:7] != 'wizard_' and key not in
pagevars">
                           <input type="hidden" name="&dtml-key;"
value="<dtml-var "REQUEST.form[key]" html_quote>">
                          </dtml-if>
                         </dtml-let>
                        </dtml-in>
                        </dtml-let>

                        <dtml-if wizard_test>
                         <input type="hidden" name="wizard_test" value="1">

                        </dtml-if>



                        vPatch Home | Products, Services, and Solutions |
Testimonials | Investor Relations | Demos | Login/Registration | Learning
                        Center | Contact Us



Traceback (innermost last):
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py,
line 222, in publish_module
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py,
line 187, in publish
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Zope/__init__.py,
line 221, in zpublisher_exception_hook
    (Object: RoleManager)
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py,
line 171, in publish
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py,
line 160, in mapply
    (Object: index_html)
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py,
line 112, in call_object
    (Object: index_html)
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/App/Factory.py,
line 178, in index_html
    (Object: RoleManager)
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Products/ZCallable/__init__.py,
line 101, in __call__
    (Object: Traversable)
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py,
line 172, in __call__
    (Object: index_html)
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Products/ZDebug/DTMLLocator.py,
line 103, in __call__
    (Object: index_html)
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py,
line 528, in __call__
    (Object: index_html)
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Products/ZDebug/DTMLDebug.py,
line 213, in debug_render_blocks
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Products/ZDebug/DTMLDebug.py,
line 210, in debug_render_blocks
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py,
line 168, in __call__
    (Object: wizard_fillin_fields)
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Products/ZDebug/DTMLLocator.py,
line 103, in __call__
    (Object: wizard_fillin_fields)
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py,
line 528, in __call__
    (Object: wizard_fillin_fields)
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Products/ZDebug/DTMLDebug.py,
line 259, in debug_render_blocks
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Products/ZDebug/DTMLDebug.py,
line 192, in debugException
    (Object: pagevars="_.getattr(wizard_pages[wizard_index],
'wizard_variables', [])")
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/Products/ZDebug/DTMLDebug.py,
line 257, in debug_render_blocks
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Let.py,
line 146, in render
    (Object: pagevars="_.getattr(wizard_pages[wizard_index],
'wizard_variables', [])")
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Util.py,
line 337, in eval
    (Object: _.getattr(wizard_pages[wizard_index], 'wizard_variables', []))

    (Info: wizard_pages)
  File <string>, line 0, in ?
  File
/users/hog/software/zope/Zope-2.2.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Util.py,
line 163, in careful_getitem
IndexError: (see above)