[web2py] Re: Dear all : any sir can use web2py's openid auth

2016-01-05 Thread Dave S
On Saturday, January 2, 2016 at 5:12:31 AM UTC-8, 湖南老師 wrote:
>
> Dear all : 
>   any sir can use web2py's openid auth  
>   I try many times,but fail.
>

Can you show us some sample code of one of the ways you've tried?

/dps
 

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


Re: [web2py] how to get old version

2016-01-05 Thread Richard Vézina
As I said, DAL was included into web2py before it was put aside in another
repository which now need to be retrieve with git clone recursive command
as explained on the landing page...

For the older version, DAL should be included so you shouldn't need clone
--recursive, the only thing you need to do is to select the proper tag
version, then download or clone it then checkout to the proper tagged
version...

Richard

On Tue, Jan 5, 2016 at 10:51 AM, Yoel Benitez Fonseca 
wrote:

> ¿clone recursive? ummm.. and what happen if i want on old version for
> windows ? there is not an FTP or so out there with the old versions !?
>
> 2016-01-05 10:40 GMT-05:00, Richard Vézina :
> > clone recursive... it explained... depend if you need previous pyDAL
> > version or not, you shouldn't need clone recursive for previous pyDAL
> > version...
> >
> > Richard
> >
> > On Tue, Jan 5, 2016 at 9:38 AM, Yoel Benitez Fonseca <
> ybenit...@gmail.com>
> > wrote:
> >
> >> but on github u don't get the submodules
> >>
> >> 2016-01-04 11:29 GMT-05:00, Richard Vézina  >:
> >> > Github!
> >> >
> >> > Richard
> >> >
> >> > On Mon, Jan 4, 2016 at 11:23 AM, Yoel Benitez Fonseca <
> >> ybenit...@gmail.com>
> >> > wrote:
> >> >
> >> >> h!, how can i get the old versions of web2py, on
> >> >> http://web2py.com/init/default/download u can only get the latest
> but
> >> >> i want one concrete version.
> >> >>
> >> >> --
> >> >> Yoel Benítez Fonseca
> >> >> http://redevil.cubava.cu/
> >> >> $ python -c "import this"
> >> >>
> >> >> --
> >> >> 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.
> >> >>
> >> >
> >> > --
> >> > 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.
> >> >
> >>
> >>
> >> --
> >> Yoel Benítez Fonseca
> >> http://redevil.cubava.cu/
> >> $ python -c "import this"
> >>
> >> --
> >> 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.
> >>
> >
> > --
> > 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.
> >
>
>
> --
> Yoel Benítez Fonseca
> http://redevil.cubava.cu/
> $ python -c "import this"
>
> --
> 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.
>

-- 
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] web2py version reported in the admin interface does not match the git tag?

2016-01-05 Thread Krzysztof Socha
I have been playing with git repo for web2py, and I find it very useful. 
Especially the tags - you can easily move from the current master (trunk) 
to a specific stable release... or so it seems.

I noticed that the tag do not seem to match the version numbers reported in 
the admin panel for some reason... Some examples:

R-2.13.4 -> 2.13.3-stable+timestamp.2015.12.24.08.08.22
R-2.13.3 -> 2.13.3-stable+timestamp.2015.12.24.08.08.22
R-2.13.2 -> 2.12.3-stable+timestamp.2015.08.18.19.14.07
R-2.13.1 -> 2.12.3-stable+timestamp.2015.08.18.19.14.07
R-2.12.3 -> 2.12.3-stable+timestamp.2015.08.18.19.14.07

It seems that the version information is not always updated when a new tag 
is created... Maybe this could be automated somehow, because as it is it 
always makes me wonder, if I checked out the right tag... 

Krzysztof.

-- 
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: how to get old version

2016-01-05 Thread Anthony
Not sure how far back they go, but you can go to:

http://www.web2py.com/examples/static/x.x.x/web2py_[platform].zip

where x.x.x is the version and [platform] is "win", "osx", or "src".

Anthony

On Monday, January 4, 2016 at 11:24:02 AM UTC-5, Yoel Benitez Fonseca wrote:
>
> h!, how can i get the old versions of web2py, on 
> http://web2py.com/init/default/download u can only get the latest but 
> i want one concrete version. 
>
> -- 
> Yoel Benítez Fonseca 
> http://redevil.cubava.cu/ 
> $ python -c "import this" 
>

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


Re: [web2py] how to get old version

2016-01-05 Thread Yoel Benitez Fonseca
¿clone recursive? ummm.. and what happen if i want on old version for
windows ? there is not an FTP or so out there with the old versions !?

2016-01-05 10:40 GMT-05:00, Richard Vézina :
> clone recursive... it explained... depend if you need previous pyDAL
> version or not, you shouldn't need clone recursive for previous pyDAL
> version...
>
> Richard
>
> On Tue, Jan 5, 2016 at 9:38 AM, Yoel Benitez Fonseca 
> wrote:
>
>> but on github u don't get the submodules
>>
>> 2016-01-04 11:29 GMT-05:00, Richard Vézina :
>> > Github!
>> >
>> > Richard
>> >
>> > On Mon, Jan 4, 2016 at 11:23 AM, Yoel Benitez Fonseca <
>> ybenit...@gmail.com>
>> > wrote:
>> >
>> >> h!, how can i get the old versions of web2py, on
>> >> http://web2py.com/init/default/download u can only get the latest but
>> >> i want one concrete version.
>> >>
>> >> --
>> >> Yoel Benítez Fonseca
>> >> http://redevil.cubava.cu/
>> >> $ python -c "import this"
>> >>
>> >> --
>> >> 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.
>> >>
>> >
>> > --
>> > 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.
>> >
>>
>>
>> --
>> Yoel Benítez Fonseca
>> http://redevil.cubava.cu/
>> $ python -c "import this"
>>
>> --
>> 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.
>>
>
> --
> 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.
>


-- 
Yoel Benítez Fonseca
http://redevil.cubava.cu/
$ python -c "import this"

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


Re: [web2py] Re: how to get old version

2016-01-05 Thread Yoel Benitez Fonseca
thanks anthony

2016-01-05 12:36 GMT-05:00, Anthony :
> Not sure how far back they go, but you can go to:
>
> http://www.web2py.com/examples/static/x.x.x/web2py_[platform].zip
>
> where x.x.x is the version and [platform] is "win", "osx", or "src".
>
> Anthony
>
> On Monday, January 4, 2016 at 11:24:02 AM UTC-5, Yoel Benitez Fonseca
> wrote:
>>
>> h!, how can i get the old versions of web2py, on
>> http://web2py.com/init/default/download u can only get the latest but
>> i want one concrete version.
>>
>> --
>> Yoel Benítez Fonseca
>> http://redevil.cubava.cu/
>> $ python -c "import this"
>>
>
> --
> 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.
>


-- 
Yoel Benítez Fonseca
http://redevil.cubava.cu/
$ python -c "import this"

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


Re: [web2py] how to get old version

2016-01-05 Thread Yoel Benitez Fonseca
but on github u don't get the submodules

2016-01-04 11:29 GMT-05:00, Richard Vézina :
> Github!
>
> Richard
>
> On Mon, Jan 4, 2016 at 11:23 AM, Yoel Benitez Fonseca 
> wrote:
>
>> h!, how can i get the old versions of web2py, on
>> http://web2py.com/init/default/download u can only get the latest but
>> i want one concrete version.
>>
>> --
>> Yoel Benítez Fonseca
>> http://redevil.cubava.cu/
>> $ python -c "import this"
>>
>> --
>> 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.
>>
>
> --
> 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.
>


-- 
Yoel Benítez Fonseca
http://redevil.cubava.cu/
$ python -c "import this"

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


Re: [web2py] how to get old version

2016-01-05 Thread Richard Vézina
clone recursive... it explained... depend if you need previous pyDAL
version or not, you shouldn't need clone recursive for previous pyDAL
version...

Richard

On Tue, Jan 5, 2016 at 9:38 AM, Yoel Benitez Fonseca 
wrote:

> but on github u don't get the submodules
>
> 2016-01-04 11:29 GMT-05:00, Richard Vézina :
> > Github!
> >
> > Richard
> >
> > On Mon, Jan 4, 2016 at 11:23 AM, Yoel Benitez Fonseca <
> ybenit...@gmail.com>
> > wrote:
> >
> >> h!, how can i get the old versions of web2py, on
> >> http://web2py.com/init/default/download u can only get the latest but
> >> i want one concrete version.
> >>
> >> --
> >> Yoel Benítez Fonseca
> >> http://redevil.cubava.cu/
> >> $ python -c "import this"
> >>
> >> --
> >> 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.
> >>
> >
> > --
> > 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.
> >
>
>
> --
> Yoel Benítez Fonseca
> http://redevil.cubava.cu/
> $ python -c "import this"
>
> --
> 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.
>

-- 
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] import a database into web2py

2016-01-05 Thread Nir Haramati
Can I import an already designed database into web2py?

Put differently, can I instruct web2py to generate a model page with 
define_table statements for existing tables in a database?

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


Re: [web2py] how to get old version

2016-01-05 Thread Carlos Correia

Hi,

To get an old version you can clone the git repo (git clone --recursive 
https://github.com/web2py/web2py.git) and then checkout the appropriated version 
(git checkout tags/R-2.7.2, to get version 2.7.2).


As you'll be dealing with the sources, there is no difference whether you're 
using Linux or Windows (besides Windows being a pain in the ass, but that's not 
Web2Py fault).


On 05-01-2016 15:51, Yoel Benitez Fonseca wrote:

¿clone recursive? ummm.. and what happen if i want on old version for
windows ? there is not an FTP or so out there with the old versions !?

2016-01-05 10:40 GMT-05:00, Richard Vézina :

clone recursive... it explained... depend if you need previous pyDAL
version or not, you shouldn't need clone recursive for previous pyDAL
version...

Richard

On Tue, Jan 5, 2016 at 9:38 AM, Yoel Benitez Fonseca 
wrote:


but on github u don't get the submodules

2016-01-04 11:29 GMT-05:00, Richard Vézina :

Github!

Richard

On Mon, Jan 4, 2016 at 11:23 AM, Yoel Benitez Fonseca <

ybenit...@gmail.com>

wrote:


h!, how can i get the old versions of web2py, on
http://web2py.com/init/default/download u can only get the latest but
i want one concrete version.

--
Yoel Benítez Fonseca
http://redevil.cubava.cu/
$ python -c "import this"

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



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




--
Yoel Benítez Fonseca
http://redevil.cubava.cu/
$ python -c "import this"

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



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







--
Com os melhores cumprimentos,

Carlos Correia
=
MEMÓRIA PERSISTENTE
Tel.: 218 471 841 (NOVO)
GSM:  917 157 146 / 967 511 762
e-mail: ge...@memoriapersistente.pt - URL: http://www.memoriapersistente.pt
Jabber: m...@jabber.org
GnuPG: wwwkeys.eu.pgp.net
URL Suporte: https://t5.m16e.com/gps

--
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: Condicional Models

2016-01-05 Thread Marcelo Theodoro
Thanks folks. Maybe I will try the model-less approach in the future. But 
for now the response.models_to_run will work fine. :)

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


Re: [web2py] how to get old version

2016-01-05 Thread Richard Vézina
:D

Richard

On Tue, Jan 5, 2016 at 11:08 AM, Carlos Correia <
car...@memoriapersistente.pt> wrote:

> Hi,
>
> To get an old version you can clone the git repo (git clone --recursive
> https://github.com/web2py/web2py.git) and then checkout the appropriated
> version (git checkout tags/R-2.7.2, to get version 2.7.2).
>
> As you'll be dealing with the sources, there is no difference whether
> you're using Linux or Windows (besides Windows being a pain in the ass, but
> that's not Web2Py fault).
>
>
> On 05-01-2016 15:51, Yoel Benitez Fonseca wrote:
>
>> ¿clone recursive? ummm.. and what happen if i want on old version for
>> windows ? there is not an FTP or so out there with the old versions !?
>>
>> 2016-01-05 10:40 GMT-05:00, Richard Vézina :
>>
>>> clone recursive... it explained... depend if you need previous pyDAL
>>> version or not, you shouldn't need clone recursive for previous pyDAL
>>> version...
>>>
>>> Richard
>>>
>>> On Tue, Jan 5, 2016 at 9:38 AM, Yoel Benitez Fonseca <
>>> ybenit...@gmail.com>
>>> wrote:
>>>
>>> but on github u don't get the submodules

 2016-01-04 11:29 GMT-05:00, Richard Vézina :

> Github!
>
> Richard
>
> On Mon, Jan 4, 2016 at 11:23 AM, Yoel Benitez Fonseca <
>
 ybenit...@gmail.com>

> wrote:
>
> h!, how can i get the old versions of web2py, on
>> http://web2py.com/init/default/download u can only get the latest but
>> i want one concrete version.
>>
>> --
>> Yoel Benítez Fonseca
>> http://redevil.cubava.cu/
>> $ python -c "import this"
>>
>> --
>> 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.
>>
>>
> --
> 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.
>
>

 --
 Yoel Benítez Fonseca
 http://redevil.cubava.cu/
 $ python -c "import this"

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


>>> --
>>> 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.
>>>
>>>
>>
>>
>
> --
> Com os melhores cumprimentos,
>
> Carlos Correia
> =
> MEMÓRIA PERSISTENTE
> Tel.: 218 471 841 (NOVO)
> GSM:  917 157 146 / 967 511 762
> e-mail: ge...@memoriapersistente.pt - URL:
> http://www.memoriapersistente.pt
> Jabber: m...@jabber.org
> GnuPG: wwwkeys.eu.pgp.net
> URL Suporte: https://t5.m16e.com/gps
>
>
> --
> 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.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list 

[web2py] Re: Auth extra fields

2016-01-05 Thread Anthony
I assume you want auth.user.store.

Anthony

On Tuesday, January 5, 2016 at 5:24:19 PM UTC-5, greenpoise wrote:
>
> if auth.is_logged_in():
> this_store=auth_user.store
> else:
> this_store=None
>
>
> Is there a way to extract the extra fields value in the controller like 
> the code above?
>
> Thanks
>

-- 
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: Failing at Google Cloud SQL again: missing MySQLdb import somewhere?

2016-01-05 Thread Tom Campbell
So the problem was that on the latest OS X, libraries are now prohibited 
from using relative pathnames 
.
 
I am testing, re-testing, and re-re-testing the document I'm writing up on 
every machine I can find. I was getting inconsistent results because some 
of my Macs have older OSes.

-- 
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] View To Controller, HTML componets

2016-01-05 Thread Carlo Ghilardi
Dear all,
I'm trying to learn Web2py, but I'm having hard time to play with Forms, 
link HTML components like checkbox for instance. I'm not getting how can I 
get from the view to controller the information on the checkbox or Textbox 
or radio button, so in controller I can work with them and generate an 
answer.

So What I'm asking is a tutorial, how web2py can pass from the view to 
controller, and vice-versa. A trivial one.

I've tried to look on google, but people only show sample collecting and 
storing data from the DB.

What I've being looking for, is a view containing some radio buttons and 
depending on witch one is selected I do an action.

A checkbot selected I do an action.

A Textbox, I can seve its value and do something in controller ...



Well sorry for this dumb question, hope you can help me.


-- 
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] Auth extra fields

2016-01-05 Thread greenpoise
if auth.is_logged_in():
this_store=auth_user.store
else:
this_store=None


Is there a way to extract the extra fields value in the controller like the 
code above?

Thanks

-- 
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: Auth extra fields

2016-01-05 Thread Niphlod
why not ?

On Tuesday, January 5, 2016 at 11:24:19 PM UTC+1, greenpoise wrote:
>
> if auth.is_logged_in():
> this_store=auth_user.store
> else:
> this_store=None
>
>
> Is there a way to extract the extra fields value in the controller like 
> the code above?
>
> Thanks
>

-- 
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: Simple left sidebar example

2016-01-05 Thread 黄祥
not sure which part you didn't understand from the manual book, pls try 
this :
*views_that_have_left_sidebar.html*
{{left_sidebar_enabled = True}}

{{block left_sidebar}}
{{include 'templates/cart/cart_sidebar.html'}}
{{end}}

{{extend 'layout.html'}}

*views/templates/cart/cart_sidebar.html*
{{=DIV(B(T('Search') ) ) }}

{{=DIV(B(T('Category') ) ) }}

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 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: Auth extra fields

2016-01-05 Thread greenpoise
auth_user is not defined.

On Tuesday, January 5, 2016 at 2:26:59 PM UTC-8, Niphlod wrote:
>
> why not ?
>
> On Tuesday, January 5, 2016 at 11:24:19 PM UTC+1, greenpoise wrote:
>>
>> if auth.is_logged_in():
>> this_store=auth_user.store
>> else:
>> this_store=None
>>
>>
>> Is there a way to extract the extra fields value in the controller like 
>> the code above?
>>
>> Thanks
>>
>

-- 
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] Simple left sidebar example

2016-01-05 Thread Paul McDonald
Can anyone post a simple example of a View with a left sidebar?
I must be missing something.  It looks so simple in the manual "5.7 Blocks 
in views".
Thank you in advance.  Paul

-- 
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: SQLFORM security question

2016-01-05 Thread Massimo Di Pierro
form = SQLFORM(db.table) prevents again CSRF but does not limit access. For 
that you need to decorate the page with @auth.requires_login() etc.

Once SQLFORM stores data in database it is in UTF8. 

If you extract data from database and you display it in a page in any way 
other than wrapping in XML(...) it is automatically escaped and therefore 
prevents XSS attacks. If you use XML(...) to display the data you are 
vulnerable to XML attacks.

On Monday, 4 January 2016 19:40:10 UTC-6, Joe wrote:
>
> Thanks very much Anthony, I appreciate the detailed explanation. This is 
> what my understanding was as well, but I wasn't 100% sure. In my case, the 
> input was user contact info and some text submitted by the form and  kept 
> in the db records and not written back to a web page. But this brings up an 
> other question, if the input is by the login form where the user name is 
> written back out to the page "Welcome User", there Web2py of course, 
> automatically escaping any text as well, right?
>
>
> On Tuesday, January 5, 2016 at 12:30:29 AM UTC+8, Anthony wrote:
>>
>> By default, SQLFORM protects against cross-site request forgery attacks 
>> (via a hidden _formkey field, with a matching formkey value in the 
>> session). And the DAL protects against SQL injection when making database 
>> inserts. However, at form submission/database-insert time, nothing prevents 
>> users from entering text that can later be used in a cross-site scripting 
>> attack. The reason is, such text is not dangerous merely by being stored in 
>> the database, but only when written back out to a web page. Therefore, 
>> web2py protects against cross-site scripting by automatically escaping any 
>> text written via a template. You can only override this default escaping by 
>> wrapping the text in the XML() helper (and if you want to make the 
>> unescaped text relatively safe, you can pass sanitize=True to XML).
>>
>> So, in this case, there is nothing dangerous about that text having been 
>> submitted and saved. However, you have to be careful what you then do with 
>> any user-submitted data. Do not write it back out to a web page without 
>> escaping or at least sanitizing it.
>>
>> Anthony
>>
>> On Monday, January 4, 2016 at 7:29:51 AM UTC-5, Joe wrote:
>>>
>>> I the db record text I had this:
>>>
>>> *sometext*+*www.mydomain.com *@
>>> *sometext.com 
>>> *http://*sometext*.com/?url=*www.mydomain.com 
>>> *=e318
>>>
>>> ..and more similar type of code. The input was long and it looked like 
>>> a cross site scripting attack with the intent to use my domain to send our 
>>> mass email
>>> * or something like that...*All of this was in the record's text area 
>>> for comment processed by the SQLFORM.
>>>
>>> My understanding is that the form allows the special characters to be 
>>> processed but they are harmless. At least I hope they are. I just ran a 
>>> test and placed a line of html
>>> in the form text area. This may not be the best way to test this, this 
>>> was the line Testing form
>>> It was processed and made it to the db record but the text wasn't h1 
>>> size and wasn't green. This should mean that it's fine.
>>>
>>> Please let me know your thoughts.
>>>
>>> On Monday, January 4, 2016 at 6:14:34 PM UTC+8, Niphlod wrote:

 it's the same code. 
 A call to 
 http://yoursite/yourapp/controller/function?url=something=somethingelse 
 would not pass validation as SQLFORM is CSRF protected.
 If you are sure that that call got a record into the db, something is 
 really wrong with your application as web2py doesn't allow it out of the 
 box.

 On Monday, January 4, 2016 at 11:04:49 AM UTC+1, Joe wrote:
>
> Thanks very much Niphlod,
>
> So, the special characters in the user input showing up in the table 
> records text is basically harmless, right? That's what I though.
>
> Thanks for the correct code. I actually thought the code was:
>
> *form = SQLFORM(db.table).process() *
> *if form.accepted:*
> do something
> elif form.errors:
>#errors this is probably where that call ended 
> So, the above is not correct?
>
> BTW: You mean this is where the attempt/call should have ended? It 
> didn't end there. The form actually processed the input with the special 
> characters. I read the entire input with the html code in it in the 
> database table records. It shouldn't have processed it because of the 
> special characters? I am probably misunderstanding you. Please kindly let 
> me know.
>
> Thanks again.
>
> Cheers,
>
> Joe
>
>
>
> On Monday, January 4, 2016 at 5:38:41 PM UTC+8, Niphlod wrote:
>>
>> any SQLFORM is csrf protected so those kind of attempts resulted in 
>> nothing.
>>
>> the "correct code" is 
>>
>> form = SQLFORM(db.table)
>> if 

[web2py] Re: web2py 2.13.3 is OUT

2016-01-05 Thread Massimo Di Pierro
No. perhaps the file just had wrong permissions.

On Monday, 4 January 2016 06:30:02 UTC-6, Jacinto Parga wrote:
>
> I have solved it. 
>
> I have removed *logging.conf* file from the web2py folder, but I don't 
>  know if it has undesidered consecuences!
>
> Can it be harmful?
>
> Thanks!
>
> El lunes, 4 de enero de 2016, 11:52:22 (UTC+1), Jacinto Parga escribió:
>>
>> Hi, 
>>
>> I upgraded from 2.11.2
>>
>> I get a error ticket when I deploy to GAE:
>>
>> Traceback (most recent call last):
>>   File 
>> "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py"
>> , line 240, in Handle
>> handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
>>   File 
>> "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py"
>> , line 299, in _LoadHandler
>> handler, path, err = LoadObject(self._handler)
>>   File 
>> "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py"
>> , line 85, in LoadObject
>> obj = __import__(path[0])
>>   File 
>> "/base/data/home/apps/s~clubatletismosada/2.389741792186866429/gaehandler.py"
>> , line 62 
>> 
>> , in 
>> import gluon.main
>>   File 
>> "/base/data/home/apps/s~clubatletismosada/2.389741792186866429/gluon/main.py"
>> , line 85 
>> 
>> , in 
>> logging.config.fileConfig(abspath("logging.conf"))
>>   File 
>> "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/logging/config.py"
>> , line 78, in fileConfig
>> handlers = _install_handlers(cp, formatters)
>>   File 
>> "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/logging/config.py"
>> , line 156, in _install_handlers
>> h = klass(*args)
>>   File 
>> "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/logging/handlers.py"
>> , line 117, in __init__
>> BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
>>   File 
>> "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/logging/handlers.py"
>> , line 64, in __init__
>> logging.FileHandler.__init__(self, filename, mode, encoding, delay)
>>   File 
>> "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/logging/__init__.py"
>> , line 902, in __init__
>> StreamHandler.__init__(self, self._open())
>>   File 
>> "/base/data/home/runtimes/python27/python27_dist/lib/python2.7/logging/__init__.py"
>> , line 925, in _open
>> stream = open(self.baseFilename, self.mode)
>> IOError: [Errno 30] Read-only file system: 
>> '/base/data/home/apps/s~clubatletismosada/2.389741792186866429/logs/web2py.log'
>>
>> Maybe I have missed something with the handlers?
>>
>> El jueves, 24 de diciembre de 2015, 16:21:42 (UTC+1), Massimo Di Pierro 
>> escribió:
>>>
>>> web2py 2.13.3 is out. MERRY CHRISTMAS EVERYBODY!!!
>>>
>>> It contains some bug fixes for bugs introduced in 2.13.1-2 and most 
>>> importantly it contains experimental support for JWT. Here is how it works:
>>>
>>> 1) instantiate auth with
>>>
>>> auth = Auth(db, jwt = {'secret_key':'secret'})
>>>
>>> where 'secret' is your own secret string. 
>>>
>>> 2) Secorate functions that require login but should accept the 
>>> JWT token credentials:
>>>
>>> @auth.allows_jwt()
>>> @auth.requires_login()
>>> def myapi(): return 'hello %s' % auth.user.email
>>> 
>>> Notice jwt is allowed but not required. if user is logged in, 
>>> myapi is accessible.
>>>
>>> 3) Use it!
>>> Now API users can obtain a token with
>>>
>>> http://.../app/default/user/jwt?username=...=
>>>
>>> (returns json object with a token attribute)
>>> API users can refresh an existing token with
>>>
>>> http://.../app/default/user/jwt?token=...
>>>
>>> they can authenticate themselves when calling http:/.../myapi by 
>>> injecting a header
>>>
>>> Authorization: Bearer 
>>>
>>> Any additional attributes in the jwt argument of Auth() below:
>>>
>>>auth = Auth(db, jwt = {...})
>>>
>>> are passed to the constructor of class AuthJWT. Look there for 
>>> documentation.
>>>
>>> Thanks Niphlod again for implementing this. 
>>> Please help us check it so we will declare it stable in the next release.
>>>
>>> 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 

[web2py] Re: web2py version reported in the admin interface does not match the git tag?

2016-01-05 Thread Niphlod
see https://github.com/web2py/web2py/issues/1148

On Tuesday, January 5, 2016 at 5:52:19 PM UTC+1, Krzysztof Socha wrote:
>
> I have been playing with git repo for web2py, and I find it very useful. 
> Especially the tags - you can easily move from the current master (trunk) 
> to a specific stable release... or so it seems.
>
> I noticed that the tag do not seem to match the version numbers reported 
> in the admin panel for some reason... Some examples:
>
> R-2.13.4 -> 2.13.3-stable+timestamp.2015.12.24.08.08.22
> R-2.13.3 -> 2.13.3-stable+timestamp.2015.12.24.08.08.22
> R-2.13.2 -> 2.12.3-stable+timestamp.2015.08.18.19.14.07
> R-2.13.1 -> 2.12.3-stable+timestamp.2015.08.18.19.14.07
> R-2.12.3 -> 2.12.3-stable+timestamp.2015.08.18.19.14.07
>
> It seems that the version information is not always updated when a new tag 
> is created... Maybe this could be automated somehow, because as it is it 
> always makes me wonder, if I checked out the right tag... 
>
> Krzysztof.
>

-- 
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: Simple left sidebar example

2016-01-05 Thread Paul McDonald


On Tuesday, January 5, 2016 at 5:03:19 PM UTC-5, Paul McDonald wrote:
>
> Can anyone post a simple example of a View with a left sidebar?
> I must be missing something.  It looks so simple in the manual "5.7 Blocks 
> in views".
> Thank you in advance.  Paul
>



Stifan,
Thank you for your help.
The problem seems to be that I used the Wizzard to generate a new 
application, and that Layout.html is different from the Welcome Layout.html.
The Wizzard Layout.html does not handle sidebars  properly.
There seems to be a error in this code:

# using sidebars need to know what sidebar you want to use
mc0 = 'col-md-12'
mc1 = 'col-md-9'
mc2 = 'col-md-6'
left_sidebar_enabled = globals().get('left_sidebar_enabled', False)
right_sidebar_enabled = globals().get('right_sidebar_enabled', False)
middle_column = {0: mc0, 1: mc1, 2: mc2}[
(left_sidebar_enabled and 1 or 0)+(right_sidebar_enabled and 1 or 0)]
}}
 

-- 
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: no db connection in shell in web2py administrative interface

2016-01-05 Thread Massimo Di Pierro
Do not use the web based shell. It has problems and this may be one of 
them. You can use the console shell

python web2py.py -S appname -M
>>>

On Monday, 4 January 2016 14:23:11 UTC-6, Richard Knight wrote:
>
> I'm new to Web2py - I need a web-based database front-end for a project, 
> and Web2py looks great and easy to learn.
> I've been working through Massimo's Web2py video course, but when (in 
> section 5) he clicks on the 'Shell' button (under Controllers) - he enters 
> 'db' at the >>> prompt and gets a response from the database - but I get 
> 'None'.  At that point I'd already used the 'Database Administration' 
> button to create and enter data into a table successfully, so I've 
> obviously missed something simple. Any suggestions?  I've tried creating my 
> table both within the default 'db.py' and my own 'db1.py' - it makes no 
> difference to this problem.
> Thanks.
>

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