[Zope-CMF] Moving CMF product from DTML to ZPT

Greg Ward gward@python.net
Wed, 12 Feb 2003 13:18:55 -0500

> I managed to get the view PT sort-of working -- it doesn't crash, at
> least.  But the edit_form PT is broken and I'm quite mystified; here's
> the traceback I get when I try to edit an instance of MLDocument:
>   Traceback (innermost last):
>       * Module ZPublisher.Publish, line 98, in publish
>       * Module ZPublisher.mapply, line 56, in mapply
>   AttributeError: func_code

Whoops, looks like pilot error.  I manually typed in the URL
"/cp/mldoc/edit" (/cp is my CMF site, and mldoc is an MLDocument
instance) thinking it would work.  (There were no links to follow,
because even my "view" action was hosed at the time.)  It didn't -- see
above traceback.  "/cp/mldoc/mldocument_edit_form" *does* work, because
that's the identifier I used for the "edit" action for MLDocument.

Greg Ward <gward@python.net>                         http://www.gerg.ca/
Life is too short for ordinary music.