[Zope] Limits of External Methods
Chris McDonough
chrism@zope.com
20 Feb 2003 11:06:19 -0500
See both "Module Security Assertions" and "Class Security Assertions in
Non-Module Code" in
http://www.zope.org/Documentation/Books/ZDG/current/Security.stx.
On Thu, 2003-02-20 at 10:57, Ed Leafe wrote:
> If I define a class in an external method, how can I expose it so that
> my Zope python scripts can access it? The only solution I've found is
> something like this:
>
> class Foo():
> def method1(self, parms)
> ...
> def method2(self, parms)
> ...
>
> def newFoo()
> return Foo()
>
> def fooMethod1(oFoo, parms)
> return oFoo.method1(parms)
>
> ... and so forth. I then need to add separate External Methods for
> newFoo(), fooMethod1(), etc. Is there any way once I have a reference
> to an instance of Foo, that I can call its methods directly? Or is this
> simply not possible in Zope?
>
> ___/
> /
> __/
> /
> ____/
> Ed Leafe
> http://leafe.com/
> http://opentech.leafe.com
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )