[web2py] Re: Google Application Engine return Hello world

2015-06-30 Thread kawate
Yes I did and test is done on local host On Wednesday, July 1, 2015 at 2:29:50 AM UTC+9, Sébastien wrote: > > Did you copy "gaehandler.py" in the root folder? > > I would first debug the app in the local Google SDK before deploying it. > > On Tuesday, 30 June 2015 14:29:56 UTC+2, kawate wrote: >>

[web2py] wsgi.py import error on GAE

2015-06-30 Thread kawate
For this several years, i have run the web2py application on GAE, but i should move to high replication database. Data size is small and a few modification is needed i try to deploy the application with new applicaition ID. I tried two version. gaehandler.py and gaehandler.wsgispp on local host

[web2py] Re: limit the application for client user

2015-06-30 Thread 黄祥
if limit base on data stored in table and using SQLFORM.grid it can be use logic create = True if db.table.id < 100 else False editable = True if db.table.id < 100 else False best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2

[web2py] Re: expire user password

2015-06-30 Thread 黄祥
i'll try, thank you so much, massimo. thanks and best regards, stifan -- 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 y

[web2py] Re: what is the best approach to have auto generate document number or codification (e.g. product code)?

2015-06-30 Thread 黄祥
found it on the book (use unique = True) http://web2py.com/books/default/chapter/29/07/forms-and-validators#Database-validators best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.co

[web2py] Re: pymysql gives Broken Pipe

2015-06-30 Thread Derek
are you on osx perchance? On Tuesday, June 30, 2015 at 3:59:07 PM UTC-7, Ben Lawrence wrote: > > I am seeing broken pipe errors like this on low volume site using pg8000 > on web2py Version 2.11.2-stable+timestamp.2015.05.30.16.33.24 > > Should we use this http://stackoverflow.com/a/180922/395033

[web2py] Re: web2py grid edit

2015-06-30 Thread Ben Lawrence
Also, if you look in your admin screen there are plug-ins available. One of them is plugin_SQLFORM_INLINE On Tuesday, June 30, 2015 at 10:29:40 AM UTC-7, Alessio Varalta wrote: > > Hi, i have a problem. I have a grid form but i want that the user can > modify the field without the section edit.

[web2py] Re: SMS and Phonecalls

2015-06-30 Thread 黄祥
thank you for the reference anthony n leonel, will try it both. thanks and best regards, stifan -- 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 recei

[web2py] Re: export data to OOO and Excel

2015-06-30 Thread 黄祥
yes, i know that CSV files can be open with excel, i think it's enough, if i need *.xls file i think, i can just open CSV files with Excel save it on Excel with *.xls format thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://gith

[web2py] Re: Transitioning/Bug/unable to save

2015-06-30 Thread Leonel Câmara
Is it possible the user running the webserver doesn't have permission to write on those files? -- 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 receiv

[web2py] Re: pymysql gives Broken Pipe

2015-06-30 Thread Ben Lawrence
I am seeing broken pipe errors like this on low volume site using pg8000 on web2py Version 2.11.2-stable+timestamp.2015.05.30.16.33.24 Should we use this http://stackoverflow.com/a/180922/3950334 Error:: [Errno 32] Broken pipe - *File /home/www-data/web2py/gluon/contrib/pg8000/co

[web2py] Re: SMS and Phonecalls

2015-06-30 Thread Leonel Câmara
Another alternative is to use a service like twilio. -- 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

[web2py] Re: export data to OOO and Excel

2015-06-30 Thread Anthony
You can already open CSV files in Excel. Anyway, you can specify custom exporters in the grid via the "exportclasses" argument -- so you can use this if you implement a class for it. Anthony On Tuesday, June 30, 2015 at 6:06:59 PM UTC-4, 黄祥 wrote: > > just an idea why not put this on sqlform.gr

[web2py] Re: export data to OOO and Excel

2015-06-30 Thread 黄祥
just an idea why not put this on sqlform.grid as an export (seen csv, html, etc, but no excel on sqlform.grid export)? best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2

Re: [web2py] Re: New feature in trunk: API tokens

2015-06-30 Thread Pablo Angulo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 This email was going to be a simple "Great!", but eventually I have many comments: El 29/06/15 a las 20:37, Massimo Di Pierro escribió: > 2. yes that is correct (except it is _token=, not token=). Just mind that the > token is as good as a passwor

[web2py] Re: SMS and Phonecalls

2015-06-30 Thread Anthony
Sure, go ahead. Looks like the phone has to be connected to the machine running the code, so the web2py app would have to be running locally on the machine with the phone connected. If you just want to use web2py to send text messages, also have a look at http://web2py.com/books/default/chapter

[web2py] SMS and Phonecalls

2015-06-30 Thread 黄祥
hi, i've googling and found the url : http://linux-101.org/script/python-code-sending-sms-messages-usb-connected-mobile-phone my question is it possible to do this in web2py app? put it in the module and called it via controller maybe? any thoughts or suggestions? thanks and best regards, stif

[web2py] Re: web2py grid edit

2015-06-30 Thread villas
Maybe Tim Richardson's ideas will help from web2pyslices ... http://www.web2pyslices.com/slice/show/1928/basic-inline-editing-in-sqlformgrid-no-plugin-no-javascript http://www.web2pyslices.com/slice/show/1714/jqgrid-viewing-and-updating-data -- Resources: - http://web2py.com - http://web2py.com/

[web2py] Re: Help/documentation on auth.wiki

2015-06-30 Thread St. Pirsch
Am Dienstag, 30. Juni 2015 09:35:27 UTC+2 schrieb Massimo Di Pierro: > > I understand > > Use {{extend layout2.html}} then make a minimalist layout 2 that does not > include css, js, has no and no tag but only one div. At the > top of the layout use {{=MENU(wiki.menu())}} to generate the wiki

[web2py] Re: OnKeyPress

2015-06-30 Thread Anthony
On Tuesday, June 30, 2015 at 2:55:20 PM UTC-4, D. Kev wrote: > > I wanna use OnKeyPress to call a javascript, but I'm using a SQLForm, What > can I do? > Field('myfield', widget=lambda f, v: SQLFORM.widgets.string.widget(f, v, _onkeypress='myJsFunction();')) (See http://web2py.com/books/defau

[web2py] OnKeyPress

2015-06-30 Thread D. Kev
I wanna use OnKeyPress to call a javascript, but I'm using a SQLForm, What can I do? -- 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 m

[web2py] Re: Dynamic upload folder path

2015-06-30 Thread Anthony
Are you using a database table to store the student data and uploads? If so, before creating the SQLFORM based on the table, you can dynamically set the "uploadfolder" attribute of the upload field based on the incoming email address from request.post_vars. Anthony On Tuesday, June 30, 2015 at

[web2py] Re: Easy way to make a functional table / grid / spreadsheet

2015-06-30 Thread Anthony
On Tuesday, June 30, 2015 at 1:29:50 PM UTC-4, Martti Lamberg wrote: > > Thank you for your answers! And sorry for the radio silence. I took some > of your advice and went and studied some javascript and came up with a > small demo. > > More on the workflow: I need updates coming to and going fro

[web2py] Re: Add a form sqlfactory

2015-06-30 Thread Anthony
On Tuesday, June 30, 2015 at 1:29:40 PM UTC-4, Alessio Varalta wrote: > > Hi, there is the possibility to add a form to sqlfactory with a for > cycle..for example, i will a system where i can cycle with a for and add an > element > > form = SQLFORM.factory(db['element']) first time > > now i will

[web2py] Re: How do I get rid design request response session db tables db stats buttons in a sqlform

2015-06-30 Thread Anthony
Those buttons come from {{=response.toolbar()}} in the view. In the welcome app, the toolbar is only included in the generic.html view, and in that case, only for local requests. If you are seeing the toolbar, either you added it yourself to your layout or the specific view in question, or your

[web2py] Re: bounty for window users

2015-06-30 Thread Leonel Câmara
New version with the button in the right place and only adding the checked files https://github.com/web2py/web2py/pull/1008 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (

[web2py] Re: Add a form sqlfactory

2015-06-30 Thread Massimo Di Pierro
I do not understand what you would like to do. Can you explain in pseudocode? On Tuesday, 30 June 2015 12:29:40 UTC-5, Alessio Varalta wrote: > > Hi, there is the possibility to add a form to sqlfactory with a for > cycle..for example, i will a system where i can cycle with a for and add an > e

[web2py] Re: bounty for window users

2015-06-30 Thread Leonel Câmara
Ohh I'll make the modifications. -- 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] Re: bounty for window users

2015-06-30 Thread Massimo Di Pierro
90% done ;-) I would like the link not in the dropdown but on top of this page: http://127.0.0.1:8000/admin/default/pack_custom/ so that it would not add to the zip all the files of the app, only those checked. Massimo On Tuesday, 30 June 2015 11:56:48 UTC-5, Leonel Câmara wrote: > > Is

[web2py] Re: GUI crossroads: Cappuccino and/or web2py

2015-06-30 Thread Massimo Di Pierro
I agree we should mention it. I am not sure it is actively maintanined. On Tuesday, 30 June 2015 07:01:26 UTC-5, 黄祥 wrote: > > just an idea, why not put gui2py on web2py book (other recipes section) > > best regards, > stifan > -- Resources: - http://web2py.com - http://web2py.com/book (Document

[web2py] Add a form sqlfactory

2015-06-30 Thread Alessio Varalta
Hi, there is the possibility to add a form to sqlfactory with a for cycle..for example, i will a system where i can cycle with a for and add an element form = SQLFORM.factory(db['element']) first time now i will add the second element to form -- Resources: - http://web2py.com - http://web2py.

[web2py] Re: Query failing in Taskqueue

2015-06-30 Thread MS
Hi Dave, Yes 'field' have date attributes. This is the way, we have defined field in the model: db.define_table('tablename', Field('field1', 'integer', writable=False, label=T('Field1')), Field('field2', 'string', label=T('Field2')), Field('field3', 'date', label=T('Field3')), )

[web2py] Re: Easy way to make a functional table / grid / spreadsheet

2015-06-30 Thread Martti Lamberg
Thank you for your answers! And sorry for the radio silence. I took some of your advice and went and studied some javascript and came up with a small demo. More on the workflow: I need updates coming to and going from server without page reloads. Not necessarily all of them, but it would make t

[web2py] web2py grid edit

2015-06-30 Thread Alessio Varalta
Hi, i have a problem. I have a grid form but i want that the user can modify the field without the section edit..So i want load a grid where the user can modify the field and after click on a save button a save all parameters -- Resources: - http://web2py.com - http://web2py.com/book (Document

[web2py] Re: Google Application Engine return Hello world

2015-06-30 Thread Sébastien
Did you copy "gaehandler.py" in the root folder? I would first debug the app in the local Google SDK before deploying it. On Tuesday, 30 June 2015 14:29:56 UTC+2, kawate wrote: > > To reproduce this problem, download the source version of web2py on Mac, > update application id on the app.example

[web2py] Re: bounty for window users

2015-06-30 Thread Leonel Câmara
Is this what you want? https://github.com/web2py/web2py/pull/1007 I think I've done everything you asked except for the .exe part, I don't see how to turn the zipfile into an executable. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2p

Re: [web2py] How to refer uploads files

2015-06-30 Thread Anthony
When you create an upload field using the DAL, the filename is stored in the upload field itself, so you can get the filepath via: import os filepath = os.path.join(request.folder, 'uploads', row.upload_field_name) The above assumes all uploads go directly in the /uploads folder. If you have sp

[web2py] Help with MSSQL Connection

2015-06-30 Thread Massimiliano
Hello, I've a problem with odbc. I'm developing on OSX 10.10.3 and I found some problems connecting to sql server express 2005 I'm tried few things 1. I installed pyodbc and web2py said: Version 2.10.4-stable+timestamp.2015.04.26.15.11.54 Database drivers available: psycopg2, pymysql, imaplib,

[web2py] Re: Google Application Engine return Hello world

2015-06-30 Thread kawate
To reproduce this problem, download the source version of web2py on Mac, update application id on the app.example.yaml (change the file name to app.yaml)and deploy thru web2py admin or google application launcher. Request .appspot.com will return Hello world!. On Monday, June 29, 2015 at 4:08

[web2py] Re: GUI crossroads: Cappuccino and/or web2py

2015-06-30 Thread 黄祥
just an idea, why not put gui2py on web2py book (other recipes section) best regards, stifan -- 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: IOError: [Errno 21] Is a directory:

2015-06-30 Thread Auden RovelleQuartz
SOLVED the issue was in the system crontab, @reboot python /home/www-data/web2py/web2py.py -S omniavx_joe -M -R applications/omniavx_joe /cron/init_db_tables.py 1 >> /tmp/cron_init_db_tables.output 2>&1 should be instead @reboot python /home/www-data/web2py/web2py.py -S omniavx_joe -M -R app

[web2py] Re: IOError: [Errno 21] Is a directory:

2015-06-30 Thread Auden RovelleQuartz
there is a system cron process "init_db_tables.py" (the script in the web2py cron folder) that runs @reboot that process produces that error On Tuesday, June 30, 2015 at 2:36:32 AM UTC-5, Massimo Di Pierro wrote: > > yes. it is supposed to be. When do you get this error? > > On Monday, 29 Jun

[web2py] Re: Only one table fails to create in MySQL... and there's nothing special about it.

2015-06-30 Thread Niphlod
actually, pythonanywhere folks are really collaborative : no need to bash for something they aren't responsible for :P -- 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

[web2py] Re: GUI crossroads: Cappuccino and/or web2py

2015-06-30 Thread Massimo Di Pierro
I did not do it. Mariano (one of our oldest members) did it. On Tuesday, 30 June 2015 02:30:28 UTC-5, Phillip Veda wrote: > > I just happened accross gui2py last night. I had no idea something like > this was possible (converting web2py to a wxPython desktop app)! > > > Thank you for the response

[web2py] Re: IOError: [Errno 21] Is a directory:

2015-06-30 Thread Massimo Di Pierro
yes. it is supposed to be. When do you get this error? On Monday, 29 June 2015 16:48:09 UTC-5, Auden RovelleQuartz wrote: > > does anyone know what this means? > > { > web2py Web Framework > Created by Massimo Di Pierro, Copyright 2007-2015 > Version 2.11.2-stable+timestamp.2015.05.30.16.33.24 > D

[web2py] Re: Help/documentation on auth.wiki

2015-06-30 Thread Massimo Di Pierro
I understand Use {{extend layout2.html}} then make a minimalist layout 2 that does not include css, js, has no and no tag but only one div. At the top of the layout use {{=MENU(wiki.menu())}} to generate the wiki menu embedded. It will be returned via ajax. On Monday, 29 June 2015 16:36:20 U

[web2py] Re: bounty for window users

2015-06-30 Thread Massimo Di Pierro
:-) On Monday, 29 June 2015 13:48:38 UTC-5, Niphlod wrote: > > /me restricts himself to review the code before the actual merge. if noone > rescues the bounty in a week I'll do it. > > On Monday, June 29, 2015 at 5:43:30 PM UTC+2, Massimo Di Pierro wrote: >> >> I offer $50 is you can do this in a

[web2py] How do I get rid design request response session db tables db stats buttons in a sqlform

2015-06-30 Thread jackson . read
This what I have. I want to get rid of the row of buttons at the bottom of the form that says 'design request response session db tables db stats' *View* {{extend 'layout.html'}} Input form {{=form}} Submitted variables {{=BEAUTIFY(request.vars)}} Accepted variables {{=BEAUTIFY(form.vars)}} E

[web2py] Dynamic upload folder path

2015-06-30 Thread Chaitu P
Hello all, I have a form for student name, email and upload. For each student I want to create a seperate folder and save his upload dynamically. Can anyone let me know how can I do this. Thanks in advance. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://githu

Re: [web2py] How to refer uploads files

2015-06-30 Thread Chaitu P
I have form where student can upload his c programs. Now I want to write a script which will compile and run these programs. I was able to write a script which can compile and run c programs with simple name like hello.c. But the problem is Iam not sure how can I refer the files that were saved

[web2py] multifile uploading

2015-06-30 Thread Chaitu P
In my application, I want the user to upload as may files as he wants. I have seen few of the websites. But those seem to be more difficult. Is there a better way to do this. -- Chaitanya Pochampally -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com

Re: [web2py] How to refer uploads files

2015-06-30 Thread Chaitu P
I have a form where student can submit his .c programs. Now I want to write a script that run these programs. I was able compile and run c programs with a python scripts with normal name like hello.c. But Iam not sure how can refer these programs that were saved with random name. Here is my script.

[web2py] Re: GUI crossroads: Cappuccino and/or web2py

2015-06-30 Thread Phillip Veda
I just happened accross gui2py last night. I had no idea something like this was possible (converting web2py to a wxPython desktop app)! Thank you for the responses Brilliant work and engaging tutorials Massimo. Thank you. On Monday, June 29, 2015 at 2:20:46 AM UTC-5, Massimo Di Pierro wrot

[web2py] Re: Only one table fails to create in MySQL... and there's nothing special about it.

2015-06-30 Thread Robert Porter
Thanks, that seems to have fixed it. I'd actually checked there (nominally), but since pythonanywhere holds its bare-repositories in a folder tree outside of its normal web2py folder structure, it was a bit confusing. On Monday, 29 June 2015 11:53:57 UTC-7, Niphlod wrote: > > usually it's not