[Zope-CMF] Discussable disappeared.

Ignacio Valdes ivaldes@hal-pc.org
Wed, 09 May 2001 22:25:12 -0500


Tres Seaver wrote:

> On Wed, 9 May 2001, Ignacio Valdes wrote:
>
> <snip>
> > Okay, I put in the above code into allow_discussion
>
> AIYAH!  Don't do that!  call the new DTML Method
> "test_discussion_parms", or "edna", or anything except one of the
> values it is trying to dump itself!  I'll chalk this one up to
> new-baby sleep deprivation. :)
>
> > and run it
> > against one of my objects at this URL:
> > http://www.linuxmednews.com/linuxmednews/LMNProjects/20010503123815/20010503160056/20010503170304/allow_discussion
> >
> > And I get a Zope error that says 'System Error', 'excessive
> > recursion' with a big long repeating message, part of which
> > I've included here:
>
> Right, you've created a method which always calls itself;  Zope
> is catching that for you, after about a hundred times, instead of
> core dumping. :)
>
> Tres.

Ohhhhhhhh. That will give you brain damage. Renamed it and gave it a go, now it gives an attribute error 'None' object
has no attribute 'getId'  Which seems odd. -- IV


                                  Zope Error

                                  Zope has encountered an error while publishing this resource.

                                  Error Type: AttributeError
                                  Error Value: 'None' object has no attribute 'getId'



                                  Troubleshooting Suggestions

                                       The URL may be incorrect.
                                       The parameters passed to this resource may be incorrect.
                                       A resource that this resource relies on may be encountering an error.

                                  For more detailed information about the error, please refer to the HTML source for
this page.

                                  If the error persists please contact the site maintainer. Thank you for your
patience.



Traceback (innermost last):
  File /home/zope/zope5/lib/python/ZPublisher/Publish.py, line 223, in publish_module
  File /home/zope/zope5/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /home/zope/zope5/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook
    (Object: DynamicType)
  File /home/zope/zope5/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /home/zope/zope5/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: test_discussion_parms)
  File /home/zope/zope5/lib/python/ZPublisher/Publish.py, line 112, in call_object
    (Object: test_discussion_parms)
  File /home/zope/zope5/lib/python/OFS/DTMLMethod.py, line 189, in __call__
    (Object: test_discussion_parms)
  File /home/zope/zope5/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__
    (Object: test_discussion_parms)
  File /home/zope/zope5/lib/python/DocumentTemplate/DT_Let.py, line 147, in render
    (Object: type_name=Type
          tool="portal_types"
          type_info="tool.getTypeInfo( type_name )")
  File /home/zope/zope5/lib/python/DocumentTemplate/DT_Util.py, line 334, in eval
    (Object: type_info.getId())
    (Info: type_info)
  File <string>, line 0, in ?
  File /home/zope/zope5/lib/python/DocumentTemplate/DT_Util.py, line 127, in careful_getattr
AttributeError: (see above)



--
Ignacio Valdes, Editor: Linux Medical News
http://www.linuxmednews.com
'Revolutionizing Medical Education and Practice'