Re: [web2py] Re: What is the right way to specialize an application?

2013-01-30 Thread Paul Whipp
For me, magic is anything that supplies context or functionality that is not visible in the usual python manner. For example where the default.py controller file looks like normal python and mostly behaves that way but has a whole lot of magic going on in terms of variables it can access. On 30

Re: [web2py] Re: CentOS 6.3 + nginx = 502 Bad gateway

2013-01-30 Thread Arnon Marcus
I just found that when I edit the comment after it has been posted, than people who react via e-mail will not get the update... Are you using gmail or the google groups? Have you seen the latest edit of my comment? On Tuesday, January 29, 2013 11:51:49 PM UTC+2, Richard wrote: haha! I can

Re: [web2py] Re: CentOS 6.3 + nginx = 502 Bad gateway

2013-01-30 Thread Arnon Marcus
Well, that is not the approach I would like to take... As I said, I DO NOT NEED another python in the system - whether or not it can be fixed, the optimal approach would be to avoid the problem all together... I am now looking for a way to install/compile uwsgi without the need to modify the

[web2py] form field that reference to another table

2013-01-30 Thread 黄祥
hi, is it possible to add custom form field that reference to another table? i've tried both form, sqlform, sqlform.factory and crud it seems that it can't handle it or maybe there is something i missed. my goal is to show only id in the form sale header which is refer to customer table and

Re: [web2py] Re: CentOS 6.3 + nginx = 502 Bad gateway

2013-01-30 Thread Arnon Marcus
BTW, I found this: https://groups.google.com/forum/?fromgroups=#!topic/web2py/O4c4Jfr18tM I liked Peter's quote: I think it saves a lot of people time if anyone submitting a script tests it on a bare operating system install. This is what I have done. -- --- You received this message

[web2py] Howto Multi file uploader

2013-01-30 Thread António Ramos
Hello, what is the best way to add multi file upload functionality. This is very important for me. I have many apps that can be converted to web2py but i have a lot of fields that need to upload multiple files. I want to use it inside company in a lot of colaborative apps. I would love to see

[web2py] GAE Email Sending Issue

2013-01-30 Thread Philip Kilner
Hi All, Am trying to resolve an issue with sending email on App Engine. My application throws an Unable to send email error, and the logged error is: - 2013-01-30 09:06:16.409 Mail.send failure:The API package 'remote_socket' or call 'Resolve()' was not found. Running locally mail is sent

[web2py] Re: Howto Multi file uploader

2013-01-30 Thread Paolo valleri
I don't think you will find something out-of-the-box. However, I advice you to start from here: http://malsup.com/jquery/form/ On Wednesday, January 30, 2013 10:48:57 AM UTC+1, Ramos wrote: Hello, what is the best way to add multi file upload functionality. This is very important for me. I

Re: [web2py] Interesting about JSON license...

2013-01-30 Thread Angelo Compagnucci
Please see in Debian the software Douglas Crockford has polluted with that clause! http://codesearch.debian.net/search?q=The+Software+shall+be+used+for+Good%2C+not+Evil Very sad ... 2013/1/30 Bruno Rocha rochacbr...@gmail.com “The Software shall be used for Good, not Evil.” I like it! we

[web2py] Re: Howto Multi file uploader

2013-01-30 Thread David Marko
You should look at the web2pyslices, there are a few posts on upload topic ... e.g. here http://www.web2pyslices.com/slice/show/1576/html5-file-uploads-with-jquery David Dne středa, 30. ledna 2013 10:48:57 UTC+1 Ramos napsal(a): Hello, what is the best way to add multi file upload

[web2py] requires IS_IN_DB multiple and zero

2013-01-30 Thread Thomas Bellembois
Hello web2py community, I have a multiple select widget: db.PRODUCT.class_of_compounds.requires=[IS_EMPTY_OR(IS_IN_DB(db, db.CLASS_OF_COMPOUNDS.id, label=db.CLASS_OF_COMPOUNDS._format, multiple=True, sort=db.CLASS_OF_COMPOUNDS.label, zero='choose'))] The zero field does not appear. If I

[web2py] Re: Why query != same_query?

2013-01-30 Thread Alan Etkin
Good idea Anthony, can you send me a patch? I added Anthony's patch to issue 1310. Is it ok? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to

[web2py] Re: GAE Email Sending Issue

2013-01-30 Thread Alan Etkin
Unfortunately, this was working a couple of days ago (accounts created and mail sent both in testing and production), and I'm not aware of any change which could have triggered this issue, so I'm having trouble figuring out where to start troubleshooting this. Have you updated your app's

Re: [web2py] Re: Autoincrement field

2013-01-30 Thread Alec Taylor
On Wed, Jan 30, 2013 at 1:15 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Please open a ticket about this. http://code.google.com/p/web2py/issues/detail?id=1311 -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe

Re: [web2py] Re: GAE Email Sending Issue

2013-01-30 Thread Philip Kilner
Hi Alan, Thanks for responding! On 30/01/13 12:01, Alan Etkin wrote: Have you updated your app's code before the issue? Yes, I'm in the process of commissioning this app, and have had to make many changes to the model as I import real world data, but none in the relevant period to the

Re: [web2py] Re: CentOS 6.3 + nginx = 502 Bad gateway

2013-01-30 Thread Arnon Marcus
http://www.personal.psu.edu/afr3/blogs/siowfa12/success.jpeg -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more

Re: [web2py] Re: GAE Email Sending Issue

2013-01-30 Thread Alan Etkin
- Running pure web2py locally: works - Running the GAE Development server locally: fails - Running on GAE remotely: fails I may be wrong, but It seems to me that when creating the mail object in the model, you need to pass explicitly the server='gae' argument. (the class docstring says

Re: [web2py] Re: GAE Email Sending Issue

2013-01-30 Thread Philip Kilner
Hi, On 30/01/13 12:31, Philip Kilner wrote: The more I think about it the more I wonder if the use of the router is an issue Just to close the loop on that, disabling routing made no difference. I've just created a clean app to test, with the following settings for auth and mail: - ##

Re: [web2py] Re: CentOS 6.3 + nginx = 502 Bad gateway

2013-01-30 Thread Arnon Marcus
All that was needed was to add *python-devel* and *python-setuptools *to the *yum install* line... Then when changing: python$PREFIX uwsgiconfig.py --build Into: python uwsgiconfig.py --build It compiles using the default installation of python (2.6.6) that's already in Cent-OS 6.3 from

Re: [web2py] Re: GAE Email Sending Issue

2013-01-30 Thread Niphlod
try with mail.settings.server = 'gae' On Wednesday, January 30, 2013 2:03:50 PM UTC+1, Philip Kilner wrote: Hi, On 30/01/13 12:31, Philip Kilner wrote: The more I think about it the more I wonder if the use of the router is an issue Just to close the loop on that, disabling

Re: [web2py] Re: GAE Email Sending Issue

2013-01-30 Thread Philip Kilner
Hi Alan, On 30/01/13 12:53, Alan Etkin wrote: I may be wrong, but It seems to me that when creating the mail object in the model, you need to pass explicitly the server='gae' argument. (the class docstring says it so in trunk at least) Perhaps you can test that mail.settings.server is 'gae'

[web2py] Re: requires IS_IN_DB multiple and zero

2013-01-30 Thread Anthony
The zero option is intended for single-selection drop-downs to allow the user to make no selection. This is not necessary for multiple-selection inputs because it is already possible to make no selection simply by not clicking/checking any of the options. Anthony On Wednesday, January 30,

[web2py] DAL IntegrityError on MSSQL after upgrade to 2.3.2

2013-01-30 Thread Andrew Buchan
Hello, I'm running web2py on a Windows server with MS SQL, it's running from source, as a service. I tried upgrading from version 1.93.2 to the latest stable (2.3.2), and on launching database administration, I got an IntegrityError. - Here's the table definition: UserTableName =

Re: [web2py] Re: What is the right way to specialize an application?

2013-01-30 Thread Anthony
I see. I thought you were referring specifically to the admin app controller as magic, but its really the entire web2py concept of a controller being executed in a global environment rather than imported. On Wednesday, January 30, 2013 3:09:18 AM UTC-5, Paul Whipp wrote: For me, magic is

Re: [web2py] Re: CentOS 6.3 + nginx = 502 Bad gateway

2013-01-30 Thread Arnon Marcus
It works ! https://lh5.googleusercontent.com/-9MtuXR1IBAY/UQkeSt_pF9I/AE0/njp8fKPFoLA/s1600/web2pyOnNginx.jpg modified script attached Here is the modified doc-string: # Script for installing Web2py with Nginx and Uwsgi on Centos 6 # Created By Hutchinson # Modified by spametki and

Re: [web2py] Re: CentOS 6.3 + nginx = 502 Bad gateway

2013-01-30 Thread Arnon Marcus
One issue still remains: I have to disable iptables to get in after the installation - Any quick tips on how to configure it? Shouldn't some kind of default re-configuration of iptables also be included in the script? -- --- You received this message because you are subscribed to the Google

Re: [web2py] Re: requires IS_IN_DB multiple and zero

2013-01-30 Thread Thomas Bellembois
Ok, thanks for the answer. It is now clear. Le 30/01/2013 14:15, Anthony a écrit : The zero option is intended for single-selection drop-downs to allow the user to make no selection. This is not necessary for multiple-selection inputs because it is already possible to make no selection simply

Re: [web2py] Re: GAE Email Sending Issue

2013-01-30 Thread Alan Etkin
I had understood that web2py detected the server automagically (for mail as it does for the db) so IOW I believe that server='gae' is set in code, and my working hypothesis is that it is this detection which is somehow failing. Now I've read the book :P . And it states that for GAE you

[web2py] Uploaded files, and Cascade delete

2013-01-30 Thread Kostas M
It seems that cascade deletion of uploaded files works fine only if there is no definition of 'uploadfolder'. At db.py db.define_table('person', Field('name', requires=IS_NOT_EMPTY(), required=True), Field('nickname', 'string', required=True ), format = '%(name)s' ) def

[web2py] como conservar la sesion en Google App Engine

2013-01-30 Thread Mauricio Gallo Ocampo
Tengo el siguiente código T.current_languages=['en', 'en-us'] if request.vars._language: session._language=request.vars._language if session._language: T.force(session._language) else: T.force(T.accepted_language) Lo tengo ubicado en models/db.py Por la URL mando lo

Re: [web2py] Re: CentOS 6.3 + nginx = 502 Bad gateway

2013-01-30 Thread Alan Etkin
# Uwsgi is being compiled using the existing python version 2.6.6 I don't like the patch. It doesn't give the option to use Python 2.7 and doesn't seem to be tested with CentOS 5. Please consider submitting it as an alternative to the current version. -- --- You received this message

Re: [web2py] Re: CentOS 6.3 + nginx = 502 Bad gateway

2013-01-30 Thread Arnon Marcus
:) Sure you don't like it - It is not targeted towards Cent-OS 5 users... Cent-OS 5 comes with python 2.4 - this can't even run web2py... That's why Cent-OS 5 users MUST install a second instance of python alongside the existing one. For that there is the existing script - afaik it works for

Re: [web2py] Re: CentOS 6.3 + nginx = 502 Bad gateway

2013-01-30 Thread Alan Etkin
It very well could be a separate script that people can use for cent-os 6 versions. My bad. Just read the name of the script after posting -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving

[web2py] https at webfaction.

2013-01-30 Thread Annet
I the past I hosted a web2py application at Webfaction. I had a dedicated IP address, and added: domains: mydomain.com, www.mydomain.com and admin.mydomain.com application: web2py websites: a normal and an encrypted website. and added domains mydomain.com and www.domain.com and application

Re: [web2py] Re: GAE Email Sending Issue

2013-01-30 Thread Philip Kilner
Hi Niphlod, On 30/01/13 13:09, Niphlod wrote: try with mail.settings.server = 'gae' Aargh! That did it, and Googling that line took me straight to: - http://stackoverflow.com/questions/2656068/sending-email-from-an-web2py-on-gae ...which I should have found at 8:30 this morning if my

[web2py] Re: reference table doesnot work when using auth.signature and format

2013-01-30 Thread Massimo Di Pierro
You only get automatic dropdowns if the referenced table has a format. What is the difference between the first not work and the last work. The code you show is the same. Attention. Do not call a table transaction. It is a reserved SQL keyword. On Tuesday, 29 January 2013 23:55:25 UTC-6, 黄祥

Re: [web2py] Re: GAE Email Sending Issue

2013-01-30 Thread Niphlod
I'm curious, though - given that the database switch is handled automagically in the script, is there a reason that the mail configuration should not also be handled conditionally, as above? My app is targeted at GAE, but I am also testing RDBMS back-ends as a fall back, so I'm switching

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2013-01-30 Thread peter
I just got a new vps with centos 5 (32 bit on it). This script fails to get sqlite3 working. As python 2.6 is fine I took the easy way and set # Python options PREFIX=2.6 VERSION=2.6.8 I also commented out the patch that is supposed to fix sqlite3 with python2.7 It works fine with these

[web2py] Re: DAL IntegrityError on MSSQL after upgrade to 2.3.2

2013-01-30 Thread Massimo Di Pierro
Can you send me your .table file for auth_user. Before the migration. On Wednesday, 30 January 2013 07:17:11 UTC-6, Andrew Buchan wrote: Hello, I'm running web2py on a Windows server with MS SQL, it's running from source, as a service. I tried upgrading from version 1.93.2 to the latest

Re: [web2py] Re: Detect change in sqlform.grid

2013-01-30 Thread Massimo Di Pierro
You have grid = SQLFORM.grid(...,editargs={'onvalidation':x},..) def x(form): #dbg.set_trace() print in x the

Re: [web2py] Re: DAL IntegrityError on MSSQL after upgrade to 2.3.2

2013-01-30 Thread Andrew Buchan
Massimo, thanks for looking into this. These are the contents of file the auth_user.table file: (dp1 S'first_name' p2 S'VARCHAR(128)' p3 sS'last_name' p4 S'VARCHAR(128)' p5 sS'is_department_manager' p6 S'BIT' p7 sS'email' p8 S'VARCHAR(128) UNIQUE' p9 sS'reset_password_key' p10 S'VARCHAR(512)'

[web2py] Re: wp2 installation failures

2013-01-30 Thread Massimo Di Pierro
Can you reproduce this? All if found out is that if the source is down or issues a redirect you may get that error. I believe it to be a urllib.urlopen issue. On Sunday, 27 January 2013 07:46:13 UTC-6, ludwa6 wrote: @Massimo: The error appears in a ticket, i see no traceback, but if that

[web2py] Re: admin shell AttributeError: 'DAL' object has no attribute '_lazy_tables'

2013-01-30 Thread Massimo Di Pierro
I cannot reproduce any of this wil latest trunk. On Saturday, 26 January 2013 14:20:26 UTC-6, dhmorgan wrote: While working through the DAL section of the book, I am getting lazy_tables errors. Have I missed something? Is it a bug? Here is the output from the shell, entered via welcome

Re: [web2py] Re: GAE Email Sending Issue

2013-01-30 Thread Philip Kilner
Hi Alan, On 30/01/13 13:43, Alan Etkin wrote: I had understood that web2py detected the server automagically (for mail as it does for the db) so IOW I believe that server='gae' is set in code, and my working hypothesis is that it is this detection which is somehow failing. Now I've

Re: [web2py] Re: Auth with migrate=False

2013-01-30 Thread Massimo Di Pierro
Not really. How about: def set_on_delete(db, tablename, f): db._LAZY_TABLES[tablename][2]['on_define'] = f The problem is that we cannot use the notation db.table.on_delete = f since db.table will cause the table to be instantiated and that what lazy tables are trying to postpone. On

Re: [web2py] update easy_install

2013-01-30 Thread Massimo Di Pierro
I will need help with this. On Thursday, 24 January 2013 18:57:03 UTC-6, rochacbruno wrote: On Thu, Jan 24, 2013 at 9:34 PM, Massimo Di Pierro massimo@gmail.comjavascript: wrote: How? http://peak.telecommunity.com/DevCenter/setuptools#automatic-script-creation -- --- You

[web2py] Re: Grid with multiple left joins

2013-01-30 Thread Massimo Di Pierro
This is in trunk. Can you please check it. On Wednesday, 23 January 2013 10:02:03 UTC-6, Mark wrote: I also hope this can be done. In sqlhtml.py, simply change following code: if left is not None: tablenames += db._adapter.tables(left) into: if left is not

Re: [web2py] Re: SQLFORM.grid with multiple LEFT OUTER JOINs

2013-01-30 Thread Massimo Di Pierro
Can you please check again. I have added the suggested fix you suggested. On Wednesday, 23 January 2013 09:05:40 UTC-6, Jim S wrote: 2.4.1-alpha.2+timestamp.2013.01.23.08:17:15 Just updated this morning. -Jim On Wed, Jan 23, 2013 at 8:55 AM, Massimo Di Pierro

Re: [web2py] Re: auth.wiki how to format all fields

2013-01-30 Thread Massimo Di Pierro
db.auth_wiki(slug=slug).title ? On Sunday, 27 January 2013 11:46:47 UTC-6, Paolo valleri wrote: The problem is that with the current approach i set the title field but i have not found yer the possibility to render it :-( Looking to the code a very dirty but working workaround is to unset

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2013-01-30 Thread Alan Etkin
I just got a new vps with centos 5 (32 bit on it). This script fails to get sqlite3 working. How? I thought I fixed it by applying the patch. IIRC the welcome app worked on 2.7 with a clean testing vm (and a sqlite connection). Perhaps the scrip should set 2.6 by default and warn the user

Re: [web2py] Re: auth.wiki how to format all fields

2013-01-30 Thread paolo.vall...@gmail.com
Hi Massimo, I would avoid to write explicit code, please find attached a potential patch. what about that? Paolo 2013/1/30 Massimo Di Pierro massimo.dipie...@gmail.com db.auth_wiki(slug=slug).title ? On Sunday, 27 January 2013 11:46:47 UTC-6, Paolo valleri wrote: The problem is that

Re: [web2py] Re: SQLFORM.grid with multiple LEFT OUTER JOINs

2013-01-30 Thread Jim S
Yes, working now. Thanks for that Massimo, really appreciate it. -Jim On Wednesday, January 30, 2013 9:29:55 AM UTC-6, Massimo Di Pierro wrote: Can you please check again. I have added the suggested fix you suggested. On Wednesday, 23 January 2013 09:05:40 UTC-6, Jim S wrote:

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2013-01-30 Thread Alan Etkin
I think we would be wiser to make the standard script one for python 2.6 because of the problems with python 2.7 Just before opening an issue, what do you think? (see attached) -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To

[web2py] Re: Can I change a boolean field widget to a button?

2013-01-30 Thread Lamps902
Jim - a much nicer solution came to mind that would be useful if you don't need those fields to be checkboxes at any other point in your program. You can probably do this in the model: Field('rebates_tiered', represent=INPUT(_type='button'), ...) Sorry not to think of it sooner. Probably an

[web2py] Re: Grid with multiple left joins

2013-01-30 Thread Mark
Yes, it works. Thanks! On Wednesday, January 30, 2013 10:28:23 AM UTC-5, Massimo Di Pierro wrote: This is in trunk. Can you please check it. On Wednesday, 23 January 2013 10:02:03 UTC-6, Mark wrote: I also hope this can be done. In sqlhtml.py, simply change following code: if left

Re: [web2py] Interesting about JSON license...

2013-01-30 Thread Philip Kilner
Hi Angelo, On 30/01/13 10:31, Angelo Compagnucci wrote: Please see in Debian the software Douglas Crockford has polluted with that clause! http://codesearch.debian.net/search?q=The+Software+shall+be+used+for+Good%2C+not+Evil Very sad ... I agree, but this: -

Re: [web2py] Re: Grid with multiple left joins

2013-01-30 Thread Felipe Meirelles
Thanks Massimo, all working (: On Wed, Jan 30, 2013 at 2:38 PM, Mark czhang2...@gmail.com wrote: Yes, it works. Thanks! On Wednesday, January 30, 2013 10:28:23 AM UTC-5, Massimo Di Pierro wrote: This is in trunk. Can you please check it. On Wednesday, 23 January 2013 10:02:03 UTC-6,

[web2py] EditArea error web2py 2.3.2

2013-01-30 Thread seank
Just installed 2.3.2, added EditArea. Going into edit mode gives the following error: Uncaught ReferenceError: area is undefined scriptwindow.textarea = area.textarea;/script // admin/default/edit.html Hitting save will replace file content with 'undefined'. So, ajax_editor.js is not getting

[web2py] EditArea not working in 2.3.2

2013-01-30 Thread seank
Just installed 2.3.2, added EditArea. When I go to edit files, it gives me this error: Uncaught ReferenceError: area is undefined // default/edit.html 228 scriptwindow.textarea = area.textarea;/script So it seems ajax_editor's getData() fails to get the data from the editor and save will

[web2py] Problem with checkboxes

2013-01-30 Thread nicormoreno
I have a really stupid problem with checkboxes in web2py, i cant get the value once a form submit, this is my code: A javascript modal that show the form div class=modal hidden fade in id=modal-edit-document div class=modal-header button type=button class=close

Re: [web2py] Re: auth.wiki how to format all fields

2013-01-30 Thread Massimo Di Pierro
I have applied the patch. I am uneasy with the fact that only one field is wrapped around XML and the others are not. Perhaps none of them should. This will break wiki but not a big deal since it experimental. Users can then put the XML(content) in the views. What do you think? On Wednesday,

[web2py] Re: contribute: db diagram for web2py appadmin

2013-01-30 Thread Massimo Di Pierro
This is really nice. How about we move all the static files and the view into admin and he have the db_diagram.py code in appadmin just include form admin? we can do that easily. you can do dbs = [db in globals().values() if isinstance(db.DAL)] to get databases. There is a more efficient

[web2py] Re: EditArea not working in 2.3.2

2013-01-30 Thread Massimo Di Pierro
We do not support editarea any more in admin. What are you trying to do? On Wednesday, January 30, 2013 10:51:45 AM UTC-6, seank wrote: Just installed 2.3.2, added EditArea. When I go to edit files, it gives me this error: Uncaught ReferenceError: area is undefined // default/edit.html 228

[web2py] Debugging in a server

2013-01-30 Thread Wonton
Hello everyone, Finally I have my project working in my local server so I've uploaded it to the real server (via FTP to the applications directory). It's working almost perfctly, but some features are giving errors and other are simply not working (they return incorrect data). My problem, I

[web2py] Re: Interesting about JSON license...

2013-01-30 Thread Alan Etkin
What happens with the use of the JSON format by web2py? Are there any legal issues with implementing JSON (or third party tools?) (other that using it for evil, of course) -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from

Re: [web2py] Re: auth.wiki how to format all fields

2013-01-30 Thread Alan Etkin
I have applied the patch. I am uneasy with the fact that only one field is wrapped around XML and the others are not. Agree. I would make any change necessary to have a more clean api while it is an experimental feature. -- --- You received this message because you are subscribed to the

Re: [web2py] Re: auth.wiki how to format all fields

2013-01-30 Thread paolo.vall...@gmail.com
I agree too in breaking the backward compatibility as soon as is marked experimental, however I don't see any other field that can be wrapped around XML. Paolo 2013/1/30 Alan Etkin spame...@gmail.com I have applied the patch. I am uneasy with the fact that only one field is wrapped around

[web2py] Re: EditArea not working in 2.3.2

2013-01-30 Thread seank
deleted double post On Wednesday, January 30, 2013 1:56:50 PM UTC-5, Massimo Di Pierro wrote: We do not support editarea any more in admin. What are you trying to do? On Wednesday, January 30, 2013 10:51:45 AM UTC-6, seank wrote: Just installed 2.3.2, added EditArea. When I go to edit

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2013-01-30 Thread peter
Good solution Alan. Peter On Wednesday, 30 January 2013 16:36:17 UTC, Alan Etkin wrote: I think we would be wiser to make the standard script one for python 2.6 because of the problems with python 2.7 Just before opening an issue, what do you think? (see attached) -- --- You received

[web2py] Re: EditArea not working in 2.3.2

2013-01-30 Thread seank
I should've deleted the previous one.. Anyways, the issue is I use the online editor often and the current default editor (codemirror) seems too buggy: constantly jumping back to the top, can't disable syntax highlight, wrap lines, etc.. It's fine if EditArea is not supported anymore. Ace will

[web2py] Re: Interesting about JSON license...

2013-01-30 Thread Massimo Di Pierro
I do not think this is a serious issue. This (http://timelessrepo.com/json-isnt-a-javascript-subset) is a more serious issue which we should fix. On Wednesday, January 30, 2013 1:15:42 PM UTC-6, Alan Etkin wrote: What happens with the use of the JSON format by web2py? Are there any legal

Re: [web2py] Re: auth.wiki how to format all fields

2013-01-30 Thread Massimo Di Pierro
I am suggesting the opposite. Not wrapping any field in XML. On Wednesday, January 30, 2013 1:50:40 PM UTC-6, Paolo valleri wrote: I agree too in breaking the backward compatibility as soon as is marked experimental, however I don't see any other field that can be wrapped around XML.

[web2py] Re: Centos 5 script for Nginx with Uwsgi and Web2py

2013-01-30 Thread Massimo Di Pierro
In trunk! On Wednesday, January 30, 2013 10:36:17 AM UTC-6, Alan Etkin wrote: I think we would be wiser to make the standard script one for python 2.6 because of the problems with python 2.7 Just before opening an issue, what do you think? (see attached) -- --- You received this

[web2py] Re: EditArea not working in 2.3.2

2013-01-30 Thread Massimo Di Pierro
Please tell us more. We are not aware of any codemirror issue. What browser do you use? which web2py version? On Wednesday, January 30, 2013 2:13:22 PM UTC-6, seank wrote: I should've deleted the previous one.. Anyways, the issue is I use the online editor often and the current default

Re: [web2py] Re: auth.wiki how to format all fields

2013-01-30 Thread paolo.vall...@gmail.com
for me is ok too. Paolo 2013/1/30 Massimo Di Pierro massimo.dipie...@gmail.com I am suggesting the opposite. Not wrapping any field in XML. On Wednesday, January 30, 2013 1:50:40 PM UTC-6, Paolo valleri wrote: I agree too in breaking the backward compatibility as soon as is marked

[web2py] import csv files to update database

2013-01-30 Thread Jack
Hi all, I've recently started playing around with web2py and i have encountered a problem with the csv importing function. I have a table defined called 'production' and i have already implemetned a smartgrid that will allow me to view,edit each row in the table. However, I want to implement a

[web2py] Re: Interesting about JSON license...

2013-01-30 Thread Alan Etkin
Oops. It's the first time I see this. So what to do about that? Is web2py going to do in-the-middle replacement?. Doesn't simplejson handles this? Also, according to other articles, json should be always encloesed by array or object literal. The python json libraries are not that restrictive.

[web2py] Controller: same function with and without arguments

2013-01-30 Thread Gian Luca Decurtins
Hi all What do you think about the following code example? Is there a more elegant way to be able to call a function with and without arguments? How can I select the fields which shall be returned? I did try it in the .select(db.location.id, db.location.name) part, but the JSON output always

[web2py] Re: como conservar la sesion en Google App Engine

2013-01-30 Thread Alan Etkin
Tengo el siguiente código I'd suggest to move this to web2py-usuarioshttp://groups.google.com/group/web2py-usuarios -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it,

[web2py] Example JSON Code

2013-01-30 Thread pal4rp
We just started using web2py where I work. We created our 1st webpage and it uses JSON calls: One to retrieve database info and the second to status the selected info. We created a 2nd screen using the 1st as a template. On the 2nd screen, our JSON call to retrieve database info works.

[web2py] Registering new user with auth.settings.create_user_groups = True fails!

2013-01-30 Thread David Manns
My application was set this way for a long time, so when users were added a user specific group is added, even though I don't use these individual groups - I have groups defined for roles like accounting, admin, etc. It has been some time since a new user was added, and web2py has been

[web2py] sending mail to multiple clients

2013-01-30 Thread José Eloy
Hello. I'm thinking about solutions for this problem: I have an application that have a list of 900 members to which to send mail. I need to send the mails and get notification about the status of every sending mail and when all they were succesfully sending. The trouble is my host provider

[web2py] Re: import csv files to update database

2013-01-30 Thread Massimo Di Pierro
I think db[form.vars.table].import_from_csv_file(request.vars.csvfile) should be db[form.vars.table].import_from_csv_file(request.vars.csvfile.file) On Wednesday, 30 January 2013 14:29:08 UTC-6, Jack wrote: Hi all, I've recently started playing around with web2py and i have encountered a

[web2py] Re: Interesting about JSON license...

2013-01-30 Thread Massimo Di Pierro
I do not think any of the existing libraries handle it. One option is fixed in simplejson and submit a patch to the authors. Another option is to fix in gluon.serializers. A third option is to fix in the jsonp view (as the article suggests). On Wednesday, 30 January 2013 15:05:15 UTC-6, Alan

Re: [web2py] sending mail to multiple clients

2013-01-30 Thread Bruno Rocha
I would use sendgrid.com and its awesome newsletter API, alsoi sendgrid takes care of spamming protection. I wrote an module to interact with send grid through the API https://github.com/rochacbruno/pysendgrid But if you really want to use your own structure you should have a table with email,

[web2py] Re: Controller: same function with and without arguments

2013-01-30 Thread Massimo Di Pierro
I would to do : def read(): id = request.args(0,cast=int,default=None) if id is None: location = db(db.location.id == request.args(0)).select().first() else: default_sort_order = [db.location[x] for x in 'city street_name street_number building name'.split()]

[web2py] Using the web2py online debugger

2013-01-30 Thread Johann Spies
I have used other methods of debugging in the past including pdb. Today I have tried out for the first time the web2py online debugger and there is something that I do not understand. I have set two temporary breakpoints in a controller. When that breakpoint is reached, the debugger shows me

[web2py] What is the Salt used in web2py

2013-01-30 Thread Hassan Alnatour
Dear ALL , How can i find the salt used in web2py to encrypt the passwords ? now as i understand if i want to encrypt the password manually i need to do it like this ? CRYPT(digest_alg='md5',key='mykey',salt=True) is this correct , am a bit lost !! i need to understand how can i do the