Re: [Zope3-Users] Utilities naming convention

2006-11-17 Thread David Pratt
Hi Frank, I guess I have just seen more Utilities named this way than not - so just confirming things for myself. I am also using zapi all over the place. Perhaps I should stop... I am not seeing deprecation warnings yet. Many thanks. Regards David FB wrote: Hi, On Thu, Nov 16, 2006 at 04:0

Re: [Zope3-Users] Utilities naming convention

2006-11-17 Thread Thierry Florac
Le vendredi 17 novembre 2006 à 11:48 +0100, FB a écrit : > PS: I know, zapi is deprecated - but it's so convenient :-) ... ??? What ? Why is zapi going to be deprecated ?? I didn't know that and I agree with you that it is VERY convenient and usefull, even if it's "just" a set of shortcuts to

Re: [Zope3-Users] Utilities naming convention

2006-11-17 Thread FB
Hi, On Thu, Nov 16, 2006 at 04:09:52PM -0400, David Pratt wrote: Probably should > have clarified - I am referring to Utility container names not anything to > do with Python coding standards. None that I'm aware of. Only the title of the utility's registration matters for your application - whic

Re: [Zope3-Users] Utilities naming convention

2006-11-16 Thread David Pratt
Probably should have clarified - I am referring to Utility container names not anything to do with Python coding standards. David Pratt wrote: Just a simple question of style for naming utilities. I don't like caps in urls. Is there a general convention of using CamelCase for utility names or

[Zope3-Users] Utilities naming convention

2006-11-16 Thread David Pratt
Just a simple question of style for naming utilities. I don't like caps in urls. Is there a general convention of using CamelCase for utility names or is it just my imagination. Should I use what I prefer? Would just like to know what others do. Thanks Regards, David __

Re: [Zope3-Users] Utilities

2006-06-05 Thread David Johnson
Thanks! That's it exactly! I was misunderstanding the concept of a utility with the name ''. On Mon, 2006-06-05 at 17:34 +0300, Albertas Agejevas wrote: > On Mon, Jun 05, 2006 at 09:22:13AM -0500, David Johnson wrote: > > > > > getUtility does not require a name. > > > > I've tried getUtili

Re: [Zope3-Users] Utilities

2006-06-05 Thread David Johnson
> getUtility does not require a name. I've tried getUtility() without a name it never returns an interface and returns component lookup error. I've tried in many different instances, and I've ended up reverting as a work around to getAllRegisteredUtilitiesFor(), which works just fine. Once I ad

Re: [Zope3-Users] Utilities

2006-06-05 Thread Albertas Agejevas
On Mon, Jun 05, 2006 at 01:14:58AM -0500, David Johnson wrote: > What is the best to find the nearest utility without using a name? > > zapi.getUtility() seems to require a name (though the documentation > implies otherwise). The default name is ''. If you're asking for z.c.getUtility(ISomethin

Re: [Zope3-Users] Utilities

2006-06-05 Thread Florian Lindner
Am Montag, 5. Juni 2006 08:14 schrieb David Johnson: > What is the best to find the nearest utility without using a name? > > zapi.getUtility() seems to require a name (though the documentation > implies otherwise). zapi.getAllRegisiteredUtilitiesFor() works but it > seems to me if you have lots of

[Zope3-Users] Utilities

2006-06-04 Thread David Johnson
What is the best to find the nearest utility without using a name? zapi.getUtility() seems to require a name (though the documentation implies otherwise). zapi.getAllRegisiteredUtilitiesFor() works but it seems to me if you have lots of utilities in other contexts, it would query those as well, a

Re: [Zope3-Users] Utilities / Adapters security - is access limited to interfaces?

2006-04-11 Thread Stephan Richter
On Tuesday 11 April 2006 06:59, Reinhold Strobl wrote: > I have got a question on security: > utitlities and adapters only have a simple security attribute (=permission) > in the configuration directive, that means, I can't specifiy settings on > attributes like with content components. > > But now

[Zope3-Users] Utilities / Adapters security - is access limited to interfaces?

2006-04-11 Thread Reinhold Strobl
Hi, I have got a question on security: utitlities and adapters only have a simple security attribute (=permission) in the configuration directive, that means, I can't specifiy settings on attributes like with content components. But now what about access, if I have got the needed permission, can