[Zope] Python Product Coding Guidelines? (constructor=...)
sean.upton@uniontrib.com
sean.upton@uniontrib.com
Wed, 23 Jan 2002 09:01:10 -0800
I'm not going to totally defend it, but when manage_ URLs are called through
the web, it makes for a very easy proxy ACL to block public (or other)
access to restrict who can see the ZMI.
Sean
-----Original Message-----
From: Chris McDonough [mailto:chrism@zope.com]
Sent: Wednesday, January 23, 2002 6:06 AM
To: Thomas Guettler
Cc: zope@zope.org
Subject: Re: [Zope] Python Product Coding Guidelines? (constructor=...)
I think that the "manage_" prefix to stuff should die. I actually
prefer calling the constructor constructFoo but nobody but me does that.
;-) I don't think there's an easy way to consensus... but you could
comment in the Dev Guide about it so that at least when folks read it
they wikll think about it too.,
Thomas Guettler wrote:
> Hi!
>
> When I "grep" for the constructor syntax in the __init__.py files I see
> that
> most people use the form constructor(manage_addFoo, ...)
>
> The DevGuide just calls the function addForm. I think it would be
> good if there would be a guideline. This makes it easier to read other
> peoples
> code.
>
> What do you think?
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
--
Chris McDonough Zope Corporation
http://www.zope.org http://www.zope.com
"Killing hundreds of birds with thousands of stones"
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )