[web2py] Re: Redirect to a URL with POST Method

2015-07-04 Thread Anthony
You could return a 307 redirect response, which would instruct the browser to re-post the data to the new URL, but the browser will then likely prompt the user to confirm they want to re-post the data. This will likely be confusing to the user, so should probably be avoided. If you just need th

[web2py] Re: Redirect to a URL with POST Method

2015-07-04 Thread Massimo Di Pierro
You can use this method suggested or PHP http://stackoverflow.com/questions/5576619/php-redirect-with-post-data On Saturday, 4 July 2015 06:45:24 UTC-5, Sepehr Mohamadi wrote: > > Hi Everybody, > > I want to redirect navigation to an outside URL with a POST Method. > > I should send payment info

[web2py] Re: prettydate ago is not translated

2015-07-04 Thread 黄祥
please check your languages file under languages/your_language.py. and translate it from there. 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

[web2py] scaffolding app and sematic

2015-07-04 Thread Massimo Di Pierro
Since we all agree we need to remove or upgrade the "examples" app, I propose we make a new examples app based on semantic + bootstrap theme and markmin.js instead of serverside markmin. So if anybody wants a scaffolding app with semantic instead of bootstrap, one can simply copy static and lay

[web2py] prettydate ago is not translated

2015-07-04 Thread icodk
Is there any reason why the 'ago' is not translate in prettydate (gluon/tools.py) ? *suffix = ' ago'* instead of: *suffix = '** T(" ago")* In Danish that will be translated to: 'siden' Also I can't find the other strings in my language file T('1 year' + suffix) T('1 month' + suffix) etc. I can

[web2py] Re: Form upload troubles when AJAX=True on component

2015-07-04 Thread Robert Porter
That's an answer, but not a solution. I think I found a workaround. Doing some final testing and will post again if I get a proper solution. Picture sharing is one of the fundamental pillars of the web. It's very disappointing that web2py doesn't have a definitive solution to this (after 3 d

Re: [web2py] Webfaction and SMTP

2015-07-04 Thread reddyreddy
Hi Iam uing the same settings as yours in db.py. But I got the following error. Error 10060: A connection attempt failed. I wrote the code to send email in script. ## in file /app/private/mail_queue.py import time while True: rows = db(db.queue.status=='pending').select() for row in ro

Re: [web2py] Re: date question

2015-07-04 Thread Chaitu P
Thanku I got the mistake I was doing. On Fri, Jul 3, 2015 at 1:03 PM, 黄祥 wrote: > i think you can use logical operator or > e.g. > rows = db((db.problem.Duedate == request.now + datetime.timedelta(days = > 1) ) | (db.problem.Duedate == request.now - datetime.timedelta(days = 1)) > ).select() > >

[web2py] Redirect to a URL with POST Method

2015-07-04 Thread Sepehr Mohamadi
Hi Everybody, I want to redirect navigation to an outside URL with a POST Method. I should send payment info to a payment gateway through a POST Method. Then payment gateway again callback to web2py with results. I searched everywhere in the Internet, Web2py Book and this forum, but could not

[web2py] sending email

2015-07-04 Thread reddyreddy
Hello, Can any one please help.? Iam trying to send gmail and got the below error. WARNING:web2py:Mail.send failure:[Errno 10109] getaddrinfo failed db.py: ## configure email from gluon.tools import Mail mail = Mail() mail = auth.settings.mailer mail.settings.server = 'smtp.webfaction.com:25'

[web2py] Re: Changing primary button color and removal of span - help block in web2py login form

2015-07-04 Thread Annet
Hi, To solve the first issue try: form.element(_type='submit').update(_value='Log in', _class='btn btn-gray') and in your stylesheet style .btn-gray With regard to your second issue, I added the following lines of code to the function def formstyle_bootstrap(form, fields): in gluon/sqlhtml beca