[Nuxeo-tickets] Re: [Nuxeo Repository] #1632: Compound widgets validation

Nuxeo Repository trac at nuxeo.com
Tue May 2 15:14:25 CEST 2006


#1632: Compound widgets validation
------------------------+---------------------------------------------------
       Id:  1632        |      Status:  new                     
Component:  CPSSchemas  |    Modified:  Tue May  2 15:14:24 2006
 Severity:  normal      |   Milestone:  CPS 3.4.1               
 Priority:  P1          |     Version:  unspecified             
    Owner:  fguillaume  |    Reporter:  tracguest               
------------------------+---------------------------------------------------
Old description:

> Indeed, the validate method of the compounds should ignore hidden
> widgets. That's just (as the other bug) a use case we'd never had. Could
> you please open a ticket?
>
> Florent
>
> On 27 Apr 2006, at 18:12, JoseLuis de la Rosa Triviño wrote:
>
> > Hello,
> >
> >
> > I'm using a compound widget (let A) that inside, it has a widget
> > (let B) that renders a field that it doesn't need storage. That
> > field has the same properties as the "fullname" field in the schema
> > "members", it's to say "Read: ignore storage" and "Write: ignore
> > storage" checked, "ACL: write roles" set to "Nobody", "Read:
> > expression" and "Read: expression dependent fields".
> >
> >
> > Everything works fine in view mode, but in edit mode (where the
> > widget B is hidden) when I try to save the changes I get this error
> > "WriteAccessError: Write access to fullname denied (roles)". It's
> > trying to write the field when it shouldn't and if I take widget B
> > outside widget A, everything works in view and edit mode.
> >
> >
> > When does CPS knows that a widget shouldn't be validated? I've
> > taken a look at the validate method of the class CPSCompoundWidget
> > and all widgets are validated, is this right?
> >
> >
> > Thanks a lot.

New description:

 On 27 Apr 2006, at 18:12, JoseLuis de la Rosa Triviño wrote:

 I'm using a compound widget (let A) that inside, it has a widget
 (let B) that renders a field that it doesn't need storage. That
 field has the same properties as the "fullname" field in the schema
 "members", it's to say "Read: ignore storage" and "Write: ignore
 storage" checked, "ACL: write roles" set to "Nobody", "Read:
 expression" and "Read: expression dependent fields".

 Everything works fine in view mode, but in edit mode (where the
 widget B is hidden) when I try to save the changes I get this error
 "WriteAccessError: Write access to fullname denied (roles)". It's
 trying to write the field when it shouldn't and if I take widget B
 outside widget A, everything works in view and edit mode.

 When does CPS knows that a widget shouldn't be validated? I've
 taken a look at the validate method of the class CPSCompoundWidget
 and all widgets are validated, is this right?

 Florent wrote:

 Indeed, the validate method of the compounds should ignore hidden
 widgets. That's just (as the other bug) a use case we'd never had.

-- 
Ticket URL: <http://svn.nuxeo.org/trac/pub/ticket/1632>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository


More information about the Nuxeo-tickets mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider


This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.