|
From: Brian Z. <bri...@ya...> - 2001-02-14 04:38:18
|
Thanks Finn, the init(self, config=None) works pretty well. /Brian ----- Original Message ----- From: "Finn Bock" <bc...@wo...> To: <jyt...@li...> Sent: Tuesday, February 13, 2001 1:57 AM Subject: Re: [Jython-dev] jython servlet init() override problem > So the jython method must be prepared to handle both situations: > > def init(self, config=None): > if config: > HttpServlet.init(self, config) > pass > > Obviously jython is completely defeating the purpose of the > parameter-less init() method: > > """ > void init() > A convenience method which can be overridden so that there's no need > to call super.init(config). > """ > > In jython, we are forced to deal with both init() methods *and* we have > to call super.init() as well. > > regards, > finn > > _______________________________________________ > Jython-dev mailing list > Jyt...@li... > http://lists.sourceforge.net/lists/listinfo/jython-dev > |