I'm not entirely clear what you want to do.  You can do this in an adhoc
way, simply by doing something like:

class Home(SomePage):
    def writeContent(self):
        if self.request().field('show', None) == 'whatever':
            return self.whatever()
        elif ...


What is it you're trying to acomplish that can't be done like that, or
using the _action_ stuff?

On Tue, 2001-11-13 at 22:23, Aleksandar Kacanski wrote:
> What would be alternative way to invoke different
> method in the same servlet instance.
> I am currently  using _action_ method
> 
> class Home(SomePage):
>   def actions(self):
>     return   SomePage.actions(self) +
> ['whatever']
>   def whatever(self):
>     self.writeln('''...''')
> 
> but that is invoking method but not the whole
> framework.
> i can not recursively invoke class itself, 
>    return Home.actions(self) + ...
> 
> Essentially, I would ideally like to make a
> template servlet, with  "targets" hitting a same
> servlet but different methods.
> maybe some pointers...
> Thanks 
> /s
> 
> __________________________________________________
> Do You Yahoo!?
> Find the one for you at Yahoo! Personals
> http://personals.yahoo.com
> 
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
> 



_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to