Re: [web2py] Re: SQLFORM.grid how to link a entire row?

2013-05-14 Thread Mandar Vaze / मंदार वझे
I wonder, that no one except Mandar Vaze is interrested in this feature, as i missed it some times! Or maybe everybody could solve that himself?! Actually, even I Voted for this feature, since I will also need this feature, and happen to see your email (Coincidence ?) But if I had not seen

[web2py] attach .vcf file to mail

2013-05-14 Thread Annet
I have a download vCard button in one of my views. Instead of downloading the vCard to the vistors addressbook, I'd like to make it possible to attach the vCard to a mail. I have a download_vcard() function and a view download_vcard.vcf which renders the vCard. How would I attach this to a

[web2py] Re: attach .vcf file to mail

2013-05-14 Thread Niphlod
do you need to send the email within web2py or you want to open the user's email program with that vcf attached ? Il giorno martedì 14 maggio 2013 09:45:40 UTC+2, Annet ha scritto: I have a download vCard button in one of my views. Instead of downloading the vCard to the vistors addressbook,

Re: [web2py] Specify python version for web2py

2013-05-14 Thread Ricardo Pedroso
On Tue, May 14, 2013 at 1:22 AM, HittingSmoke hittingsm...@gmail.com wrote: I thought this would be simple but I can't seem to find the answer. I run web2py on Webfaction via uWSGI and a shared Nginx instance. Web2py runs on the default 2.6.6 python install which I have no control over. I would

Re: [web2py] Re: Howto web2py on Amazon EC2

2013-05-14 Thread António Ramos
i started a ubuntu 13.04 in amazon ec2 to test my web2py app. i cannot use port 80 and 443 . i get an error from rocket saying its in use and cannot share. i telnet to port 80 and 4434 and they are not open Help please. 2013/5/13 samuel bonilla pythonn...@gmail.com web2py in amazon ec2 is

Re: [web2py] Re: (1/2 OT) Bug in production? [nginx + uwsgi]

2013-05-14 Thread Jose
El lunes, 13 de mayo de 2013 09:57:42 UTC-3, Jose escribió: El lunes, 13 de mayo de 2013 09:42:34 UTC-3, Niphlod escribió: url needs to be a valid url. Documentation is ok, but if you hardcode fixed values you need to be sure that the routes are always exactly as in your development

Re: [web2py] Binding SQLFORM grid By query string value giving error

2013-05-14 Thread Johann Spies
On 14/05/2013 07:29, Pawan Jha wrote: page = request.args(0) What is the type of this 'page'? Regards Johann -- Johann SpiesTelefoon: 021-808 4699 Databestuurder / Data manager Faks: 021-883 3691 Sentrum vir Navorsing oor Evaluasie, Wetenskap en

Re: [web2py] Re: CMS functionality

2013-05-14 Thread Michele Comitini
on nginx it is possible to serve static content with permission checked by web2py using and internal location see: http://wiki.nginx.org/X-accel 2013/5/14 dhmorgan dharrimanmor...@gmail.com by static, it's not necessary that it be a treated as a typical static file--served up directly and

[web2py] Re: Binding SQLFORM grid By query string value giving error

2013-05-14 Thread Anthony
The first argument to smartgrid should be a table, not a query. If you want to specify constraints, use the constraints argument, which is a dictionary specifying constraint queries for each tablename: SQLFORM.smartgrid(db.call_log, constraints=dict(call_log=query), ...) Anthony On Tuesday,

Re: [web2py] Re: Binding SQLFORM grid By query string value giving error

2013-05-14 Thread Pawan Jha
its normal view page .. On Tue, May 14, 2013 at 6:25 PM, Anthony abasta...@gmail.com wrote: The first argument to smartgrid should be a table, not a query. If you want to specify constraints, use the constraints argument, which is a dictionary specifying constraint queries for each

[web2py] Problem with web2py_ajax.html (I think) after upgrading

2013-05-14 Thread Jose
Hello I have a quite old application. I upgraded web2py from 1.99.4 to 2.4.6. There were some small problems I solved, but one that I can not solve. I have a form through LOAD with ajax=True. After submit, flash show text with spaces replaced by %20. I read the threads [1] and [2]. There is

[web2py] Re: Problem with web2py_ajax.html (I think) after upgrading

2013-05-14 Thread Anthony
Replace web2py_ajax.html with the newer version and also place the new version of web2py.js in /static/js. Quite a while ago, all the script content was moved from web2py_ajax.html to a separate web2py.js file -- if you want to upgrade the framework, you need to upgrade this as well. Anthony

Re: [web2py] Re: Binding SQLFORM grid By query string value giving error

2013-05-14 Thread Anthony
I'm not sure what you mean by that. On Tuesday, May 14, 2013 8:56:55 AM UTC-4, Pawan Jha wrote: its normal view page .. On Tue, May 14, 2013 at 6:25 PM, Anthony abas...@gmail.com javascript:wrote: The first argument to smartgrid should be a table, not a query. If you want to specify

Re: [web2py] Re: Howto web2py on Amazon EC2

2013-05-14 Thread samuel bonilla
into folder: web2py/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh 2013/5/14 António Ramos ramstei...@gmail.com i started a ubuntu 13.04 in amazon ec2 to test my web2py app. i cannot use port 80 and 443 . i get an error from rocket saying its in use and cannot share. i telnet to port 80 and

Re: [web2py] Re: Howto web2py on Amazon EC2

2013-05-14 Thread Marco Túlio Cícero de M . Porto
Antonio, on Amazon, everything except port 22 (ssh) is blocked on default. You'll have to go Security Group/Inbound and add the ports you want to open. To access your instance, you can right click it and use connect or you can get the public address given to your instance (appears on your

Re: [web2py] Re: Howto web2py on Amazon EC2

2013-05-14 Thread António Ramos
I´now have it running ok. The problem is that ubuntu cannot start web2py on ports 1024 beause its not root. So i sudo python web2py ...etc It worlks now. Thank u all 2013/5/14 Marco Túlio Cícero de M. Porto mtcpo...@gmail.com Antonio, on Amazon, everything except port 22 (ssh) is blocked

[web2py] Re: apache redirect advice

2013-05-14 Thread jonten
Hi Lucas, As a Web2py newbie I'm not sure that this is the (best) solution to your problem, but I had a similar problem when I recently did a setup with Web2py and Apache which I did not want to dedicate to the directory root of the web server. Almost all the config comes from looking at this

[web2py] Running Scirpts - Raspberry Pi

2013-05-14 Thread Dan Searle
Hi all, Dan here. I have a script in the root file of my device. It a script that, when executed, changes the currently playing song on the playlist. I was wondering if it would be possible to launch this script through a web2py page using a link or flash button? I don't know much about HTML

[web2py] Re: Not good at making ajax calls from a view

2013-05-14 Thread Jordan Ladora
One follow up question-- normally in my controller I would use a SQLFORM object, e.g. one named 'form' and then use: if form.accepts(request.vars, session): ...to execute code after getting validated form data. I could look for the newly created variables in request.vars or is there a better

[web2py] Re: attach .vcf file to mail

2013-05-14 Thread Annet
Hi, Thanks for you reply. do you need to send the email within web2py or you want to open the user's email program with that vcf attached ? I would like to send it within web2py. Something like a button which opens a form in which the visitor provides a from and to e-mail address and a

[web2py] Re: attach .vcf file to mail

2013-05-14 Thread Anthony
See http://web2py.com/books/default/chapter/29/08#Attachments. Instead of specifying a file path as the first argument to mail.Attachment(), you can pass in a file-like object, such as a cStringIO.StringIO object. Note, in that case, you will also have to specify the filename argument to

[web2py] Regarding update query question

2013-05-14 Thread Nam Soo In
Hi, I am trying to update Database and It keeps giving me an error type 'exceptions.TypeError' update() takes exactly 1 argument (2 given) my database is pretty simple it has md5 and md5 status so in the recevied_result there are md5 and for md5_update in recevied_result:

[web2py] Re: How to build a db query for a many-to-many table given multiple constraints?

2013-05-14 Thread bracquet
Thanks, I'll give it a try. On Saturday, May 11, 2013 8:17:58 AM UTC-4, Niphlod wrote: ok. it adds a layer on top. Basically you want to have all products matching all product_filters that have AT LEAST 2 rows for the same product. here we go. myfilter = (top, sweatshirt)

[web2py] Re: Regarding update query question

2013-05-14 Thread Niphlod
update() takes a mapping that reflect column names, not fields db(db.md5.md5==md5_update).update(db.md5.status=True) The red part needs to be eliminated db(db.md5.md5==md5_update).update(status=True) On Tuesday, May 14, 2013 7:14:03 PM UTC+2, Nam Soo In wrote: Hi, I am trying to update

[web2py] How to send email to users

2013-05-14 Thread sasogeek
How do I send an email to a user when they sign up or perform some action? -- --- 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: How to send email to users

2013-05-14 Thread Anthony
Did you read http://web2py.com/books/default/chapter/29/08#Sending-emails? Check it out and come back with more specific questions if you have trouble. On Tuesday, May 14, 2013 2:49:42 PM UTC-4, sasogeek wrote: How do I send an email to a user when they sign up or perform some action? --

[web2py] user comments

2013-05-14 Thread BlueShadow
Hi, I like to add comments for users to my app. Is there a plugin which does all the work for me or do I have to develop it myself? It would be awesome if moderators could edit or delete comments. -- --- You received this message because you are subscribed to the Google Groups web2py-users

[web2py] How can I use options.py with tornado anyserver?

2013-05-14 Thread Joel Kim
Hi, How can I use options.py with tornado anyserver? My options.py configuration uses both of http:80 and https:443 at the same time. options.py ip = '0.0.0.0' port = 80 interfaces = [('0.0.0.0', 80), ('0.0.0.0', 443, 'server.key',

[web2py] WEB2PY iOS install APP

2013-05-14 Thread Allan K
Hi, I need to work with an app for web2py, but I do not know if I can use web2py with iOS and install apps as I can with windows and macOS. Thanks. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop

Re: [web2py] user comments

2013-05-14 Thread Marco Mansilla
El Tue, 14 May 2013 12:33:51 -0700 (PDT) BlueShadow kevin.bet...@gmail.com escribió: Hi, I like to add comments for users to my app. Is there a plugin which does all the work for me or do I have to develop it myself? It would be awesome if moderators could edit or delete comments. there is

[web2py] Build application using pyinstaller problem python language

2013-05-14 Thread Hai Long
hi all, I am Vietnamese, i have problem with pyinstaller: i install python 2.7 on my computer and install module ldap to python 2.7. when i build web2py application using pyinstaller, i have problem can't import module ldap my question: 1. When i build application using pyinstaller,

[web2py] Tips on getting web2py working with (any) IDE...

2013-05-14 Thread Monte Milanuk
...so that auto-complete/code-intelligence/whatever-you-call-it works correctly? I've looked at the bits from the Wing howto and I'll try those but I'm open to other suggestions (looking at working with Spyder, PyDev, maybe gvim (if I can ever get all the python-ide plugin stuff sorted out).