[Zope-Coders] Re: [ZC] 401/ 2 Reject "External method and optional parameter"
Julián Muñoz
jmunoz@softhome.net
Wed, 22 May 2002 13:39:56 +0000 (GMT)
The main example at page 136 of the Zope Book uses self as the first
parameter.
I am writing a comment about this on the on-line Zope book.
On Wed, 22 May 2002, Collector: Zope Bugs, Features, and Patches ... wrote:
> Issue #401 Update (Reject) "External method and optional parameter"
> Status Rejected, Zope/bug medium
> To followup, visit:
> http://collector.zope.org/Zope/401
>
> =========================
======================================
> = Reject - Entry #2 by ajung on May 22, 2002 8:43 am
>
> Status: Pending => Rejected
>
> ExternalMethods don't have a 'self' parameter.
> Check the "Advanced Zope Scripting" chapter of the Zope Book.
>
> -aj
> ________________________________________
> = Request - Entry #1 by Anonymous User on May 22, 2002 6:19 am
>
> I'm sorry if it has already been reported before:
>
> I have an external method with:
>
> def check_value(self,dom,dam='127.0.0.1'):
> (etc..)
> print dam
> (etc...)
>
> It always prints 127.0.0.1, never the value I give it.
>
> I call this method from a python script with:
>
> (...)
> container.check_value(dom, container.ip_address)
> (...)
>
>
> =========================
======================================
>
>
--
__o
_ \<_
(_)/(_)
Saludos de Julián
EA4ACL
-.-
Foro Wireless Madrid
http://opennetworks.rg3.net