[Zope3-dev] sys._getframe magic and z.a.t.functional.defineLayer
Baiju M
mbaiju at zeomega.com
Wed Jan 31 08:02:41 EST 2007
Hi,
We are using sys._getframe magic in many places.
Sometimes it is the only way.
But I wonder why we required a function like :
'z.a.t.functional.defineLayer'
Yes, it saves few typing, but if we are defining
layers directly using LayerName = ZCMLLayer(...)
It will be more explicit and understandable code.
I wrote an example here: http://pastey.net/5739-48en
Regards,
Baiju M
More information about the Zope3-dev
mailing list