[web2py] Re: restful api post works great localy, but getting login redirect on a remote server

2018-02-15 Thread Dave S
On Thursday, February 15, 2018 at 3:57:03 PM UTC-8, Anatoli Hristov wrote: > > Did anyone got it working? I have exact same problem. > > Any help? > > Thanks > I have at least one API call that works fine with BASIC (through both Rocket and Nginx), but while I consider it restful it doesn't us

[web2py] Re: routes_in: escape question mark

2018-02-15 Thread Dave S
On Thursday, February 15, 2018 at 4:05:32 PM UTC-8, nethu...@gmail.com wrote: > > Hello community. I need to support some legacy URLs in a web2py > application. I am able to do this using routes_in and routes_out, but it > fails when the URL contains a question mark: > > routes_in = [ > ("

[web2py] routes_in: escape question mark

2018-02-15 Thread nethugolol
Hello community. I need to support some legacy URLs in a web2py application. I am able to do this using routes_in and routes_out, but it fails when the URL contains a question mark: routes_in = [ ("/index?lang=en", "myapp/default/index_en") ] The URL is not mapped at all. My attempt to scap

[web2py] Re: restful api post works great localy, but getting login redirect on a remote server

2018-02-15 Thread Anatoli Hristov
Did anyone got it working? I have exact same problem. Any help? Thanks On Tuesday, 16 October 2012 23:50:33 UTC+2, Adi wrote: > > > If this is of any help, I tried tracing basic login in tools.py, and > figured out variable "basic" never gets value from > current.request.env.http_authorizatio

[web2py] Re: Run custom code upon error ticket issuance?

2018-02-15 Thread Leonel Câmara
No this doesn't work for scheduler tasks. Note that scheduler task that have errors do not produce an error ticket anyway. For scheduler tasks I would inherit from scheduler and override set_worker_status to also do some other action when it's setting it to FAILED. -- Resources: - http://web2p

[web2py] Re: Intersection of rows

2018-02-15 Thread Dave S
On Thursday, February 15, 2018 at 10:44:46 AM UTC-8, Anthony wrote: > > Both methods work with my main test data (the source of 111 X and 10 Y), >> yielding 9 runs that match both. The alias method, however, let a >> duplicate row sneak in. I need to test more pairs, but I think you >> (Anth

[web2py] Re: type(list:string) = problem

2018-02-15 Thread Anthony
Similar code works fine for me. Please show all of your code. On Thursday, February 15, 2018 at 3:15:53 PM UTC-5, Nkas wrote: > > > Hi, > > I am trying to concatenate a list:string field *f_subject *with an extra > string *i*, using row.update_record(f_subject=row.f_subject+[i]), however > row.

[web2py] Re: Run custom code upon error ticket issuance?

2018-02-15 Thread Francisco Ribeiro
That is useful but is it really equivalent to error ticket issuance i.e. do all tickets we see as error tickets hit the routes_onerror? What if the error is triggered by a scheduled task running in the background? Thanks On Thursday, 15 February 2018 17:43:58 UTC, Leonel Câmara wrote: > > I'd

[web2py] type(list:string) = problem

2018-02-15 Thread Nkas
Hi, I am trying to concatenate a list:string field *f_subject *with an extra string *i*, using row.update_record(f_subject=row.f_subject+[i]), however row.f_subject is read a string not a list (i.e. type(row.f_subject) returns ). Is there a way to get it directly as a list? Thanks, Nasr --

[web2py] Re: Intersection of rows

2018-02-15 Thread Anthony
> > Both methods work with my main test data (the source of 111 X and 10 Y), > yielding 9 runs that match both. The alias method, however, let a > duplicate row sneak in. I need to test more pairs, but I think you > (Anthony) solved my problem. > If the alias method is producing duplicates,

[web2py] Re: Run custom code upon error ticket issuance?

2018-02-15 Thread Leonel Câmara
I'd say the easiest way would be to use routes_on_error, you can put a controller function of your application there. On you web2py directory you would make a routes.py with routes_onerror = [ ('myapp/*', '/myapp/default/error') ] Then on default.py you could have a function like this: de

[web2py] Run custom code upon error ticket issuance?

2018-02-15 Thread Francisco Ribeiro
Hi all, I have created an event viewer web console that uses websockets to keep itself up to date. I wanted error tickets to show up in here as well, so once a ticket is issued it would execute my custom code that keeps my event viewer up to date with a link to the ticket itself. Ideally, the

[web2py] Re: parametric routes

2018-02-15 Thread Anthony
If the type of routing you want to do cannot be accommodated by the parameter-based system, you will have to use the pattern-based system (see the book section for details on how it works). Anthony On Thursday, February 15, 2018 at 9:05:16 AM UTC-5, Scorpa wrote: > > Then how actually re-route

[web2py] Re: parametric routes

2018-02-15 Thread Scorpa
Then how actually re-route inside the app ? четверг, 15 февраля 2018 г., 16:56:13 UTC+3 пользователь Anthony написал: > > The domains must be in the form of host:port -- it does not support any > path after the port. > > Anthony > > On Thursday, February 15, 2018 at 8:24:59 AM UTC-5, Scorpa wrote

[web2py] Re: parametric routes

2018-02-15 Thread Anthony
The domains must be in the form of host:port -- it does not support any path after the port. Anthony On Thursday, February 15, 2018 at 8:24:59 AM UTC-5, Scorpa wrote: > > Hello guys! > > > How to route some path to specific controller ? > > For example, i have this in routes.py: > > routers = di

Re: [web2py] Re: using the auth. infrastructure to manage another user list

2018-02-15 Thread Anthony
On Thursday, February 15, 2018 at 4:14:39 AM UTC-5, icodk wrote: > > It is getting muddy... > What about the different messages I want to show depending on the type of > user ? > Just use conditional logic to change the auth settings and any relevant code in the user() action and user.html view.

Re: [web2py] Re: using the auth. infrastructure to manage another user list

2018-02-15 Thread Jim Steil
I would think you could manage that by conditioning response.flash messages with auth.is_member tests. Also, have you played around with the user method of default.py? Jim On Feb 15, 2018 3:14 AM, "icodk" wrote: > It is getting muddy... > What about the different messages I want to show dep

[web2py] parametric routes

2018-02-15 Thread Scorpa
Hello guys! How to route some path to specific controller ? For example, i have this in routes.py: routers = dict( # base router BASE=dict( domains={ 'et.mooo.com:8000': 'sd/sea', '127.0.0.1:8000/.we': 'sd/seb', '127.0.0.1:8000/we': 'sd/sec',

[web2py] Re: web2py_osx.zip seems way out of date ???

2018-02-15 Thread Dave S
On Wednesday, February 14, 2018 at 6:23:44 PM UTC-8, jim kaubisch wrote: > > Has no-one else had this problem? > I run web2py on Windows or on linux, and having multiple versions has not been a problem. That's the way I usually upgrade, copying my applications across, and looking for js/css/app

Re: [web2py] Re: using the auth. infrastructure to manage another user list

2018-02-15 Thread Dave S
On Thursday, February 15, 2018 at 1:14:39 AM UTC-8, icodk wrote: > > It is getting muddy... > What about the different messages I want to show depending on the type of > user ? > > Where are you wanting to show these messages? At registration, or on a page for showing or entering data? For th

[web2py] Re: Intersection of rows

2018-02-15 Thread Dave S
On Wednesday, February 14, 2018 at 1:02:52 PM UTC-8, Dave S wrote: > > > > On Tuesday, February 13, 2018 at 7:37:22 AM UTC-8, Anthony wrote: >> >> On Tuesday, February 13, 2018 at 4:09:02 AM UTC-5, Dave S wrote: >>> >>> That's yielding 0 rows from the run table (for my chosen args).. It >>> loo

Re: [web2py] Re: using the auth. infrastructure to manage another user list

2018-02-15 Thread icodk
It is getting muddy... What about the different messages I want to show depending on the type of user ? On Thursday, February 15, 2018 at 12:00:44 AM UTC+1, Jim S wrote: > > So, then maybe you just add users and they all get departmental access and > then have a button on the site where they can