Re: [web2py] No module named error

2020-07-17 Thread patito feo
Hi, __init__.py file in ./modules moduloname.py file in ./modules But the module still not loade. An error is pop in the web-ide. Thanks, El lunes, 22 de junio de 2020, 14:33:28 (UTC-5), Dave S escribió: > > > > On Monday, June 22, 2020 at 5:13:46 AM UTC-7, patito feo wro

Re: [web2py] No module named error

2020-06-22 Thread patito feo
s/4657484/how-can-i-use-modules-in-web2py > > > > > Em sáb., 20 de jun. de 2020 às 21:14, patito feo > escreveu: > >> Hi, >> >> Please define "all ok" >> >> __init__.py file in /modules >> .py file in /modules >> >&g

Re: [web2py] No module named error

2020-06-20 Thread patito feo
Hi, Please define "all ok" __init__.py file in /modules .py file in /modules Thnx for your help! El sábado, 13 de junio de 2020, 18:45:39 (UTC-5), Ramos escribió: > > if all is ok, restart web2py > > Em dom., 14 de jun. de 2020 às 00:35, patito feo > escreveu: &g

[web2py] No module named error

2020-06-13 Thread patito feo
Hi, Im trying to use a module file inside /modules/ folder but keep getting this error. failed to reload module because: ImportError('No module named mdplenus.modules.test',) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] web2py python3

2020-05-12 Thread patito feo
Hi, Having this error when using python3. File "//web2py/applications/admin/controllers/default.py" , line 1627, in errors error = pickle.load(fullpath_file) File "/

[web2py] Re: python3 + web2py + Lighttpd + fastcgi

2020-03-26 Thread patito feo
Thank you Massimo. I will start deploying testing on debian Buster. El lunes, 23 de marzo de 2020, 23:20:42 (UTC-5), Massimo Di Pierro escribió: > > I guess we would have to replace calls to thread. to threading. > > Why not use nginx which is kind of the standard today? > -- Resources: - http:

[web2py] Re: python3 + web2py + Lighttpd + fastcgi

2020-03-22 Thread patito feo
rro escribió: > > I just fixed these issues and a few more. still skeptical this works with > py3 without more changes. Thanks for you help > > > On Saturday, 21 March 2020 20:12:01 UTC-7, patito feo wrote: >> >> Thank you Massimo. >> >> As a result the

[web2py] Re: python3 + web2py + Lighttpd + fastcgi

2020-03-21 Thread patito feo
cribió: > > Fixed right now on github. Python 3 does not like the L > > On Saturday, 21 March 2020 16:11:38 UTC-7, patito feo wrote: >> >> Hi all, >> >> I've been trying to run web2py using python3 but unable to do it >> sucessful. >> Using late

[web2py] python3 + web2py + Lighttpd + fastcgi

2020-03-21 Thread patito feo
Hi all, I've been trying to run web2py using python3 but unable to do it sucessful. Using latest build 2.19.1 I keep getting this error: Traceback (most recent call last): File "/folder/folder/folder/fcgihandler.py", line 44, in import gluon.contrib.gateways.fcgi as fcgi File "/folder/

[web2py] Re: Problem passing a json object to controller

2019-11-27 Thread Patito Feo
items[json1]'] >> > > because the var is 'items[json1]' requests.vars.items[json1] will look for > the key 'json1' in the dict var items and there is no items var only a > 'items[json1]' var that's why you need to use ['items[json1]

[web2py] Re: Problem passing a json object to controller

2019-11-20 Thread Patito Feo
= request.vars['items[json1]'] >> print mydata >> {"make":"Ford","model":"Mustang","year":1969} >> > > Regards from spain Ugly Duckling :) > > El miércoles, 20 de noviembre de 2019, 18:08:03 (UTC+1), Patito

Re: [web2py] Problem passing a json object to controller

2019-11-20 Thread Patito Feo
e: > >var = json.loads ( request.post_vars.items[*"*json1*"*] ) > > > El mié., 20 de nov. de 2019 a la(s) 14:08, Patito Feo (patito...@gmail.com > ) escribió: > >> Hi, >> >> Ive been trying to pass an object with keys to the controller. But i >> ha

[web2py] Problem passing a json object to controller

2019-11-20 Thread Patito Feo
Hi, Ive been trying to pass an object with keys to the controller. But i havent been able to extract the request.vars. Here is my view: var Cars = {} Cars.make = 'Ford'; Cars.model = 'Mustang'; Cars.year = 1969; $.post( "{{=URL('default', 'transcriptor')}}", //request.post_vars.json1 {

[web2py] How to switch from cpython to pypy?

2019-10-26 Thread Patito Feo
Hi all, Anyone has a guide or a recipe that can show the way? Regards, -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message becau

[web2py] Re: Lighttpd and fcgihandler processes

2019-10-25 Thread Patito Feo
agosto de 2019, 23:39:13 (UTC-5), Patito Feo escribió: > > Hi, > > I have web2py running over lighttpd. By the moment my currents apps dont > have high load average. > Checking my processes, i found a single python fcgihandler.py process. > > python /home/www-data/web2

[web2py] custom autocomplete fields and style

2019-10-22 Thread Patito Feo
Hi, Is it possible to show an array of fields in the autocomplete like "field1 - field2" ? How can i stylish the dropdown options, backgroup colors, z-indez, position etc? Regards, -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (S

Re: [web2py] multi tables count

2019-10-15 Thread Patito Feo
os.COD_REFE, > db.itemspedidos.id.count(), db.pedidos.fecha.month(), > orderby=db.pedidos.fecha.month(), groupby=[db.pedidos.fecha.month(), > db.itemspedidos.COD_REFE]) > > On Tue, Oct 15, 2019 at 10:07 PM Patito Feo > wrote: > >> Hi, >> >> Ive been trying many ways of getti

[web2py] multi tables count

2019-10-15 Thread Patito Feo
Hi, Ive been trying many ways of getting this right, db.define_table('pedidos', Field('fecha', type='date' ), Field('cliente', ), Field('pares', ), Field('estado', ), Field('noitems', ), Field('notape

[web2py] Re: How to stopped redirection to user/login.html

2019-09-17 Thread Patito Feo
), Patito Feo escribió: > > Hi, > > I had done tests using a new empty application and this works. > My current application uses a customdb auth table and its using > > auth.settings.on_failed_authentication = lambda url: redirect(url) > > > but with custom tables s

[web2py] Re: How to stopped redirection to user/login.html

2019-09-11 Thread Patito Feo
, 19:01:04 (UTC-5), Dave S escribió: > > On Thursday, August 22, 2019 at 4:32:02 PM UTC-7, Patito Feo wrote: >> >> Hi, >> >> This does not worked. >> Redirecting still goes to user/login.html. >> >> Any ideas? >> >> Cheers, >> > >

Re: [web2py] Re: How do I display db text/string fields in the format in which they were entered on the form?

2019-08-31 Thread Patito Feo
Hi, Im testing this, but it seems somethings changed to date. Here is what im getting on the textarea: prueba textarea 3prueba textarea 3prueba textarea 3 As you can see, \n new lines are converted to but render as . Any suggestion? Regards, El jueves, 20 de octubre de 2016, 14:07:57

[web2py] Re: How to stopped redirection to user/login.html

2019-08-31 Thread Patito Feo
Any suggestion? Cheers, El jueves, 22 de agosto de 2019, 23:27:34 (UTC-5), Patito Feo escribió: > > Hi and thanks for your answer, > > I did what the manual points to do. But the redirection still points to > user/login.html. In fact here is part of my config: > > au

[web2py] Re: Custom form errors style

2019-08-23 Thread Patito Feo
Hi, This did the trick. Thank you very much!! El viernes, 23 de agosto de 2019, 10:09:01 (UTC-5), Annet escribió: > > To diasble it: > > if form.accepts(..., hideerror=False): > > > to restyle it, restyle: > > .error > > > Kind regards, > > Annet > > -- Resources: - http://web2py.com - http:/

[web2py] Lighttpd and fcgihandler processes

2019-08-22 Thread Patito Feo
Hi, I have web2py running over lighttpd. By the moment my currents apps dont have high load average. Checking my processes, i found a single python fcgihandler.py process. python /home/www-data/web2py/fcgihandler.py Is this normal? How affect this in case of high loads? Is the a way to run mo

[web2py] Re: How to stopped redirection to user/login.html

2019-08-22 Thread Patito Feo
hentication = lambda url: redirect( URL( 'ingreso' ) ) I have defined a auth custom table, is there anything Im missing? Regards, El jueves, 22 de agosto de 2019, 19:01:04 (UTC-5), Dave S escribió: > > On Thursday, August 22, 2019 at 4:32:02 PM UTC-7, Patito Feo wrote:

[web2py] Re: How to stopped redirection to user/login.html

2019-08-22 Thread Patito Feo
Hi, This does not worked. Redirecting still goes to user/login.html. Any ideas? Cheers, El jueves, 22 de agosto de 2019, 0:44:39 (UTC-5), Annet escribió: > > What about: > > auth.settings.on_failed_authentication = lambda url: redirect(url) > > > That is what the book says changing the default

[web2py] Custom form errors style

2019-08-22 Thread Patito Feo
Hi, I need to disable the form error_wraper DIVs or custom style those. How can i do either of those? Regards, -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issu

[web2py] How to stopped redirection to user/login.html

2019-08-21 Thread Patito Feo
Hi, I have created a login.html page. I intent to redirect users to this url instead of default behavior redirecting to user/login.html. In fact i have commented out entire user() function on controller. Also i have, auth.settings.login_url = URL( 'default', 'mylogin ) and auth.settings.on_fail

[web2py] Re: How to do I stop auth.requires_login() from redirecting to the default/user controller?

2019-08-07 Thread Patito Feo
Hi, This is not working. Neither is this auth.settings.on_failed_authentication Any ideas? El viernes, 10 de mayo de 2019, 12:55:40 (UTC-5), Leonel Câmara escribió: > > You need to set login_url > > auth.settings.login_url = URL(YOUR_NEW_CONTROLLER, YOUR_NEW_FUNCTION) > -- Resources: - ht