[web2py] Re: LOAD Component + Multiple Forms

2011-02-18 Thread puercoespin
so, only number and provider information needed! Seems easy. Thanks all. On 18 feb, 05:37, Massimo Di Pierro massimo.dipie...@gmail.com wrote: mail.send(to=sms_email(number,provider),subject='...',message='...') where number is the phone number and provide is the company the number

Re: [web2py] Re: LOAD Component + Multiple Forms

2011-02-18 Thread Marc Smith
Hi Martín, Yes, that works well for trapping links inside the component, but what about using forms? Have you ever used multiple forms instead of links from one page to another like you are doing below? Thanks, Marc On Fri, Feb 18, 2011 at 5:51 AM, Martín Mulone mulone.mar...@gmail.com wrote:

Re: [web2py] Re: LOAD Component + Multiple Forms

2011-02-18 Thread Marc Smith
On Fri, Feb 18, 2011 at 9:46 AM, Martín Mulone mulone.mar...@gmail.com wrote: Ok, I think now I understood. Is a good question. Try something like this, never do a redirect() after accepts because web2py do full redirect. I don't know is something like this work: The redirect inside of the

Re: [web2py] Re: LOAD Component + Multiple Forms

2011-02-18 Thread Marc Smith
Wow! I just found this post: http://groups.google.com/group/web2py/browse_thread/thread/27bf920f49fc8504/510cd7d66f9a4ccb I tried this and it fixes my problem! Carlos: Is this fine to keep the response stuff in there? And to keep the web2py_ajax.html modifications? It won't affect other forms or

[web2py] Re: LOAD Component + Multiple Forms

2011-02-18 Thread Carlos
Hi Marc, I believe my fix does not break anything, but much more testing is certainly required to be sure. If you find problems, please let me know. If there are no problems after testing, I believe this fix should be included in web2py ... Massimo?.

[web2py] Re: LOAD Component + Multiple Forms

2011-02-17 Thread Marc Smith
So, I've been experimenting with this a bit, and if I change the form_name.accepts methods to using arguments like this: form_name.accepts(request.vars, formname='blah1') It acts a bit differently -- first form (one) is displayed and accepted, and then second form (two) is displayed and when I

[web2py] Re: LOAD Component + Multiple Forms

2011-02-17 Thread villas
My first impression was that seem a lot of code in one function. Maybe better to create some separate functions and redirect depending on the form no. etc. Your other strategy of loading the forms via ajax looks promising, but it looks like it would always load 'one' in the example given:

Re: [web2py] Re: LOAD Component + Multiple Forms

2011-02-17 Thread Marc Smith
On Thu, Feb 17, 2011 at 1:05 PM, villas villa...@gmail.com wrote: My first impression was that seem a lot of code in one function. Maybe better to create some separate functions and redirect depending on the form no. etc. Sorry -- it started nice, but as I moved and tried different things, it

[web2py] Re: LOAD Component + Multiple Forms

2011-02-17 Thread Massimo Di Pierro
One solution is to send sms via emails. It is cheap, reliable and does not rely on third party services: web2py/gluon/contrib/sms_utils.py On Feb 17, 3:42 pm, Ovidio Marinho ovidio...@gmail.com wrote: what makes your application, it sends sms:? you can share this application?, I need an

[web2py] Re: LOAD Component + Multiple Forms

2011-02-17 Thread puercoespin
An exemple, please? My mobile phone, 123456789, what's the code for sending a SMS? On 17 feb, 22:46, Massimo Di Pierro massimo.dipie...@gmail.com wrote: One solution is to send sms via emails. It is cheap, reliable and does not rely on third party services: web2py/gluon/contrib/sms_utils.py

[web2py] Re: LOAD Component + Multiple Forms

2011-02-17 Thread villas
If you are loading separate pages from the same site you may as well redirect. Just use ajax to load small amounts of extra data within a page. Your design, your choice :) Re: SMS. I tried bulksms.com and it seemed really efficient, but I suppose an SMS service is best chosen depending on what

[web2py] Re: LOAD Component + Multiple Forms

2011-02-17 Thread Anthony
I haven't tried it, but here's my understanding: You can send a text message simply by sending an email -- the email address is of the form [mobile_number]@[provider-specific_email_server]. For example, if the mobile number is 123-456-7890 and the provider is Sprint, you can send an SMS

[web2py] Re: LOAD Component + Multiple Forms

2011-02-17 Thread Massimo Di Pierro
mail.send(to=sms_email(number,provider),subject='...',message='...') where number is the phone number and provide is the company the number corresponds to On Feb 17, 6:06 pm, puercoespin jzaragoza.puercoes...@gmail.com wrote: An exemple, please? My mobile phone, 123456789, what's the code for