I think yes, I have an function used in a compute field and I am trying to understand why it not compute in certain situation... In my function I request for request.args(0) as default argument. So I want to kind of mock web2py request object.
Richard On Tue, Jun 25, 2013 at 1:40 PM, Anthony <[email protected]> wrote: > Do you mean you want a gluon.globals.Request object with its application, > controller, function, and args values set as per your URL? WAYRTTD? > > > On Tuesday, June 25, 2013 1:34:43 PM UTC-4, Richard wrote: > >> Here an example of URL : URL(c='my_controller', f='my_func', >> args=('my_table', 'record_id')) >> >> I would like to know how I can create a fake request object from an URL() >> or other mean... >> >> Hope it is clearer. >> >> Thanks >> >> Richard >> >> >> On Tue, Jun 25, 2013 at 1:28 PM, Anthony <[email protected]> wrote: >> >>> Not quite clear what you mean. How does your app get a table name in >>> request.args(0)? >>> >>> >>> On Tuesday, June 25, 2013 12:07:48 PM UTC-4, Richard wrote: >>>> >>>> Hello, >>>> >>>> How can I make a fake request in order I can retrieve my table name in >>>> request.args(0) like my app does... >>>> >>>> Thanks >>>> >>>> Richard >>>> >>> -- >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "web2py-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to web2py+un...@**googlegroups.com. >>> >>> For more options, visit >>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>> . >>> >>> >>> >> >> -- > > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

