[web2py] facebook oauth support

2010-06-28 Thread mcm
Hi Massimo, hi All,

A first release of support for facebook authentication through
facebook OAuth service with Graph API
is available on the following git clone:

https://code.google.com/r/michelecomitini-facebookaccess/source/browse/gluon/contrib/login_methods/facebook_account.py
I put some instructions inside the code itself so please read the
code!

Usage requires the facebook Graph API  supporiting module (also called
python-sdk) available here:
http://github.com/facebook/python-sdk.  The only required file is
facebook.py.

I advise you that code is still immature, but I hope you can find it
usable.

tnx
michele


[web2py] facebook oauth test on GAE

2010-06-30 Thread mcm
Hi,

You can test the facebook OAuth code on GAE:


http://grafbook.appspot.com/helloFacebook


Code of application will be available soon after some cleanup!


tnx
michele


[web2py] helloFacebook application

2010-07-01 Thread mcm
Hi,

As promised you can download it from here:

https://code.google.com/r/michelecomitini-facebookaccess/source/browse/w2p-files/web2py.app.helloFacebook.w2p

You have to do 2 things:

1) subscribe for a facebook application on developers.facebook.com and
get the 2 codes to use in models/db.py
2) download 
https://code.google.com/r/michelecomitini-facebookaccess/source/browse/gluon/contrib/login_methods/facebook_account.py
and place the file under:
 gluon/contrib/login_methods

inside the root of your web2py installation.

You need to restart web2py.

tnx
michele



[web2py] web2py/facebook example appliance

2010-08-04 Thread mcm
I updated info at the following url:

http://wiki.developers.facebook.com/index.php/User:Python#web2py



[web2py] Re: Howto: Postgres Database Transfer. Solved.

2015-12-23 Thread mcm
Remember to take  the fake_migrate_all=True away once you have you database 
metadata in databases/ dir in place and the app is accessing all the tables.
You need it only when you make the first request.

Il giorno lunedì 21 dicembre 2015 01:25:47 UTC+1, Ben Lawrence ha scritto:
>
>
> HI,
> This is not a question, but just some information for any one with not 
> much experience in postgres (like me).
>
> Problem:
> Dump database from postgresql on one server and restore it on another.
>
> Solution:
> Assuming your appconfig.ini is
> uri   = postgres://web2py:password@localhost:5432/databasename
> migrate   = 1
> pool_size = 1
> then export in your terminal, type
> sudo pg_dump databasename -U web2py -h localhost > database.sql
> I used git to transfer this file to the new server.
> On the new server, first create empty database:
> sudo -u postgres psql postgres
> postgres=# create user web2py with password ‘password’;
> CREATE ROLE
> postgres=# create database databasename;
> CREATE DATABASE
> postgres=# grant all privileges on database databasename to web2py;
> GRANT
> postgres=# \q
> next, import database into postgresql, type this in your terminal:
> sudo psql -U web2py -h localhost -d databasename < database.sql
> Now, before you do anything, make sure that in web2py’s db.py you have:
>  db = DAL(myconf.take('db.uri'), pool_size=myconf.take('db.pool_size', 
> cast=int), check_reserved=['all'],fake_migrate_all=True)  # 
> fake_migrate_all=True is the important bit
> Also, in your appconfig.ini it is the same as above. 
> I got some warnings about "public" during the import, but I ignored them.
>
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Get a Web2py cloud instance in less than 30 seconds

2015-03-03 Thread mcm
+1

thank you terminal.com!

Il giorno lunedì 2 marzo 2015 22:14:51 UTC+1, Massimo Di Pierro ha scritto:
>
> from Enrique @ terminal.com:
>
> We were playing a little bit with web2py and we think it's a really good 
>> product, so we decided create a new snapshot with web2py and add it to our 
>> app store. 
>> In short, that means that you can start our own fully-functional web2py 
>> cloud instance in less than 30 seconds and you can try it for free!
>>
>> This is the link to the web2py snap: 
>> https://www.terminal.com/tiny/WELxJg3288
>>
>>
>>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Docker

2017-02-02 Thread mcm
Nice! I will try to test it on AWS when time permits.

Il giorno giovedì 2 febbraio 2017 08:58:54 UTC+1, Michael M ha scritto:
>
> Hello all, I put together a docker build:
>
> https://github.com/preactive/web2py-docker-centos7-nginx-uwsgi
>
> I tested it out on a CentOS7 Azure docker host image. Worked.
>
> Just FYI.  ;-)
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: japronto

2017-02-02 Thread mcm

I agree nice and could be useful in speedy services and we should see if it 
can be used in front of web2py.

But it is more important for the long term that we start to think about 
leveraging HTTP/2 soon

Il giorno mercoledì 1 febbraio 2017 16:23:46 UTC+1, Anthony ha scritto:
>
> On Wednesday, February 1, 2017 at 4:54:31 AM UTC-5, Massimo Di Pierro 
> wrote:
>>
>> I just discovered this:
>>
>> https://github.com/squeaky-pl/japronto
>>
>> I am impressed. I like the speed and the semantics.
>>
>
> Seems interesting, though the benchmarks seem a bit contrived. It does so 
> well because it uses HTTP pipelining with a workload designed to get 
> maximum benefit from pipelining (24 identical and fast pipelined requests 
> requiring no work in Python). Since most browsers do not support HTTP 
> pipelining by default, and most workloads would not benefit so much from 
> pipelining, this has little real world value. On the other hand, it does *not 
> *support HTTP/2 with request multiplexing, which *is *supported by most 
> browsers and would likely have real benefits for more typical workloads.
>
> Regarding the API, how do you think it compares with Sanic 
>  (also based on uvloop 
> and allowing async handlers)?
>
> Anthony
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Cockroach DB

2017-04-11 Thread mcm
This seems a real bargain (postgresql dialect and protocol).

https://www.cockroachlabs.com/

Sorry for the others... ;-)


-- 
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.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: My son made a new web2py logo

2015-06-04 Thread mcm
Massimo,
The logo is great given that is the work of a 9yrs old kid!
And I like the Pi:   reminds me of TeX (see: 
http://www.ntg.nl/maps/05/34.pdf). 




Being *e* the Euler's Number of course.

About global revamp here are my proposed candidates:
1. polymer 
2. semantic-ui 

mic

Il giorno lunedì 1 giugno 2015 20:06:16 UTC+2, Massimo Di Pierro ha scritto:
>
> Time to revamp the web site?
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.