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 - which is '' in very often.
The contained-name is fully independent from the registration's title.
Choose whatever you want. Whenever a part of your application has to link
to a utility of yours, it should use
   zapi.absoluteURL(zapi.getUtility(IMyUtility),request)
which makes knowing the URL unneccessary.

Regards,

Frank

PS: I know, zapi is deprecated - but it's so convenient :-) ...
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


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: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 - which is '' in very often.
The contained-name is fully independent from the registration's title.
Choose whatever you want. Whenever a part of your application has to link
to a utility of yours, it should use
   zapi.absoluteURL(zapi.getUtility(IMyUtility),request)
which makes knowing the URL unneccessary.

Regards,

Frank

PS: I know, zapi is deprecated - but it's so convenient :-) ...
___
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


[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
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


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 is it just my imagination. Should I use what I prefer? Would 
just like to know what others do. Thanks


Regards,
David
___
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