[web2py] Re: Sending smses via my web2py

2020-08-05 Thread Massimo Di Pierro
Nice. will integrate with py4web. :-)


On Wednesday, 5 August 2020 16:01:18 UTC-7, Jacinto Parga wrote:
>
> I use https://www.messagebird.com/
> It has a well documented api and works well with web2py
> El miércoles, 5 de agosto de 2020 a las 20:58:51 UTC+2, Massimo Di Pierro 
> escribió:
>
>> That list of service providers is very old. I sugget you use twilio
>>
>>
>> On Wednesday, 5 August 2020 02:14:11 UTC-7, mostwanted wrote:
>>>
>>>
>>> I am failing to send smses with my app following the book example (
>>> http://www.web2py.com/books/default/chapter/29/08/emails-and-sms#Emails-and-SMS)
>>>  
>>> which i felt was straight forward, is there something extra must include in 
>>> my controller code?
>>>
>>> *MY CODE*
>>> def send_sms():
>>> from gluon.contrib.sms_utils import SMSCODES, sms_email
>>> email = sms_email('+000 (00) 000-000','Orange')
>>> mail.send(to=email, subject='sms test', message='testing testing 
>>> 123')
>>>
>>> Regards
>>>
>>> Mostwanted
>>>
>>

-- 
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 Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/5c8f8e5c-9096-4194-aba0-785c8bf07b12o%40googlegroups.com.


[web2py] Re: Sending smses via my web2py

2020-08-05 Thread Jacinto Parga
I use https://www.messagebird.com/
It has a well documented api and works well with web2py
El miércoles, 5 de agosto de 2020 a las 20:58:51 UTC+2, Massimo Di Pierro 
escribió:

> That list of service providers is very old. I sugget you use twilio
>
>
> On Wednesday, 5 August 2020 02:14:11 UTC-7, mostwanted wrote:
>>
>>
>> I am failing to send smses with my app following the book example (
>> http://www.web2py.com/books/default/chapter/29/08/emails-and-sms#Emails-and-SMS)
>>  
>> which i felt was straight forward, is there something extra must include in 
>> my controller code?
>>
>> *MY CODE*
>> def send_sms():
>> from gluon.contrib.sms_utils import SMSCODES, sms_email
>> email = sms_email('+000 (00) 000-000','Orange')
>> mail.send(to=email, subject='sms test', message='testing testing 123'
>> )
>>
>> Regards
>>
>> Mostwanted
>>
>

-- 
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 Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/f0324d71-58c7-4bac-91b3-96b77932bc0cn%40googlegroups.com.


Re: [web2py] Re: WAF2PY 1.0

2020-08-05 Thread Massimo Di Pierro
py4web apps are not required to use vue. The auth page currently uses vue 
and some of the examples do but we are rolling out a new version of Auth 
that does not.  

On Wednesday, 5 August 2020 12:32:33 UTC-7, Christian Varas wrote:
>
> I will port it to py4web :), is the next step.
>
> I have a custom py4web app (non vuejs) managing sensors and gpio (relés) 
> in a raspberry pi, so I am already familiar with it :). Py4web is so fast 
> and good!
>
> Cheers.
> Chris,
>
> El mié., 5 ago. 2020 a las 13:12, Massimo Di Pierro (<
> massimo.dipie...@gmail.com>) escribió:
>
>> Fantastic! we need to port this to py4web. ;-)
>>
>>
>> On Monday, 3 August 2020 15:53:22 UTC-7, Christian Varas wrote:
>>>
>>> Thank you.
>>>
>>> I just tested on Debian 10, but it should work for any other OS as long 
>>> the dependencies are met.
>>> The line “apt-get install **dependencies**” I’m the installation file 
>>> needs to adjusted for a non Debian based system.
>>>
>>> Cheers.
>>> Chris.
>>>
>>>
>>> El El lun, 3 de ago. de 2020 a la(s) 18:28, mostwanted <
>>> godirao...@gmail.com> escribió:
>>>
 Complements Chris, this is really impressive work. I see you have 
 tested on debian is it platform specific or will it run on any OS?

 On Monday, August 3, 2020 at 8:25:23 AM UTC+2, Christian Varas wrote:
>
> Hello all. 
> I'm glad to announce  WAF2PY 1.0 
>
> *What is this?*
>
> WAF2PY is a Web Application Firewall using NGINX and ModSecurity. 
> WAF2PY provides a nice and easy to use web interface *powered by* 
> *WEB2PY* that controls modsecurity and nginx configuration in an easy 
> way, allowing you to configure protection for any web application in just 
> minutes.
>
>
>
> *Features*
>
>- Protect a site in just minutes
>- Create global or local exclusions for any rule
>- Add virtual interfaces
>- Create static routes for the desired app
>- Analyze debug, access, error and audit logs
>- Download logs
>- Check the stats for every application
>- Disable/Enable protection with just 1 click
>- Enable/Disable rules
>- Modify rules
>- Restrict paths or files
>- Insert headers
>- Start/Stop/Reload/Check Syntax of NGINX
>- CAPTCHA on login (Google Recaptcha2)
>- Two-step Login Authentication (Email code)
>- Written on Python3
>
>
> *Images*
>
> https://photos.app.goo.gl/kXrsQTPPMuAXi8Tr5
>
> *Download*
>
> You can download WAF2PY from github:
>  https://github.com/ITSec-Chile/Waf2Py 
> 
>
> *About this bundle*
>
> Tested in Debian 10 (No docker).
>
> *Components for this build:*
>
>- Waf2Py 1.0 App
>- Web2Py 2.20.2
>- Nginx version: openresty 1.17.6.2
>- ModSecurity v3 - libmodsecurity3
>- Modsecurity Nginx connector OWASP ModSecurity Core Rule Set 
>(CRS) 3.3
>
>
>
> I know this can be off topic in this list, but web2py users may want 
> to have a look at it :)
>
>  
> Cheers.
> Chris.
>
 -- 
 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 Google 
 Groups "web2py-users" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to web2py+unsubscr...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/web2py/f7e4baa1-487f-4793-9d31-2c675609e893o%40googlegroups.com
  
 
 .

>>> -- 
>> 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 Google Groups 
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to web2py+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/7308fb83-3cca-45aa-9181-7d522aac7d85o%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 Google 

Re: [web2py] Re: WAF2PY 1.0

2020-08-05 Thread Christian Varas
I will port it to py4web :), is the next step.

I have a custom py4web app (non vuejs) managing sensors and gpio (relés) in
a raspberry pi, so I am already familiar with it :). Py4web is so fast and
good!

Cheers.
Chris,

El mié., 5 ago. 2020 a las 13:12, Massimo Di Pierro (<
massimo.dipie...@gmail.com>) escribió:

> Fantastic! we need to port this to py4web. ;-)
>
>
> On Monday, 3 August 2020 15:53:22 UTC-7, Christian Varas wrote:
>>
>> Thank you.
>>
>> I just tested on Debian 10, but it should work for any other OS as long
>> the dependencies are met.
>> The line “apt-get install **dependencies**” I’m the installation file
>> needs to adjusted for a non Debian based system.
>>
>> Cheers.
>> Chris.
>>
>>
>> El El lun, 3 de ago. de 2020 a la(s) 18:28, mostwanted <
>> godirao...@gmail.com> escribió:
>>
>>> Complements Chris, this is really impressive work. I see you have tested
>>> on debian is it platform specific or will it run on any OS?
>>>
>>> On Monday, August 3, 2020 at 8:25:23 AM UTC+2, Christian Varas wrote:

 Hello all.
 I'm glad to announce  WAF2PY 1.0 

 *What is this?*

 WAF2PY is a Web Application Firewall using NGINX and ModSecurity.
 WAF2PY provides a nice and easy to use web interface *powered by*
 *WEB2PY* that controls modsecurity and nginx configuration in an easy
 way, allowing you to configure protection for any web application in just
 minutes.



 *Features*

- Protect a site in just minutes
- Create global or local exclusions for any rule
- Add virtual interfaces
- Create static routes for the desired app
- Analyze debug, access, error and audit logs
- Download logs
- Check the stats for every application
- Disable/Enable protection with just 1 click
- Enable/Disable rules
- Modify rules
- Restrict paths or files
- Insert headers
- Start/Stop/Reload/Check Syntax of NGINX
- CAPTCHA on login (Google Recaptcha2)
- Two-step Login Authentication (Email code)
- Written on Python3


 *Images*

 https://photos.app.goo.gl/kXrsQTPPMuAXi8Tr5

 *Download*

 You can download WAF2PY from github:
  https://github.com/ITSec-Chile/Waf2Py
 

 *About this bundle*

 Tested in Debian 10 (No docker).

 *Components for this build:*

- Waf2Py 1.0 App
- Web2Py 2.20.2
- Nginx version: openresty 1.17.6.2
- ModSecurity v3 - libmodsecurity3
- Modsecurity Nginx connector OWASP ModSecurity Core Rule Set (CRS)
3.3



 I know this can be off topic in this list, but web2py users may want to
 have a look at it :)


 Cheers.
 Chris.

>>> --
>>> 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 Google
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to web2py+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/web2py/f7e4baa1-487f-4793-9d31-2c675609e893o%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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 Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/7308fb83-3cca-45aa-9181-7d522aac7d85o%40googlegroups.com
> 
> .
>

-- 
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 Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CA%2Bs%2BuJt-RYNDPnK0NLLfAwaHE_jo35wwrUeio5DMPsU_%3DmsEbg%40mail.gmail.com.


[web2py] Re: Sending smses via my web2py

2020-08-05 Thread Massimo Di Pierro
That list of service providers is very old. I sugget you use twilio

On Wednesday, 5 August 2020 02:14:11 UTC-7, mostwanted wrote:
>
>
> I am failing to send smses with my app following the book example (
> http://www.web2py.com/books/default/chapter/29/08/emails-and-sms#Emails-and-SMS)
>  
> which i felt was straight forward, is there something extra must include in 
> my controller code?
>
> *MY CODE*
> def send_sms():
> from gluon.contrib.sms_utils import SMSCODES, sms_email
> email = sms_email('+000 (00) 000-000','Orange')
> mail.send(to=email, subject='sms test', message='testing testing 123')
>
> Regards
>
> Mostwanted
>

-- 
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 Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/24c96420-fb2e-4264-a975-32d289ce8ca6o%40googlegroups.com.


[web2py] Important about py4web

2020-08-05 Thread Massimo Di Pierro
There has been a lot of progress in py4web. 

Aside for the fact that it is faster and leaner than web2py it has the 
following features:
- simple pip install
- uses same pydal syntax as web2py
- uses same templates as web2py
- has Form, Grid, Auth, Flash, T, Cache, Dashboard & Tickets (need more 
work but all usable)
- out of the box support for SSO/OAuth2 including Google and Okta.

The pace of development of py4wb is much higher than web2py at this time.
We will continue maintain both and there is a fair amount of overlap.
Maybe some of the new py4web features can also be backported to web2py.

There are only 126 members in the google group, compared to 7900 here. You 
do not want to miss the boat.

https://groups.google.com/forum/#!forum/py4web

Massimo

-- 
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 Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/6ece66e3-7f62-4112-8238-4e1f7072b453o%40googlegroups.com.


Re: [web2py] Re: WAF2PY 1.0

2020-08-05 Thread Massimo Di Pierro
Fantastic! we need to port this to py4web. ;-)


On Monday, 3 August 2020 15:53:22 UTC-7, Christian Varas wrote:
>
> Thank you.
>
> I just tested on Debian 10, but it should work for any other OS as long 
> the dependencies are met.
> The line “apt-get install **dependencies**” I’m the installation file 
> needs to adjusted for a non Debian based system.
>
> Cheers.
> Chris.
>
>
> El El lun, 3 de ago. de 2020 a la(s) 18:28, mostwanted <
> godirao...@gmail.com> escribió:
>
>> Complements Chris, this is really impressive work. I see you have tested 
>> on debian is it platform specific or will it run on any OS?
>>
>> On Monday, August 3, 2020 at 8:25:23 AM UTC+2, Christian Varas wrote:
>>>
>>> Hello all. 
>>> I'm glad to announce  WAF2PY 1.0 
>>>
>>> *What is this?*
>>>
>>> WAF2PY is a Web Application Firewall using NGINX and ModSecurity. WAF2PY 
>>> provides a nice and easy to use web interface *powered by* *WEB2PY* that 
>>> controls modsecurity and nginx configuration in an easy way, allowing you 
>>> to configure protection for any web application in just minutes.
>>>
>>>
>>>
>>> *Features*
>>>
>>>- Protect a site in just minutes
>>>- Create global or local exclusions for any rule
>>>- Add virtual interfaces
>>>- Create static routes for the desired app
>>>- Analyze debug, access, error and audit logs
>>>- Download logs
>>>- Check the stats for every application
>>>- Disable/Enable protection with just 1 click
>>>- Enable/Disable rules
>>>- Modify rules
>>>- Restrict paths or files
>>>- Insert headers
>>>- Start/Stop/Reload/Check Syntax of NGINX
>>>- CAPTCHA on login (Google Recaptcha2)
>>>- Two-step Login Authentication (Email code)
>>>- Written on Python3
>>>
>>>
>>> *Images*
>>>
>>> https://photos.app.goo.gl/kXrsQTPPMuAXi8Tr5
>>>
>>> *Download*
>>>
>>> You can download WAF2PY from github:
>>>  https://github.com/ITSec-Chile/Waf2Py 
>>> 
>>>
>>> *About this bundle*
>>>
>>> Tested in Debian 10 (No docker).
>>>
>>> *Components for this build:*
>>>
>>>- Waf2Py 1.0 App
>>>- Web2Py 2.20.2
>>>- Nginx version: openresty 1.17.6.2
>>>- ModSecurity v3 - libmodsecurity3
>>>- Modsecurity Nginx connector OWASP ModSecurity Core Rule Set (CRS) 
>>>3.3
>>>
>>>
>>>
>>> I know this can be off topic in this list, but web2py users may want to 
>>> have a look at it :)
>>>
>>>  
>>> Cheers.
>>> Chris.
>>>
>> -- 
>> 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 Google Groups 
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to web2py+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/f7e4baa1-487f-4793-9d31-2c675609e893o%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/7308fb83-3cca-45aa-9181-7d522aac7d85o%40googlegroups.com.


Re: [web2py] Sending smses via my web2py

2020-08-05 Thread Jirawat Kusolpreedee
Have you asked your service provider ? Do they provide this kind of service?

*A better way is to use the phone companies themselves to relay the SMS.
Each phone company has an email address uniquely associated with every
cell-phone number, so SMS messages can be sent as emails to the phone
number.  *

On Wed, Aug 5, 2020 at 4:14 PM mostwanted  wrote:

>
> I am failing to send smses with my app following the book example (
> http://www.web2py.com/books/default/chapter/29/08/emails-and-sms#Emails-and-SMS)
> which i felt was straight forward, is there something extra must include in
> my controller code?
>
> *MY CODE*
> def send_sms():
> from gluon.contrib.sms_utils import SMSCODES, sms_email
> email = sms_email('+000 (00) 000-000','Orange')
> mail.send(to=email, subject='sms test', message='testing testing 123')
>
> Regards
>
> Mostwanted
>
> --
> 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 Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/7cc0553d-ffef-49fe-bfaf-4b85a2bdba18o%40googlegroups.com
> 
> .
>


-- 
โทร 086-187-5643

-- 
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 Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAFLP1QE%2BSgGtjo-L2KFjgrC6Z%2BU46X_7sQ%2BptQDrqC_S_duC4Q%40mail.gmail.com.


[web2py] Sending smses via my web2py

2020-08-05 Thread mostwanted

I am failing to send smses with my app following the book example (
http://www.web2py.com/books/default/chapter/29/08/emails-and-sms#Emails-and-SMS)
 
which i felt was straight forward, is there something extra must include in 
my controller code?

*MY CODE*
def send_sms():
from gluon.contrib.sms_utils import SMSCODES, sms_email
email = sms_email('+000 (00) 000-000','Orange')
mail.send(to=email, subject='sms test', message='testing testing 123')

Regards

Mostwanted

-- 
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 Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/7cc0553d-ffef-49fe-bfaf-4b85a2bdba18o%40googlegroups.com.