Hello.
I've made a product page with the Ajax LOAD system:
http://www.mompala.it/prodotti
The idea is giving the possibility to the user to browse these products
without a page reload, and it works fine.
The problem is that browsing the products don't change the url.
I've made a script that ch
ler to use url#hash
> schema and place args (category_id=2 and so on) after #.
> In this case it's quite to listen hashchange event and perform ajax.load,
> no other tricks are required.
>
> On Friday, March 2, 2018 at 4:36:28 PM UTC+3, Gaël Princivalle wrote:
>>
>>
Hello.
Is there a way to delete automatically the sessions?
I mean the folders/files inside this folder:
web2py/applications/my_app/sessions
For example deleting the sessions oldest than 1 week.
Thanks!
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.
Hello.
Is it possible to clean an app by script?
Sometimes Web2py don't work anymore because it have too much log/error
files to manage.
I remember a Massimo post about it but I've don't found it.
Thanks, regards.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- h
Hello.
I've forgot my admin password...
And I've made another mistake.
My web2py is on Webfaction and I've reset the password with the
Pythonanywere instructions:
*Changing your Web2py Admin Password*
1. Open a Bash console and cd to your *web2py* directory. You'll know
you're in the ri
Hello.
I've restored from backup a compiled application called
hydrover_oleodinamica.
Now only on the files that are called from Ajax I've got this 500 internal
server error:
(dp1 S'output' p2 S" need more than 1 value to unpack" p3 sS'layer' p4
S'/home/tasko/webapps/w2p_2_14_16/web2py/applica
>Does parameters_443.py exist in web2py dir?
Yes.
>Check permissions - does web2py have access to this file?
Yes
Il giorno giovedì 16 maggio 2019 10:10:25 UTC+2, Val K ha scritto:
>
> Hi!
> Does parameters_443.py exist in web2py dir?
> Check permissions - does web2py have access to this file?
--
Hi all.
In my sessions folder all sessions are stored in separated sub-folders,
068,069...
The file system don't accept more than 512 sub-folders in a folder.
When I reach 512 sub-folders the website is down.
Now for avoiding this problem I delete all the sessions with a crontab job
every 12 hou
py.com/books/default/chapter/29/13?search=cache#Sessions-in-memcache
>
> Read that part of the doc, there are quite a few type of session handling
> recipes.
>
> Regards,
>
> FeZ
>
> 2019. július 12., péntek 10:00:03 UTC+2 időpontban Gaël Princivalle a
> következőt írta:
&
g to move to a 2.18.5, I've already installed it but in the
welcome/modules folder there's only the __init__.py file, it's an empty
file.
>The module 'six' is a compatibility layer between API of python2 and
python3 anyway.
That could be the problem.
>I cannot see now
CentOS 7 on Webfaction.
Il giorno sabato 13 luglio 2019 09:03:17 UTC+2, Massimo Di Pierro ha
scritto:
>
> what os is this?
>
> On Friday, 12 July 2019 01:00:03 UTC-7, Gaël Princivalle wrote:
>>
>> Hi all.
>>
>> In my sessions folder all sessions are stored i
t; Could you solve the problem? Pls. give a short feedback.
>
> Regards,
> Zoltán
>
> 2019. július 13., szombat 9:03:17 UTC+2 időpontban Massimo Di Pierro a
> következőt írta:
>>
>> what os is this?
>>
>> On Friday, 12 July 2019 01:00:03 UTC-7, Gaël Prin
urn long(id)
else:
raise RuntimeError("Too many ID conflicts")
def get(self, id):
val = self._tableobj.get(self._id_to_key(id))
if val:
Do you know why?
Il giorno giovedì 18 luglio 2019 12:58:50 UTC+2, Gaël Princivalle
Hi all.
I've got several problems for moving the sessions to the memory.
Now they're in the DB, adding this to the model:
session.connect(request, response, db)
It works fine and the website is faster.
Il giorno venerdì 19 luglio 2019 14:31:38 UTC+2, Gaël Princivalle ha
scritto:
>
Hello.
The user experience on this website is amazing, mostly due to the
incredible speed:
https://www.fluidpowernet.net/
Hosting Azure
Framework ASP.NET
As I have to think about new projects where I can choose the technologies,
I would like to understand why this website is so fast.
Hosting?
F
ritto:
>
> Let me disagree.
> Not that "incredible" just static pages with litle content
> You dont neet a framework to do that...
>
> Em qua, 4 de set de 2019 às 13:24, Gaël Princivalle > escreveu:
>
>> Hello.
>>
>> The user experience on this w
Hello.
I've added reCaptcha to one of my applications but one of my Chinese users
send me this feedback, he's not able to log in anymore.
In fact Google is blocked in China, reCaptcha is provided by Google, so the
form cannot be validated.
http://web2py.com/books/default/chapter/29/09/access-co
o:
>
> The information is already in the browser. All members are loaded at page
> load.
> The page loads data from this url
> https://www.fluidpowernet.net/Ws/getmlf
>
> regards
>
> Em qua, 4 de set de 2019 às 15:07, Gaël Princivalle > escreveu:
>
>> Well w
Any solution?
Il giorno lunedì 23 settembre 2019 08:28:30 UTC+2, Gaël Princivalle ha
scritto:
>
> Hello.
>
> I've added reCaptcha to one of my applications but one of my Chinese users
> send me this feedback, he's not able to log in anymore.
> In fact Google is bl
don't have yet a better solution.
Il giorno lunedì 23 settembre 2019 08:28:30 UTC+2, Gaël Princivalle ha
scritto:
>
> Hello.
>
> I've added reCaptcha to one of my applications but one of my Chinese users
> send me this feedback, he's not able to log in anymore.
; Ivan Gazzola
>
> Il giorno giovedì 16 maggio 2019 17:32:26 UTC+2, Gaël Princivalle ha
> scritto:
>>
>> >Does parameters_443.py exist in web2py dir?
>> Yes.
>>
>> >Check permissions - does web2py have access to this file?
>> Yes
>>
>&
Dear Massimo.
Did you plan to add the grid to py4web?
Il giorno lunedì 10 febbraio 2020 17:13:56 UTC+1, Massimo Di Pierro ha
scritto:
>
> Hello Victor,
>
> I recommend everybody to move from web2py to py4web. I am using the latter
> for my own projects and find it better.
> Honestly web2py has
Hello.
How can I build a query in 2 steps?
query = db.products.type == 1
query = query and db.products.stock > 0
The final result must do something like that:
fruits = db((db.products.type == 1) and (db.products.stock > 0)).select()
Made like this:
fruits = db(query).select()
Thanks!
--
Resou
Thanks a lot Val and Thiago for your help, it's perfect.
Il giorno sabato 4 aprile 2020 16:36:13 UTC+2, Gaël Princivalle ha scritto:
>
> Hello.
>
> How can I build a query in 2 steps?
>
> query = db.products.type == 1
> query = query and db.products.stock > 0
Hello all.
How can I set the timezone of my Web2py app?
Adding it in the httpd.conf Apche2 file don't change it (also after stop
and start):
SetEnv TZ Europe/Rome
Thanks.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source co
Hello.
In my DB I have a field like that:
Field('order_email', type='text', widget=ckeditor.widget)
The content is in HTML.
The CKEditor version is the 4.14.0 and the browser compability says it's ok
with Chome:
https://ckeditor.com/docs/ckeditor4/latest/guide/dev_browsers.html
The demo CKEdito
Hi Antonio.
i'm worried about the same thing.
It seems that all the applications gone be migrated to TsoHost, a Godaddy
company.
Someone have some experience about Web2py on TsoHost ?
Il giorno venerdì 22 maggio 2020 alle 09:45:12 UTC+2 Ramos ha scritto:
> I´m a webfaction long time user and
I think the new business TsoHost plans are the ones that will replace the
Webfaction cloud plans:
https://www.tsohost.com/business-hosting
Il giorno mercoledì 14 ottobre 2020 alle 15:55:32 UTC+2 Gaël Princivalle ha
scritto:
> Hi Antonio.
>
> i'm worried about the same thing.
>
Today Webfaction has send me the confirmation that Postgress and Web2py
will be not available on tsoHost.
Did someone tried this one?
https://www.mddhosting.com/
It seems a new company made by old Webfaction guys.
Il giorno venerdì 16 ottobre 2020 alle 16:11:40 UTC+2 Ramos ha scritto:
> This is
I've made some confusion, you're wright it's not MDDHosting where they're
some old Webfaction guys but Opalstack.
I'll choose a VPS from Opalstack or OVH. Did someone tried to use
Webfaction on OVH?
Il giorno venerdì 16 ottobre 2020 alle 18:45:41 UTC+2 Jose C ha scritto:
> Did someone tried thi
Thank you Carlos, I'll start this migration as soon as my Opalstack account
will be a provisioned.
I've a doubt about the DBs. Opalstack offers MariaDB and PostgreSQL.
It seems that it's not so easy to use PostgreSQL.
https://groups.google.com/g/web2py/c/bc_8dg-XHpY/m/ci8A2RzzAwAJ
I can switch my
I've installed Web2py on Opalstack but the Web2py admin password is not the
same as my shell one. How was it for you?
Il giorno martedì 20 ottobre 2020 alle 11:41:50 UTC+2 Annet ha scritto:
> Hi,
>
> Jose, is right, I had the same problem: I did not go to my app directory
> prior to activating
rcoledì 21 ottobre 2020 alle 12:42:11 UTC+2 Jose C ha scritto:
>
>
> On Wednesday, 21 October 2020 10:46:03 UTC+1, Gaël Princivalle wrote:
>>
>> I've installed Web2py on Opalstack but the Web2py admin password is not
>> the same as my shell one. How was it for you?
>
0 alle 15:41:52 UTC+2 Jose C ha scritto:
>
> On Wednesday, 21 October 2020 13:50:05 UTC+1, Gaël Princivalle wrote:
>>
>> Thank you José, I've found the README file and the password.
>> However this password is not accepted.
>> I've made another Web2py instal
Started uWSGI for web2py3.
Il giorno mercoledì 21 ottobre 2020 alle 16:56:52 UTC+2 Gaël Princivalle ha
scritto:
> > Are you activating the virtualenv first
> Yes I've followed all the points of the process.
>
> > What error message(s) are you getting? At what point?
Thank you Jose for your help. The Opalstack support have found an error in
the install script, now it works fine.
' For some reason the install script stored the wrong password hash'
Il giorno mercoledì 21 ottobre 2020 alle 21:03:04 UTC+2 Jose C ha scritto:
> Can you try this:
>
> Edit the para
1:15:44 UTC+2 Jose C ha scritto:
>
>
> On Wednesday, 21 October 2020 20:10:02 UTC+1, Gaël Princivalle wrote:
>>
>> Thank you Jose for your help. The Opalstack support have found an error
>> in the install script, now it works fine.
>> ' For some reaso
I've got the same problem and I've tried to fix it installing it as
described.
It works but you must stop and restart your virtual environment.
Il giorno lunedì 19 ottobre 2020 alle 23:10:32 UTC+2 Jose C ha scritto:
>
>
> On Monday, 19 October 2020 21:51:00 UTC+1, Ramos wrote:
>>
>> got the answ
>Perhaps you can +1 them on this feature request.
Done.
> The zip_static_files.py utility in your web2py scripts directory will
create gzipped versions of all your static files for you.
Great.
However something goes wrong.
[user@vpsXX web2py]$ python web2py.py -S myapp -R
scripts/zip_static_f
rno sabato 24 ottobre 2020 alle 20:38:45 UTC+2 Gaël Princivalle ha
scritto:
> >Perhaps you can +1 them on this feature request.
> Done.
>
> > The zip_static_files.py utility in your web2py scripts directory will
> create gzipped versions of all your static files for you.
Thank you Carlos that works perfectly.
Il giorno lunedì 26 ottobre 2020 alle 02:55:05 UTC+1 carlos@gmail.com
ha scritto:
> Try this:
>
> cd ~/apps/yourapp
> source env/bin/activate
> cd web2py/
> python -c "from gluon.main import save_password;
> save_password(raw_input('admin password: '),
Hi.
I'm still trying to migrate my Web2py applications from Webfaction to
Opalstack.
Well here what I do:
1 I export the DB form Webfaction in the dump.sql file
What are the best options?
For one website only the Data's in the Copy mode has worked well.
For another one I've loose some records.
Hello.
I'm still trying to migrate my apps from Webfaction to Opalstack.
Migrating Web2py apps is not so easy...
I've 3 apps, 2 are now ok.
Using the same steps I'm unable to migrate the third one.
When I click on the appadmin button for checking the DB records, or when I
try to display the app,
Hi.
I was working on a http website.
Anyway the https protocol don't accept gzip, so as all websites now are
https, it don't have any interest to have gzip.
My https websites load really faster compare to Webfaction.
Good deal.
Il giorno sabato 24 ottobre 2020 alle 22:14:21 UTC+2 Jose C ha scri
Hello.
I've migrated 3 Web2py apps from Webfaction to Opalstack.
For all these 3 apps I've the same ticket.
When I save a table record with an upload field Web2py tried to save in the
myappupload folder instead of the myapp/upload folder.
Of course Web2py is unable to find this folder.
Someon
#Resize the image with best quality algorithm ANTI-ALIAS
img.thumbnail(box, Image.ANTIALIAS)
root, ext = os.path.splitext(image)
thumb = '%s_%s%s' % (root, name, ext)
img.save(request.folder + *'uploads/'* + thumb)
return thumb
Il giorno
umbnail()
method?
Il giorno sabato 7 novembre 2020 alle 23:35:43 UTC+1 snide...@gmail.com ha
scritto:
>
>
> On Sunday, November 1, 2020 at 1:46:51 PM UTC-8, Gaël Princivalle wrote:
>>
>> I've found that in this function the upload folder was without a '/' at
>>
Hi.
Someone knows what it means?
After a server change I'm able in the Admin to modify the table records but
not the one of the scheduler.
Any idea?
Traceback (most recent call last):
File "/home/user/apps/web2py_folder/web2py/gluon/main.py", line 456, in
wsgibase
session._try_store_in_
We talk about the db.scheduler_task table. I've deleted all the records
from this table, and also from db.scheduler_run and db.scheduler_worker.
No way.
Il giorno domenica 8 novembre 2020 alle 20:57:23 UTC+1 Gaël Princivalle ha
scritto:
> Hi.
>
> Someone knows what it mean
ica 8 novembre 2020 alle 21:08:45 UTC+1 Gaël Princivalle ha
scritto:
> We talk about the db.scheduler_task table. I've deleted all the records
> from this table, and also from db.scheduler_run and db.scheduler_worker.
>
> No way.
>
> Il giorno domenica 8 novembre 2020 alle 20:57:
Hello.
Did someone tried to use the scheduler on Opalstack?
I was used to run this command to start a worker in Webfaction but in
Opalstack it don't works:
nohup python web2py.py -K applicationname &
I've tried in also in the virtualenv no way.
Someone knows how I can do it?
Thanks.
--
Re
gt; specified along with fake-migrate=False.
>
> I'm thinking that should force a rebuild of the scheduler tables in your
> database.
>
> -Jim
>
>
> On Tuesday, November 10, 2020 at 3:02:15 AM UTC-6, Gaël Princivalle wrote:
>>
>> I've deleted the schedule
help.
Il giorno martedì 10 novembre 2020 alle 15:45:43 UTC+1 Jim S ha scritto:
> Did you go in to the application so that db.py would be executed, thereby
> triggering the migration to happen?
>
> -Jim
>
> On Tuesday, November 10, 2020 at 8:33:41 AM UTC-6, Gaël Princivalle
lle 12:55:35 UTC+1 Ramos ha scritto:
> it worked for me.
>
> Em ter., 10 de nov. de 2020 às 09:25, Gaël Princivalle <
> gaelpri...@gmail.com> escreveu:
>
>>
>> Hello.
>>
>> Did someone tried to use the scheduler on Opalstack?
>>
>> I was used
yc(pycfile), _env) SyntaxError: unqualified exec is not allowed
in function 'run' it contains a nested function with free variables
Il giorno mercoledì 11 novembre 2020 alle 09:41:56 UTC+1 Gaël Princivalle
ha scritto:
> Ok the problem was that the python command must be the one
.sitedomain.com/attivita_fattoria_didattica?id=%s' %
(str(item.id))
file = open('%s/static/sitemap.txt' %request.folder, 'w')
file.write(sitemap)
file.close()
file = open('%s/static/sitemaps/sitemap.txt' %request.folder, 'w')
file.wri
ue, bigint_id=True,
migrate=False, fake_migrate_all=False)
Thanks in advance for your help.
Il giorno giovedì 12 novembre 2020 alle 11:52:32 UTC+1 Gaël Princivalle ha
scritto:
> Sure, here is the complete scheduler.py file:
> My main DB is db, the DB with the scheduler tables is db_sc.
>
Hi.
I'm still having troubles to start a worker on Opalstack for my schedulers.
I've this error:
--
[myuser web2pyfolder]$ nohup env/bin/python web2py/web2py.py -K myapp &
[1] 21916
[ myuser web2pyfolder ]$ nohup: ignoring input and appending output to
‘nohup.out’
[1]+ Exit 1
OutOfTen.org* <https://www.TenOutOfTen.org>
> roge...@gmail.com
> (+95) 09 250018669 <+95%209%20250%20018%20669> (Myanmar)
>
>
>
> On Sat, 21 Nov 2020 at 05:51, Gaël Princivalle
> wrote:
>
>> Hi.
>>
>> I'm still having troubles to start a worker o
Hello.
After the migration from Webfaction to Opalstack I'm still having some
troubles with PostgreSQL.
In a first time I was unable to run he scheduler workers, but now
installing the Psycog2 library like that this problem is resolved.
pip2 install uwsgi psycopg2-binary http://effbot.org/downlo
l.py file:
Il giorno mercoledì 25 novembre 2020 alle 18:53:45 UTC+1 Gaël Princivalle
ha scritto:
> Hello.
>
> After the migration from Webfaction to Opalstack I'm still having some
> troubles with PostgreSQL.
> In a first time I was unable to run he scheduler workers, but now
> in
Thank you Clemens.
I'm using Python2.
I was thinking about moving from PosgreSQL to MariaDB becuse the
'import_from_csv_file' don't works.
I was thinking that is was a Psycog2 library problem, but it's the same
with mariaDB.
Now I have a MariaDB DB, and for achieving your suggestions I must use
Hello.
Moving an app to another server I've this error:
No module named
applications.myapp.modules.requests
Of course I've the modules in my app.
The previous Web2py version was 2.14.16.
Now I use 2.20.4.
Someone knows what's the problem?
Thanks.
--
Resources:
- http://web2py.com
- http:/
way I do is install the requests module in modules folder
> or site packages.
>
> On Mon, Dec 7, 2020, 16:51 Gaël Princivalle wrote:
>
>>
>> Hello.
>>
>> Moving an app to another server I've this error:
>> No module named
>> application
Hello all.
I've to update a Web2py app that uses Bootstrap 2.3.2.
Now the Web2py 2.27.1 uses Bootstrap 4?
Is it possible to use Bootstrap 5?
Thanks.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google
Hello everybody.
I've actually some instances of web2py running with the 2.19.0 version.
0 problems, thank you web2py.
One of these is this one:
https://www.hydrover.it/
It uses the web2py grid, Bootstrap 2.3.2.
I must install a new web2py instance, where I'll copy the
https://www.hydrover.it
Hello Massimo.
I'm still using for 5 Web2py applications with Python 2.7.
Developing is 2% of my time work, so I need a platform reliable and simple,
Web2py is perfect for that.
I must begin a new application and I'll do it with py4web.
Thanks Massimo and to all the guys that have supported Web
67 matches
Mail list logo