[web2py] Re: GAE deployment. appcfg not in the package

2016-10-11 Thread Massimo Di Pierro
Do you mean? gluon/contrib/appconfig.py On Tuesday, 11 October 2016 20:55:32 UTC-5, yutaka kawate wrote: > > Where i can get appcfg.py? web2py souce code does not contain this file, > used to be in the package > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Get this error: (Can't pickle :...

2016-10-11 Thread Massimo Di Pierro
You cannot pickle a method. You stored a method into a variable. On Tuesday, 11 October 2016 20:54:49 UTC-5, Wisdom Temytayo wrote: > > After creating MySQL database using DAL, I modified the database by adding > field through MySQL (not through DAL) and web2py started creating ticket. I > went

[web2py] Re: Can not deploy web2py to appengine

2016-10-11 Thread Massimo Di Pierro
cd web2py cp handlers/gaehandler.py ./ On Tuesday, 11 October 2016 16:17:46 UTC-5, sa wrote: > > Can not deploy to appengine. getting following error: > ImportError: No module named gaehandler > > Here is the details: > > myappengingid@g2py-146120:~/src/eappair-201601$ cd >

Re: [web2py] Re: Why isn't WEB2PY a part of Googles summer of code? Will it be this time?

2016-10-11 Thread Massimo Di Pierro
If you need any help with the proposal, let me know. On Friday, 7 October 2016 01:46:17 UTC-5, Mathieu Clabaut wrote: > > Hello, > > I'm pondering to volunteer as a mentor for a pytest web2py framework, but > I'm a bit afraid of my low level of availability. > > What I a have in mind is a

[web2py] Re: Why isn't WEB2PY a part of Googles summer of code? Will it be this time?

2016-10-11 Thread Massimo Di Pierro
Other than writing good practice docs, what else is needed? On Thursday, 6 October 2016 17:19:42 UTC-5, JorgeH wrote: > > scalable restful web2py apps, with redis, postgres and mongodb > > On Thursday, October 6, 2016 at 2:25:52 PM UTC-5, Dave S wrote: >> >> >> >> On Thursday, October 6, 2016 at

[web2py] Re: Proposal to add 'extend' to DIV

2016-10-11 Thread Massimo Di Pierro
I see the value in this. It calls _fixup after concatenating. Can you submit a PR? On Wednesday, 5 October 2016 14:51:59 UTC-5, Joe Barnhart wrote: > > One Python helper I find enormously useful is "extend()" as applied to > list objects. Extend differs from append in that it adds the items of

[web2py] Re: update_or_insert and keyed tables

2016-10-11 Thread Massimo Di Pierro
please open a github issue to pydal. This is an easy fix. On Thursday, 6 October 2016 06:10:37 UTC-5, Val K wrote: > > it seems, that *update_or_insert* doesn't work with keyed tables, > because it uses *update_record* method ... It's a pity. > > -- Resources: - http://web2py.com -

[web2py] Re: Impersonate in Layers...

2016-10-03 Thread Massimo Di Pierro
Hello Joe, sorry this fell through the cracks. The easiest way is this: class JoeAuth(Auth): def impersonate(self, user_id=DEFAULT): """

[web2py] Re: vue.js

2016-10-03 Thread Massimo Di Pierro
apps are pretty responsive and as far as I can tell compete with native apps. On Monday, 26 September 2016 08:50:19 UTC-5, JorgeH wrote: > > I like Riot.js > > > http://riotjs.com/ > > Give it a try! > > On Saturday, September 24, 2016 at 10:25:51 PM UTC-5, Massimo Di

[web2py] Re: Code change in oracle.py to allow joins in pagination.

2016-10-03 Thread Massimo Di Pierro
aturday, September 24, 2016 at 9:25:06 PM UTC-6, Massimo Di Pierro > wrote: >> >> I can take care of it. Can you email me your patch as an attachment? >> >> On Friday, 23 September 2016 19:46:34 UTC-5, tomt wrote: >>> >>> I'd be happy to give it a tr

[web2py] vue.js

2016-09-24 Thread Massimo Di Pierro
I am becoming a huge fan of vue.js. Any other user here? -- 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

[web2py] Re: Code change in oracle.py to allow joins in pagination.

2016-09-24 Thread Massimo Di Pierro
I can take care of it. Can you email me your patch as an attachment? On Friday, 23 September 2016 19:46:34 UTC-5, tomt wrote: > > I'd be happy to give it a try, but I'm not sure what steps to take. When >> I go to github and click on create new pull request it appears I have to >> select a

[web2py] Re: Upload files folder setup

2016-09-24 Thread Massimo Di Pierro
Field('name', 'upload', uploadfolder=..., uploadfs=...) uploadfolder lets you specify a folder uploadfs lets you specify another file system (from pyfilesystem) like S2, FTP mounted, etc. massimo On Friday, 23 September 2016 19:46:03 UTC-5, SR wrote: > > > When we upload a file via an upload

[web2py] Re: scaling web2py

2016-09-24 Thread Massimo Di Pierro
First of all I refer you to niphlod which is very comprehensive. Let me add something in relation to your last questions. When you run web2py with rocket, rocket uses threads. When you run web2py with nginx+uwsgi, uwsgi runs in emperor mode and it uses multiple processes (not threads) and you

[web2py] Re: anonymize sensitive data on the fly using LazyCrypt() object as primary key

2016-09-24 Thread Massimo Di Pierro
That is a god question and it is more a question for a cryptanalyst. Theoretically you are giving some info to the attacker but how much info. Intuitively I would say you are giving almost no additional info. If I were to review code with this trick, I would consider it secure. On Wednesday,

[web2py] Re: advice for a restful app

2016-09-24 Thread Massimo Di Pierro
In terms of scalability most framework, like web2py, all scale in the same using the same tricks. There is no scalability gain in replacing one framework for another. The bottle neck is always the database. When I optimize for production I always stick to web2py but make extensive uses of

[web2py] Re: Fetching rows with st_asgeojson()

2016-09-18 Thread Massimo Di Pierro
How about this? features = [] for event in events: link = A(event[db.events.title], _href=URL('default', 'event_page', vars=dict(event_id=event[db.events.id]))).xml() item = { "type": "Feature", "popupContent": link, "track_quotation":

[web2py] Re: Web2py Solr UI

2016-09-18 Thread Massimo Di Pierro
to GAE >> Search without too much difficulty. >> >> Regards >> Donald >> >> On Wednesday, September 14, 2016 at 4:42:55 PM UTC+1, Massimo Di Pierro >> wrote: >>> >>> You can ask here. If we can help for free so that everybody benefit the >

[web2py] Re: Web2py - How to update a table field appending a string to an existing field value

2016-09-18 Thread Massimo Di Pierro
This works for me, I just tried: >>> db.define_table('rated_items', Field('search_term','string'), ) >>> k = db.rated_items.insert(search_term='a') >>> db(db.rated_items.id==k).update(search_term=db.rated_items.search_term+ 'b') >>> print db.rated_items[k] you probably have None

[web2py] Re: Is it safe to use plain XMLHttpRequest instead of ajax() function?

2016-09-15 Thread Massimo Di Pierro
No. In fact I never use the web2py ajax() function myself. It is there for legacy reasons. I use jQuery.ajax() almost every time. On Friday, 16 September 2016 00:49:04 UTC-5, Przemysław Loesch wrote: > > I'm wondering if using plain javascript XMLHttpRequest object instead of > web2py ajax()

[web2py] Re: Web2py - How to update a table field appending a string to an existing field value

2016-09-15 Thread Massimo Di Pierro
This should work for appending strings to strings (not to lists of strings): myrow = db((db.rated_items.user_id==auth.user.id) & (db.rated_items.item_id==request.args(0))).update(search_term=db.rated_items.search_term+str(request.vars.search_term) On Thursday, 15 September 2016 17:00:09

[web2py] Re: Can't get response.stream() to work

2016-09-15 Thread Massimo Di Pierro
Thanks for sharing the solution. It is in fact great that you are doing that and I would hope more people were to solutions to their own problems if they find them. This helps us a lot. On Wednesday, 14 September 2016 19:29:22 UTC-5, Joe Barnhart wrote: > > I solved my problem. > > Part of me

[web2py] Re: Which push notification service/solution would you recommend?

2016-09-14 Thread Massimo Di Pierro
I have using the google app engine queues and they work great. I am also experimenting with Amazon SQS. Will report back. If anybody has experience with them, I would like to know. On Wednesday, 14 September 2016 08:37:21 UTC-5, Zoltan Vincze wrote: > > Hi there! > > I'm total new to web

[web2py] Re: Web2py Solr UI

2016-09-14 Thread Massimo Di Pierro
You can ask here. If we can help for free so that everybody benefit the better. If instead you have private code and do not want to show, please contact one of the companies doing web2py support listed from the web2py page. On Wednesday, 14 September 2016 08:37:21 UTC-5, Morris Fourie wrote: >

[web2py] Re: web2py interprets function name as property

2016-09-14 Thread Massimo Di Pierro
Can you explain us more about what you are doing? You should not start/stop threads from web2py apps. On Wednesday, 14 September 2016 08:36:51 UTC-5, MarkEdson AtWork wrote: > > > I have a need to stop a thread on the server from web2py. > > The thread is running and I've stored the thread id so

[web2py] Re: GAE integration is MASSIVELY broken again (in multiple ways in multiple versions)

2016-09-14 Thread Massimo Di Pierro
LOL. I am using it at camio.com we have a lot of internal dashboards based on web2py and large number of datasets BUT we bypass web2py Auth because have a different mechanism so we did not notice this problem. I will check but I often test GAE before posting new versions. On Tuesday, 13

[web2py] Re: How to code efficiently for multiple database engines with Exceptions

2016-09-14 Thread Massimo Di Pierro
p. >>> >>> 2. The future belongs to pypy and psycopg2 doesn't work with it. >>> pg8000 does. There is a psycopg2.cffi but I don't know how mature it is. >>> >>> It's all enough to make me want to switch to MySql! >>> >>> -- Joe >>> >>>

[web2py] Re: Can't get response.stream() to work

2016-09-14 Thread Massimo Di Pierro
What you have seems correct but we do not get the whole picture from this code. Sorry. On Sunday, 11 September 2016 04:52:24 UTC-5, Joe Barnhart wrote: > > This MUST be something I'm doing wrong. I have used this very code -- > even this method -- countless times but now it fails to stream the

[web2py] Re: Code change in oracle.py to allow joins in pagination.

2016-09-14 Thread Massimo Di Pierro
Thank you for your work. Can you submit a github pull request? If not we can do it but you may want to get the credit. Let us know. On Saturday, 10 September 2016 20:54:18 UTC-5, tomt wrote: > > Hello, > > I have patched the select_limitby routine in oracle.py to allow for > successful

[web2py] Re: How to code efficiently for multiple database engines with Exceptions

2016-09-07 Thread Massimo Di Pierro
I strongly recommend you do not use pg8000. We always run into issues with it. pip install psycopg2 Massimo On Wednesday, 7 September 2016 17:05:28 UTC-5, Joe Barnhart wrote: > > Sweet! That's exactly what I'm looking for. I was missing the > db._adapter connection to pg8000 or whatever

[web2py] Re: Update javascript object by ajax

2016-09-07 Thread Massimo Di Pierro
> 7.68658099933}},{title: 'Giro nel Canavese',link: > '/tour?event_id=12',location: {lat: 45.24897009652526, lng: > 7.71885333886712}},]" > > Il giorno martedì 6 settembre 2016 16:42:24 UTC+2, Massimo Di Pierro ha > scritto: >> >> definitively you want >>

[web2py] Re: Update javascript object by ajax

2016-09-06 Thread Massimo Di Pierro
definitively you want def get_locations(): return response.json(locations) and $.getJSON instead of $.get. which those changes what errors do you get? On Monday, 5 September 2016 15:51:44 UTC-5, Gael Princivalle wrote: > > Thanks Dave. > > However I'm still having trouble. > > With

[web2py] Re: crud.delete and record versioning error

2016-09-06 Thread Massimo Di Pierro
please do not use crud. it has not been supported in long time. just use db(...).delete() On Sunday, 4 September 2016 07:16:24 UTC-5, Kirill Shatalaev wrote: > > > Well it seems to me del table[record_id] does not work with record > versioning according to this old discussion: > >

[web2py] Re: Cannot Create Table Named "Items" - Already Exists

2016-09-06 Thread Massimo Di Pierro
yes. Items is a reserved keyword for this reason. On Friday, 2 September 2016 05:02:52 UTC-5, Dave S wrote: > > > > On Thursday, September 1, 2016 at 6:46:10 PM UTC-7, Brian Boatright wrote: >> >> so it's just something in the web2py code base that has a problem with >> the word "items" as a

[web2py] Re: Smartgrid search: How do I search on integers and linked tables?

2016-09-06 Thread Massimo Di Pierro
You can customize smartgrid and make your own search function. By default you cannot. On Thursday, 1 September 2016 20:34:27 UTC-5, Luciano Laporta Podazza wrote: > > Hello, > > 1. I noted that Smartgrid does not search on integers unless I select that > specific field on the dropdown search

[web2py] Re: redirection using ajax with javascript variables passed in the url.

2016-09-06 Thread Massimo Di Pierro
Use chrome JS console. Is the ajax call executed? On Thursday, 1 September 2016 13:31:11 UTC-5, @brooks wrote: > > > I am doing the following to pass the javascript variable from the view to > the controller: > ##default/rough2.html > > {{extend 'layout.html'}} > > > > > > > var

[web2py] Re: How can i change my in poweredby submitted NAME and description

2016-09-06 Thread Massimo Di Pierro
I will change it for you asap. On Wednesday, 31 August 2016 03:06:00 UTC-5, Karl Florian wrote: > > I would like to access my submitted poweredby data. > > Where can i sign up to change my data? > I also have a link to my pagepeeker thumbnail, where can I put it? > This is my link: >

[web2py] Re: Reddit clone source code?

2016-09-06 Thread Massimo Di Pierro
Did you look here: https://github.com/mdipierro/web2py-recipes-source On Sunday, 28 August 2016 22:21:11 UTC-5, Ron Chatterjee wrote: > > > https://www.packtpub.com/web-development/web2py-application-development-cookbook > > Page 61 > > On Sunday, August 28, 2016 at 8:42:52

[web2py] Re: ERROR:root:New installation error: unable to create welcome.w2p file

2016-09-06 Thread Massimo Di Pierro
Did you do git clone --recursive as explained in the instructions? On Sunday, 28 August 2016 19:41:17 UTC-5, Rommel Sotto wrote: > > I have this error running it on macbook pro > > I installed it thru git clone. > > It does not also show the welcome page when i do 127.0.0.1:8000 > > any thing I

Re: [web2py] Re: I am trying to login from Phonegap app into my web2py app, what's wrong here?

2016-08-28 Thread Massimo Di Pierro
This cannot be done. It is a feature not a bug. The purpose of the salt in the hashed password is to prevent brute force attacks to the database. What you are doing is the brute force attack. The only way to do it is to select all records. Loop one by one and compare them with encpwd =

[web2py] Re: Recaptcha2 in custom form

2016-08-28 Thread Massimo Di Pierro
break form = SQLFORM.factory(db.auth_user, db.auth_dummy, extra_fields=extra_fields) form.append(Recaptcha2(public_key = '...', private_key = '')) into recaptcha = Recaptcha2(public_key = '...', private_key = '') form = SQLFORM.factory(db.auth_user, db.auth_dummy,

[web2py] Re: uploadfs vs uploadfolder

2016-08-28 Thread Massimo Di Pierro
It is telling you that Field('image','upload',uploadfs = myfs, uploadfolder='...')) requires the uplaodfolder else does not know where to put it in S3. On Friday, 26 August 2016 16:07:51 UTC-5, ad...@swcacloud.com wrote: > > This works great when using SQLFORM: > > import fs.s3fs > myfs =

[web2py] Re: web2py behind socks proxy

2016-08-28 Thread Massimo Di Pierro
Not sure I understand what you mean. Do you want emails to go out using a different network interface than the incoming http connections? On Friday, 26 August 2016 08:19:36 UTC-5, Saifuddin Rangwala wrote: > > I meant to say: I tried searching and found a few threads where people > tried

[web2py] Re: Can gluon.contrib.populate work with self reference?

2016-08-28 Thread Massimo Di Pierro
It cannot handle self references. On Monday, 22 August 2016 22:47:48 UTC-5, pbreit wrote: > > Trying to populate: > > db.define_table('comment', > Field('post_id', 'reference post'), > Field('parent_comment', 'reference comment'), > Field('body', 'text', requires=IS_NOT_EMPTY()), >

[web2py] Re: Reddit clone source code?

2016-08-28 Thread Massimo Di Pierro
Do not know where it is. It is possible I did not save it. On Monday, 22 August 2016 16:29:17 UTC-5, pbreit wrote: > > Is the Reddit Clone source code from the Vimeo videos ( > https://vimeo.com/104823162) available anywhere? I saw the Reddit app in > the "appliances" source:

[web2py] Re: How can I install a CMS such as Instant-Press via the command line interface?

2016-08-28 Thread Massimo Di Pierro
if you have a .w2p file you can do: cd web2py/applications mkdir myapp cd myapp tar zxvf /path/to/the/web2py.app..w2p On Monday, 22 August 2016 13:17:08 UTC-5, Varad Karmarkar wrote: > > I'm not using the web interface. Any assistance would be appreciated. > -- Resources: - http://web2py.com -

[web2py] Re: question on how to use pdfinvoice

2016-08-22 Thread Massimo Di Pierro
There is no template. you need to edit the pdfinvoice.py file. On Sunday, 21 August 2016 04:00:42 UTC-5, Vic Ding wrote: > > Hi all, > I am trying to generate pdf using pdfinvoice. The invoice is being > generated and presented in the view. > I am wondering, how can I customise the layout of

[web2py] Re: How do I send a pdf as json object saved in the web2py db?

2016-08-22 Thread Massimo Di Pierro
what? On Sunday, 21 August 2016 05:01:02 UTC-5, Steve Joe wrote: > > How would you do it? > -- 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

[web2py] Re: Strange error with cookies (to the same domain) accesed through the same router

2016-08-20 Thread Massimo Di Pierro
Thanks for letting us know. Keep us posted if you find the problem since it may affect others. On Saturday, 20 August 2016 06:53:26 UTC-5, Lisandro wrote: > > Hi there, > > I'm back just to inform that we haven't found the cause of the problem > yet, but we've been doing a lot of tests (with

[web2py] Re: New to web2py. Template use cases

2016-08-20 Thread Massimo Di Pierro
e have a import to a external file ( > _compat.py ) it's get just template.py, really? > > Em quinta-feira, 18 de agosto de 2016 16:37:47 UTC-3, Massimo Di Pierro > escreveu: >> >> Or simply copy the gluon/template.py where you want it, import it, than >> from template im

[web2py] Re: Why passwords are stored in clear text ?

2016-08-18 Thread Massimo Di Pierro
Do you have a custom auth_user table without the password CRYPT validator? On Thursday, 18 August 2016 10:38:25 UTC-5, icodk wrote: > > I develop a web2py application on Windows. I deployed it on an Ubuntu > machine but now user passwords spears in the auth_user in clear text and > nobody can

Re: [web2py] Re: web3py status

2016-08-18 Thread Massimo Di Pierro
It is possible. web3py is code name for experimental stuff. Mostly new form/grid logic that will be backported to web2py. On Wednesday, 17 August 2016 19:09:43 UTC-5, Jason Solack wrote: > > I saw a post on the developer forum that the newer version of web2py was > mostly Python 3 compatible...

Re: [web2py] Re: Setting process title at web2py startup

2016-08-18 Thread Massimo Di Pierro
tle() > call give the desired result or would I need to push that down into > gluon.widget? > > Thanks! > > > > > > On Tue, Aug 16, 2016 at 7:55 PM Massimo Di Pierro < > massimo.dipie...@gmail.com> wrote: > >> Not clear what you mean by what web2py sta

[web2py] Re: New to web2py. Template use cases

2016-08-18 Thread Massimo Di Pierro
Or simply copy the gluon/template.py where you want it, import it, than from template import render, etc. On Wednesday, 17 August 2016 06:28:05 UTC-5, Marlysson Silva wrote: > > You are importing starting of gluon or just file template.py from gluon? > Based in documentation you have just import

[web2py] Re: Making web2py AVailable in Softaculous

2016-08-18 Thread Massimo Di Pierro
Is that a shared hosting service? I would recommend you use dedicated hosting. They do not cost more. On Tuesday, 16 August 2016 18:51:26 UTC-5, Brian Boatright wrote: > > I've been using nosupportlinuxhosting for a while and with good success. > At $1 per website per month it's a bargain for

[web2py] Re: Web2py request different behavior on local and online version (server code executes, but returns 404

2016-08-18 Thread Massimo Di Pierro
Your action returns a dict() which requires a view and the generic.json is not used in production. replace the return dict() with return response.json(dict()) On Tuesday, 16 August 2016 18:51:08 UTC-5, Ur. Kr. wrote: > > On my local version of the application, making the request with the >

[web2py] Re: How to access class variable in web2py like we do in flask?

2016-08-16 Thread Massimo Di Pierro
can't you just use this? https://github.com/web2py/web2py/blob/master/gluon/contrib/websocket_messaging.py It does the same thing and ships with web2py. On Tuesday, 9 August 2016 16:02:58 UTC-5, Ron Chatterjee wrote: > > I tried to define those classes in db.py to make them global and >

[web2py] Re: Setting process title at web2py startup

2016-08-16 Thread Massimo Di Pierro
Not clear what you mean by what web2py starts. depending on the web server there may be more than one process and the web server manages those. My guess is that you want it done at the level of the web2py server rocket. In which case I would copy web2py.py into main.py and edit the latter. On

[web2py] Re: Email not working

2016-08-09 Thread Massimo Di Pierro
There is some problem with Gmail security settings. I am not sure what they are. It stopped working at some point less than one year ago. I have been using spakpostmail since then with no issues: server = smtp.sparkpostmail.com:587 sender = login = tls= true ssl= false

Re: [web2py] multiple controllers

2016-08-09 Thread Massimo Di Pierro
Actually this is literally "Rocket" science. :-) On Monday, 8 August 2016 10:09:03 UTC-5, icodk wrote: > > Thanks Richard > I fixed it by restarting the Rocket server. > Sorry, not a rocket science, I should be able to figure it out. > > On Monday, August 8, 2016 at 3:47:55 PM UTC+2, Richard

[web2py] Re: How to check for the existence of a var in the layout.html?

2016-08-08 Thread Massimo Di Pierro
{{if 'f1' in globals():}} {{pass}} On Monday, 8 August 2016 06:33:55 UTC-5, Ramos wrote: > > hello i need to check for some vars in my *layout.html* > > if i have in my controllers return locals() > > i can then in the view do > > {{if var1 in locals():0}} > > ... > {{pass}} > > however

[web2py] Re: pyDAL support for crate.io ?

2016-08-07 Thread Massimo Di Pierro
So far you are the first one to ask for it. We are happy to look at feasibility. Do you think there is enough demand? Do you known if they (or any other company) that may be interested in sponsoring this project? On Saturday, 6 August 2016 17:08:18 UTC-5, H. Das wrote: > > Are there any plans

[web2py] Re: Create dropdown list from query

2016-08-06 Thread Massimo Di Pierro
You cannot this way. The form (and the list of options) is generated before the user selects the user_id therefore you cannot generate the second list before you know which of the first options is selected. You need a two steps form. first you ask the user. then you filter all the groups for

[web2py] Re: Internal error Ticket issued: unrecoverable

2016-08-06 Thread Massimo Di Pierro
after removing the compiled version > > On Sunday, January 23, 2011 at 8:57:16 PM UTC+5:30, Massimo Di Pierro > wrote: >> >> You may be trying to run a compiled app on GAE. You cannot do that. >> Run web2py normally first (no appserver), remove the compiled one, >> th

[web2py] Re: Newbie question regarding controllers and views

2016-08-06 Thread Massimo Di Pierro
The controller is executed fully every time the page is requested by the browser. The output is passed to the view which is also rendered every time the page is requested. No execution is ever paused by the server. The first time .accpets() is false. When you submit the form, .accepts() is

[web2py] Re: populating the values in a SQLFORM with default data in a field type of list:string

2016-08-06 Thread Massimo Di Pierro
You have: form = SQLFORM.factory(Field("members", "list:string", requires=IS_LIST_OF(IS_EMAIL(error_message="Invalid email found."))), default=emails) Try form = SQLFORM.factory(Field("members", "list:string", requires=IS_LIST_OF(IS_EMAIL(error_message="Invalid email found.")),

Re: [web2py] Web2py and WebRTC?

2016-08-06 Thread Massimo Di Pierro
I would use opentok On Tuesday, 2 August 2016 19:46:07 UTC-5, Ron Chatterjee wrote: > > This may help. Its a django app. Someone needs to take a stab at this to > convert into web2py. > > https://github.com/craigmadden/videochat > > > > On Sunday, July 28, 2013 at 8:42:19 PM UTC-4, Vinicius

[web2py] Re: web2py admin - cannot install plugin - bug??

2016-08-06 Thread Massimo Di Pierro
Why are you uploading it as a plugin? Is it *.plugin.*.w2p? Do you know it is a plugin and not an app? If it is an app you need to upload it from the form on the right of the main site page. On Thursday, 4 August 2016 06:23:35 UTC-5, Mirek Zvolský wrote: > > I have the .w2p file on disk. > I

[web2py] Re: SSL Rocket Windows 10 problem

2016-08-06 Thread Massimo Di Pierro
Can you try specify full path for cert/ ? On Thursday, 4 August 2016 04:08:49 UTC-5, icodk wrote: > > Running web2py 2.14.6 with SSL and it starts fine. However stop working > after a while (sometimes just after login) with error: > > ERROR:Rocket.Errors.Port443:Traceback (most recent call

[web2py] Re: MySQL DAL questions

2016-08-06 Thread Massimo Di Pierro
The raw names can include "." but the web2py names cannot possibly contain a "." in the name. On Wednesday, 3 August 2016 18:58:40 UTC-5, Dave S wrote: > > On Wednesday, August 3, 2016 at 3:59:37 PM UTC-7, Dave S wrote: >> >> [...] >> > Thanks for the clarification. I'm hoping to avoid doing

[web2py] Re: Host configuration

2016-08-06 Thread Massimo Di Pierro
web2py needs to send emails for change password, lost password, forgot username, etc. It needs to build the links you click on. Web2py tries to build these links but often does not know its own hostname and makes some guesses. These guesses can result in vulnerabilities. You should tell web2py

[web2py] Re: Upgrade from 2.5.1 to latest

2016-08-06 Thread Massimo Di Pierro
I am confused. Normally to upgrade web2py you simply unzip the new over the old. If you want to upgrade your own apps you can copy controllers/appadmin.py views/appadmin.html views/web2py_ajax.html static/js/*.js from the new welcome into you your app. You report this error: var data =

[web2py] Re: need custom auth form to not require unique email

2016-08-01 Thread Massimo Di Pierro
No need. Simply use auth.define_tables(username=True) and if you need db.auth_user.username.label = 'My Username' On Monday, 1 August 2016 17:04:23 UTC-5, b.l. masters wrote: > > Hi > > I am new to Web2py, so I apologize in advance if this is basic. > > So, I am wanting to create a

[web2py] Re: missportuguesa.pt powered by web2py

2016-07-31 Thread Massimo Di Pierro
Congratulations! On Sunday, 31 July 2016 15:50:30 UTC-5, Ricardo Pedroso wrote: > > I like to announce a site powered by web2py that was launched 3 weeks ago. > > It's in portuguese only. > > You can see it at: > http://missportuguesa.pt > > Regards, > Ricardo > -- Resources: -

[web2py] Re: URL based internationalization and pattern router

2016-07-31 Thread Massimo Di Pierro
the people do not think like me and begin to use > another framework that works either with small and complicated > applications, thats why they don't like and don't use web2py, not because > they are "purists" > > Greetings. > > El domingo, 31 de julio de 2016, 2:39:1

[web2py] Re: track_changes and reloading 2nd tire modules

2016-07-31 Thread Massimo Di Pierro
Please open a ticket about this. Not intended. On Sunday, 31 July 2016 01:28:21 UTC-5, catonstairs wrote: > > track_changes(True) does reload modules imported within models and > controllers, however it does not seem to reload modules imported by those > modules > > e.g. fooddrink controller

[web2py] Re: python process consumes 100% cpu

2016-07-31 Thread Massimo Di Pierro
Not a known issue. Do you have the same problem if you run from source? On Saturday, 30 July 2016 13:22:17 UTC-5, St. Pirsch wrote: > > Hi all, > running web2py.py 2.14.6 on a mac 10.11.6 gets me constantly a 100% cpu > usage on python. Is this a known issue & is there a solution? > Thanks -

[web2py] Re: URL based internationalization and pattern router

2016-07-31 Thread Massimo Di Pierro
This is a limitation with routes out. The left hand side cannot contain "?" and vars. You can maps path_info into request.vars in the way but not the vice versa in the way out. You have to put the language in the args and the do the remapping on the way out. On Friday, 29 July 2016 23:12:07

[web2py] Re: Password Recovery Not Sending (lazyT object being passed to GAE?)

2016-07-31 Thread Massimo Di Pierro
2.2, but I can't say for certain it was > working in my 2.13 deployment. > > > > > On Friday, July 29, 2016 at 6:26:11 AM UTC-7, Massimo Di Pierro wrote: >> >> This may have been fixed already. Can you upgrade and try it? >> >> On Friday, 29 July 2016 0

[web2py] Re: Grid export csv

2016-07-31 Thread Massimo Di Pierro
You press the button. Is this not working? What happens? What you model? What is your grid? On Friday, 29 July 2016 11:23:28 UTC-5, Ryan Hood wrote: > > How do you get the csv export to work in web2py grid? > > NOTE: Working with web2py version 2.14.6 and 2.14.5 > > Thank you, > -- Resources:

[web2py] Re: logout don't kill session

2016-07-31 Thread Massimo Di Pierro
Can you explain more? Can you tell us about the architecture you have? On Friday, 29 July 2016 11:11:17 UTC-5, Jose Eleudson Gurgel Queiroz wrote: > > The SAME app conclude the logout operation on one server, but not on > another or local server. > > Don't show the flash message of confirm

[web2py] bounty pypi

2016-07-29 Thread Massimo Di Pierro
I will pay $200 if you help me put a version of web2py on PyPi. -- 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

[web2py] Re: fake_migrate bug on GAE

2016-07-29 Thread Massimo Di Pierro
Can you please open an issue? On Thursday, 28 July 2016 03:33:01 UTC-5, webmas...@trytha.com wrote: > > I realize this was a foolish mistake, but there really should be a way to > fix it, and I believe there is not. > > If you have fake_migrate=True and define a new table, then push to GAE, >

[web2py] Re: Password Recovery Not Sending (lazyT object being passed to GAE?)

2016-07-29 Thread Massimo Di Pierro
This may have been fixed already. Can you upgrade and try it? On Friday, 29 July 2016 00:49:14 UTC-5, webmas...@trytha.com wrote: > > I just uploaded an updated version of web2py to my server, replacing a > much older version (likely 2.12.2), and now it won't send password recovery > emails.

[web2py] Re: Designing security for different client types in the same app

2016-07-29 Thread Massimo Di Pierro
I do not think the question as posed has an answer and most people who have a naive understanding of data security will answer no: it is not a good idea to store data with different levels of classification in the same place. I disagree. Who is in charge on enforcing access control? The app

[web2py] Re: Web2py scheduler linked postgres processes consuming too much memory

2016-07-29 Thread Massimo Di Pierro
The pg8000 driver has problems. Sorry. We should remove it from web2py. On Thursday, 28 July 2016 11:53:10 UTC-5, Abhishek Ram wrote: > > I am using the default driver pg8000 > > On Thursday, July 28, 2016 at 7:47:41 PM UTC+5:30, Niphlod wrote: >> >> what driver are you using ? it's rather

[web2py] Re: request.args encoding

2016-07-27 Thread Massimo Di Pierro
web2py restricts what chars can be in the args to avoid problems. For example # cannot be in the args because it is used to separate the hash. Also often the args are used to access files or other resources and we want to protect against possible insecure direct object reference attacks

[web2py] Re: gluon.globals.Request parsing behavior for array with length 1

2016-07-27 Thread Massimo Di Pierro
You need to set the content-type = 'application/json' when you POST json content. Else web2py does not know it is json and inteprets is incorrectly as a multipart form. On Wednesday, 27 July 2016 05:01:57 UTC-5, Yebach wrote: > > Did you menage to solve this. I am facing the same issue here and

[web2py] Re: Reasumables.js in web2py

2016-07-27 Thread Massimo Di Pierro
If you want to program at low level uploaded files are in request.post_vars. and they are cgi.FieldStorage objects (standard python class for uploads). def index(): if request.post_vars: pic_filename = request.post_vars.picture.filename pic_bytes =

[web2py] Re: SQLFORM inside modal class from stupid.css

2016-07-27 Thread Massimo Di Pierro
Congratulations! Your code is a perfect web2py example. In fact it works well for me. Not sure why is does not work for me but something else is conflicting with it. I made an app that works based on your example: https://dl.dropboxusercontent.com/u/18065445/Tmp/web2py.app.stupid_modals.w2p I

[web2py] Re: Inserting a new field to an old table - default value is not updated correctly

2016-07-27 Thread Massimo Di Pierro
No need for a loop just do fro the shell: db(db.persons.new_field==None).update(new_field=0) Massimo On Tuesday, 26 July 2016 10:54:19 UTC-5, Ykä Marjanen wrote: > > How should I properly initialize old rows after inserting a new field if > default only updates the new rows? In my case the old

[web2py] Re: Using web2py with GreenPlum: Returning clause error

2016-07-27 Thread Massimo Di Pierro
grep RETURNING web2py/gluon/packages/dal/pydal/adapters/*.py returns nothing. Perhaps the driver is adding it. Not web2py. Massimo On Monday, 25 July 2016 12:50:25 UTC-5, Madhavi wrote: > > I am trying to connect web2py to GreenPlum 4.3.8.2, which does not support > the RETURNING clause

[web2py] Re: Specific validation on custom auth user table

2016-07-25 Thread Massimo Di Pierro
A validator must be a class, not a method. custom_auth_table.dt_b.requires = IS_INT_IN_RANGE(18, 120) On Sunday, 24 July 2016 13:56:27 UTC-5, Morganti wrote: > > Hello, > > I am new in python and web2py also. > > I tryed to create a custom auth because I have a project and it is needing > a lot

[web2py] Re: Importing Current

2016-07-25 Thread Massimo Di Pierro
in gluon/__init__.py there is a "from globals import current" On Saturday, 23 July 2016 11:44:38 UTC-5, Carlos Zenteno wrote: > > Stupid question... > > When we run > > From gluon import current > > Where does current is imported from? > > I have only found current defined in globals.py as : > >

[web2py] Re: suggestion for naming web2py version

2016-07-25 Thread Massimo Di Pierro
Whatever version you have, it is a good idea to upgrade to the latest. It will be easier for us to help you. When you register. Do you get the email with the verification link? Does registration required verficaition? does it required administrator approval? This is in db.py On Friday, 22

Re: [web2py] Re: Is there a way to find ID of inserted row if there is trigger after insert?

2016-07-25 Thread Massimo Di Pierro
Can you show the full traceback? On Thursday, 21 July 2016 15:53:04 UTC-5, Richard wrote: > > Did we open a ticket and solve this one... I think I have this issue... I > try to create an archive table and I fall on this error > > dal/pydal/adapters/postgres.py", line 181, in lastrowid > >

[web2py] Re: custom register and verify_email

2016-07-25 Thread Massimo Di Pierro
Sorry. Do not understand. Can you explain again how the verification would work without the link? On Wednesday, 20 July 2016 02:24:39 UTC-5, Annet wrote: > > I have this settings: > > auth.settings.actions_disabled = ['register', 'impersonate', 'groups'] >

[web2py] Re: save image from get request

2016-07-25 Thread Massimo Di Pierro
replace with: response_image = requests.get(' https://kc.kobotoolbox.org/attachment/large?media_file=%s' % (x['filename']),stream=True) img2 = db.insect_images.image.store(response_image.content,x['filename']) db.insect_images.insert(image=img2, accession_code=dat['accession_code_']) You do not

Re: [web2py] Re: Again: virtual field requires type-attribute

2016-07-25 Thread Massimo Di Pierro
In select() you can pass the list of fields that you want. Are you asking for an automated way to exclude virtual fields? On Tuesday, 19 July 2016 14:54:10 UTC-5, Julio del Barrio wrote: > > Hi, Massimo. > If I not want any virtual fields in row object returned by select? If I > use the

[web2py] Re: How active and 'professional' is web2py?

2016-07-19 Thread Massimo Di Pierro
If popularity is a factor one should use PHP. web2py is very actively maintained thanks to Niphlod, Paolo, Anthony, Richard, Leonel, Michele, and many others. We have an excellent team. You will find old articles because web2py exists since 2007 and it is always backward compatible so those

<    6   7   8   9   10   11   12   13   14   15   >