Re: [web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-18 Thread paolo.vall...@gmail.com
You should locate the log of mod_wsgi, please post those as soon you find them, from the apache log everything seems to work well (I see 304 for cached stuff and 200 when you edit file), for example line 720-725. Be aware that, you got a lot of requests from external ip which are sending against

Re: [web2py] Re: sessions2trash cron

2013-12-18 Thread Niphlod
yep On Wednesday, December 18, 2013 3:24:35 AM UTC+1, Jayadevan M wrote: Thanks. For each app, I will add a line to web2py.ini like python /var/www/web2py/web2py.py -Q -S myapp1 -M -R scripts/sessions2trash.py -A -o python /var/www/web2py/web2py.py -Q -S myapp2 -M -R

[web2py] SQL error using APP Admin

2013-12-18 Thread Remco Boerma
Hi, When i use appadmin to view the tables and i click on a single entry to view that entry i get an error. I open https://lvwaso01.rocdc.local/dc_jobs/appadmin/update/db/JobPlatform/3 and get: class 'pyodbc.ProgrammingError' ('42000', [42000] [FreeTDS][SQL Server]Column

[web2py] Re: web2py Jobs and meetups

2013-12-18 Thread Ramkrishan Bhatt
Do we have any Job portal ? On Wednesday, 18 December 2013 01:36:48 UTC+5:30, Massimo Di Pierro wrote: I am interested in knowing who are the web2py developers in Illinois and in California (possibly around San Francisco) for possible meet ups. If you live near Chicago or near San

[web2py] Re: web2py ala static-site-generator

2013-12-18 Thread Gour
On Tue, 17 Dec 2013 05:33:52 -0800 (PST) Massimo Di Pierro massimo.dipie...@gmail.com wrote: I once made a static side generator that allows to create pages using the web2py template languages and or markmin (depending on the extension). Thanks. I am sorry as of now this is undocumented.

Re: [web2py] Re: XMLHttpRequest cannot load https://www..... disallowed for cross-origin request ...

2013-12-18 Thread weheh
Looks like I got it working. The Apache config file wasn't complete, so once I found that issue, the CORS started to function properly. Thanks again for your responses. On Monday, December 16, 2013 11:16:05 PM UTC+8, Marin Pranjić wrote: Well, as I said, try your own jquery.ajax call. If

Re: [web2py] Re: Browse only image extensions

2013-12-18 Thread Ruud Schroen
I think my question was a bit unclear. What i mean this when you want to browse for a file to upload, a window pops up, which allows you to select a file from your computer. Inside this window i want only image extensions able to be selected. Example: When you want to send a file attachment on

[web2py] Re: login crash under 2.8.2

2013-12-18 Thread Leonel Câmara
I don't think I can send you the file as this crash happens precisely when it's trying to store the cookie and response.session_id is None. I have no idea how thread.lock objects are getting into the session. I have tried to solve this myself, but the code for Session is not exactly easy

[web2py] Re: Browse only image extensions

2013-12-18 Thread Leonel Câmara
Oh then you can use this http://www.w3schools.com/tags/att_input_accept.asp -- 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

Re: [web2py] Re: Browse only image extensions

2013-12-18 Thread Ruud Schroen
Didn't know it was that easy.. Thanks alot anyway, your first reply might come in handy sometime. On Wed, Dec 18, 2013 at 2:02 PM, Leonel Câmara leonelcam...@gmail.comwrote: Oh then you can use this http://www.w3schools.com/tags/att_input_accept.asp -- Resources: - http://web2py.com -

[web2py] Re: web2py Italy

2013-12-18 Thread Raffaele Tesi
Alla grande!!! Il giorno venerdì 27 settembre 2013 10:37:23 UTC+2, Gael Princivalle ha scritto: Hi. For web2py users that speak Italian, I've create the web2py-it group. It could be a complementary tool for the Italian web2py community.

[web2py] Re: how do I create, multiple forms and precess them, using 'for' statement?

2013-12-18 Thread Ivo
Hi Niphlod, I studied your example, but can't quite get it to work yet. I also tried taking a look at your view but it's to complicated for me. The only issue I'm having now is that the key isn't incrementing from the view side. Can I pass the key in the view like {{=form+key}} or something?

[web2py] Re: github - please follow

2013-12-18 Thread Raffaele Tesi
fatto -- 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-users group. To

[web2py] Re: error using auth.wiki('slug') on service pages

2013-12-18 Thread Janko Strusa
As a workaround you could try replacing the wiki(..) calls with wiki(...)[content]. Anyway it seems that the output format for the wiki method has changed for different versions. I've tried {{=auth.wiki(slug=test, force_render=True)[content]}}, now I get duplicate of service page in

Re: [web2py] Re: web2py Jobs and meetups

2013-12-18 Thread António Ramos
About the job, what are the requirements? Moving to the US could mean Portugal to US? Best 2013/12/18 Ramkrishan Bhatt ramkrishan.bh...@gmail.com Do we have any Job portal ? On Wednesday, 18 December 2013 01:36:48 UTC+5:30, Massimo Di Pierro wrote: I am interested in knowing who are

[web2py] Re: github - please follow

2013-12-18 Thread Doug Hauenstein
+ 1 done! On Saturday, August 24, 2013 7:26:03 PM UTC-4, Massimo Di Pierro wrote: web2py has many users but few github followers. This is a problem because the number of followers is a metric that can be used to guess popularity. You can help. Get a github account and click on the star.

[web2py] Re: web2py Italy

2013-12-18 Thread Ivan Gazzola
Arrivo anch'io ... Il giorno mercoledì 18 dicembre 2013 14:41:57 UTC+1, Raffaele Tesi ha scritto: Alla grande!!! Il giorno venerdì 27 settembre 2013 10:37:23 UTC+2, Gael Princivalle ha scritto: Hi. For web2py users that speak Italian, I've create the web2py-it group. It could be a

[web2py] Re: web2py Jobs and meetups

2013-12-18 Thread Leonel Câmara
Ah, another one here from Portugal, glad I'm not the only one. -- 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: Anyone have experience with SSO between web2py and Wordpress (or some PHP framework)?

2013-12-18 Thread Chun-Hung Chen
Hi, Take the advantage of this post. Does anyone try and be successful on this combination? I have the same issue here. I want to setup a main site with web2py but there is another wordpress website. The CAS plugin on wordpress seems old and I could not run it successfully on wordpress to

[web2py] Re: github - please follow

2013-12-18 Thread Mirko
done On Saturday, August 24, 2013 11:26:03 PM UTC, Massimo Di Pierro wrote: web2py has many users but few github followers. This is a problem because the number of followers is a metric that can be used to guess popularity. You can help. Get a github account and click on the star.

[web2py] Re: github - please follow

2013-12-18 Thread Oli
done! Am Sonntag, 25. August 2013 01:26:03 UTC+2 schrieb Massimo Di Pierro: web2py has many users but few github followers. This is a problem because the number of followers is a metric that can be used to guess popularity. You can help. Get a github account and click on the star.

[web2py] Re: github - please follow

2013-12-18 Thread 黄祥
done -- 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-users group. To

Re: [web2py] Re: github - please follow

2013-12-18 Thread Richard Vézina
GO! Only 515 until now, I am sure there is much more web2py fan out there!! :) Richard On Wed, Dec 18, 2013 at 10:59 AM, 黄祥 steve.van.chris...@gmail.com wrote: done -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Re: Internationalization for DB table field names and DB table content

2013-12-18 Thread Francisco Costa
Check http://stackoverflow.com/questions/12055856/how-to-apply-language-translation-on-requires-field-when-showing-other-table-fie I would go with IS_IN_DB(db, db.t_title.id, lambda r: T(r.name), orderby=db. t_title.id) On Monday, December 26, 2011 9:14:55 PM UTC, Alan Etkin wrote: And what

Re: [web2py] Re: Internationalization for DB table field names and DB table content

2013-12-18 Thread Richard Vézina
All suggestion here are good solution that I used... Though the last suggestion by Francisco set the limit I didn't workaround yet... I mean how to make orderby base on the translation?! Richard On Wed, Dec 18, 2013 at 12:11 PM, Francisco Costa m...@franciscocosta.comwrote: Check

[web2py] Re: Internationalization for DB table field names and DB table content

2013-12-18 Thread Leonel Câmara
You can't make the orderby based on translation as the orderby is done at the database level. One thing you could do is sort them with javascript on the view. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] How to orderby translation name?

2013-12-18 Thread Francisco Costa
I have this form for creating new items and where I ask for the colors that are referenced by an id saved in db.colors I'm already showing the translated color names, but they are being ordered by the original name I have this: db.items.color.requires = IS_IN_DB(db, db.colors.id, lambda row:

[web2py] Two table register?

2013-12-18 Thread Carlos Zenteno
I want to make a form with four(4) fields from one of my tables and four(4) fields from auth_user, BUT I want to register the user at the same time. [from auth.user: name, last, email, pass] I know how to make a form with both and put the info on each table. My questions: 1) If I use the

[web2py] Re: web2py Italy

2013-12-18 Thread Carlos Zenteno
Nice! but... does the different language groups dilute the knowledge from the rest of the world? Nizza! ma ... non effettua i diversi gruppi linguistici diluire la conoscenza dal resto del mondo? (from google translate) -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: How to orderby translation name?

2013-12-18 Thread Leonel Câmara
You have to either sort using javascript on the view or translate in the controller using something like colors = db(db.colors.id 0).select() colors = colors.sort(lambda r : T(r.name, lazy=False)) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: web2py Jobs and meetups

2013-12-18 Thread Michael Gheith
I would love to attend any and all meet ups in Chicago. web2py has been my bread and butter ever since I learned it :) On Tuesday, December 17, 2013 2:06:48 PM UTC-6, Massimo Di Pierro wrote: I am interested in knowing who are the web2py developers in Illinois and in California (possibly

Re: [web2py] Re: How to orderby translation name?

2013-12-18 Thread Francisco Costa
Thanks Leonel because I'm using SQLFORM to generate the form I used a javascript solution, here is the code: http://stackoverflow.com/a/20665508/621727 Francisco Costa On Wed, Dec 18, 2013 at 5:51 PM, Leonel Câmara leonelcam...@gmail.comwrote: You have to either sort using javascript on the

[web2py] Re: error using auth.wiki('slug') on service pages

2013-12-18 Thread Alan Etkin
I've tried {{=auth.wiki(slug=test, force_render=True)[content]}}. I get error ticket. Would you please file an issue at web2py.googlecode.com? If possible, post as much info as possible, including the relevant source code used in the model, controller and view. -- Resources: -

[web2py] Re: REF: Question of Modifying the behaviour of the @auth.requires_login()

2013-12-18 Thread Cliff Kachinske
My reading of the source code says you are pretty much stuck with the behavior you see. The first thing the decorator does is check if the request is ajax and returns the message you are receiving. You could: - check auth.is_logged_in in your controller and take whatever action you wish if

[web2py] No module named gluon.settings / gluon errors - Windows - GAE

2013-12-18 Thread Trevor Pugsley
Hi, First time user of Web2Py...The source version works great, but having real problems trying to install on Windows to use with GAE. Amended app.yaml as per book. Project loads OK. Problems start when I browse to localhost:xx080 Had the 'no gaehandler.py' problem, copied the file into the

[web2py] Re: how do I create, multiple forms and precess them, using 'for' statement?

2013-12-18 Thread Niphlod
you are returning only the last form... you need to make a dict or a list out of the single form you generate in the for loop, and then in the view you can unpack them separately in my code, you can see on #L296 how every single form is appended to forms, that is a list and that list is

[web2py] Auth() vs auth()

2013-12-18 Thread Carlos Zenteno
Newbee here... I know that Auth() is the class in gluon and it initial use: auth = Auth(db) But I have seen some uses like fom = auth() in some controllers. is there an auth() function besides the Auth() class? where can I find this kind of stuff on my own? THanks... -- Resources: -

[web2py] Re: login crash under 2.8.2

2013-12-18 Thread Leonel Câmara
On my tests, this is happening after I go to the admin for other applications on the same server, so it's possible that admin is the one causing the problem. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Auth() vs auth()

2013-12-18 Thread Anthony
The Auth class has a __call__ method, which means Auth objects are callable. There's nothing special about the name auth -- it's just a convention. You could just as well do: myauth = Auth(db) myauth() When you call auth(), it checks request.args(0) to see which Auth action has been requested

[web2py] Re: web2py Italy

2013-12-18 Thread Gael Princivalle
Comunque direi che per ovvi motivi il web2py-users rimane lo strumento principale per porre domande. A noi users italiani di fare comunità e di mettere in web2py-it quello che ci sembra congruo per darci uno strumento complementare. -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: how do I create, multiple forms and precess them, using 'for' statement?

2013-12-18 Thread Ivo
Thanks, I understand what you mean. I left the form.accepts out as it wasn't relevant to my question (and am still designing it) but thanks for pointing it out anyway! I'm going to struggle with the unpacking part for a while and thanks for not spoonfeeding me the code! The goal is me actually

[web2py] Re: how do I create, multiple forms and precess them, using 'for' statement?

2013-12-18 Thread Niphlod
form.process adds little bits to the form to be able to actually process the posted data. in pseudo-code you need to list_of_forms = [] for something in list_of_values: key = something_unique form = SQLFORM() if form.process(formname=something_unique).accepted:

[web2py] Re: IntegrityError: column email is not unique

2013-12-18 Thread Chris Hepworth
Thank you for that, I didn't realize I needed to drop the tables. It is working exactly as expected now. On Tuesday, December 17, 2013 8:08:06 PM UTC-7, Massimo Di Pierro wrote: The problem is that my workaround is not retroactive. I believe the bug is fixed but does not apply to tables

[web2py] Re: github - please follow

2013-12-18 Thread Carlos Zenteno
done! -- 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-users group. To

[web2py] Re: Auth() vs auth()

2013-12-18 Thread Carlos Zenteno
Thanks Anthony! Very clear 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 you are subscribed to the Google

[web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-18 Thread Richard Brown
Hi Paolo, I think I'm getting a bit out of my depth here... I can't specifically find any wsgi log files, I did a 'find'for filenames containing 'wsgi' and the results are attached, with the command I used for the search at the top of the file. Please tell me what I need to send. Last night

[web2py] Re: LOAD only gives Loading... after upgrade

2013-12-18 Thread Brian M
Anybody have any ideas? This setup worked under older versions of web2py but not anymore - I assume something with the changes to web2py.js but don't know where. On Tuesday, December 17, 2013 11:26:19 AM UTC-6, Brian M wrote: OK, I've got a simple app that shows the behavior:

[web2py] Label as column name on export grid

2013-12-18 Thread Leonardo Pires Felix
Hi, there is how export the grid with the label of the field? Or do i need to do a workaround? Since on tsv that uses represent and all on the export, it doesn't use the labels as export way. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Spreading the word and some simple code

2013-12-18 Thread Cliff Kachinske
In November I gave a talk to the Atlanta Python Meetup group on role based authentication and authorization. I mentioned several times during the presentation that Web2py features role based access control, and showed some demo code which is a simplified extract from the Auth class. The demo

[web2py] altering tables and gets database not working. trying to find a way to empty the database.

2013-12-18 Thread deepak sandhu
i made 2 tables in web2py: # coding: utf8 db.define_table('dept', Field('name',unique=True)) db.define_table('course', Field('d_id','reference d'), Field('name',unique=True)) then I added some data in them from appadmin. after that I

[web2py] Re: Online classes

2013-12-18 Thread Massimo Di Pierro
I posted some of the code: https://github.com/mdipierro/web2py-appliances/tree/master/Notifier https://github.com/mdipierro/web2py-appliances/tree/master/Surveys On Tuesday, 3 December 2013 00:34:18 UTC-6, Massimo Di Pierro wrote: Hello everybody, As you know I teach a certification program

Re: [web2py] Re: Online classes

2013-12-18 Thread joseph simpson
Thanks again... Keep up the good work... Take care and have fun, Joe On Wed, Dec 18, 2013 at 7:58 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I posted some of the code: https://github.com/mdipierro/web2py-appliances/tree/master/Notifier

[web2py] Re: Uploading file through restful webservice

2013-12-18 Thread Raj Chinna
Hi Eduardo, Thanks for the response. Is it something like this, the file that I will be sending from client will come as a huge string and I need to handle it in the below mentioned way? I am confused about, who will convert the file into sting and send it. On Thursday, November 21, 2013

[web2py] Detecting MYSQL running status

2013-12-18 Thread Raj Chinna
Hi, I have web2py application which talks with MYSQL and i have my db connection strings in db.py module. Sometime the web2py server is running without any issues, but mysql goes offline now and then. So, I am getting the ticket generated saying that *Failure to connect, tried 5 times: