[web2py] is_list_of validator question

2014-11-12 Thread Manuele Pesenti
Does it makes sense or do you agree with this behaviour? In [5]: IS_LIST_OF(IS_NOT_EMPTY())('') Out[5]: ([], None) In [6]: IS_LIST_OF(IS_NOT_EMPTY())(None) Out[6]: ([None], 'Enter a value') In [7]: IS_NOT_EMPTY()('') Out[7]: ('', 'Enter a value') I mean... I expected that the first result would

[web2py] send mail error

2014-11-12 Thread Yebach
Hello I am getting this error on my local Windows machine where I run my web2py server web2py:Mail.send failure:[Errno 10061] No connection could be made because the target machine actively refused it Any suggestions? Thank you -- Resources: - http://web2py.com - http://web2py.com/book (D

Re: [web2py] How to automatically send emails to users if they perform an action like sign up...

2014-11-12 Thread Yebach
My login settings such as auth.settings.registration_requires_verification = True auth.settings.registration_requires_approval = False auth.settings.reset_password_requires_verification = True are not working Any idea why? On Monday, January 21, 2013 2:26:31 PM UTC+1, rochacbruno wrote: > > >

[web2py] Re: Web2py on Pythonanywhere

2014-11-12 Thread Giles Thomas
On Tuesday, November 11, 2014 2:37:42 PM UTC, clara wrote: > > Thanks for this reply! So there was somthing on Pythonanywhere's side that > forced https rather than http > Exactly. It only did it if you had visited your site using HTTPS once from that browser, which is why you saw the probl

[web2py] Re: send mail error

2014-11-12 Thread Leonel Câmara
Well the error is pretty explicit. You configured you mail settings wrong and you're probably connecting to a machine that isn't even running a mailserver. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.g

Re: [web2py] Re: send mail error

2014-11-12 Thread Vid Ogris
Yeah I solved the problem with correcting the settings. But another app of my does not even send mail, no error is reported also all setings about registration have no effect auth.settings.registration_requires_verification = True auth.settings.registration_requires_approval = False auth.settings

[web2py] Re: send mail error

2014-11-12 Thread Leonel Câmara
That should work: auth.settings.registration_requires_verification = True auth.settings.registration_requires_approval = False auth.settings.reset_password_requires_verification = True However, you probably want to add this if you don't want them to login at all until verified auth.settings.log

Re: [web2py] Re: send mail error

2014-11-12 Thread Vid Ogris
This is my db.py file. It is nothing special. # -*- coding: utf-8 -*- ## if SSL/HTTPS is properly configured and you want all HTTP requests to ## be redirected to HTTPS, uncomment the line below: # request.requires_https() if not request.env.web2py_runtime_gae: ## if NOT running on Google Ap

[web2py] Re: Sending email from server

2014-11-12 Thread Yang
Hello Leonel, thank you for your reply. Then how could I find the reason for the failure? I tried the way you suggested in this page: https://groups.google.com/forum/#!searchin/web2py/mail.settings.hostname/web2py/pZT38v_s5OI/9Og3cQefLkkJ. However, the code "server = smtplib.SMTP('mydomain', 2

[web2py] Re: send mail error

2014-11-12 Thread Leonel Câmara
Yes it is because of your register controller. You're not using the auth provided one which does send the emails. If you want to change the fields that appear in the default register form you can just use auth.settings.register_fields. You can use auth.settings.register_onvalidation to insert t

Re: [web2py] Re: send mail error

2014-11-12 Thread Vid Ogris
For organisation field I would like to make it a drop down or insert new one. Your suggestion? Oh and thank you so very much. I have been struggling with this for a couple of days now 2014-11-12 15:10 GMT+01:00 Leonel Câmara : > Yes it is because of your register controller. You're not using the

Re: [web2py] Re: Is Web2py ill-suited for apps that heavily interact with other services?

2014-11-12 Thread Anthony
The "Background" section near the end of this post explains the general issue with unit tests. The rest of the post describes one possible approach, which is to use web2py to create the standard environment but change the way unit tests are executed

[web2py] Re: Sending email from server

2014-11-12 Thread Leonel Câmara
Can you? telnet mydomain 25 Does it connect? -- 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

[web2py] Re: pythonanywhere

2014-11-12 Thread Niphlod
I'd go for "use another CDN". to my knowledge, pthonanywhere serves http AND https, with no restrictions On Tuesday, November 11, 2014 10:57:46 AM UTC+1, clara wrote: > > Hello Dave. > > No, these CDNs are outside the hosting domain and hence are not fetched by > my site if served as https. > >

[web2py] Re: send mail error

2014-11-12 Thread Leonel Câmara
I would use the autocomplete widget. If you really want a text input and a combo box I would probably do a custom widget. Here's a full example using the autocomplete widget, this solution uses the welcome app with this added to db.py before auth.define_tables(username=False, signature=False) d

[web2py] upload a file with just a post request

2014-11-12 Thread António Ramos
is it possible to just use a post request to upload a file to my web2py app? I have a situation where i need to receive a file from a cloud service to my app Regards António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] Re: upload a file with just a post request

2014-11-12 Thread Leonel Câmara
Yes, yes it is. That's what forms do anyway. In fact you can use SQLFORM to do this if you want. Here's an example solution not using forms, say your file goes in var upload def post_file(): """ Controller to post files """ if 'upload' in request.vars: db.myfile.insert(name=reque

Re: [web2py] Re: upload a file with just a post request

2014-11-12 Thread António Ramos
Done! Thank u 2014-11-12 17:54 GMT+00:00 Leonel Câmara : > Yes, yes it is. That's what forms do anyway. In fact you can use SQLFORM > to do this if you want. > > Here's an example solution not using forms, say your file goes in var > upload > > def post_file(): > """ Controller to post files

[web2py] Re: Sending email from server

2014-11-12 Thread Yang
Tried but telnet is not installed should I ask my administrator to install it? -- 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 mess

[web2py] Re: Sending email from server

2014-11-12 Thread Leonel Câmara
Well it would be easier to test stuff if you had telnet yes. You just need the telnet client so it's not much of a security risk. If you have an admin, however, you can just ask him to do his job and tell you what are the correct settings for you app to be able to send emails since these don't

Re: [web2py] How to automatically send emails to users if they perform an action like sign up...

2014-11-12 Thread Dave S
On Wednesday, November 12, 2014 1:41:55 AM UTC-8, Yebach wrote: > > My login settings such as > > auth.settings.registration_requires_verification = True > auth.settings.registration_requires_approval = False > auth.settings.reset_password_requires_verification = True > > > are not working > > A

Re: [web2py] How to automatically send emails to users if they perform an action like sign up...

2014-11-12 Thread Dave S
On Wednesday, November 12, 2014 2:25:49 PM UTC-8, Dave S wrote: > > > > On Wednesday, November 12, 2014 1:41:55 AM UTC-8, Yebach wrote: >> >> My login settings such as >> >> auth.settings.registration_requires_verification = True >> auth.settings.registration_requires_approval = False >> auth.se

[web2py] web2py deployment: Apache, Nginx and Plesk Panel

2014-11-12 Thread lesssugar
Does anyone have experience with setting up web2py with Plesk Panel preinstalled on the server? I'm using a VPS with one IP. Initially I wanted to setup Nginx with uWSGI, however Plesk won't work in this configuration (it needs Apache). Apache service could be stopped permanently and web2py wi

Re: [web2py] Re: Controller to do SOAP to an action-less service, how to generate the (xml) nodes

2014-11-12 Thread Dave S
On Friday, September 26, 2014 3:43:29 PM UTC-7, Dave S wrote: > > > > On Friday, September 26, 2014 1:49:18 PM UTC-7, Mariano Reingart wrote: >> >> "Raw" calls are supported (using SimpleXMLElement objects), attached is >> an example >> > > Thank you! I'll let you know how it goes. > > You'd t

Re: [web2py] Re: Controller to do SOAP to an action-less service, how to generate the (xml) nodes

2014-11-12 Thread Dave S
On Wednesday, November 12, 2014 4:58:53 PM UTC-8, Dave S wrote: > > > > On Friday, September 26, 2014 3:43:29 PM UTC-7, Dave S wrote: >> >> >> >> On Friday, September 26, 2014 1:49:18 PM UTC-7, Mariano Reingart wrote: >>> >>> "Raw" calls are supported (using SimpleXMLElement objects), attached is

Re: [web2py] Re: Is Web2py ill-suited for apps that heavily interact with other services?

2014-11-12 Thread joseph simpson
Thanks for the clear and complete reply.. Have fun.. On Wed, Nov 12, 2014 at 6:47 AM, Anthony wrote: > The "Background" section near the end of this post > explains the general issue > with unit tests. The rest of the post describes one possible app

Re: [web2py] Re: send mail error

2014-11-12 Thread Vid Ogris
Where do I put the def add_ogranization(form) function? In my user.py controler? 2014-11-12 16:58 GMT+01:00 Leonel Câmara : > I would use the autocomplete widget. If you really want a text input and a > combo box I would probably do a custom widget. Here's a full example using > the autocomplete