Hi,
Im replicating the example from the book for better testing:
./modules/mytest.py
from gluon import current
def ip():
return current.request.client
./controllers/test.py
from applications.mdplenus.modules.mytest import ip
def index():
return "Your ip is " + mytest.ip()
* Same erro
Hi,
Is there a way to specify socket name for DB connection?
Actually is only possible to specify directory, but i have multiple sockets
on a postgres 11 cluster setup.
Ex:
Cluster 1
postgres2://postgres:postgrespass@/dbname?unix_socket=/tmp/.s.PGSQL.5432
Cluster 2
postgres2://postgres:postgr
2py. My general knowledge is scant so it could well be me doing
> something wrong.
>
> On Wed, 22 Jul 2020 at 16:28, Dave S wrote:
>
>>
>>
>> On Saturday, July 18, 2020 at 2:15:13 PM UTC-7, xgp.l...@gmail.com wrote:
>>>
>>> Hi,
>>>
>>
Hi,
I already open a conversation about this but no complete answers were given.
I ran from source and experience the same error.
Cheers,
El Tuesday, August 18, 2020 a la(s) 8:52:43 AM UTC-5, kell...@gmail.com
escribió:
> Same issue here with newest web2py
>
> Am Di., 18. Aug. 2020 um 07:08 U
Hi,
Looking for the solution to this matter also.
File "web2py/gluon/custom_import.py", line 109, in __call__
result = NATIVE_IMPORTER(name, globals, locals, fromlist, level)
Files are placed in the modules folder.
Regards,
El Tuesday, August 18, 2020 a la(s) 8:52:43 AM UTC-5, kell...@gmail.
>>> something wrong.
>>>
>>>
>> There's a performance impact of putting more files in the Models folder.
>>
>> /dps
>>
>>
>>> On Wed, 22 Jul 2020 at 16:28, Dave S wrote:
>>>
>>
>>>>
>
Hi all,
I wonder if someone can give directions on how to keep a Dict in RAM as a
method for fast look for data.
Options:
- from gluon.storage import Storage.
But there is not much info about the reach of this module. Is it renew in
every request?
- What about cache?
Can i store a dict and u
Joe, were you able to apply this patch?
Cheers,
El Friday, January 1, 2021 a la(s) 6:45:16 PM UTC-5, Joe Barnhart escribió:
> Here is a patch that restores redis3 sessions for my system. I'm using
> the latest web2py 2.21.1 and redis stable 6.0.9 (via brew)
>
> *diff --git a/gluon/contrib/red
Joe, thanks for this.
I havent been able to port my app to py4web yet. So i have to step into
python3 first.
Cheers,
El Friday, January 1, 2021 a la(s) 6:45:16 PM UTC-5, Joe Barnhart escribió:
> Here is a patch that restores redis3 sessions for my system. I'm using
> the latest web2py 2.21.
Hi all,
What are the advantages when using Gunicorn?
Cheers,
El domingo, 13 de septiembre de 2020 a las 17:15:40 UTC-5, jpa...@gmail.com
escribió:
> Perfect. Gracias
>
>
> El sábado, 12 de septiembre de 2020 a las 17:10:10 UTC+2, cabildocl
> escribió:
>
>> I wrote an article in Spanish on h
Thank you Massimo!
El jueves, 23 de marzo de 2023 a las 0:20:20 UTC-5, Massimo Di Pierro
escribió:
> Hello everybody,
>
> web2py 2.24.1 has been released.
>
> Thanks to Leonel, Cem, and Mark for bug fixes including:
> - handling corrupt disk cache
> - broken application packaging
> - compare fun
Hi,
Im trying to run web2py + python3.11 + uwgi but unable to make it work.
Seems web2py can't import libraries, when doing the same over a python3
prompt it works.
Example:
Needs redis library to work
try:
import redis
from redis.exceptions import WatchError as RWatchError
from redis.excepti
I was able to get redis working using redis==4.5.1.
The default pip install version was 5.0.0
Cheers,
El jueves, 14 de septiembre de 2023 a las 7:49:11 UTC-5, xgp.l...@gmail.com
escribió:
> Hi,
>
> Im trying to run web2py + python3.11 + uwgi but unable to make it work.
> Seems
Hi,
Now im running into other issues:
cannot import name 'FDPF' from 'fpdf' (unknown location)
cannot import name 'num2words' from 'num2words' (unknown location)
Suggestions?
El jueves, 14 de septiembre de 2023 a las 21:34:01 UTC-5,
xgp.l...@gmail.
Hi Massimo,
Getting this redirecting from nginx to uwsgi_pass http port.
Traceback (most recent call last):
File "/home/www-data/web2py/gluon/main.py", line 562, in wsgibase
return http_response.to(responder, env=env)
File "/home/www-data/web2py/gluon/http.py", line 129, in to
respond
.
Cheers,
El miércoles, 18 de octubre de 2023 a las 11:37:30 UTC-5,
xgp.l...@gmail.com escribió:
> Hi Massimo,
>
> Getting this redirecting from nginx to uwsgi_pass http port.
>
> Traceback (most recent call last):
> File "/home/www-data/web2py/gluon/main.py", line 5
Hi Massimo.
At the moment I haven't moved to py4web. I would like you to consider
support for web2py until python 3.13 at least. I understand the hard work
it takes, but keep in mind improvements on newer versions of python are
worth it.
Only using python 3.10+
Not using GAE.
Thanks your ha
Hi Massimo,
Downloaded 2.27.1 yesterday
Using python 3.9 and python 3.11
Adding elementos to dict:
linea[ "pqrs_id" ] = guardado_id,
linea[ "referencia_id" ] = item["referencia_id"],
linea[ "talla" ] = item["referencia_id"],
linea[ "color_id" ] = item["color_id"],
linea[ "cantidad" ] = item["ca
'criterio_id': ('6',), 'estado_id': (1,)}
Regards,
El martes, 29 de octubre de 2024 a las 9:01:46 UTC-5, Massimiliano escribió:
> Try
>
> print(guardado_id, )
>
> What you see?
>
> Massimiliano
>
>
> Il giorno mar 29 ott 2024 alle 1
Hi Massimo,
Silly mistake.
Thanks for your help,
El martes, 29 de octubre de 2024 a las 9:22:24 UTC-5, Massimiliano escribió:
> Remove the comma at the end of the lines
>
> Massimiliano
>
>
> Il giorno mar 29 ott 2024 alle 15:19 xgp.l...@gmail.com <
> xgp.l...@gmail.
20 matches
Mail list logo