Re: [Zope3-Users] Permission required for renaming?

2006-01-05 Thread Jeff Shell
One option that you have is to protect the View object that you use to
do the renaming, unless you're using views that are provided by
someone/something else (the default Zope UI, etc). You can protect
your 'rename' view and inside of it use
'zope.security.proxy.removeSecurityProxy' to get access to the
renaming. Use removeSecurityProxy carefully, and make sure the code
that uses it is itself restricted.

On 1/5/06, Alec Munro <[EMAIL PROTECTED]> wrote:
> Hi Stephan,
>
> Actually, my users don't have that role(permission?), because I got
> the impression that having it would give them access to a number of
> things I don't want them to see, such as the metadata and introspector
> tabs. Is that strictly required for any kind of
> renaming/copying/pasting? Is there an easy way to change that?
>
> Thanks for your response,
>
> Alec
>
>
> On 1/4/06, Stephan Richter <[EMAIL PROTECTED]> wrote:
> > On Wednesday 14 December 2005 12:40, Alec Munro wrote:
> > > Any ideas where I can go with this? It seems like there's probably a
> > > simple step I'm missing in the creation of my components, but so far
> > > I've had no luck figuring it out.
> >
> > Are you sure your user has the zope.ManageContent role?
> >
> > (BTW, please always post responses to the list as well.)
> >
> > Regards,
> > Stephan
> > --
> > Stephan Richter
> > CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
> > Web2k - Web Software Design, Development and Training
> >
> ___
> Zope3-users mailing list
> Zope3-users@zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
>
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Permission required for renaming?

2006-01-05 Thread Alec Munro
Hi Stephan,

Actually, my users don't have that role(permission?), because I got
the impression that having it would give them access to a number of
things I don't want them to see, such as the metadata and introspector
tabs. Is that strictly required for any kind of
renaming/copying/pasting? Is there an easy way to change that?

Thanks for your response,

Alec


On 1/4/06, Stephan Richter <[EMAIL PROTECTED]> wrote:
> On Wednesday 14 December 2005 12:40, Alec Munro wrote:
> > Any ideas where I can go with this? It seems like there's probably a
> > simple step I'm missing in the creation of my components, but so far
> > I've had no luck figuring it out.
>
> Are you sure your user has the zope.ManageContent role?
>
> (BTW, please always post responses to the list as well.)
>
> Regards,
> Stephan
> --
> Stephan Richter
> CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
> Web2k - Web Software Design, Development and Training
>
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Permission required for renaming?

2005-12-13 Thread Alec Munro
Thanks for the response.

They are local users, and it's specific to every container type that
I've created, I haven't had the chance to test with regular folders.
The containers that I have inherit from OrderedContainer or
BTreeContainer, and tend to be fairly minor customizations, simply
adding a couple properties or methods.

Hope that helps. I can do a little more testing tomorrow if you have any leads.

Thanks again,

Alec

On 12/13/05, Stephan Richter <[EMAIL PROTECTED]> wrote:
> On Wednesday 30 November 2005 16:16, Alec Munro wrote:
> > My users are unable to rename things, seemingly everywhere. They can
> > add, remove, but not rename, or cut/copy. I'm not sure how to set the
> > permission for this.
>
> I think we need some more specific background information to help you out
> here. For example: Are those local or global users? Is this a specific
> container, or is it also true for a folder? ...
>
> Regards,
> Stephan
> --
> Stephan Richter
> CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
> Web2k - Web Software Design, Development and Training
> ___
> Zope3-users mailing list
> Zope3-users@zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
>
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Permission required for renaming?

2005-12-13 Thread Stephan Richter
On Wednesday 30 November 2005 16:16, Alec Munro wrote:
> My users are unable to rename things, seemingly everywhere. They can
> add, remove, but not rename, or cut/copy. I'm not sure how to set the
> permission for this.

I think we need some more specific background information to help you out 
here. For example: Are those local or global users? Is this a specific 
container, or is it also true for a folder? ...

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Permission required for renaming?

2005-12-01 Thread Alec Munro
As far as I can tell they do, the objects containers primary interface
inherits from IContainer, and they have set_schema on that interface.
Additionally, they can add new containers, and their contents, but
still be unable to rename the contents.

Thanks,

Alec

On 12/1/05, Chris Withers <[EMAIL PROTECTED]> wrote:
> Alec Munro wrote:
> > My users are unable to rename things, seemingly everywhere. They can
> > add, remove, but not rename, or cut/copy. I'm not sure how to set the
> > permission for this.
>
> Do they have the necessary permissions on the objects container rather
> than the object itself?
>
> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Zope & Python Consulting
> - http://www.simplistix.co.uk
>
>
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Permission required for renaming?

2005-12-01 Thread Chris Withers

Alec Munro wrote:

My users are unable to rename things, seemingly everywhere. They can
add, remove, but not rename, or cut/copy. I'm not sure how to set the
permission for this.


Do they have the necessary permissions on the objects container rather 
than the object itself?


cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users