If you need a function with parameters then you would have to call it
indirectly from your exposed controller action/function.
def table1(a,b):
...
@service.csv
def exposed():
# call table1(x,y) in here
On 7 nov, 08:16, dbb <[email protected]> wrote:
> I am trying to program web services, such as,
> @service.csv
> def table1(a,b):
> return [[a,b],[1,2]]
>
> On Nov 7, 7:33 am, DenesL <[email protected]> wrote:
>
> > That is by design.
> > What are you trying to do?.
>
> > On 7 nov, 07:22, dbb <[email protected]> wrote:
>
> > > a function with a parameter does not show up in the list of functions
> > > in the controller,
> > > e.g. def name( a, b): return( a+b), can not be found in the controller.-
> > > Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---