Re: [Zope-dev] LOTS of roles?

2003-02-24 Thread Oliver Bleutgen
Paul Winkler wrote: On Sat, Feb 22, 2003 at 02:24:10PM +0100, Oliver Bleutgen wrote: With locations, do you mean physical locations of the clients (i.e. IP-adresses), or the locations of objects inside zope (i.e. /department1, /department2 etc.)? Both. Let's call them sites instead of

[Zope-dev] changing the behavior of manage_menu tree

2003-02-24 Thread Willie Martin
I'm currently trying to change the way the tree sorts by meta_type which contain numbers(1.2, 1.3...). Are there any monkey patches that can give me control over sort or any tips on grabbing namespaces within the manage_menu.dtml Thanks, Willie Martin

Re: [Zope-dev] LOTS of roles?

2003-02-24 Thread Paul Winkler
On Mon, Feb 24, 2003 at 12:41:01PM +0100, Oliver Bleutgen wrote: From that I gather that your sites don't map 1:1 to objects into zope, so that you cannot use local roles for that, right? E.g, there are methods like doTaskX(location,...), where the permission to execute that method depend on

[Zope-dev] REQUEST.args

2003-02-24 Thread Brian Brinegar
Hi, I'm using some of Casey Duncans code that I got off of zopelabs.com in a product that I created. The code allows you to call any object generically. The code is listed below this message. The problem I have is if my object is called from a DTML Method like dtml-var object the args

RE: [Zope-dev] AIX

2003-02-24 Thread Wolfgang Roesner
Clemens Robbenhaar [EMAIL PROTECTED] wrote: Hi Clemens, thanks a lot! Good to know that there is constructive feedback too ;-) Hi Wolfgang, ... There have been some reports about problems with Zope and BSD, which are actually caused by some operating system stack overflow or such. Maybe a

Re: [Zope-dev] AIX

2003-02-24 Thread PieterB
Clemens wrote: There have been some reports about problems with Zope and BSD, which are actually caused by some operating system stack overflow or such. Maybe a similar problem applies here, too? For those issues see: http://www.zwiki.org/FreeBSD and http://zwiki.org/IssueNo0226 Zwiki's

Re: [Zope-dev] REQUEST.args

2003-02-24 Thread Brian Brinegar
Okay, After some more poking around, I've simplified the problem. I have a product I created with a __call__ method: def __call__(self, client=None, REQUEST={}, RESPONSE=None, **kw): Call the selected template in the context of myself. print REQUEST = print

Re: [Zope-dev] LOTS of roles?

2003-02-24 Thread Leonardo Rochael Almeida
I don't think a multitude of roles is the way to go. The way your problem sounds, you need users being allowed/forbiden to do certain tasks depending on which part of the site they are. This is what local-roles are for: parameterizing the permissions of a user based on the location of the objects

Re: [Zope-dev] LOTS of roles?

2003-02-24 Thread Paul Winkler
On Sun, Feb 23, 2003 at 09:02:24PM +0100, Dieter Maurer wrote: I think (not sure, though) that Zope has the following time complexity for permission checking: If a user has u roles and a permission is allowed for a roles, then Zope checks for each of the u roles whether it is in the

Re: [Zope-dev] LOTS of roles?

2003-02-24 Thread Paul Winkler
On Mon, Feb 24, 2003 at 07:18:21PM -0300, Leonardo Rochael Almeida wrote: I don't think a multitude of roles is the way to go. The way your problem sounds, you need users being allowed/forbiden to do certain tasks depending on which part of the site they are. This is what local-roles are

Re: [Zope-dev] LOTS of roles?

2003-02-24 Thread Leonardo Rochael Almeida
On Mon, 2003-02-24 at 19:07, Paul Winkler wrote: On Mon, Feb 24, 2003 at 07:18:21PM -0300, Leonardo Rochael Almeida wrote: I don't think a multitude of roles is the way to go. The way your problem sounds, you need users being allowed/forbiden to do certain tasks depending on which part

[Zope-dev] Object called from DTML

2003-02-24 Thread Brian R Brinegar
Okay, I have developed a product. When an instance of the product is called from DTML like, dtml-var object, REQUEST is not available. If I call a python script or a DTML Method from DTML REQUEST is available. The __call__ method is defined like this: def __call__(self, client=None, REQUEST={},

Re: [Zope-dev] Creating a fully stand-alone Zope Page Templates

2003-02-24 Thread Kevin Smith
I have been using that, and it is very nice, but it doesn't include METAL. I'm hoping that the author of that package implements METAL, so I can use his package. But if that doesn't work out, I need something to fall back on. On Monday, February 24, 2003, at 11:25 PM, Barry Pederson wrote:

Re: [Zope-dev] Creating a fully stand-alone Zope Page Templates

2003-02-24 Thread Tim
Kevin wrote on Monday, February 24, 2003, 11:28:59 PM: I have been using that, and it is very nice, but it doesn't include There's also this one, which i have been meaning to investigate (OpenTAL), in case you didn't happen upon it... http://savannah.nongnu.org/projects/opental/ I have no idea

Re: [Zope-dev] Creating a fully stand-alone Zope Page Templates

2003-02-24 Thread Richard Jones
On Tue, 25 Feb 2003 11:07 am, Kevin Smith wrote: I am trying to make a stand-alone Page Templates packages that doesn't have any Zope dependencies. I was able to short circuit security and acquisition. I re-implemented MultiMapping in plain Python and made the Base class just an empty class.