I think I've got it. I have to break this up into the date time
elements:

/myApp/foo/call/run/create/fred/2009-04-23+00%3A00%3A00/

Becomes:

/myApp/foo/call/run/create/fred/2009/04/23/00/00/00/

@service.run
def foo(name,yr,mth,day,hr,min,sec)

It helps to ask, sometimes the answer just follows.

Dave

On Apr 23, 5:14 pm, Dave <dfdumar...@gmail.com> wrote:
> Hello,
>
> I'm using service.run to call a function from a remote client. I'm
> able to call the function with strings and integers, but I would like
> to pass a date string. I've tried uuencoding the datestring, but the
> response I'm getting is Invalid Function.
>
> My question then: How can I pass a date value such as:
>
> /myApp/foo/call/run/create/fred/2009-04-23+00%3A00%3A00/
>
> @service.run
> def foo(name,birthdate):
>     parseDate(birthdate)
>     insert(name, birthdate)
>     return ok
>
> Thanks!
> Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to