|
|
|
|
monks
()
|
|
||||||||||||
|
can anybody pls tell me what should i give as read_permission & write_permission values, if i want to hide/deactivate a particular field of my archetype for all except Admin. This field is basically a Drop-down field & i want that, only Admin should have rights to select value from this. I've seen various examples of same & tried implementing it, but it's not showing intended results Thanks.. -- Regards, Mayank Mathur ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Plone-Users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/plone-users Regards, Mayank |
||||||||||||||
|
|
Yuri-11
()
|
|
||||||||||||
|
Mayank Mathur ha scritto:
> can anybody pls tell me what should i give as read_permission & > write_permission values, if i want to hide/deactivate a particular field > of my archetype for all except Admin. > > This field is basically a Drop-down field & i want that, only Admin should > have rights to select value from this. > > I've seen various examples of same & tried implementing it, but it's not > showing intended results > > Thanks.. > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Plone-Users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/plone-users |
||||||||||||||
|
|
ajung
()
|
|
|
In reply to this post
by monks
read_permission = 'Manage Portal'
write_permission = 'Manage Portal' within the field definition *does* work. -aj
|
||
|
|
monks
()
|
|
||||||||||||
|
In reply to this post
by Yuri-11
for both read/write permission or anything else ? thanks. > Mayank Mathur ha scritto: >> can anybody pls tell me what should i give as read_permission & >> write_permission values, if i want to hide/deactivate a particular field >> of my archetype for all except Admin. >> >> This field is basically a Drop-down field & i want that, only Admin >> should >> have rights to select value from this. >> >> I've seen various examples of same & tried implementing it, but it's not >> showing intended results >> >> Thanks.. >> >> > Manage Portal > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Plone-Users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/plone-users > -- Regards, Mayank Mathur ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Plone-Users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/plone-users Regards, Mayank |
||||||||||||||
|
|
monks
()
|
|
||||||||||||
|
In reply to this post
by ajung
thanks i'll try > > read_permission = 'Manage Portal' > write_permission = 'Manage Portal' > > within the field definition *does* work. > > -aj > > > monks wrote: >> >> >> >> can anybody pls tell me what should i give as read_permission & >> write_permission values, if i want to hide/deactivate a particular field >> of my archetype for all except Admin. >> >> This field is basically a Drop-down field & i want that, only Admin >> should >> have rights to select value from this. >> >> I've seen various examples of same & tried implementing it, but it's not >> showing intended results >> >> Thanks.. >> >> -- >> >> Regards, >> Mayank Mathur >> >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and >> stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Plone-Users mailing list >> [hidden email] >> https://lists.sourceforge.net/lists/listinfo/plone-users >> >> > > -- > View this message in context: > http://n2.nabble.com/Hiding-Archetype-Field-from-all-except-Manager-Admin-tp3891683p3891741.html > Sent from the General Questions mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Plone-Users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/plone-users > -- Regards, Mayank Mathur ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Plone-Users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/plone-users Regards, Mayank |
||||||||||||||
|
|
monks
()
|
|
||||||||||||
|
In reply to this post
by ajung
i've tried adding this inside field definition : StringField( name='featured', #required=1, mode='rw', read_permission = 'Manage Portal', write_permission = 'Manage Portal', searchable=True, widget=SelectionWidget( description="check if featured", format='select', label="Whether featured item or not", #visible = {'edit': 'visible', 'view': 'invisible'}, ), vocabulary=["No","Yes"], ), but, its showing Insufficient Priveleges error when accessing folder within which im trying to add this content type. Its showing same error even on other pages also. Also not able to Logout. Is there any other Step missing here ? Thanks .... -- Regards, Mayank Mathur > > read_permission = 'Manage Portal' > write_permission = 'Manage Portal' > > within the field definition *does* work. > > -aj > > > monks wrote: >> >> >> >> can anybody pls tell me what should i give as read_permission & >> write_permission values, if i want to hide/deactivate a particular field >> of my archetype for all except Admin. >> >> This field is basically a Drop-down field & i want that, only Admin >> should >> have rights to select value from this. >> >> I've seen various examples of same & tried implementing it, but it's not >> showing intended results >> >> Thanks.. >> >> -- >> >> Regards, >> Mayank Mathur >> >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and >> stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Plone-Users mailing list >> [hidden email] >> https://lists.sourceforge.net/lists/listinfo/plone-users >> >> > > -- > View this message in context: > http://n2.nabble.com/Hiding-Archetype-Field-from-all-except-Manager-Admin-tp3891683p3891741.html > Sent from the General Questions mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Plone-Users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/plone-users > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Plone-Users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/plone-users Regards, Mayank |
||||||||||||||
|
|
ajung
()
|
|
||||||||||||
|
You are long enough on this list in order to know about debugging Unauthorized
errors using verbose-security and to know to report such problems with a full traceback. The first step for doing the analysis is up to you. -aj
|
||||||||||||||
|
|
monks
()
|
|
||||||||||||
|
As i was debugging, i've removed read-permission option from Field's definition, and now it seems to be working as expected. Only admin will be able to access that field and no one else. Thanks for pointers -- Regards, Mayank Mathur > > You are long enough on this list in order to know about debugging > Unauthorized > errors using verbose-security and to know to report such problems > with a full traceback. The first step for doing the analysis is up to you. > > -aj > > > > monks wrote: >> >> >> i've tried adding this inside field definition : >> >> StringField( >> name='featured', >> #required=1, >> mode='rw', >> read_permission = 'Manage Portal', >> write_permission = 'Manage Portal', >> searchable=True, >> widget=SelectionWidget( >> description="check if featured", >> format='select', >> label="Whether featured item or not", >> #visible = {'edit': 'visible', 'view': 'invisible'}, >> >> ), >> vocabulary=["No","Yes"], >> ), >> >> but, its showing Insufficient Priveleges error when accessing folder >> within which im trying to add this content type. >> Its showing same error even on other pages also. Also not able to >> Logout. >> Is there any other Step missing here ? >> >> Thanks .... >> >> -- >> Regards, >> Mayank Mathur >> >> >> >> >>> >>> read_permission = 'Manage Portal' >>> write_permission = 'Manage Portal' >>> >>> within the field definition *does* work. >>> >>> -aj >>> >>> >>> monks wrote: >>>> >>>> >>>> >>>> can anybody pls tell me what should i give as read_permission & >>>> write_permission values, if i want to hide/deactivate a particular >>>> field >>>> of my archetype for all except Admin. >>>> >>>> This field is basically a Drop-down field & i want that, only Admin >>>> should >>>> have rights to select value from this. >>>> >>>> I've seen various examples of same & tried implementing it, but it's >>>> not >>>> showing intended results >>>> >>>> Thanks.. >>>> >>>> -- >>>> >>>> Regards, >>>> Mayank Mathur >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >>>> is the only developer event you need to attend this year. Jumpstart >>>> your >>>> developing skills, take BlackBerry mobile applications to market and >>>> stay >>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >>>> http://p.sf.net/sfu/devconference >>>> _______________________________________________ >>>> Plone-Users mailing list >>>> [hidden email] >>>> https://lists.sourceforge.net/lists/listinfo/plone-users >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://n2.nabble.com/Hiding-Archetype-Field-from-all-except-Manager-Admin-tp3891683p3891741.html >>> Sent from the General Questions mailing list archive at Nabble.com. >>> >>> ------------------------------------------------------------------------------ >>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >>> is the only developer event you need to attend this year. Jumpstart >>> your >>> developing skills, take BlackBerry mobile applications to market and >>> stay >>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >>> http://p.sf.net/sfu/devconference >>> _______________________________________________ >>> Plone-Users mailing list >>> [hidden email] >>> https://lists.sourceforge.net/lists/listinfo/plone-users >>> >> >> >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and >> stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Plone-Users mailing list >> [hidden email] >> https://lists.sourceforge.net/lists/listinfo/plone-users >> >> > > -- > View this message in context: > http://n2.nabble.com/Hiding-Archetype-Field-from-all-except-Manager-Admin-tp3891683p3897216.html > Sent from the General Questions mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Plone-Users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/plone-users > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Plone-Users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/plone-users Regards, Mayank |
||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |