Re: [web2py] strange URL output ?!

2017-12-21 Thread António Ramos
Thank you Anthony. Always to the rescue... It works now. extension="bbb" does not return pdf... Again ,thank you for your time Regards António 2017-12-21 15:39 GMT+00:00 Anthony : > On Thursday, December 21, 2017 at 10:07:51 AM UTC-5, Ramos wrote: >> >> Not solved. I even

Re: [web2py] strange URL output ?!

2017-12-21 Thread Anthony
On Thursday, December 21, 2017 at 10:07:51 AM UTC-5, Ramos wrote: > > Not solved. I even set extension=None or extension="bbb" > keeps adding .pdf > Are you sure extension="bbb" results in a "pdf" extension? If you are posting to the URL with a .pdf extension, that extension will be propagated

Re: [web2py] strange URL output ?!

2017-12-21 Thread António Ramos
the problem is on line url = URL(a='fileit', c='events',f='list', host=True, args=[], vars=vars,extension=None) it adds .pdf to /fileit/events/list*.pdf/...* *Any ideas?* 2017-12-21 15:17 GMT+00:00 António Ramos : > this is my code that i call via post > > >

Re: [web2py] strange URL output ?!

2017-12-21 Thread António Ramos
this is my code that i call via post @request.restful() def uploadCOA(): import random import string response.view = 'generic.json' def POST(*args, **kw): try: uploaded_file = kw[kw.keys()[0]] coa = args[0] + "/" + args[1] filename =

Re: [web2py] strange URL output ?!

2017-12-21 Thread António Ramos
Not solved. I even set extension=None or extension="bbb" keeps adding .pdf 2017-12-21 14:29 GMT+00:00 Richard Vézina : > Maybe inherited from the previous request?? > > You can set "extension='html|json|etc'" to try to correct that... > > Richard > > On Thu, Dec

Re: [web2py] strange URL output ?!

2017-12-21 Thread Richard Vézina
Maybe inherited from the previous request?? You can set "extension='html|json|etc'" to try to correct that... Richard On Thu, Dec 21, 2017 at 7:06 AM, António Ramos wrote: > hello i cannot understand why this code >

[web2py] strange URL output ?!

2017-12-21 Thread António Ramos
hello i cannot understand why this code vars=dict(itemID=relatedto,t="entities",uuid=db.entities[relatedto]["uuid"],receipt=1,eventid=eventid) url = URL(a='fileit', c='events',f='list', host=True, args=[], vars=vars) returns this url http://myapp/fileit/events/list*.pdf*