ok, let that horrible code go...
now, my problem is:
i thought it was a good idea to create a controller just for separate-
handling report-making (trough pyrtf).
So i created a controller called printings.py and in it i have a
function called myPrint().
The question is: in default controller, inside:
if form.accepts(request.vars,session):
???
???
how can i call that function myPrint() in controller printings and,
after printing, get back to my default controller?
Thanks
Paolo
On 12 Dic, 19:21, pmate <[email protected]> wrote:
> edit:
> redirect(URL(r=request,c='printings',f='myPrint',args=[myDict]))
>
> On 12 Dic, 19:03, pmate <[email protected]> wrote:
>
> > Hi,
> > using pyrtf i created a new controller called printings.py.
> > In it i have a function:
> > def myPrint():
> > myDict = request.args[0]
> > ...
> > ...
> > return q.dumps(doc)
>
> > from my default controller i want to call that function passing to it
> > a dictionary. After it finishes printing i want to get back to my
> > controller.
> > How can i do that?
>
> > i tried from default controller to call that function in this way:
> > redirect(URL(r=request,c='printings',f='lprProvv',args=[myDict]))
>
> > but i get no result: "Invalid request"
>
> > where am i wrong?
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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
-~----------~----~----~----~------~----~------~--~---