[Zope-CMF] actions_box not working on new object ???

Florent Guillaume fg@nuxeo.com
Wed, 2 Oct 2002 15:41:40 +0000 (UTC)


CMF 1.1 is _so_ very old. Many bugs have been fixed since.

First, try reproducing with CMF 1.3 (read the INSTALL.txt file when
upgrading!).

Also, *never create CMF objects from the ZMI* they won't be created
correctly.

Florent



 <Jean-Francois.Doyon@CCRS.NRCan.gc.ca> wrote:
> -=-=-=-=-=-
> 
> Hello,
> 
> OK, I've tried everything I can think of, and I'm not having any luck.
> 
> I added a new object to CMFDefault (I know, I know ... I shouldn't do that
> :) ... See the code below ... It's a real simple one, it simply holds a
> python list as an attribute.
> 
> Now I've added it using the portal_types tool through the ZMI
> (Factory-Based), and through the ZMI, everything works just fine.  I can
> create, delete and edit the object (DC Metadata and everything else), using
> the ZMI.
> 
> The object is also used successfully on the public web site.
> 
> Where the problem appears is that when logging in through the site itself,
> CMF-style, when I view the object in question, the actions box shows nothing
> for it! No status, no actions.
> 
> I checked permissions everywhere, and they are the same as other CMFDefault
> types ... This is not the first extention I have done to CMFDefault, and all
> my other types work fine, just not THIS one. No errors are generated
> anywhere that I can find.  It just won't do it.
> 
> I also checked my DC Workflow setup.  This pretty easy since I just have the
> one Default workflow.  I hit the "Update Security Settings" but that didn't
> help either.
> 
> The view, edit and metadata actions are indeed defined also.
> 
> The security settings on the object indicate it's status is private, but
> again, it doesn't appear in the actions box.
> 
> Here is the file I use in CMFDefault:
> 
>  <<MapList.py>> 
> I of course edited __init__.py and Portal.py accordingly ... All that seems
> to work OK.
> 
> I'm completely out of ideas, and kind of really need this to work ! :)
> 
> Any help or insight would be greatly appreciated ... Oh, I'm using Zope
> 2.5.0 w/ CMF 1.1, on a RedHat 7.3 ... Python 2.1.3 of course.
> 
> Thanks in advance,
> 
> Jean-François Doyon
> Internet Service Development and Systems Support
> GeoAccess Division
> Canada Center for Remote Sensing
> Natural Resources Canada
> http://atlas.gc.ca
> Phone: (613) 992-4902
> Fax: (613) 947-2410
> 
> 
> -=-=-=-=-=-
> [Attachment type=application/octet-stream, name=MapList.py]
> -=-=-=-=-=-


-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com