[web2py] Re: Error opening upload files after upgrading to python 3

2019-11-27 Thread Áureo Dias Neto
I updated the ubuntu packages and everything worked as normal. I didn't know there was a relationship between pydal outside the web2py environment. thanks Em quarta-feira, 27 de novembro de 2019 12:03:39 UTC-3, Áureo Dias Neto escreveu: > > I upgraded from python 2 to 3.6.8 and can no

Re: [web2py] Re: Error with sessions on redis

2019-11-08 Thread Áureo Dias Neto
Okay, thanks for the attention on the answers, hug! Em sex., 8 de nov. de 2019 às 10:14, Jose C escreveu: > > >> What do you think about Joe Barnhart's solution? >> My point with redis is that I am using database sessions, finally my >> goal is to unburden it since I have plenty of RAM on the

Re: [web2py] Re: Error with sessions on redis

2019-11-08 Thread Áureo Dias Neto
What do you think about Joe Barnhart's solution? My point with redis is that I am using database sessions, finally my goal is to unburden it since I have plenty of RAM on the application server ... Em sex., 8 de nov. de 2019 às 09:41, Jose C escreveu: > > Hi Aureo, > > You're hitting a bug in

Re: [web2py] Re: Error with sessions on redis

2019-11-08 Thread Áureo Dias Neto
3.3.11 Em sex., 8 de nov. de 2019 às 09:14, Jose C escreveu: > > >> Web2py: 2.18.5-stable+timestamp.2019.04.08.04.22.03 (running on >> gunicorn/19.9.0, Python 2.7.15+) >> py-redis: 4.0.9 >> Redis server v=4.0.9 sha=:0 malloc=jemalloc-3.6.0 bits=64 >> build=9435c3c2879311f3 >> redis-cli

Re: [web2py] Re: Error with sessions on redis

2019-11-08 Thread Áureo Dias Neto
Hello, yes: Web2py: 2.18.5-stable+timestamp.2019.04.08.04.22.03 (running on gunicorn/19.9.0, Python 2.7.15+) py-redis: 4.0.9 Redis server v=4.0.9 sha=:0 malloc=jemalloc-3.6.0 bits=64 build=9435c3c2879311f3 redis-cli 4.0.9 OS: Ubuntu 18.04.1 LTS Em sex., 8 de nov. de 2019 às 05:09, Jose

[web2py] Error with sessions on redis

2019-11-05 Thread Áureo Dias Neto
Part of db.py file for connection with redis: from gluon.contrib.redis_utils import RConn rconn = RConn('localhost:6379') from gluon.contrib.redis_session import RedisSession sessiondb = RedisSession(redis_conn=rconn, with_lock=True, session_expiry=3600) session.connect(request, response, db =

Re: [web2py] Re: web2py multiple domains on nginx + gunicorn

2019-07-01 Thread Áureo Dias Neto
Val K you're right, that's done! thanks Em seg, 1 de jul de 2019 às 16:26, Val K escreveu: > > I'm not a pro in nginx but if you set proxy_set_header Host 192.168.7.2; how > does web2py know about www.domain1.net? Maybe it should be proxy_set_header > Host $host? > > -- > Resources: > -

Re: [web2py] Re: web2py multiple domains on nginx + gunicorn

2019-07-01 Thread Áureo Dias Neto
13:03, Alex Beskopilny escreveu: > > > > понедельник, 1 июля 2019 г., 16:23:30 UTC+3 пользователь Áureo Dias Neto > написал: >> >> >> . > > for me works > 1 up second gunicorn > 2 dom2.conf > upstream gunidom2 { server unix:/home/w2p

Re: [web2py] Re: web2py multiple domains on nginx + gunicorn

2019-07-01 Thread Áureo Dias Neto
'app1', > 'www.url2.com': 'app2', > 'localhostname1': 'app1', > 'localhostname2': 'app2'}), ) > > > routes_onerror = [ > ('app1/*', '/app1/default/error_handler') > ] > >

[web2py] web2py multiple domains on nginx + gunicorn

2019-07-01 Thread Áureo Dias Neto
Good morning group, I'm using web2py on nginx + gunicorn, I currently have two applications with two different domains, one for each web2py application .. Each domain points to my ip in AWS and nginx, each domain has a file in nginx with its settings and server_name corresponding to its domain

[web2py] big commit calculating

2018-01-11 Thread Áureo Dias Neto
i have a index page, that show many info's about many tables, and every time the page is loaded, i verify if registers change to generate this.. about 3k rows, my verification with a simples for, take a while, +/- seconds.. how to optimize? -- Resources: - http://web2py.com -

[web2py] best way to 'compute' data from a complete table

2017-12-05 Thread Áureo Dias Neto
I have a table with a few tens of attributes and thousands of records .. and my home page displays some graphs and counts according to all the records in that table, whenever the user accesses the home, this data needs to be recomputed, since it uses the system modifies data that changes them

Re: [web2py] Re: scale web2py horizontally (nginx + uwsgi + postgresql)

2017-11-30 Thread Áureo Dias Neto
Okay, I'll try this is tweaks .. What's the best way to test these things? thanks at all Leonel -- 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

Re: [web2py] Re: scale web2py horizontally (nginx + uwsgi + postgresql)

2017-11-29 Thread Áureo Dias Neto
> We use internal servers for all of our apps. Our web service is 8 cores > on VMWare with 16GB of ram. Our DB (MySQL) server is 4 cores with 16GB of > ram. We routinely query tables with one million + records and have great > response time. > > -Jim > > On Wed, Nov 29, 201

Re: [web2py] Re: scale web2py horizontally (nginx + uwsgi + postgresql)

2017-11-29 Thread Áureo Dias Neto
My processor: Intel Xeon quad core 2.5 GHz Disk: 1tb HD do you recommend amazon cloud or Google app engine ?, I would like a more flexible environment, do you have experiences with these services? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: scale web2py horizontally (nginx + uwsgi + postgresql)

2017-11-29 Thread Áureo Dias Neto
When a I do a big query on any table (+- 3k rows), the process is too slow or in any cases, the memory is out and the nginx return a 502 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] scale web2py horizontally (nginx + uwsgi + postgresql)

2017-11-27 Thread Áureo Dias Neto
I have a server with 8GB of RAM, running postgresql + nginx + uwsgi in CentOS environment, I would like reviews on scalability -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] MIGRATE UPLOADS FROM SQLITE TO POSTGRESQL

2017-11-20 Thread Áureo Dias Neto
I migrated my data from sqlite to postgres, but I have file uploads on disk used in my database. I want to send them from my "disk" to my base in postgresql, to use it in a "blob (bytea, actually)" field. Thank you in advance, family. -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] Can't load form using {{=form}} only by {{=LOAD('default','def')}} or submit the form.

2017-08-04 Thread Áureo Dias Neto
Your 'form' is in the variable order, here: order = SQLFORM(db.order,... use {{=order}} in the view -- 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

Re: [web2py] Deploying on hosted server with cpanel

2017-05-18 Thread Áureo Dias Neto
i know this, it's from brazil https://www.kinghost.com.br/web2py -- 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

[web2py] Update field dynamically based on the value of another field (ajax?)

2017-05-14 Thread Áureo Dias Neto
good evening, I want to update a value of one field in the form, according to the one selected in another field of the same form. I tried with ajax as follows: controller: Def returns_unit_value (): Value = db (db.estoque.id == request.vars.Code) .select (). First () Return value.Preco View:

Re: [web2py] Hide the achive links for a table.

2017-04-28 Thread Áureo Dias Neto
in you smartgrid definition, form = SQLFORM.smartgrid(db.table,linked_tables=[]) or form = SQLFORM.smartgrid(db.table,linked_tables=None) I dont remember whats the correct -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

Re: [web2py] Re: UPDATE BOOTSTRAP VERSION FROM 3 TO 4

2017-04-26 Thread Áureo Dias Neto
Yes Leonel, when I update the files to bootstrap 4, only have problems with grid and the nav's -- 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

Re: [web2py] conditional block insert

2017-04-24 Thread Áureo Dias Neto
is all python code, you can use one '{{' at the begin of code and '}}' at end {{block left_sidebar if auth.has_membership('manager'): include 'manager_sidebar.html' else: include 'sidebar.html' pass end}} -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: GAE Datastore performance / potential index issue

2017-04-24 Thread Áureo Dias Neto
Hello, i have the same problem with sqlite/mysql.. when i fetch some 1000 row, with one column only, its takes about 15/20 seconds to load a page.. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: Make web2py update tables schemas auto

2017-04-20 Thread Áureo Dias Neto
April 20, 2017 at 6:49:06 AM UTC-4, Áureo Dias Neto wrote: >> >> Yes, I'm working with legacy tables that were already existing in MySql >> before you hooked your application to that databases, and I added fields to >> my models, and this not reflect on the db >> > >

Re: [web2py] Re: Make web2py update tables schemas auto

2017-04-20 Thread Áureo Dias Neto
In fact, I migrated my application from sqlite to mysql .. -- 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

Re: [web2py] Re: Make web2py update tables schemas auto

2017-04-20 Thread Áureo Dias Neto
Wednesday, April 19, 2017 at 4:42:33 PM UTC-7, Áureo Dias Neto wrote: >> >> How can I make web2py recreate (alter) my tables according to my models, >> using mysql? In SQLite is is automatic, but when the 'migrate = true' >> hedge, I got an error that is an X table (all of

[web2py] Make web2py update tables schemas auto

2017-04-19 Thread Áureo Dias Neto
How can I make web2py recreate (alter) my tables according to my models, using mysql? In SQLite is is automatic, but when the 'migrate = true' hedge, I got an error that is an X table (all of them) also exist, also tried fake_migrate_all = True, not a bug in this case, but my schema Bank Not

[web2py] UPDATE BOOTSTRAP VERSION FROM 3 TO 4

2017-04-12 Thread Áureo Dias Neto
Hello guys, How to update version 3 bootstrap to 4 on web2py? I tried to replace the .css and .js files, however I got a lot of bug and unrecognized classes .. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Questions about production environment / large applications

2017-04-05 Thread Áureo Dias Neto
e = False > > > https://groups.google.com/forum/#!searchin/web2py/migrate$20$3D$20false$20slow%7Csort:relevance/web2py/2w29c7Revgo/0JvafzGYFAAJ > > > On Tue, Apr 4, 2017 at 11:20 AM, Áureo Dias Neto <aureodiasn...@gmail.com> > wrote: > >> Hi, i dont make this, w

Re: [web2py] Re: Questions about production environment / large applications

2017-04-04 Thread Áureo Dias Neto
Thank you, I'll try to migrate to mysql and keep on a server for now -- 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

Re: [web2py] Re: Questions about production environment / large applications

2017-04-04 Thread Áureo Dias Neto
It's interesting to think about this possibility ... I'm thinking of something around 3 thousand users, but transactions can vary a lot, since I can have 10 or 1000 users online .. I did not measure this detail right .. How to configure Redis server for caching? And if I keep a single server for

Re: [web2py] Re: Questions about production environment / large applications

2017-04-04 Thread Áureo Dias Neto
ttp://stackoverflow.com/questions/23733734/how-to- > enable-remote-access-of-mysql-in-centos > > -Jim > > > On Tuesday, April 4, 2017 at 8:07:55 AM UTC-5, Áureo Dias Neto wrote: >> >> How to migrate data from sqlite to mysql or postgre? >> I tried to migrate the data t

Re: [web2py] Re: Questions about production environment / large applications

2017-04-04 Thread Áureo Dias Neto
i will try this, thanks man 2017-04-04 10:15 GMT-03:00 黄祥 : > perhaps you can use export import csv for that > 1. export the sqlite data into *.csv > 2. change the database connection from sqlite into mysql or postgresql > (appconfig.ini of db.py) > 3. ensure the

Re: [web2py] Upgraded OS, now IS_IN_SET now working

2017-04-04 Thread Áureo Dias Neto
or: invalid syntax > > > Kenneth > > Den tisdag 4 april 2017 kl. 15:10:26 UTC+3 skrev Anthony: >> >> On Tuesday, April 4, 2017 at 7:05:25 AM UTC-4, Áureo Dias Neto wrote: >>> >>> the correct is: >>> >>> requires=IS_IN_SET(['On

Re: [web2py] Re: Questions about production environment / large applications

2017-04-04 Thread Áureo Dias Neto
How to migrate data from sqlite to mysql or postgre? I tried to migrate the data to mysql using the workbench, but it did not work .. And, how would this question the database on another server? How does the connection work? -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] Re: Questions about production environment / large applications

2017-04-04 Thread Áureo Dias Neto
, which database are you currently using? > > -Jim > > > On Tuesday, April 4, 2017 at 7:40:33 AM UTC-5, Áureo Dias Neto wrote: >> >> I use nginx with uwsgi as a server in the centos .. the database, I was >> wondering if you have experiences on performance between sqlite and

Re: [web2py] Re: Questions about production environment / large applications

2017-04-04 Thread Áureo Dias Neto
ight help if you described your production environment a bit. What > servers/middleware? What database? > > -Jim > > > On Tuesday, April 4, 2017 at 7:10:53 AM UTC-5, Áureo Dias Neto wrote: >> >> Friends, assuming a hypothetical application .. >> >> If

[web2py] Questions about production environment / large applications

2017-04-04 Thread Áureo Dias Neto
Friends, assuming a hypothetical application .. If I have a large multiuser and monolithic application .. with the growing of it (more clients, more concurrent accesses) .. I have some doubts .. For example search and report screens: 1) If I ask to fetch records and fill a table with 200

Re: [web2py] Upgraded OS, now IS_IN_SET now working

2017-04-04 Thread Áureo Dias Neto
the correct is: requires=IS_IN_SET(['Only one option '])) 2017-04-04 5:16 GMT-03:00 Kenneth : > Hi, > > yesterday I did a yum update on my CentOS server and today I'm getting > errors on rows using IS_IN_SET? > > I'm using Python 2.6 for web2py and that one was

Re: [web2py] Pagination, only add var if it already exists?

2017-03-30 Thread Áureo Dias Neto
ocumentation and try it out later. > Thanks > > On Thursday, 30 March 2017 15:45:23 UTC+1, Áureo Dias Neto wrote: >> >> hello, >> >> why note use session object? >> >> 2017-03-30 11:41 GMT-03:00 r <regs...@live.co.uk>: >> >>> Hi, so my

Re: [web2py] Pagination, only add var if it already exists?

2017-03-30 Thread Áureo Dias Neto
hello, why note use session object? 2017-03-30 11:41 GMT-03:00 r : > Hi, so my index page is like this: /index?page=1 I'm using pagination, > when the user clicks on the next page, it should become: /index?page=2 > > However if there is another var in the URL, it should

Re: [web2py] Discussion: SQLITE for large applications

2017-03-23 Thread Áureo Dias Neto
Antonio, I get it with cron? -- 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 Google Groups

[web2py] Discussion: SQLITE for large applications

2017-03-23 Thread Áureo Dias Neto
Friends, I run information systems and always my teachers say that sqlite is not reliable to use as a database for production environment .. The problem with this statement is that they can not give me a good argument to support this idea, and also, I've done several tests with a few thousand

[web2py] REGULAR TASK EVERY DAY

2017-03-23 Thread Áureo Dias Neto
Hello guy's, i have a function in controller thats calcule values of all the database everytime an user access the index page.. but now, i want to run this in server side, every hour or day.. how to do it? use schedular or cron? -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] how to iterate IS_IN_DB validator with multiple option set to True

2017-03-22 Thread Áureo Dias Neto
i have an field with the IS_IN_DB validator with multiple option set to True, i want to iterate it to show the results an example of field content is: {'Curso': '|8|9|'} -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

Re: [web2py] Re: Query auth_user over first and last names in one query

2017-03-09 Thread Áureo Dias Neto
t; implement a CONCAT function like in the sample SQL Statement I mentioned > above. > > -Jim > > > On Thursday, March 9, 2017 at 7:47:16 AM UTC-6, Áureo Dias Neto wrote: >> >> or this: >> >> name = form.vars.name >> lastname = form.vars.lastname >&g

Re: [web2py] Re: Query auth_user over first and last names in one query

2017-03-09 Thread Áureo Dias Neto
or this: name = form.vars.name lastname = form.vars.lastname query = ((db.auth_user == name) or (db.auth_user == lastname)) form = SQLFORM.grid(query) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: Query auth_user over first and last names in one query

2017-03-09 Thread Áureo Dias Neto
name = form.vars.name lastname = form.vars.lastname query = db((db.auth_user == name) or (db.auth_user == lastname)).select() form = SQLFORM.grid(query) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] nginx + apache + uwsgi -- only index.html loads inside web2py

2017-02-19 Thread Áureo Dias Neto
nday, February 19, 2017 at 5:19:41 PM UTC-5, Áureo Dias Neto wrote: >> >> Hello >> Or you use nginx + uwsgi >> Or use apache + wsgi >> >> Em 19 de fev de 2017 19:18, "LoveWeb2py" <atayl...@gmail.com> escreveu: >> >>> Hello, >>>

Re: [web2py] nginx + apache + uwsgi -- only index.html loads inside web2py

2017-02-19 Thread Áureo Dias Neto
Hello Or you use nginx + uwsgi Or use apache + wsgi Em 19 de fev de 2017 19:18, "LoveWeb2py" escreveu: > Hello, > > I ran the *setup-web2py-nginx-uwsgi-ubuntu.sh *to get web2py up and > running, but i'm running into an odd issue. > > I'm using 1and1 hosting and they use

[web2py] BOOTSTRAP DATEPICKER AUTOCLOSE

2017-02-12 Thread Áureo Dias Neto
Hello, i'm using the bootstrap datepicker module created by Leonel Camara.. my question is, how to autoclose this after date selection? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] W2P NGINX ERROR

2017-02-09 Thread Áureo Dias Neto
t; On Wed, Feb 8, 2017 at 9:03 AM, Áureo Dias Neto <aureodiasn...@gmail.com> > wrote: > >> I restart the nginx, and it is the new log file >> >> 2017-02-08 12:28 GMT-02:00 Áureo Dias Neto <aureodiasn...@gmail.com>: >> >>> and the log is only

Re: [web2py] W2P NGINX ERROR

2017-02-08 Thread Áureo Dias Neto
I restart the nginx, and it is the new log file 2017-02-08 12:28 GMT-02:00 Áureo Dias Neto <aureodiasn...@gmail.com>: > and the log is only this > > 2017-02-08 12:24 GMT-02:00 Áureo Dias Neto <aureodiasn...@gmail.com>: > >> on a python shell the import work.. &g

Re: [web2py] W2P NGINX ERROR

2017-02-08 Thread Áureo Dias Neto
and the log is only this 2017-02-08 12:24 GMT-02:00 Áureo Dias Neto <aureodiasn...@gmail.com>: > on a python shell the import work.. > > from the command 'pip list' : pip: command not found > > 2017-02-08 12:11 GMT-02:00 Jim Steil <ato.st...@gmail.com>: >

Re: [web2py] W2P NGINX ERROR

2017-02-08 Thread Áureo Dias Neto
o disable MySQLdb in web2py? > > -Jim > > On Wed, Feb 8, 2017 at 8:10 AM, Jim Steil <ato.st...@gmail.com> wrote: > >> Open a python shell >> >> import MySQLdb >> >> Does it work or give you an error? >> >> -Jim >> >> >> On Wed

Re: [web2py] W2P NGINX ERROR

2017-02-08 Thread Áureo Dias Neto
the- > database-abstraction-layer#The-database-abstraction-layer > > Also, was that they entire uwsgi log? If not, can you upload it? > > -Jim > > On Wed, Feb 8, 2017 at 7:40 AM, Áureo Dias Neto <aureodiasn...@gmail.com> > wrote: > >> i do

Re: [web2py] W2P NGINX ERROR

2017-02-08 Thread Áureo Dias Neto
ould be more to that traceback. > > If I had to guess I'd say it's an issue with permissions. > > Can you go to the python shell and import MySQLdb? Can you do it as the > user running uwsgi? > > -Jim > > On Wed, Feb 8, 2017 at 7:12 AM, Áureo Dias Neto <aureodiasn..

Re: [web2py] W2P NGINX ERROR

2017-02-08 Thread Áureo Dias Neto
Anyone can help 2017-02-08 0:34 GMT-02:00 Áureo Dias Neto <aureodiasn...@gmail.com>: > Is here, sorry > > 2017-02-08 0:27 GMT-02:00 Jim S <j...@qlf.com>: > >> What about the uwsgi log? >> >> -Jim >> >> On Tuesday, Febru

Re: [web2py] W2P NGINX ERROR

2017-02-07 Thread Áureo Dias Neto
Is here, sorry 2017-02-08 0:27 GMT-02:00 Jim S <j...@qlf.com>: > What about the uwsgi log? > > -Jim > > On Tuesday, February 7, 2017 at 3:42:10 PM UTC-6, Áureo Dias Neto wrote: >> >> And, the nginx conf file >> >> 2017-02-07 19:17 GMT-02:00 Áureo D

Re: [web2py] W2P NGINX ERROR

2017-02-07 Thread Áureo Dias Neto
And, the nginx conf file 2017-02-07 19:17 GMT-02:00 Áureo Dias Neto <aureodiasn...@gmail.com>: > I have the 502 bad gateway error, on nginx + centos + uwsgi.. it's work's > great, but after restart the server system, i get the error.. i atached the > config files and nginx error l

[web2py] W2P NGINX ERROR

2017-02-07 Thread Áureo Dias Neto
I have the 502 bad gateway error, on nginx + centos + uwsgi.. it's work's great, but after restart the server system, i get the error.. i atached the config files and nginx error log any ide0? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: MULTIPLE APPLICATIONS IN SAME HOST/SUBDOMAINS WITH NGINX

2017-02-07 Thread Áureo Dias Neto
.com':'site1', > > 'app.domain.com':'app', > > 'app2.domain.com':'app2', > > > } > )) > > l codice... > > > > Il giorno lunedì 6 febbraio 2017 13:39:03 UTC+1, Áureo

[web2py] MULTIPLE APPLICATIONS IN SAME HOST/SUBDOMAINS WITH NGINX

2017-02-06 Thread Áureo Dias Neto
Hello guys, how i'm host more than one application, in the same server, with sub-domains on nginx? example: http://192.168.1.13/app1 -> 'app1' http://192.168.1.13/app2 -> 'app2' -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

Re: [web2py] Re: cannot access my app via http. only via https

2017-02-03 Thread Áureo Dias Neto
How are hosted your app? show the command you used to start the server 2017-02-03 15:19 GMT-02:00 António Ramos : > no ideas? > am i the bug :) > > 2017-02-02 15:50 GMT+00:00 António Ramos : > >> Hello i try to log into my app via http and it keeps

Re: [web2py] Re: error on application hosted on centos

2017-02-02 Thread Áureo Dias Neto
This works, is permission error... But now, i define on the route file, a default application, if i access " http://xxx.xxx.xxx.xxx; i get the app i defined, but if access " http://xxx.xxx.xxx.xxx/; i get the Welcome app.. how to resolve this? 2017-02-02 14:42 GMT-02:00 Leonel Câmara

Re: [web2py] Re: error on application hosted on centos

2017-02-02 Thread Áureo Dias Neto
My welcome app work great, it's accept create users etc. but the admin cannot create/delete/import existing apps, it's get error. 2017-02-02 1:32 GMT-02:00 Áureo Dias Neto <aureodiasn...@gmail.com>: > I use sqlite, how to test the connection string? > And i dont know the corrects

Re: [web2py] Re: error on application hosted on centos

2017-02-01 Thread Áureo Dias Neto
I use sqlite, how to test the connection string? And i dont know the corrects permissions to set, if you can say, please Em 2 de fev de 2017 01:30, "Dave S" <snidely@gmail.com> escreveu: > On Wednesday, February 1, 2017 at 6:52:01 PM UTC-8, Áureo Dias Neto wrote: &

[web2py] error on application hosted on centos

2017-02-01 Thread Áureo Dias Neto
Hello, I deployed my w2p on Centos with nginx + uwsgi.. the defaults's app (welcome/examples) work great, but i upload my app to server and get: Internal errorTicket issued: unknown why? -- Resources: - http://web2py.com -

[web2py] deploy web2py on CentOS 6.8 nginx + uwsgi

2017-01-26 Thread Áureo Dias Neto
Hello guys, i want to deploy my app to CentOS vesion 6.8, and use nginx + uwsgi, on users can access with static ip.. Tell me how to? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: pass arguments to menu item

2017-01-25 Thread Áureo Dias Neto
Thanks bro, it's really usefull \o 2017-01-25 15:23 GMT-02:00 Leonel Câmara : > The first one: > > *db(*(db.asset.tipo=='SC') & (db.asset.is_active==True)*)* > > Returns a Set (this is not a python set but a pyDAL one) > > The second one: > > (db.asset.tipo=='SC') &

Re: [web2py] Re: pass arguments to menu item

2017-01-25 Thread Áureo Dias Neto
Leonel, can explain the difference between two codes? 2017-01-25 15:12 GMT-02:00 Leonel Câmara : > Note that this isn't a query: > > query = db((db.asset.tipo=='SC') & (db.asset.is_active==True)) > > this is a query: > > query = (db.asset.tipo=='SC') &

Re: [web2py] Form field defaults the second time through

2017-01-20 Thread Áureo Dias Neto
Change if form.process().accepted: form.vars.PostDate = request.vars.PostDate response.flash = T("Thank you!") to if form.process(keepvalues = True).accepted: response.flash = T("Thank you!") 2017-01-20 4:02 GMT-02:00 Armando Hernandez <

Re: [web2py] Re: PDF WITH FPDF - TWO PAGES WITH DIFFERENTE HEADER

2017-01-18 Thread Áureo Dias Neto
Not yet, can you send me some link, from some example with 2 pages? -- 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

[web2py] PDF WITH FPDF - TWO PAGES WITH DIFFERENTE HEADER

2017-01-17 Thread Áureo Dias Neto
Guys, i have two pages on a report, generated by FPDF, but i want that pages, have differente Header, thats is defined in the Class Header.. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: FPDF

2017-01-13 Thread Áureo Dias Neto
I want to concatenate two functions, thats all one, return a pdf.. and i want to show this 2 pages only in one 2017-01-13 23:02 GMT-02:00 Áureo Dias Neto <aureodiasn...@gmail.com>: > this is my all code of first page > i want another page, totally different of this, in the same

Re: [web2py] Re: FPDF

2017-01-13 Thread Áureo Dias Neto
; pdf.add_page('L') > pdf.write_html('2nd Page') > pdf.write_html('10 width="50%">20TEST 5 width="50%">TEST 6TEST 7TEST > 8footer 2 width="50%">footer 2') > > # Third page > pdf.add_page('L') > pdf.write_html('3rd Page') > pdf.write_html('1

Re: [web2py] add_button to go to the previous page

2017-01-12 Thread Áureo Dias Neto
I do not know if this is the best way to do this, because it is not very practical if you have several pages .. 2017-01-12 14:14 GMT-02:00 Áureo Dias Neto <aureodiasn...@gmail.com>: > you can take this: > > if user is in PageA, and click a button to go to another page,

Re: [web2py] add_button to go to the previous page

2017-01-12 Thread Áureo Dias Neto
now what is the previous page because this page can come from > different pages...this is the problem...I want to reference the previous > page... thank you > > Il giorno martedì 10 gennaio 2017 11:48:42 UTC+1, Áureo Dias Neto ha > scritto: >> >> example: >> >> for

Re: [web2py] add_button to go to the previous page

2017-01-10 Thread Áureo Dias Neto
example: form.add_button("Annulla",URL('default','index')) 2017-01-10 8:47 GMT-02:00 Áureo Dias Neto <aureodiasn...@gmail.com>: > with this: > > form.add_button("Annulla",URL( 'CONTROLLER' , 'FUNCTION_NAME' )) > > 2017-01-10 8:44 GMT-02:00 An

Re: [web2py] add_button to go to the previous page

2017-01-10 Thread Áureo Dias Neto
with this: form.add_button("Annulla",URL( 'CONTROLLER' , 'FUNCTION_NAME' )) 2017-01-10 8:44 GMT-02:00 Andrea Fae' : > I have this situation > form = crud.update(db.pc, pc, onaccept=crud.archive, deletable=False, > next='lista_pc') > form.add_button("Annulla",URL('lista_pc')) >

Re: [web2py] Re: session.flash question

2017-01-05 Thread Áureo Dias Neto
{{=T("Notification")}}: {{=session.flash}} > > > {{pass}} > > > *But this does not work!! and shows "None"* > > flash="{{=session.flash or 'empty'}}"; > > if (flash=="") > { > toastr

Re: [web2py] Re: session.flash question

2017-01-05 Thread Áureo Dias Neto
How you define 'session.flash'? 2017-01-05 10:04 GMT-02:00 António Ramos : > in fact this > > > toastr.info("{{=session.flash}}"); > > > > always produces a popup saying "None" > > why? > > > 2017-01-05 11:50 GMT+00:00 António Ramos : >

Re: [web2py] Re: Issues with record versioning

2017-01-04 Thread Áureo Dias Neto
Hello, You can do this, for update db(db.person.id==1).update(name='Tim') 2017-01-04 9:01 GMT-02:00 Ricardo Oliveira : > Hi Anthony, > > Thanks for your reply. > I'm using the DAL's insert method for the creation. Eg: > > db.table_x.insert(name='something') > > For

Re: [web2py] Re: FPDF

2017-01-02 Thread Áureo Dias Neto
Hello, it's basically this: i want another page with another content, in the same function or document pdf from gluon.contrib.pyfpdf import FPDF, HTMLMixin class MyFPDF(FPDF, HTMLMixin): def header(self): self.set_title("Analise de Valores") self.set_font('Arial', '', 15) self.cell(0, 10,

Re: [web2py] Re: FPDF

2017-01-02 Thread Áureo Dias Neto
> PdfFileReader to merge all the pages in a single document. > > > > On Wednesday, December 28, 2016 at 9:30:05 PM UTC-4, Áureo Dias Neto wrote: >> >> Good night, >> >> How i'm add a new page, and set new content to this, on pdf, with fpdf? >&g

Re: [web2py] How to list Virtual Field in grid fields?

2016-12-29 Thread Áureo Dias Neto
The SQLFORM expect to receive, an table, not a query.. What's the name of your table? just put the name of the table on the first argumment, and filter with 'fields' the fields you want to show. Just change: grid=SQLFORM.grid(db.item.id>0, fields=[db.item.unit_price, db.item.total_price ] ) To:

[web2py] FPDF

2016-12-28 Thread Áureo Dias Neto
Good night, How i'm add a new page, and set new content to this, on pdf, with fpdf? I use pdf.add_page(), but the content o the second page is the same as the first.. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Row position change if I switch from a file to another

2016-12-28 Thread Áureo Dias Neto
You can then configure the default application for .py files as notepad ++, and for example, in filezilla, if you navigate to your local files with the right button and edit them, after saving, it automatically detects the Files and asks if you want to update the files on the server. I usually do

Re: [web2py] Row position change if I switch from a file to another

2016-12-28 Thread Áureo Dias Neto
Good morning, The best to do, is, use a external editor of your choice, ex: sublime text, to edit the files by path 2016-12-28 7:53 GMT-02:00 Gael Princivalle : > Hello all. > > In the administrative interface, if I'm still working on the default.py > file row 234,

Re: [web2py] Re: Rotate image stored

2016-12-22 Thread Áureo Dias Neto
rver storage > > Or > > Save them normal and use css transform to rotate them ( whether it will > only show in front-end ) > > Em quinta-feira, 15 de dezembro de 2016 11:00:35 UTC-3, Áureo Dias Neto > escreveu: > >> Good morning, young people! >> >> I need a

[web2py] Rotate image stored

2016-12-15 Thread Áureo Dias Neto
Good morning, young people! I need a function, that I can rotate a photo saved in the database, that is, previously sent. And the same apples to be rotated, replace the current one in the database/ file -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Re: Pass a query from form to another function

2016-12-07 Thread Áureo Dias Neto
Thank guys, it's work 2016-12-07 17:56 GMT-02:00 Anthony : > On Wednesday, December 7, 2016 at 9:33:16 AM UTC-5, Marlysson Silva wrote: >> >> You can use sessions.. >> >> session.content = query_search >> > > A Query object can't be pickled to store it in the session,

Re: [web2py] Re: Pass a query from form to another function

2016-12-07 Thread Áureo Dias Neto
e by generate pdf use: > > generate_pdf(session.content) > > Em quarta-feira, 7 de dezembro de 2016 10:08:45 UTC-3, Áureo Dias Neto > escreveu: >> >> I have a search form, which filter the fields, I filter my query .. so >> far so good .. >> >> The search works

Re: [web2py] Pass a query from form to another function

2016-12-07 Thread Áureo Dias Neto
2016-12-07 11:51 GMT-02:00 António Ramos <ramstei...@gmail.com>: > code please... > > 2016-12-07 13:08 GMT+00:00 Áureo Dias Neto <aureodiasn...@gmail.com>: > >> I have a search form, which filter the fields, I filter my query .. so >> far so good .. >>

[web2py] Pass a query from form to another function

2016-12-07 Thread Áureo Dias Neto
I have a search form, which filter the fields, I filter my query .. so far so good .. The search works perfectly, from the results I generate a PDF, but, how to pass this query from the search form to my PDF .. Note that PDF is generated in another function. Thank you! -- Resources: -

Re: [web2py] invalid view?

2016-12-07 Thread Áureo Dias Neto
Thats it bro! 2016-12-07 10:54 GMT-02:00 António Ramos <ramstei...@gmail.com>: > IT works. > So windows does not care about case and linux yes. > > Solved! > Thank you > > > 2016-12-07 12:51 GMT+00:00 Áureo Dias Neto <aureodiasn...@gmail.com>: >

Re: [web2py] invalid view?

2016-12-07 Thread Áureo Dias Neto
The case sensitive, your file named 'listusers.html'? in error it shows 'invalid view (admin/listUsers.html)' The 'U' caractere is causing this.. 2016-12-07 10:48 GMT-02:00 António Ramos : > hello i moved my working app from local pc to webfaction > > on one view i get

[web2py] Images pratices on w2p

2016-12-07 Thread Áureo Dias Neto
What is the best practice for images in w2p? Because I use images at high resolutions 3000px for more. Should I save a copy at a lower resolution to use as a thumbnail? Or can I resize it at the time of showing the user? -- Resources: - http://web2py.com - http://web2py.com/book

  1   2   >