1. Jesper Noehr
  2. django-piston
  3. Issues
Issue #20 resolved

Recursion error in Documentation Handler

created an issue

I'm performing a request for documentation via the python shell to test the api, and I get a recursion error inside of piston's HandlerDocumentation class:

{{{ /Library/Python/2.5/site-packages/piston/doc.pyc in model(self) 82 Property 83 def model(self): ---> 84 return getattr(self, 'model', None)

RuntimeError: maximum recursion depth exceeded }}}

(I haven't really contributed tickets to a project like this before, so let me know if this sort of thing is considered belligerent.)

Comments (4)

  1. Jesper Noehr repo owner
    • changed status to open

    Hi Pete,

    Thanks for your report. Can you give me the full source of what you're trying to do? The point of failure is useful, but how you get to that point is more important.

  2. Anonymous

    I´m getting the same error running python manage.py shell:

    from piston.doc import generate_doc
    from api.handlers import MoviesCurrentHandler
    doc = generate_doc(MoviesCurrentHandler)
    throws the error ...
  3. Log in to comment