[web2py] About response.toolbar

2019-10-14 Thread Константин Комков
What I see on picture? What is that queries? Are there way to put toolbar buttons in string? Thank you. -- 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) --- Y

[web2py] Can I use session for personal data

2019-10-14 Thread Константин Комков
In students cabinet I have 5 pages. In each page I have query to database, that's query is not the same now, but I can do one universal. Can I create class in sessions and store there personal data? If I use cache is it store data for all or only for auth user? Thank you. -- Resources: - http:

Re: [web2py] Re: py4web - will it inherit web2py structures ?

2019-10-14 Thread Massimo Di Pierro
py4web has no current and does not need it it. from py4web import request and just use request in your actions. Mind this is a bottlepy request, not the same as the web2py request object. On Monday, 14 October 2019 06:03:14 UTC-7, graham wrote: > > I'll certainly give more details when it's wor

[web2py] Again: relation "auth_user" already exists

2019-10-14 Thread Johann Spies
I want all my auth_tables in a specific schema in PostgreSQL: wos_2019_1. I have created a model like this: db.define_table('auth_user', Field('id','id', represent=lambda id:SPAN(id,' ',A('view',_href=URL('auth_user_read',args=id, Field('username', type='string',

[web2py] How to import pydal

2019-10-14 Thread Luca
I cloned pydal from github. Then, from the directory where I cloned pydal, which is ~/work/WikiTrust2/data_interface, I tried to import it. However, I get an error: I can import DAL, but an import within pydal itself fails, probably because pydal does not know how to import its own modules due

Re: [web2py] Re: Web2py binaries

2019-10-14 Thread Nico Zanferrari
Hi all, I've put again the MacOs *CMD *binaries on the repository, because they work fine even on Catilina - so they are recommended. The *APP *versions seem to work fine, too, but only if you don't download them with the browser. In this case the system remember it (using Extended Attributes), a

Re: [web2py] Beginner can't get past install

2019-10-14 Thread Nico Zanferrari
Hi, I've found that the APP version with Python 2 was not working fine (my fault) - please try again. Also, now there are also the CMD versions that should work on any recent MacOS. Nico Il giorno dom 13 ott 2019 alle ore 18:47 Nico Zanferrari ha scritto: > Hi, > > this is quite strange

[web2py] how to run a scheduler with virtualenv

2019-10-14 Thread A3
Currently I run Web2py using wsgi / Apache using virtualenv in the wsgihandler.py I also use a scheduler using web2py.py --nogui -K myap Sofar I didn't pay attention to the virtualenv as I didn't have any problems. Probably because the python version in the virtualenv is equal to the syste

[web2py] post file to a server

2019-10-14 Thread Val K
Or you can just set 'allow-origin' to server_1 -- 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 because you are subscribed to the

[web2py] post file to a server

2019-10-14 Thread Val K
You don't need 'requests' on server_2, you can set 'allow-origin' to * + basic auth (I didn't test this variant, but I suppose it should work ), or you can perform GET some dummy request to server_2 to get origin and establish ssl (as option) and then post to login and then post file -- Resou

[web2py] post file to a server

2019-10-14 Thread Auden RovelleQuartz
Please let me know how to do this SERVER_ONE: this is the application server SERVER_TWO: this is the file storage server The objective is to >>> have the user select a file via a form (this is via a Web2py app running on SERVER_ONE) >>> when user clicks the submit button, the file is posted to

Re: [web2py] Re: py4web - will it inherit web2py structures ?

2019-10-14 Thread 'graham' via web2py-users
I'll certainly give more details when it's working - the original web2pyslices posting was in 2016. But my problem at the moment is where is 'current.request' ? That was in from web2py.gluon import current but despite importing py4web (and pydal) there seems to be no 'current' structure. As I

[web2py] Re: [Web2Py] admin 'ascii' codec can't decode error switching from python 2 to python 3

2019-10-14 Thread Mamisoa Andriantafika
I did a fresh reinstallation and it works. But I cannot point out where is the problem. Le dimanche 13 octobre 2019 13:18:14 UTC+2, Mamisoa Andriantafika a écrit : > > Hi, > > I switched my current 2.18.5 Web2py installation from python 2 to python > 3. > > Creating a dummy new application, eve

Re: [web2py] db.import_from_csv_file in python3

2019-10-14 Thread Mamisoa Andriantafika
It seems to be related with the "blob" type where python 2 accept also string type while python 3 expect byte type. When I delete the row which contains the blob with string inside, exporting function works. Le dimanche 13 octobre 2019 19:05:58 UTC+2, Mamisoa Andriantafika a écrit : > > Hi, > >

[web2py] Re: How to easily implement another CSS-Framework

2019-10-14 Thread Alex Beskopilny
1: views/default/myindex.html Mysite myown unique page with my_css {{=message}} 2: def index(): response.view = 'default/myindex.html' return dict(message=T('Welcome to web2py!')) пятница, 11 октября 2019 г., 8:38:52 UTC+3 пользователь Jay B написал: > > Hello guys, > > I'm tryi

[web2py] Error: Tried to send "500 Server Error" to client but received socket error (When user closes browser during load, or when using the requests library.)

2019-10-14 Thread hiro
Hi, I am building a dashboard/API and am seeing this error a lot in my logs: ERROR:Rocket.Errors.Thread-3:Tried to send "500 Server Error" to client but received socket errorERROR:Rocket.Errors.Thread-6:Traceback (most recent call last): File "/opt/app-root/src/gluon/rocket.py", line 1288, in