I noticed that my form submit takes too long, almost 45 seconds sometimes.
The more data I add to the database and I need to fetch it, the more longer
it takes to submit.
This is my code
{{=form.custom.begin}}
Hello, please, I need help with the following:
I have the login with CAS configured and when logging in, the user's registry
is modified adding registration_id as /cas/[user_email]... It works fine
but,
when the user does not have an email, then the registration_id field ends as
/cas/Non
After downloading 2.17.1 from Github I get wrong static URLs in the admin
application:
response.files.insert(0,URL('static','js/jquery.js')) in web2py_ajax.js
resolves the URL to
Hello, look at db.py ... probably you have uncommented these lines:
# response.static_version = myconf.get('app.version')
# response.static_version_urls = True
http://www.web2py.com/books/default/chapter/29/04/the-core#Static-asset-management
El miércoles, 29 de agosto de 2018, 11:08:32 (UTC-3
You made my day!!! It were this lines in 0.py
Hahaha, RTFM! I'm always finding new things in this book even I thought
I've seen all chapters...
Am Mittwoch, 29. August 2018 16:37:48 UTC+2 schrieb fiubarc:
>
> Hello, look at db.py ... probably you have uncommented these lines:
>
> # response.sta
>
> db.answers.insert(quest=names, message=report())
>
What does report() do? Is that an expensive function?
> replies = db(db.answers.author == auth.user.id).select(db.answers.ALL
> )[-10:-1]
>
Above you are selecting every record in the db.answers table and converting
them to Pytho
The admin app uses the built-in static versioning functionality, as
described
here:
http://web2py.com/books/default/chapter/29/04/the-core#Static-asset-management.
You may need to configure your web server properly to handle those URLs, as
described in the above link.
Anthony
On Wednesday, A
Answers is a small table, can have up to 100 rows. I'll introduce the
limitby(). There are several functions that an item loops through, almost
100, but with a filter to limit the number of functions, with the final
result returned by report()
On Wed, 29 Aug 2018, 18:30 Anthony wrote:
> db.
Hi guys, I am trying to manually upload a file, but this code:
file_store =
db.dar_resource_file.file.store(request.vars.file.file,
request.vars.file.filename)
db.dar_resource_file.update_or_insert(db.dar_resource_file.resorce=resource_id,
resource=resource_id, name=resource_name, file=f
I have found the issue, there was a typo (that's the bad ting about
copying and pasting) in my "resource" field of "dar_resource_file"
table, is was declared as:
Field("file", "list:refrence dar_resource")
instead of:
Field("file", "refrence dar_resource")
Anyway, I think that it sho
I have opened issue #1996 to cover this and can confirm works correclty
once I remove the computed field from the auth_user table.
Many thanks
Donald
On Wednesday, August 29, 2018 at 12:58:21 AM UTC+1, Anthony wrote:
>
> Looks like a bug here:
> https://github.com/web2py/web2py/blob/63972386c23
Using python 2 on the same system, the scheduler is rock-solid, but using
python 3 the workers die after processing a task. The rest of the tasks are
left in queue and the worker entry is deleted from the scheduler_worker
table.
Aug 28 20:22:03 ubuntu1806 sudo[16121]: Exception in thread Thread
12 matches
Mail list logo