AW: [Zope3-dev] Re: AW: Re: Bug in Choice/Vocabulary/widget

Roger ineichen dev at projekt01.ch
Tue May 18 12:13:24 EDT 2004


Ok, I was adding the bug under:
http://collector.zope.org/Zope3-dev/208

Regards
Roger Ineichen
_____________________________
END OF MESSAGE 

Garrett Smith wrote:
> Thanks for the detailed report. I fixed the widget method 
> name -- you're 
> right, it should be 'getInputValue'. It's not clear to me why the 
> permissions aren't being saved, but I can easily reproduce it.
> 
> Could you add this to the bug tracker for Zope 3? I think 
> with the help 
> your detailed report, we can track this down during the post-beta bug 
> fix effort.
> 
>   -- Garrett
> 
> 
> Roger ineichen wrote:
> 
> > What I did for to run into the Bug,
> > 
> > - Delete the data.sf
> > 
> > - Start Zope3
> > 
> > - Loggend in as Manager
> > 
> > - Go to Utilities
> >   
> http://localhost:8080/++etc++site/default/Utilities/@@utilities.html
> > 
> > - Click "Add utility"
> > 
> > - Add a util "Content Component Definition"
> >   with the id "ccd"
> > 
> > - In the following form I filled out the fields
> >   Register as: ccd
> >   The permission needed to use the component: zope.View
> >   Registration status: Active
> >   The other fileds I let unchanged.
> > 
> > - Klick Add
> > 
> > - Then you get on the form for to add the schema
> > 
> > - Add buddydemo.interfaces.IBuddy
> >   as a usefull schema. it's in the second half fron down.
> >   (should be sorted by name) :-(
> > 
> > - Click change
> > 
> > So, the content component definition is added.
> > 
> > - Go to the tab "Define Permission" on the 
> >   content component definition called "ccd"
> > 
> > - Set a Accessor and Mutator permission on the 
> >   field First name, say zope.View
> > 
> > - Now you can do what you whant, I was adding a folder in the root
> >   called folder.
> > 
> > - Then you go back to the Utilities and see the "Define Permission"
> >   content component definition called "ccd", the permission of 
> >   the First name are still there.
> > 
> > - Now stop and start the Zope Server.
> > 
> > - Go back to the content component definition called "ccd"
> > 
> > - Go to the "Define Permission" and you see the permission
> >   of First name are gone. I get just (no value) on the
> >   First name Accessor and Mutator permission.
> > 
> >   But the permission are set to zope.View.
> >   I could not find out why the permissions are not show
> >   correctly and just available till you restart Zope.
> >   
> > I guess the Choice widget with a "Permission" vocabulary 
> can't render 
> > values and loose their not persistent data. (but its useing a 
> > persistentDict() for to store them. Perhaps I did a fault 
> in changing 
> > getData() to getInputValue()? But getData() is wrong. (What's the 
> > right method?) The permission itself is set correct, it's just a 
> > problem of rendering the value.
> 
> 
> 
> _______________________________________________
> Zope3-dev mailing list
> Zope3-dev at zope.org
> Unsub: 
> http://mail.zope.org/mailman/options/zope3-> dev/dev%40projekt01.ch
> 
> 




More information about the Zope3-dev mailing list