So just to demonstrate that it's a python framework? Subtle marketing?

I doubt you can create a controller with a . and I'm fairly certain you
couldn't create a controller method. But it's trivial to have something
like:

    @expose()
    def actions(self, action, **kw):
        if action == 'register.py':
            pass # do something
        else:
            raise redirect('/unknown_action')
        return str(kw)

...which will let you pass whatever keyword args you want to
/action/register.py




On Fri, Jun 27, 2008 at 3:12 AM, Shamail Tayyab <[EMAIL PROTECTED]> wrote:

>
>
>
> On Jun 27, 11:33 am, "Florent Aide" <[EMAIL PROTECTED]> wrote:
> > On Fri, Jun 27, 2008 at 6:12 AM, Shamail Tayyab <[EMAIL PROTECTED]>
> wrote:
> >
> > > Hii all,
> > >  How can i define a method in controller class so that it can handle
> > > requests like /register.py
> >
> > What do you need to achieve ?
>
> Nothing!! Just a question if it can be done. Simple it seems cool...
> Like google.com/answers.py?...
> Like this... Respect for the framework :)
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to