[web2py] Upload directly to the server: error

2012-11-30 Thread Paulo
Hi! I'm trying to create a very simple upload field, without any complex mechanism. A user just uploads a file to a folder in the server (apache), without web2py changing the file name, and without any db. I have some dozens of files already in a folder in the server, I just need an upload for

[web2py] Re: Upload directly to the server: error

2012-12-03 Thread Paulo
:01 UTC, Massimo Di Pierro escreveu: > > You cannot do: > > open(...,'wb').write(form.vars.myfile.file.read()) > > because this read the entire file in memory before writing it. You need to > use > http://docs.python.org/2/library/shutil.html > and do > > shutil.c

[web2py] Re: Upload directly to the server: error

2012-12-03 Thread Paulo
stable version to upgrade instead of using the trunk? Thanks a lot for all your time. Sexta-feira, 30 de Novembro de 2012 16:11:48 UTC, Paulo escreveu: > > Hi! > > I'm trying to create a very simple upload field, without any complex > mechanism. A user just uploads a fil

[web2py] Re: web2py 2.5.1 is OUT

2013-06-06 Thread Paulo
Thanks for the awesome work with this awesome framework all this time :) Quinta-feira, 6 de Junho de 2013 16:59:30 UTC+1, Massimo Di Pierro escreveu: > > CHANGELOG > > - New style virtual fields in grid > - Conditional fields (experimental) ``db.table.field.show_id = > db.table.otherfield==True`

[web2py] Re: web2py financing

2013-07-31 Thread Paulo
It's indeed a good question, because I cannot imagine how much time and effort have been invested by a lot of people in this great wonder called web2py! It helped me a lot jumping from PHP to Pyhon world, I tried some frameworks but web2py was love at first sight, it is so well designed that it

[web2py] Re: DAl connection through a mysql socket

2016-07-11 Thread Paulo
('mysql://username:password localhost:/tmp/mysql5.sock')?Thanks. > > > > > > Hello There, I have tried to do this to connect to a postgres 9.4 and it did not work. I received the error bellow: File "psycopg2/__init__.py", line 164, in connect OperationalError

[web2py] Re: Companies and Startups that use WEB2PY

2014-02-02 Thread Paulo
I have done/worked in some projects running also in web2py. Don't know how to add to the list (if anyone can feel free to add), here are some: -News website about Braga city: http://www.bragatv.pt/ -Institutional website for the XIV International Congress of the Spanish Society of Didactics of

[web2py] Re: list:reference and SQLFORM.grid

2018-06-25 Thread Paulo
I have the exact same question and can't find an easy solution in the web :/ Fields of the type list:reference with multiple choices don't show up in the smartgrid search engine. Any easy fix for this? Example in: http://cehum.ilch.uminho.pt/microrrelatos_xaquinnunez (The "Repertorio" field is a

[web2py] Re: web2py on a dedicated server

2014-12-12 Thread Paulo
Hi I think it must be a bad configuration of the virtualhosts in the Apache conf file, maybe a problem with AliasMatch part. I had similar problems in the past when trying to tune it and configure. There are a some scripts in the net and in the web2py manual with examples (but the majority is f

[web2py] Re: web2py webfaction unable to upload

2018-01-09 Thread Paulo
If usefull for someone googling, found the problem: after upgrading Fedora, for some stupid reason it changed the user permissions of the folder /var/lib/nginx/tmp/uwsgi/ (or nginx changed how it works with uwsgi and and created it for 1st time, not sure, don't remember). A simple "sudo chown -

[web2py] Dashboard in web2py?

2012-06-25 Thread Paulo Couto
I'm taking the first steps in web2py but I have a question that for me is very important as to continue or not with web2py. Does web2py have a admin dashboard as Wordpress, Textpattern, etc, so the client can update the site like they will normally do in a cms?? I know web2py it's not a CMS, but

[web2py] E-commerce solution

2013-06-26 Thread paulo . sobrinho33
Hello guys, I am new here. Is there a full e-commerce web2py app like Sachmo, LFS, Cartridge (Mezzanine) or oscarCommerce? Is there a blog app? I would be glad if you have live site examples. Thanks in advance, -- --- You received this message because you are subscribed to the Google Gro

Re: [web2py] E-commerce solution

2013-06-26 Thread paulo . sobrinho33
web2py. The site looks awesome. Does anybody know what app was used or if it was made from scratch? Thanks in advance, Paulo Em quarta-feira, 26 de junho de 2013 04h42min17s UTC-3, encompass escreveu: > > I am thinking of building one as part of my business. Just starting to > look

[web2py] Bug on version 2.8.2

2014-02-25 Thread Paulo Ramos
og. No changes, the error continue, albeit the multiple success word in the end of sql.log. The solution I found was delete the storage.sqlite. After that everything went smooth. I'm almost sure that this is a bug in DAL module. HTH, Paulo -- Resources: - http://web2py.com -

[web2py] How to perform a query WITHOUT issuing an orderby to the DB

2016-01-13 Thread Paulo Serrão
Hello everyone! I'm querying a legacy database and for performance issues I can't do an orderby and the end of the SQL (HUGE table). If I do: db().select(db.table.ALL, orderby=db.table.some_key, limitby=(0,1000)) It will issue as supposed: SELECT * FROM table ORDER BY *some_key* LIMIT 1000 O

[web2py] Re: How to perform a query WITHOUT issuing an orderby to the DB

2016-01-13 Thread Paulo Serrão
che > <http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=orderby_on_limitby#orderby--groupby--limitby--distinct--having-orderby_on_limitby-left-cache> > > Anthony > > On Wednesday, January 13, 2016 at 10:08:13 AM UTC-5, Paulo Serrão wrote: >

[web2py] Interacting with Postgres Integer Array Field

2018-11-13 Thread Paulo Serrão
Hi! I have a table on a Postgres database that has a field of type integer[] Is there a way to use this directly in web2py/pydal and interact with it as a python integer list? I want to be able to select that field and get a list with [1,2,3,4,5] and I want to be able to update the field and p

[web2py] Re: Interacting with Postgres Integer Array Field

2018-11-13 Thread Paulo Serrão
I did, it returns an error from pydal trying to apply a split. On the documentation it says: On relational databases lists are stored as a text field. The items are separated by a | and each | in string item is escaped as a ||. So I guess it is expecting the returned field to be a string and ra

[web2py] How to generate SQL string without connecting to any database?

2020-11-10 Thread paulo....@gmail.com
Hi! I was previously (web2py 2.18.5) using postgres:pg8000 adapter and a dummy connection string with the parameter do_connect=False in order to be able to generate SQL query strings without actually connecting to any database. I see that with the latest version (2.20.4) the "do_connect" was

[web2py] Can somebody help me to integrate Web2Py on Hostagtor?

2013-12-31 Thread Paulo Nelson Sobral
I'm having my first steps on web2py and python and would really benefit from a "dummy" tutorial... Thanks, -- 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) -

[web2py] Routing problem

2012-08-08 Thread Paulo Junqueira da Costa
I just uploaded my first app do production under apache and following the manual, I wrote a routes.py as follows: routers = dict( BASE = dict( default_application = 'vendasexpress', default_controller = 'default', default_function = 'index', domains = { 'venda

[web2py] Re: Routing problem

2012-08-08 Thread Paulo Junqueira da Costa
Hi Jonathan, It is working now as I restarted apache. Many thank´s for your response. On Wednesday, August 8, 2012 6:13:08 PM UTC-3, Paulo Junqueira da Costa wrote: > > I just uploaded my first app do production under apache and following the > manual, I wrote a routes.py a

[web2py] Re: 404 access denied problem with janrain on cube2py

2012-05-12 Thread Paulo Junqueira da Costa
27;request_reset_password'] auth.settings.login_form = RPXAccount(request, api_key='...', domain='condomniovip', language=request.vars._language or session._language, url = "http://localhost:8000/%s/default/user/login"; % request.application) Thanks in advance. Paulo Em

[web2py] Re: 404 access denied problem with janrain on cube2py

2012-05-12 Thread Paulo Junqueira da Costa
Hi, I´m having the same problem. The whilw atuh is working fine, except for plugin_wiki. from gluon.contrib.login_methods.rpx_account import RPXAccount auth.settings.actions_disabled=['register','change_password','request_reset_password'] auth.settings.login_form = RPXAccount(request, api_ke

[web2py] Re: new demo appliance for gmap and fullcalendar

2012-05-28 Thread Paulo Junqueira da Costa
Maximo, Thanks for the example, but could you please post an example of how to get json from web2py to be used with fullcalendar? I´ve tried a lot, but still getting an error from fullcalendar. Tried even returning a string like: {{id: 2, start: "2012-05-28 10:24:17", end: "2012-05-31 10:24:00"

[web2py] pagination with web2py

2012-10-04 Thread Paulo Donizeti Gardinalli Filho
hi, I am starting to use web2py and I am very impressive with his facilities. I am a visualy empaired user and this framework is helping me. my dought is: How can I use pagination with web2py? thanks in advance! paulo --