On 3/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> ok I'll try to explain this as best as possible.
> I have a site with a bunch of users, each one of these users are
> accessed via www.site.com/user_name
> I have a default function in the root to catch the user_name and
> output what needs to be there. What I want to do now is to be able to
> perform certain functions that would organized like
> www.site.com/user_name/action
> what is the best way to do this?
>
> I already have a few other class such as a edit_profile class, how I
> would I get this to perform actions on the user_name?
You could do something like:
def default(self, *args):
user = args[0]
# do something with user
if len(args) > 1:
action = args[1]
# do something with action
Ed
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---