RE: [Zope] Python Product Coding Guidelines? (constructor=...)
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 )
On Wed, Jan 23, 2002 at 09:01:10AM -0800, sean.upton@uniontrib.com wrote:
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.
I think access to the ZMI should be managed with permissions not with proxy rules. OK, it can give you an extra security. thomas -- Thomas Guettler <guettli@thomas-guettler.de> http://www.thomas-guettler.de
participants (2)
-
sean.upton@uniontrib.com -
Thomas Guettler