[web2py] Re: web2py 2.14.1 beta

2016-03-24 Thread Dave S
On Wednesday, March 23, 2016 at 9:41:36 PM UTC-7, Dave S wrote:
>
> I've brought up one of my older apps in the beta.  Looks like that is 
> working, except for some layout.html/css issues 
>
>
I've now done it with my home app (not an app for home, an app at home). 
 It's pretty simple, and seems to be working just fine.

 (All my testing has used sqlite3)

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


[web2py] Re: web2py 2.14.1 beta

2016-03-24 Thread Ron Chatterjee
I downloaded 5 minutes ago and it gives me this error (see the screen shot).



On Thursday, March 24, 2016 at 5:06:50 AM UTC-4, Dave S wrote:
>
> On Wednesday, March 23, 2016 at 9:41:36 PM UTC-7, Dave S wrote:
>>
>> I've brought up one of my older apps in the beta.  Looks like that is 
>> working, except for some layout.html/css issues 
>>
>>
> I've now done it with my home app (not an app for home, an app at home). 
>  It's pretty simple, and seems to be working just fine.
>
>  (All my testing has used sqlite3)
>
> /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] new Starter app (alternative to Welcome app)

2016-03-24 Thread Ron Chatterjee
I am looking at this link:

https://almsaeedstudio.com/themes/AdminLTE/documentation/index.html. Is 
that widget/plugin that comes with that bootstrap? Michael, you familiar 
with that?

It has something call direct chat. 

On Thursday, March 24, 2016 at 12:23:08 AM UTC-4, Michael Beller wrote:
>
> I plan to! When ready, I'd like to try and apply these styles
> https://almsaeedstudio.com/themes/AdminLTE/pages/forms/general.html 
> to the new form.py and perhaps
> https://almsaeedstudio.com/themes/AdminLTE/pages/tables/data.html
> to the new grid.py
>
> On Wednesday, March 23, 2016 at 10:22:32 PM UTC-4, Massimo Di Pierro wrote:
>>
>> I am linking this from the new examples app. I assume you will be 
>> maintaining it. for a while. :-)
>> On Wednesday, 23 March 2016 19:38:22 UTC-5, Michael Beller wrote:
>>>
>>> Are you using 2.14.1 beta?
>>>
>>> I would try to get it running without changes before making changes 
>>> (unless you have a need to get it running on an old version of web2py).  As 
>>> Massimo pointed out, it's not necessarily backward compatible but other 
>>> than removing host_names (which I already did in the repo) I don't see why 
>>> it wouldn't work on an older version (I also had to remove formstyle from 
>>> appconfig to support an older version).
>>>
>>> I just installed a clean version using 
>>> git clone https://github.com/mjbeller/web2py-starter.git starter
>>> into 2.14.1 beta (actually current master) and then accessed
>>> /initialize/adminuser 
>>>  
>>> to setup Admin user and auth_groups and everything worked fine.
>>>
>>> I'm still getting an odd error on 2.13.x which I can't figure out but 
>>> I'm content to move forward with just 2.14.1
>>>
>>> On Wednesday, March 23, 2016 at 8:02:51 PM UTC-4, Ron Chatterjee wrote:

 Got it. As always, thank you Massimo. 

 I changed in db1.py

 auth.define_tables(username=True, signature=True)

 to 
 auth.define_tables(username=False, signature=True)

 But in  the log in it still ask me for user name. 

 Also I get an error when I try to register.

 pydal\helpers\classes.py", line 18, in __init__
 return self.__dict__.__init__(*args, **kwargs)
 TypeError: 'NoneType' object is not iterable



 On Wednesday, March 23, 2016 at 7:32:18 PM UTC-4, Massimo Di Pierro 
 wrote:
>
> You cannot do that. You have an app created with web2py 2.14.1 beta 
> and run it with an older version of web2py. myconf.get is not defined.
> We only offer backward compatibility, not forward compatibility.
>
> Massimo
>
> On Wednesday, 23 March 2016 18:12:58 UTC-5, Ron Chatterjee wrote:
>>
>> I copied the config file from private and changed this to db1.py.
>>
>> auth = Auth(db, host_names=myconf.get('host.name'))
>>
>> I still don't get the app running. Any suggestions?
>>
>> web2py version running: 2.12.3
>>
>>
>>
>> On Wednesday, March 23, 2016 at 6:36:34 PM UTC-4, Dave S wrote:
>>>
>>>
>>>
>>> On Wednesday, March 23, 2016 at 3:01:24 PM UTC-7, Literate Aspects 
>>> wrote:

 Hi Rimas,

 I thank you for the kind thoughts, but I simply don't have that 
 luxury.  I read and I listen to the video tutorials, IF they matched 
 the 
 current live app, then following the step by step instructions would 
 be 
 straight forward, but the live app does not match the instructions, so 
 at 
 each step, one has to FIGURE out an unknown.


>>> The only difference I recognized in the screen shots was that the 
>>> book had 1 more line in the header comment.  The code lines you showed 
>>> seemed to match.  But recognize that the code included in the Welcome 
>>> app 
>>> (which is the code that gets used if you pressed the "Make new App" 
>>> button 
>>> on the Web2Py "console" page) can get changed every release; the book 
>>> tends 
>>> not to change as often.
>>>
>>> Some of these changes are simplification, some are taking advantage 
>>> of new features, and some are corrections.
>>>
>>> Going back to one of your earlier questions:
>>>
>>> def index(): return "Hello from MyApp"
>>>
>>> differs from 
>>>
>>> def index(): return dict(message="Hello from MyApp")
>>>
>>> in a basic Python way ... the first returns a string, the second 
>>> returns a dictionary object, where the key "message" has the value 
>>> "Hello 
>>> from MyApp:, which is a string.  The generic views that come with 
>>> Web2Py 
>>> know how to render a string.  They also know how to render values 
>>> retrieved 
>>> from a dictionary.  Just about everything else is a special case of 
>>> those 2 
>>> basic capabilities.
>>>
>>> The BEAUTIFY(

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-24 Thread rajjmatthur
This may be little preliminary but what you mean by "Admin user and 
auth_groups" setup and how? I don't recall anything to set up with the 
welcome app. It worked the first time straight out of the box.

On Thursday, March 24, 2016 at 8:56:22 AM UTC-4, Ron Chatterjee wrote:
>
> I am looking at this link:
>
> https://almsaeedstudio.com/themes/AdminLTE/documentation/index.html. Is 
> that widget/plugin that comes with that bootstrap? Michael, you familiar 
> with that?
>
> It has something call direct chat. 
>
> On Thursday, March 24, 2016 at 12:23:08 AM UTC-4, Michael Beller wrote:
>>
>> I plan to! When ready, I'd like to try and apply these styles
>> https://almsaeedstudio.com/themes/AdminLTE/pages/forms/general.html 
>> to the new form.py and perhaps
>> https://almsaeedstudio.com/themes/AdminLTE/pages/tables/data.html
>> to the new grid.py
>>
>> On Wednesday, March 23, 2016 at 10:22:32 PM UTC-4, Massimo Di Pierro 
>> wrote:
>>>
>>> I am linking this from the new examples app. I assume you will be 
>>> maintaining it. for a while. :-)
>>> On Wednesday, 23 March 2016 19:38:22 UTC-5, Michael Beller wrote:

 Are you using 2.14.1 beta?

 I would try to get it running without changes before making changes 
 (unless you have a need to get it running on an old version of web2py).  
 As 
 Massimo pointed out, it's not necessarily backward compatible but other 
 than removing host_names (which I already did in the repo) I don't see why 
 it wouldn't work on an older version (I also had to remove formstyle from 
 appconfig to support an older version).

 I just installed a clean version using 
 git clone https://github.com/mjbeller/web2py-starter.git starter
 into 2.14.1 beta (actually current master) and then accessed
 /initialize/adminuser 
  
 to setup Admin user and auth_groups and everything worked fine.

 I'm still getting an odd error on 2.13.x which I can't figure out but 
 I'm content to move forward with just 2.14.1

 On Wednesday, March 23, 2016 at 8:02:51 PM UTC-4, Ron Chatterjee wrote:
>
> Got it. As always, thank you Massimo. 
>
> I changed in db1.py
>
> auth.define_tables(username=True, signature=True)
>
> to 
> auth.define_tables(username=False, signature=True)
>
> But in  the log in it still ask me for user name. 
>
> Also I get an error when I try to register.
>
> pydal\helpers\classes.py", line 18, in __init__
> return self.__dict__.__init__(*args, **kwargs)
> TypeError: 'NoneType' object is not iterable
>
>
>
> On Wednesday, March 23, 2016 at 7:32:18 PM UTC-4, Massimo Di Pierro 
> wrote:
>>
>> You cannot do that. You have an app created with web2py 2.14.1 beta 
>> and run it with an older version of web2py. myconf.get is not defined.
>> We only offer backward compatibility, not forward compatibility.
>>
>> Massimo
>>
>> On Wednesday, 23 March 2016 18:12:58 UTC-5, Ron Chatterjee wrote:
>>>
>>> I copied the config file from private and changed this to db1.py.
>>>
>>> auth = Auth(db, host_names=myconf.get('host.name'))
>>>
>>> I still don't get the app running. Any suggestions?
>>>
>>> web2py version running: 2.12.3
>>>
>>>
>>>
>>> On Wednesday, March 23, 2016 at 6:36:34 PM UTC-4, Dave S wrote:



 On Wednesday, March 23, 2016 at 3:01:24 PM UTC-7, Literate Aspects 
 wrote:
>
> Hi Rimas,
>
> I thank you for the kind thoughts, but I simply don't have that 
> luxury.  I read and I listen to the video tutorials, IF they matched 
> the 
> current live app, then following the step by step instructions would 
> be 
> straight forward, but the live app does not match the instructions, 
> so at 
> each step, one has to FIGURE out an unknown.
>
>
 The only difference I recognized in the screen shots was that the 
 book had 1 more line in the header comment.  The code lines you showed 
 seemed to match.  But recognize that the code included in the Welcome 
 app 
 (which is the code that gets used if you pressed the "Make new App" 
 button 
 on the Web2Py "console" page) can get changed every release; the book 
 tends 
 not to change as often.

 Some of these changes are simplification, some are taking advantage 
 of new features, and some are corrections.

 Going back to one of your earlier questions:

 def index(): return "Hello from MyApp"

 differs from 

 def index(): return dict(message="Hello from MyApp")

 in a basic Python way ... the first returns a string, the second 
 r

[web2py] Re: What are the platforms for free web hosting of web2py apps?

2016-03-24 Thread Carlos Cesar Caballero
Hi Michael, thanks for your suggestion, pythonanywhere is really good, but 
it do not meet two requirements that I need, the first is that I have some 
php apps, and the second is that I have many low traffic sites, making the 
pythonanywhere plan too expensive.

Greetings.

El miércoles, 23 de marzo de 2016, 21:54:47 (UTC-4), Michael Beller 
escribió:
>
> +1 for pythonanywhere.com 
>
> based in UK if that meets your non-USA requirement
> awesome support
> completely scalable
> runs on AWS infrastructure (they've essentially built a layer on top of 
> AWS that's make it trivial to manage)
>
> On Tuesday, March 22, 2016 at 8:47:12 AM UTC-4, Carlos Cesar Caballero 
> wrote:
>>
>> Hi, have you some experience with forpsi.com? I am looking for reliable 
>> non USA providers.
>>
>> Greetings.
>>
>> El lunes, 14 de marzo de 2016, 8:28:13 (UTC-4), Mirek Zvolský escribió:
>>>
>>> allwaysdata.com, but has only 10M place (about 6M after you install 
>>> web2py-min), good ssh, cron, no problem to install everything.
>>> forpsi.com paid, but only 2$/month for full VM
>>>
>>>
>>>
>>> Dne neděle 21. února 2016 7:38:46 UTC+1 Rgb Aston napsal(a):

 Which one's the best to go for?

>>>

-- 
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] new Starter app (alternative to Welcome app)

2016-03-24 Thread Michael Beller
Yes - the AdminLTE template/theme is based on Bootstrap and includes many
front-end plugins/components (like Datatables.net, Full Calendar, etc.).
It includes layouts and widgets for displaying chat sessions, charts,
tables, etc. all with a common theme and layout.

On Thu, Mar 24, 2016 at 8:56 AM, Ron Chatterjee 
wrote:

> I am looking at this link:
>
> https://almsaeedstudio.com/themes/AdminLTE/documentation/index.html. Is
> that widget/plugin that comes with that bootstrap? Michael, you familiar
> with that?
>
> It has something call direct chat.
>
> On Thursday, March 24, 2016 at 12:23:08 AM UTC-4, Michael Beller wrote:
>>
>> I plan to! When ready, I'd like to try and apply these styles
>> https://almsaeedstudio.com/themes/AdminLTE/pages/forms/general.html
>> to the new form.py and perhaps
>> https://almsaeedstudio.com/themes/AdminLTE/pages/tables/data.html
>> to the new grid.py
>>
>> On Wednesday, March 23, 2016 at 10:22:32 PM UTC-4, Massimo Di Pierro
>> wrote:
>>>
>>> I am linking this from the new examples app. I assume you will be
>>> maintaining it. for a while. :-)
>>> On Wednesday, 23 March 2016 19:38:22 UTC-5, Michael Beller wrote:

 Are you using 2.14.1 beta?

 I would try to get it running without changes before making changes
 (unless you have a need to get it running on an old version of web2py).  As
 Massimo pointed out, it's not necessarily backward compatible but other
 than removing host_names (which I already did in the repo) I don't see why
 it wouldn't work on an older version (I also had to remove formstyle from
 appconfig to support an older version).

 I just installed a clean version using
 git clone https://github.com/mjbeller/web2py-starter.git starter
 into 2.14.1 beta (actually current master) and then accessed
 /initialize/adminuser
 
 to setup Admin user and auth_groups and everything worked fine.

 I'm still getting an odd error on 2.13.x which I can't figure out but
 I'm content to move forward with just 2.14.1

 On Wednesday, March 23, 2016 at 8:02:51 PM UTC-4, Ron Chatterjee wrote:
>
> Got it. As always, thank you Massimo.
>
> I changed in db1.py
>
> auth.define_tables(username=True, signature=True)
>
> to
> auth.define_tables(username=False, signature=True)
>
> But in  the log in it still ask me for user name.
>
> Also I get an error when I try to register.
>
> pydal\helpers\classes.py", line 18, in __init__
> return self.__dict__.__init__(*args, **kwargs)
> TypeError: 'NoneType' object is not iterable
>
>
>
> On Wednesday, March 23, 2016 at 7:32:18 PM UTC-4, Massimo Di Pierro
> wrote:
>>
>> You cannot do that. You have an app created with web2py 2.14.1 beta
>> and run it with an older version of web2py. myconf.get is not defined.
>> We only offer backward compatibility, not forward compatibility.
>>
>> Massimo
>>
>> On Wednesday, 23 March 2016 18:12:58 UTC-5, Ron Chatterjee wrote:
>>>
>>> I copied the config file from private and changed this to db1.py.
>>>
>>> auth = Auth(db, host_names=myconf.get('host.name'))
>>>
>>> I still don't get the app running. Any suggestions?
>>>
>>> web2py version running: 2.12.3
>>>
>>>
>>>
>>> On Wednesday, March 23, 2016 at 6:36:34 PM UTC-4, Dave S wrote:



 On Wednesday, March 23, 2016 at 3:01:24 PM UTC-7, Literate Aspects
 wrote:
>
> Hi Rimas,
>
> I thank you for the kind thoughts, but I simply don't have that
> luxury.  I read and I listen to the video tutorials, IF they matched 
> the
> current live app, then following the step by step instructions would 
> be
> straight forward, but the live app does not match the instructions, 
> so at
> each step, one has to FIGURE out an unknown.
>
>
 The only difference I recognized in the screen shots was that the
 book had 1 more line in the header comment.  The code lines you showed
 seemed to match.  But recognize that the code included in the Welcome 
 app
 (which is the code that gets used if you pressed the "Make new App" 
 button
 on the Web2Py "console" page) can get changed every release; the book 
 tends
 not to change as often.

 Some of these changes are simplification, some are taking advantage
 of new features, and some are corrections.

 Going back to one of your earlier questions:

 def index(): return "Hello from MyApp"

 differs from

 def index(): return dict(message="Hello from MyApp")

 in a basic Python way ... the first returns a string, the second
>>>

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-24 Thread Michael Beller
I commonly create a user (usually my email) and an Admin group and then add
myself to the Admin group.  I have logic in the Starter app based on the
Admin group.  I usually have other groups such as Operations and Customer
Service (I tend to build enterprise 'line of business' apps).  Since I
frequently clean out the database during initial development, I just
created an initialization function that automatically adds an initial set
of test users, groups, and memberships so I don't have to do it manually,
The Initialization function also calls a function that automatically
populates tables with test data (using the Populate function) that is
helpful for quick demos during prototyping and user demos.  You can modify
the routines to meet your needs - it's just something I always end up
creating so I put it in my scaffold app.

On Thu, Mar 24, 2016 at 9:13 AM,  wrote:

> This may be little preliminary but what you mean by "Admin user and
> auth_groups" setup and how? I don't recall anything to set up with the
> welcome app. It worked the first time straight out of the box.
>
>
> On Thursday, March 24, 2016 at 8:56:22 AM UTC-4, Ron Chatterjee wrote:
>>
>> I am looking at this link:
>>
>> https://almsaeedstudio.com/themes/AdminLTE/documentation/index.html. Is
>> that widget/plugin that comes with that bootstrap? Michael, you familiar
>> with that?
>>
>> It has something call direct chat.
>>
>> On Thursday, March 24, 2016 at 12:23:08 AM UTC-4, Michael Beller wrote:
>>>
>>> I plan to! When ready, I'd like to try and apply these styles
>>> https://almsaeedstudio.com/themes/AdminLTE/pages/forms/general.html
>>> to the new form.py and perhaps
>>> https://almsaeedstudio.com/themes/AdminLTE/pages/tables/data.html
>>> to the new grid.py
>>>
>>> On Wednesday, March 23, 2016 at 10:22:32 PM UTC-4, Massimo Di Pierro
>>> wrote:

 I am linking this from the new examples app. I assume you will be
 maintaining it. for a while. :-)
 On Wednesday, 23 March 2016 19:38:22 UTC-5, Michael Beller wrote:
>
> Are you using 2.14.1 beta?
>
> I would try to get it running without changes before making changes
> (unless you have a need to get it running on an old version of web2py).  
> As
> Massimo pointed out, it's not necessarily backward compatible but other
> than removing host_names (which I already did in the repo) I don't see why
> it wouldn't work on an older version (I also had to remove formstyle from
> appconfig to support an older version).
>
> I just installed a clean version using
> git clone https://github.com/mjbeller/web2py-starter.git starter
> into 2.14.1 beta (actually current master) and then accessed
> /initialize/adminuser
> 
> to setup Admin user and auth_groups and everything worked fine.
>
> I'm still getting an odd error on 2.13.x which I can't figure out but
> I'm content to move forward with just 2.14.1
>
> On Wednesday, March 23, 2016 at 8:02:51 PM UTC-4, Ron Chatterjee wrote:
>>
>> Got it. As always, thank you Massimo.
>>
>> I changed in db1.py
>>
>> auth.define_tables(username=True, signature=True)
>>
>> to
>> auth.define_tables(username=False, signature=True)
>>
>> But in  the log in it still ask me for user name.
>>
>> Also I get an error when I try to register.
>>
>> pydal\helpers\classes.py", line 18, in __init__
>> return self.__dict__.__init__(*args, **kwargs)
>> TypeError: 'NoneType' object is not iterable
>>
>>
>>
>> On Wednesday, March 23, 2016 at 7:32:18 PM UTC-4, Massimo Di Pierro
>> wrote:
>>>
>>> You cannot do that. You have an app created with web2py 2.14.1 beta
>>> and run it with an older version of web2py. myconf.get is not defined.
>>> We only offer backward compatibility, not forward compatibility.
>>>
>>> Massimo
>>>
>>> On Wednesday, 23 March 2016 18:12:58 UTC-5, Ron Chatterjee wrote:

 I copied the config file from private and changed this to db1.py.

 auth = Auth(db, host_names=myconf.get('host.name'))

 I still don't get the app running. Any suggestions?

 web2py version running: 2.12.3



 On Wednesday, March 23, 2016 at 6:36:34 PM UTC-4, Dave S wrote:
>
>
>
> On Wednesday, March 23, 2016 at 3:01:24 PM UTC-7, Literate Aspects
> wrote:
>>
>> Hi Rimas,
>>
>> I thank you for the kind thoughts, but I simply don't have that
>> luxury.  I read and I listen to the video tutorials, IF they matched 
>> the
>> current live app, then following the step by step instructions would 
>> be
>> straight forward, but the live app does not match the instructions, 
>> so at
>> each step, one has to FIGURE o

Re: [web2py] Re: Web2PY login password reset WARNING - email not sent

2016-03-24 Thread Literate Aspects
Thank you Dave S.  you are the greatest.  I am going to slow down on
my questions and just do more searching on the web for the answers.
Thank you.

Jon

On 3/23/16, Dave S  wrote:
>
>
> On Wednesday, March 23, 2016 at 5:00:19 PM UTC-7, Literate Aspects wrote:
>>
>> Hello,
>>
>> I am trying to log in and I forgot my password, but the dos console keeps
>>
>> returning the message
>>
>> datetime stamp - web2py - WARNING - email not sent
>>
>> How can I resolve this?
>>
>
> Dos console?  What is your environment?  Are you running on Windows or
> Linux, and which version?
>
> ISTR to recall some free Dos utilities to send mail by connecting to a
> "real" mail server, but Python also has that capability, also.  You do have
>
> to tell Python (by preference, through Web2Py) how to find the mail server.
>
>  That's covered in Chapter 8 of the book.
>
> It may be easier in the short term just to register as another user.
>
> /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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/b5acXN1hYR4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>


-- 
ELEVATOR PRINCIPLE:  People can be the wind beneath our wings or the anchor
on our boat.  We can decide to lift people UP or take people DOWN in our
relationships. http://anyflip.com/rdip/egzs/basic

-- 
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] new Starter app (alternative to Welcome app)

2016-03-24 Thread Michael Beller
The appconfig in 2.13 has a problem with strings separated by comma's in
the appconfig.ini file.  Starter app uses 2.14.1

You can either install 2.14.1 or just change ...

line 34 in initialize.py:
for group in myconf.get('admin_user.auth_groups'):

could replace with
for group in ['Admin', 'Customer Service', 'Operations']:

or just change the function to create the Admin group which is all that's
needed.



On Thu, Mar 24, 2016 at 11:20 AM, Ron Chatterjee 
wrote:

> Not sure its ready to be posted. I just downloaded the app and I don't see
> any initialization. My experience...it seems have some issues still (see
> the attached pic) . When I tried to register, I get this error:
>
>
> Traceback *(*most recent call last
> *):   *File "…\web2py\gluon\restricted.py"*, *line 227*, in *restricted
> *exec *ccode *in *environment
>   File" …applications/starter/controllers/default.py"
> *,
> *line 91*, in <*module
> *>   *File "…web2py\gluon\globals.py"*, *line 412
> *, in  self.*_caller *= lambda *f*: *f
> *()   *File …/starter/controllers/default.py"
> *,
> *line 70*, in *user
> *return *dict*(*form*=*auth
> *())   *File "…web2py\gluon\tools.py"*, *line 1923*, in *__call__
> *return *getattr*(self, *args*[*0
> *])()   *File "…\tools.py"*, *line 3375*, in *register
> *self.*login_user*(*user
> *)   *File "…web2py\gluon\tools.py"*, *line 2630*, in *login_user
> user *= *Row*(*user
> *)   *File "…\helpers\classes.py"*, *line 18*, in *__init__
> *return self.*__dict__*.*__init__*(**args*, ***kwargs
> *) *TypeError*: *'NoneType' object *is not *iterable
>
> Using 2.13.4 (which has a flash bar rash that just don't go away).
>
>
>
> On Thursday, March 24, 2016 at 10:38:35 AM UTC-4, Michael Beller wrote:
>>
>> I commonly create a user (usually my email) and an Admin group and then
>> add myself to the Admin group.  I have logic in the Starter app based on
>> the Admin group.  I usually have other groups such as Operations and
>> Customer Service (I tend to build enterprise 'line of business' apps).
>> Since I frequently clean out the database during initial development, I
>> just created an initialization function that automatically adds an initial
>> set of test users, groups, and memberships so I don't have to do it
>> manually,   The Initialization function also calls a function that
>> automatically populates tables with test data (using the Populate function)
>> that is helpful for quick demos during prototyping and user demos.  You can
>> modify the routines to meet your needs - it's just something I always end
>> up creating so I put it in my scaffold app.
>>
>> On Thu, Mar 24, 2016 at 9:13 AM,  wrote:
>>
>>> This may be little preliminary but what you mean by "Admin user and
>>> auth_groups" setup and how? I don't recall anything to set up with the
>>> welcome app. It worked the first time straight out of the box.
>>>
>>>
>>> On Thursday, March 24, 2016 at 8:56:22 AM UTC-4, Ron Chatterjee wrote:

 I am looking at this link:

 https://almsaeedstudio.com/themes/AdminLTE/documentation/index.html.
 Is that widget/plugin that comes with that bootstrap? Michael, you familiar
 with that?

 It has something call direct chat.

 On Thursday, March 24, 2016 at 12:23:08 AM UTC-4, Michael Beller wrote:
>
> I plan to! When ready, I'd like to try and apply these styles
> https://almsaeedstudio.com/themes/AdminLTE/pages/forms/general.html
> to the new form.py and perhaps
> https://almsaeedstudio.com/themes/AdminLTE/pages/tables/data.html
> to the new grid.py
>
> On Wednesday, March 23, 2016 at 10:22:32 PM UTC-4, Massimo Di Pierro
> wrote:
>>
>> I am linking this from the new examples app. I assume you will be
>> maintaining it. for a while. :-)
>> On Wednesday, 23 March 2016 19:38:22 UTC-5, Michael Beller wrote:
>>>
>>> Are you using 2.14.1 beta?
>>>
>>> I would try to get it running without changes before making changes
>>> (unless you have a need to get it running on an old version of web2py). 
>>>  As
>>> Massimo pointed out, it's not necessarily backward compatible but other
>>> than removing host_names (which I already did in the repo) I don't see 
>>> why
>>> it wouldn't work on an older version (I also had to remove formstyle 
>>> from
>>> appconfig to support an older version).
>>>
>>> I just installed a clean version using
>>> git clone https://github.com/mjbeller/web2py-starter.git starter
>>> into 2.14.1 beta (actually current master) and then accessed
>>> /initialize/adminuser
>>> 
>>> to setup Admin user and auth_groups and everything worked fine.
>>>
>>> I'm still getting an odd error on 2.13.x which

[web2py] Load component in a ?

2016-03-24 Thread webmaster
I want my component to load in a span() instead of the default 
div(class="data-w2p_remote").  Anyone know the best way to do 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.


[web2py] Re: Load component in a ?

2016-03-24 Thread Anthony
If you're talking about using the LOAD helper, it only generates a DIV, and 
the JS code only looks for DIVs. Would setting it's display to inline do 
the trick:

mycomponent = LOAD(..., _style='display:inline')

If not, you should be able to do something like this in the view (not 
tested):


$.web2py.component('{{=URL(...)}}', 'mycomponent', el=$(
'#mycomponent'));

Anthony

On Thursday, March 24, 2016 at 12:51:33 PM UTC-4, webmas...@trytha.com 
wrote:
>
> I want my component to load in a span() instead of the default 
> div(class="data-w2p_remote").  Anyone know the best way to do 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 change Web2py interface language

2016-03-24 Thread Fernando Soares
Web2Py admin page has a language menu right at the bottom of the main page. 
Just pick your choice.

Cheers!
Fernando 



On Thursday, April 22, 2010 at 3:07:30 AM UTC-3, Lio wrote:
>
> I want to change the interface language to English. According to some 
> post, I change the language of Chrome browser to En, relaunched web2py 
> and it didn't work. Can anyone help me out? 
>
>
> -- 
> Subscription settings: 
> http://groups.google.com/group/web2py/subscribe?hl=en 
>

-- 
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 2.14.1 is OUT

2016-03-24 Thread Massimo Di Pierro
http://web2py.com/

First of all many many thanks to Simone (niphlod), Richard, and Leonel. 
Most of the work is theirs.

It is important that you upgrade because we fixed some serious security 
bugs that may leak your admin password (if you use rocket and expose the 
old example app).

We fixed many many bug and in particular everything should work fine on GAE 
now, including Datastore and Cloud SQL.

CHANGELOG

- fixed two major security issues that caused the examples app to leak 
information

- new Auth(…,host_names=[…]) to prevent host header injection

- improved scheduler

- pep8 enhancements

- many bug fixes

- restored GAE support that was broken in 2.13.*

- improved fabfile for deployment

- refactored examples with stupid.css

- new JWT implementation (experimental)

- new gluon.contrib.redis_scheduler

- myconf.get

- LDAP groups (experimental)

- .flash -> .w2p_flash

- Updated feedparser.py 5.2.1

- Updated jQuery 1.12.2

- welcome app now checks for version number

- Redis improvements.


BEFORE:

from gluon.contrib.redis_cache import RedisCache

cache.redis = RedisCache('localhost:6379',db=None, debug=True)


NOW:

from gluon.contrib.redis_utils import RConn

from gluon.contrib.redis_cache import RedisCache

rconn = RConn()

# or RConn(host='localhost', port=6379,

# db=0, password=None, socket_timeout=None,

# socket_connect_timeout=None, .)

# exactly as a redis.StrictRedis instance

cache.redis = RedisCache(redis_conn=rconn, debug=True)

BEFORE:

from gluon.contrib.redis_session import RedisSession

sessiondb = RedisSession('localhost:6379',db=0, session_expiry=False)

session.connect(request, response, db = sessiondb)


NOW:

from gluon.contrib.redis_utils import RConn

from gluon.contrib.redis_session import RedisSession

rconn = RConn()

sessiondb = RedisSession(redis_conn=rconn, session_expiry=False)

session.connect(request, response, db = sessiondb)

-- 
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: Load component in a ?

2016-03-24 Thread webmaster
Works for my use case, thanks!  Got so wrapped up in not wanting to do 
anything global in my CSS, I completely drew a blank on defining an in-line 
style.  Thanks!

On Thursday, March 24, 2016 at 10:26:50 AM UTC-7, Anthony wrote:
>
> If you're talking about using the LOAD helper, it only generates a DIV, 
> and the JS code only looks for DIVs. Would setting it's display to inline 
> do the trick:
>
> mycomponent = LOAD(..., _style='display:inline')
>
> If not, you should be able to do something like this in the view (not 
> tested):
>
> 
> $.web2py.component('{{=URL(...)}}', 'mycomponent', el=$(
> '#mycomponent'));
>
> Anthony
>
> On Thursday, March 24, 2016 at 12:51:33 PM UTC-4, webm...@trytha.com 
>  wrote:
>>
>> I want my component to load in a span() instead of the default 
>> div(class="data-w2p_remote").  Anyone know the best way to do 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] web2py 2.14.1 is OUT

2016-03-24 Thread Richard Vézina
Here : https://github.com/web2py/web2py/releases

2.11.2 is still flagged as Latest

2.14.1 doesn't appear either...

On Thu, Mar 24, 2016 at 1:36 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:

> http://web2py.com/
>
> First of all many many thanks to Simone (niphlod), Richard, and Leonel.
> Most of the work is theirs.
>
> It is important that you upgrade because we fixed some serious security
> bugs that may leak your admin password (if you use rocket and expose the
> old example app).
>
> We fixed many many bug and in particular everything should work fine on
> GAE now, including Datastore and Cloud SQL.
>
> CHANGELOG
>
> - fixed two major security issues that caused the examples app to leak
> information
>
> - new Auth(…,host_names=[…]) to prevent host header injection
>
> - improved scheduler
>
> - pep8 enhancements
>
> - many bug fixes
>
> - restored GAE support that was broken in 2.13.*
>
> - improved fabfile for deployment
>
> - refactored examples with stupid.css
>
> - new JWT implementation (experimental)
>
> - new gluon.contrib.redis_scheduler
>
> - myconf.get
>
> - LDAP groups (experimental)
>
> - .flash -> .w2p_flash
>
> - Updated feedparser.py 5.2.1
>
> - Updated jQuery 1.12.2
>
> - welcome app now checks for version number
>
> - Redis improvements.
>
>
> BEFORE:
>
> from gluon.contrib.redis_cache import RedisCache
>
> cache.redis = RedisCache('localhost:6379',db=None, debug=True)
>
>
> NOW:
>
> from gluon.contrib.redis_utils import RConn
>
> from gluon.contrib.redis_cache import RedisCache
>
> rconn = RConn()
>
> # or RConn(host='localhost', port=6379,
>
> # db=0, password=None, socket_timeout=None,
>
> # socket_connect_timeout=None, .)
>
> # exactly as a redis.StrictRedis instance
>
> cache.redis = RedisCache(redis_conn=rconn, debug=True)
>
> BEFORE:
>
> from gluon.contrib.redis_session import RedisSession
>
> sessiondb = RedisSession('localhost:6379',db=0, session_expiry=False)
>
> session.connect(request, response, db = sessiondb)
>
>
> NOW:
>
> from gluon.contrib.redis_utils import RConn
>
> from gluon.contrib.redis_session import RedisSession
>
> rconn = RConn()
>
> sessiondb = RedisSession(redis_conn=rconn, session_expiry=False)
>
> session.connect(request, response, db = sessiondb)
>
> --
> 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.


Re: [web2py] web2py 2.14.1 is OUT

2016-03-24 Thread Ron Chatterjee
I downloaded the new source code from web2py/download and it still says:

2.13.4-stable+timestamp.2015.12.26.04.59.39

Where is 2.14.1 is located?

On Thursday, March 24, 2016 at 1:52:45 PM UTC-4, Richard wrote:
>
> Here : https://github.com/web2py/web2py/releases
>
> 2.11.2 is still flagged as Latest
>
> 2.14.1 doesn't appear either...
>
> On Thu, Mar 24, 2016 at 1:36 PM, Massimo Di Pierro  > wrote:
>
>> http://web2py.com/
>>
>> First of all many many thanks to Simone (niphlod), Richard, and Leonel. 
>> Most of the work is theirs.
>>
>> It is important that you upgrade because we fixed some serious security 
>> bugs that may leak your admin password (if you use rocket and expose the 
>> old example app).
>>
>> We fixed many many bug and in particular everything should work fine on 
>> GAE now, including Datastore and Cloud SQL.
>>
>> CHANGELOG
>>
>> - fixed two major security issues that caused the examples app to leak 
>> information
>>
>> - new Auth(…,host_names=[…]) to prevent host header injection
>>
>> - improved scheduler
>>
>> - pep8 enhancements
>>
>> - many bug fixes
>>
>> - restored GAE support that was broken in 2.13.*
>>
>> - improved fabfile for deployment
>>
>> - refactored examples with stupid.css
>>
>> - new JWT implementation (experimental)
>>
>> - new gluon.contrib.redis_scheduler
>>
>> - myconf.get
>>
>> - LDAP groups (experimental)
>>
>> - .flash -> .w2p_flash
>>
>> - Updated feedparser.py 5.2.1
>>
>> - Updated jQuery 1.12.2
>>
>> - welcome app now checks for version number
>>
>> - Redis improvements.
>>
>>
>> BEFORE:
>>
>> from gluon.contrib.redis_cache import RedisCache
>>
>> cache.redis = RedisCache('localhost:6379',db=None, debug=True)
>>
>>
>> NOW:
>>
>> from gluon.contrib.redis_utils import RConn
>>
>> from gluon.contrib.redis_cache import RedisCache
>>
>> rconn = RConn()
>>
>> # or RConn(host='localhost', port=6379,
>>
>> # db=0, password=None, socket_timeout=None,
>>
>> # socket_connect_timeout=None, .)
>>
>> # exactly as a redis.StrictRedis instance
>>
>> cache.redis = RedisCache(redis_conn=rconn, debug=True)
>>
>> BEFORE:
>>
>> from gluon.contrib.redis_session import RedisSession
>>
>> sessiondb = RedisSession('localhost:6379',db=0, session_expiry=False)
>>
>> session.connect(request, response, db = sessiondb)
>>
>>
>> NOW:
>>
>> from gluon.contrib.redis_utils import RConn
>>
>> from gluon.contrib.redis_session import RedisSession
>>
>> rconn = RConn()
>>
>> sessiondb = RedisSession(redis_conn=rconn, session_expiry=False)
>>
>> session.connect(request, response, db = sessiondb)
>>
>> -- 
>> 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+un...@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.


Re: [web2py] web2py 2.14.1 is OUT

2016-03-24 Thread Richard Vézina
@Ron, you need to take the trunk :
https://github.com/web2py/web2py/blob/master/VERSION

On Thu, Mar 24, 2016 at 2:13 PM, Ron Chatterjee 
wrote:

> I downloaded the new source code from web2py/download and it still says:
>
> 2.13.4-stable+timestamp.2015.12.26.04.59.39
>
> Where is 2.14.1 is located?
>
> On Thursday, March 24, 2016 at 1:52:45 PM UTC-4, Richard wrote:
>>
>> Here : https://github.com/web2py/web2py/releases
>>
>> 2.11.2 is still flagged as Latest
>>
>> 2.14.1 doesn't appear either...
>>
>> On Thu, Mar 24, 2016 at 1:36 PM, Massimo Di Pierro > > wrote:
>>
>>> http://web2py.com/
>>>
>>> First of all many many thanks to Simone (niphlod), Richard, and Leonel.
>>> Most of the work is theirs.
>>>
>>> It is important that you upgrade because we fixed some serious security
>>> bugs that may leak your admin password (if you use rocket and expose the
>>> old example app).
>>>
>>> We fixed many many bug and in particular everything should work fine on
>>> GAE now, including Datastore and Cloud SQL.
>>>
>>> CHANGELOG
>>>
>>> - fixed two major security issues that caused the examples app to leak
>>> information
>>>
>>> - new Auth(…,host_names=[…]) to prevent host header injection
>>>
>>> - improved scheduler
>>>
>>> - pep8 enhancements
>>>
>>> - many bug fixes
>>>
>>> - restored GAE support that was broken in 2.13.*
>>>
>>> - improved fabfile for deployment
>>>
>>> - refactored examples with stupid.css
>>>
>>> - new JWT implementation (experimental)
>>>
>>> - new gluon.contrib.redis_scheduler
>>>
>>> - myconf.get
>>>
>>> - LDAP groups (experimental)
>>>
>>> - .flash -> .w2p_flash
>>>
>>> - Updated feedparser.py 5.2.1
>>>
>>> - Updated jQuery 1.12.2
>>>
>>> - welcome app now checks for version number
>>>
>>> - Redis improvements.
>>>
>>>
>>> BEFORE:
>>>
>>> from gluon.contrib.redis_cache import RedisCache
>>>
>>> cache.redis = RedisCache('localhost:6379',db=None, debug=True)
>>>
>>>
>>> NOW:
>>>
>>> from gluon.contrib.redis_utils import RConn
>>>
>>> from gluon.contrib.redis_cache import RedisCache
>>>
>>> rconn = RConn()
>>>
>>> # or RConn(host='localhost', port=6379,
>>>
>>> # db=0, password=None, socket_timeout=None,
>>>
>>> # socket_connect_timeout=None, .)
>>>
>>> # exactly as a redis.StrictRedis instance
>>>
>>> cache.redis = RedisCache(redis_conn=rconn, debug=True)
>>>
>>> BEFORE:
>>>
>>> from gluon.contrib.redis_session import RedisSession
>>>
>>> sessiondb = RedisSession('localhost:6379',db=0, session_expiry=False)
>>>
>>> session.connect(request, response, db = sessiondb)
>>>
>>>
>>> NOW:
>>>
>>> from gluon.contrib.redis_utils import RConn
>>>
>>> from gluon.contrib.redis_session import RedisSession
>>>
>>> rconn = RConn()
>>>
>>> sessiondb = RedisSession(redis_conn=rconn, session_expiry=False)
>>>
>>> session.connect(request, response, db = sessiondb)
>>>
>>> --
>>> 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+un...@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.
>

-- 
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] web2py 2.14.1 is OUT

2016-03-24 Thread Richard Vézina
Here : http://www.web2py.com/examples/static/nightly/web2py_src.zip

On Thu, Mar 24, 2016 at 2:17 PM, Richard Vézina  wrote:

> @Ron, you need to take the trunk :
> https://github.com/web2py/web2py/blob/master/VERSION
>
> On Thu, Mar 24, 2016 at 2:13 PM, Ron Chatterjee 
> wrote:
>
>> I downloaded the new source code from web2py/download and it still says:
>>
>> 2.13.4-stable+timestamp.2015.12.26.04.59.39
>>
>> Where is 2.14.1 is located?
>>
>> On Thursday, March 24, 2016 at 1:52:45 PM UTC-4, Richard wrote:
>>>
>>> Here : https://github.com/web2py/web2py/releases
>>>
>>> 2.11.2 is still flagged as Latest
>>>
>>> 2.14.1 doesn't appear either...
>>>
>>> On Thu, Mar 24, 2016 at 1:36 PM, Massimo Di Pierro <
>>> massimo@gmail.com> wrote:
>>>
 http://web2py.com/

 First of all many many thanks to Simone (niphlod), Richard, and Leonel.
 Most of the work is theirs.

 It is important that you upgrade because we fixed some serious security
 bugs that may leak your admin password (if you use rocket and expose the
 old example app).

 We fixed many many bug and in particular everything should work fine on
 GAE now, including Datastore and Cloud SQL.

 CHANGELOG

 - fixed two major security issues that caused the examples app to leak
 information

 - new Auth(…,host_names=[…]) to prevent host header injection

 - improved scheduler

 - pep8 enhancements

 - many bug fixes

 - restored GAE support that was broken in 2.13.*

 - improved fabfile for deployment

 - refactored examples with stupid.css

 - new JWT implementation (experimental)

 - new gluon.contrib.redis_scheduler

 - myconf.get

 - LDAP groups (experimental)

 - .flash -> .w2p_flash

 - Updated feedparser.py 5.2.1

 - Updated jQuery 1.12.2

 - welcome app now checks for version number

 - Redis improvements.


 BEFORE:

 from gluon.contrib.redis_cache import RedisCache

 cache.redis = RedisCache('localhost:6379',db=None, debug=True)


 NOW:

 from gluon.contrib.redis_utils import RConn

 from gluon.contrib.redis_cache import RedisCache

 rconn = RConn()

 # or RConn(host='localhost', port=6379,

 # db=0, password=None, socket_timeout=None,

 # socket_connect_timeout=None, .)

 # exactly as a redis.StrictRedis instance

 cache.redis = RedisCache(redis_conn=rconn, debug=True)

 BEFORE:

 from gluon.contrib.redis_session import RedisSession

 sessiondb = RedisSession('localhost:6379',db=0,
 session_expiry=False)

 session.connect(request, response, db = sessiondb)


 NOW:

 from gluon.contrib.redis_utils import RConn

 from gluon.contrib.redis_session import RedisSession

 rconn = RConn()

 sessiondb = RedisSession(redis_conn=rconn, session_expiry=False)

 session.connect(request, response, db = sessiondb)

 --
 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+un...@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.
>>
>
>

-- 
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] web2py 2.14.1 is OUT

2016-03-24 Thread Massimo Di Pierro
Ron is right. Should be there. Checking.

Massimo

On Thursday, 24 March 2016 13:13:13 UTC-5, Ron Chatterjee wrote:
>
> I downloaded the new source code from web2py/download and it still says:
>
> 2.13.4-stable+timestamp.2015.12.26.04.59.39
>
> Where is 2.14.1 is located?
>
> On Thursday, March 24, 2016 at 1:52:45 PM UTC-4, Richard wrote:
>>
>> Here : https://github.com/web2py/web2py/releases
>>
>> 2.11.2 is still flagged as Latest
>>
>> 2.14.1 doesn't appear either...
>>
>> On Thu, Mar 24, 2016 at 1:36 PM, Massimo Di Pierro > > wrote:
>>
>>> http://web2py.com/
>>>
>>> First of all many many thanks to Simone (niphlod), Richard, and Leonel. 
>>> Most of the work is theirs.
>>>
>>> It is important that you upgrade because we fixed some serious security 
>>> bugs that may leak your admin password (if you use rocket and expose the 
>>> old example app).
>>>
>>> We fixed many many bug and in particular everything should work fine on 
>>> GAE now, including Datastore and Cloud SQL.
>>>
>>> CHANGELOG
>>>
>>> - fixed two major security issues that caused the examples app to leak 
>>> information
>>>
>>> - new Auth(…,host_names=[…]) to prevent host header injection
>>>
>>> - improved scheduler
>>>
>>> - pep8 enhancements
>>>
>>> - many bug fixes
>>>
>>> - restored GAE support that was broken in 2.13.*
>>>
>>> - improved fabfile for deployment
>>>
>>> - refactored examples with stupid.css
>>>
>>> - new JWT implementation (experimental)
>>>
>>> - new gluon.contrib.redis_scheduler
>>>
>>> - myconf.get
>>>
>>> - LDAP groups (experimental)
>>>
>>> - .flash -> .w2p_flash
>>>
>>> - Updated feedparser.py 5.2.1
>>>
>>> - Updated jQuery 1.12.2
>>>
>>> - welcome app now checks for version number
>>>
>>> - Redis improvements.
>>>
>>>
>>> BEFORE:
>>>
>>> from gluon.contrib.redis_cache import RedisCache
>>>
>>> cache.redis = RedisCache('localhost:6379',db=None, debug=True)
>>>
>>>
>>> NOW:
>>>
>>> from gluon.contrib.redis_utils import RConn
>>>
>>> from gluon.contrib.redis_cache import RedisCache
>>>
>>> rconn = RConn()
>>>
>>> # or RConn(host='localhost', port=6379,
>>>
>>> # db=0, password=None, socket_timeout=None,
>>>
>>> # socket_connect_timeout=None, .)
>>>
>>> # exactly as a redis.StrictRedis instance
>>>
>>> cache.redis = RedisCache(redis_conn=rconn, debug=True)
>>>
>>> BEFORE:
>>>
>>> from gluon.contrib.redis_session import RedisSession
>>>
>>> sessiondb = RedisSession('localhost:6379',db=0, session_expiry=False)
>>>
>>> session.connect(request, response, db = sessiondb)
>>>
>>>
>>> NOW:
>>>
>>> from gluon.contrib.redis_utils import RConn
>>>
>>> from gluon.contrib.redis_session import RedisSession
>>>
>>> rconn = RConn()
>>>
>>> sessiondb = RedisSession(redis_conn=rconn, session_expiry=False)
>>>
>>> session.connect(request, response, db = sessiondb)
>>>
>>> -- 
>>> 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+un...@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.


Re: [web2py] web2py 2.14.1 is OUT

2016-03-24 Thread Ron Chatterjee
Thank you Richard. Thanks Massimo

On Thursday, March 24, 2016 at 2:41:38 PM UTC-4, Massimo Di Pierro wrote:
>
> Ron is right. Should be there. Checking.
>
> Massimo
>
> On Thursday, 24 March 2016 13:13:13 UTC-5, Ron Chatterjee wrote:
>>
>> I downloaded the new source code from web2py/download and it still says:
>>
>> 2.13.4-stable+timestamp.2015.12.26.04.59.39
>>
>> Where is 2.14.1 is located?
>>
>> On Thursday, March 24, 2016 at 1:52:45 PM UTC-4, Richard wrote:
>>>
>>> Here : https://github.com/web2py/web2py/releases
>>>
>>> 2.11.2 is still flagged as Latest
>>>
>>> 2.14.1 doesn't appear either...
>>>
>>> On Thu, Mar 24, 2016 at 1:36 PM, Massimo Di Pierro <
>>> massimo@gmail.com> wrote:
>>>
 http://web2py.com/

 First of all many many thanks to Simone (niphlod), Richard, and Leonel. 
 Most of the work is theirs.

 It is important that you upgrade because we fixed some serious security 
 bugs that may leak your admin password (if you use rocket and expose the 
 old example app).

 We fixed many many bug and in particular everything should work fine on 
 GAE now, including Datastore and Cloud SQL.

 CHANGELOG

 - fixed two major security issues that caused the examples app to leak 
 information

 - new Auth(…,host_names=[…]) to prevent host header injection

 - improved scheduler

 - pep8 enhancements

 - many bug fixes

 - restored GAE support that was broken in 2.13.*

 - improved fabfile for deployment

 - refactored examples with stupid.css

 - new JWT implementation (experimental)

 - new gluon.contrib.redis_scheduler

 - myconf.get

 - LDAP groups (experimental)

 - .flash -> .w2p_flash

 - Updated feedparser.py 5.2.1

 - Updated jQuery 1.12.2

 - welcome app now checks for version number

 - Redis improvements.


 BEFORE:

 from gluon.contrib.redis_cache import RedisCache

 cache.redis = RedisCache('localhost:6379',db=None, debug=True)


 NOW:

 from gluon.contrib.redis_utils import RConn

 from gluon.contrib.redis_cache import RedisCache

 rconn = RConn()

 # or RConn(host='localhost', port=6379,

 # db=0, password=None, socket_timeout=None,

 # socket_connect_timeout=None, .)

 # exactly as a redis.StrictRedis instance

 cache.redis = RedisCache(redis_conn=rconn, debug=True)

 BEFORE:

 from gluon.contrib.redis_session import RedisSession

 sessiondb = RedisSession('localhost:6379',db=0, 
 session_expiry=False)

 session.connect(request, response, db = sessiondb)


 NOW:

 from gluon.contrib.redis_utils import RConn

 from gluon.contrib.redis_session import RedisSession

 rconn = RConn()

 sessiondb = RedisSession(redis_conn=rconn, session_expiry=False)

 session.connect(request, response, db = sessiondb)

 -- 
 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+un...@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.


Re: [web2py] web2py 2.14.1 is OUT

2016-03-24 Thread Massimo Di Pierro
I checked and the stable versions at web2py.com/ and they are 2.14.1. 
@Ron. Try again. 

On Thursday, 24 March 2016 13:41:38 UTC-5, Massimo Di Pierro wrote:
>
> Ron is right. Should be there. Checking.
>
> Massimo
>
> On Thursday, 24 March 2016 13:13:13 UTC-5, Ron Chatterjee wrote:
>>
>> I downloaded the new source code from web2py/download and it still says:
>>
>> 2.13.4-stable+timestamp.2015.12.26.04.59.39
>>
>> Where is 2.14.1 is located?
>>
>> On Thursday, March 24, 2016 at 1:52:45 PM UTC-4, Richard wrote:
>>>
>>> Here : https://github.com/web2py/web2py/releases
>>>
>>> 2.11.2 is still flagged as Latest
>>>
>>> 2.14.1 doesn't appear either...
>>>
>>> On Thu, Mar 24, 2016 at 1:36 PM, Massimo Di Pierro <
>>> massimo@gmail.com> wrote:
>>>
 http://web2py.com/

 First of all many many thanks to Simone (niphlod), Richard, and Leonel. 
 Most of the work is theirs.

 It is important that you upgrade because we fixed some serious security 
 bugs that may leak your admin password (if you use rocket and expose the 
 old example app).

 We fixed many many bug and in particular everything should work fine on 
 GAE now, including Datastore and Cloud SQL.

 CHANGELOG

 - fixed two major security issues that caused the examples app to leak 
 information

 - new Auth(…,host_names=[…]) to prevent host header injection

 - improved scheduler

 - pep8 enhancements

 - many bug fixes

 - restored GAE support that was broken in 2.13.*

 - improved fabfile for deployment

 - refactored examples with stupid.css

 - new JWT implementation (experimental)

 - new gluon.contrib.redis_scheduler

 - myconf.get

 - LDAP groups (experimental)

 - .flash -> .w2p_flash

 - Updated feedparser.py 5.2.1

 - Updated jQuery 1.12.2

 - welcome app now checks for version number

 - Redis improvements.


 BEFORE:

 from gluon.contrib.redis_cache import RedisCache

 cache.redis = RedisCache('localhost:6379',db=None, debug=True)


 NOW:

 from gluon.contrib.redis_utils import RConn

 from gluon.contrib.redis_cache import RedisCache

 rconn = RConn()

 # or RConn(host='localhost', port=6379,

 # db=0, password=None, socket_timeout=None,

 # socket_connect_timeout=None, .)

 # exactly as a redis.StrictRedis instance

 cache.redis = RedisCache(redis_conn=rconn, debug=True)

 BEFORE:

 from gluon.contrib.redis_session import RedisSession

 sessiondb = RedisSession('localhost:6379',db=0, 
 session_expiry=False)

 session.connect(request, response, db = sessiondb)


 NOW:

 from gluon.contrib.redis_utils import RConn

 from gluon.contrib.redis_session import RedisSession

 rconn = RConn()

 sessiondb = RedisSession(redis_conn=rconn, session_expiry=False)

 session.connect(request, response, db = sessiondb)

 -- 
 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+un...@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.


Re: [web2py] web2py 2.14.1 is OUT

2016-03-24 Thread Richard Vézina
Fine for me...

On Thu, Mar 24, 2016 at 2:45 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:

> I checked and the stable versions at web2py.com/ and they are 2.14.1.
> @Ron. Try again.
>
>
> On Thursday, 24 March 2016 13:41:38 UTC-5, Massimo Di Pierro wrote:
>>
>> Ron is right. Should be there. Checking.
>>
>> Massimo
>>
>> On Thursday, 24 March 2016 13:13:13 UTC-5, Ron Chatterjee wrote:
>>>
>>> I downloaded the new source code from web2py/download and it still says:
>>>
>>> 2.13.4-stable+timestamp.2015.12.26.04.59.39
>>>
>>> Where is 2.14.1 is located?
>>>
>>> On Thursday, March 24, 2016 at 1:52:45 PM UTC-4, Richard wrote:

 Here : https://github.com/web2py/web2py/releases

 2.11.2 is still flagged as Latest

 2.14.1 doesn't appear either...

 On Thu, Mar 24, 2016 at 1:36 PM, Massimo Di Pierro <
 massimo@gmail.com> wrote:

> http://web2py.com/
>
> First of all many many thanks to Simone (niphlod), Richard, and
> Leonel. Most of the work is theirs.
>
> It is important that you upgrade because we fixed some serious
> security bugs that may leak your admin password (if you use rocket and
> expose the old example app).
>
> We fixed many many bug and in particular everything should work fine
> on GAE now, including Datastore and Cloud SQL.
>
> CHANGELOG
>
> - fixed two major security issues that caused the examples app to leak
> information
>
> - new Auth(…,host_names=[…]) to prevent host header injection
>
> - improved scheduler
>
> - pep8 enhancements
>
> - many bug fixes
>
> - restored GAE support that was broken in 2.13.*
>
> - improved fabfile for deployment
>
> - refactored examples with stupid.css
>
> - new JWT implementation (experimental)
>
> - new gluon.contrib.redis_scheduler
>
> - myconf.get
>
> - LDAP groups (experimental)
>
> - .flash -> .w2p_flash
>
> - Updated feedparser.py 5.2.1
>
> - Updated jQuery 1.12.2
>
> - welcome app now checks for version number
>
> - Redis improvements.
>
>
> BEFORE:
>
> from gluon.contrib.redis_cache import RedisCache
>
> cache.redis = RedisCache('localhost:6379',db=None, debug=True)
>
>
> NOW:
>
> from gluon.contrib.redis_utils import RConn
>
> from gluon.contrib.redis_cache import RedisCache
>
> rconn = RConn()
>
> # or RConn(host='localhost', port=6379,
>
> # db=0, password=None, socket_timeout=None,
>
> # socket_connect_timeout=None, .)
>
> # exactly as a redis.StrictRedis instance
>
> cache.redis = RedisCache(redis_conn=rconn, debug=True)
>
> BEFORE:
>
> from gluon.contrib.redis_session import RedisSession
>
> sessiondb = RedisSession('localhost:6379',db=0,
> session_expiry=False)
>
> session.connect(request, response, db = sessiondb)
>
>
> NOW:
>
> from gluon.contrib.redis_utils import RConn
>
> from gluon.contrib.redis_session import RedisSession
>
> rconn = RConn()
>
> sessiondb = RedisSession(redis_conn=rconn, session_expiry=False)
>
> session.connect(request, response, db = sessiondb)
>
> --
> 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+un...@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.
>

-- 
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] Input Form Fields

2016-03-24 Thread Akash Sarda
Hey, i am a beginner. Suppose i want to take input through a text-box from 
a user and try to process it, how do i take it for temporry use? when i 
don't want to store it 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 change Web2py interface language

2016-03-24 Thread Dave S


On Thursday, April 22, 2010 at 3:07:44 AM UTC-7, Johann Spies wrote:
>
> [...]
> I wonder why the default naming of the files use the double-names like 
> es-es.py. 
>
>
Some languages have significant variants.  See fr.py and fr-ca.py (for 
France and for Canada (Quebec)).

Some folks claim there should be en-us and en-br, and maybe en-za, en-nz, 
en-oz.
(Your spell-checker probably has separate incantations for some of those.)

/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] new Starter app (alternative to Welcome app)

2016-03-24 Thread Ron Chatterjee
I am sorry, I was having some problem downloading the latest version so 
everything is good. Quick question Michael, how does someone change the 
profile picture? There is a avatar field?

On Thursday, March 24, 2016 at 11:56:27 AM UTC-4, Michael Beller wrote:
>
> The appconfig in 2.13 has a problem with strings separated by comma's in 
> the appconfig.ini file.  Starter app uses 2.14.1
>
> You can either install 2.14.1 or just change ...
>
> line 34 in initialize.py:
> for group in myconf.get('admin_user.auth_groups'):
>
> could replace with
> for group in ['Admin', 'Customer Service', 'Operations']:
>
> or just change the function to create the Admin group which is all that's 
> needed.
>
>
>
> On Thu, Mar 24, 2016 at 11:20 AM, Ron Chatterjee  > wrote:
>
>> Not sure its ready to be posted. I just downloaded the app and I don't 
>> see any initialization. My experience...it seems have some issues still 
>> (see the attached pic) . When I tried to register, I get this error:
>>
>>
>> Traceback *(*most recent call last
>> *):   *File "…\web2py\gluon\restricted.py"*, *line 227*, in *restricted
>> *exec *ccode *in *environment
>>   File" …applications/starter/controllers/default.py" 
>> *, 
>> *line 91*, in <*module
>> *>   *File "…web2py\gluon\globals.py"*, *line 412
>> *, in  self.*_caller *= lambda *f*: *f
>> *()   *File …/starter/controllers/default.py" 
>> *, 
>> *line 70*, in *user
>> *return *dict*(*form*=*auth
>> *())   *File "…web2py\gluon\tools.py"*, *line 1923*, in *__call__
>> *return *getattr*(self, *args*[*0
>> *])()   *File "…\tools.py"*, *line 3375*, in *register
>> *self.*login_user*(*user
>> *)   *File "…web2py\gluon\tools.py"*, *line 2630*, in *login_user
>> user *= *Row*(*user
>> *)   *File "…\helpers\classes.py"*, *line 18*, in *__init__
>> *return self.*__dict__*.*__init__*(**args*, ***kwargs
>> *) *TypeError*: *'NoneType' object *is not *iterable
>>
>> Using 2.13.4 (which has a flash bar rash that just don't go away). 
>>
>>
>>
>> On Thursday, March 24, 2016 at 10:38:35 AM UTC-4, Michael Beller wrote:
>>>
>>> I commonly create a user (usually my email) and an Admin group and then 
>>> add myself to the Admin group.  I have logic in the Starter app based on 
>>> the Admin group.  I usually have other groups such as Operations and 
>>> Customer Service (I tend to build enterprise 'line of business' apps).  
>>> Since I frequently clean out the database during initial development, I 
>>> just created an initialization function that automatically adds an initial 
>>> set of test users, groups, and memberships so I don't have to do it 
>>> manually,   The Initialization function also calls a function that 
>>> automatically populates tables with test data (using the Populate function) 
>>> that is helpful for quick demos during prototyping and user demos.  You can 
>>> modify the routines to meet your needs - it's just something I always end 
>>> up creating so I put it in my scaffold app.
>>>
>>> On Thu, Mar 24, 2016 at 9:13 AM,  wrote:
>>>
 This may be little preliminary but what you mean by "Admin user and 
 auth_groups" setup and how? I don't recall anything to set up with the 
 welcome app. It worked the first time straight out of the box.


 On Thursday, March 24, 2016 at 8:56:22 AM UTC-4, Ron Chatterjee wrote:
>
> I am looking at this link:
>
> https://almsaeedstudio.com/themes/AdminLTE/documentation/index.html. 
> Is that widget/plugin that comes with that bootstrap? Michael, you 
> familiar 
> with that?
>
> It has something call direct chat. 
>
> On Thursday, March 24, 2016 at 12:23:08 AM UTC-4, Michael Beller wrote:
>>
>> I plan to! When ready, I'd like to try and apply these styles
>> https://almsaeedstudio.com/themes/AdminLTE/pages/forms/general.html 
>> to the new form.py and perhaps
>> https://almsaeedstudio.com/themes/AdminLTE/pages/tables/data.html
>> to the new grid.py
>>
>> On Wednesday, March 23, 2016 at 10:22:32 PM UTC-4, Massimo Di Pierro 
>> wrote:
>>>
>>> I am linking this from the new examples app. I assume you will be 
>>> maintaining it. for a while. :-)
>>> On Wednesday, 23 March 2016 19:38:22 UTC-5, Michael Beller wrote:

 Are you using 2.14.1 beta?

 I would try to get it running without changes before making changes 
 (unless you have a need to get it running on an old version of 
 web2py).  As 
 Massimo pointed out, it's not necessarily backward compatible but 
 other 
 than removing host_names (which I already did in the repo) I don't see 
 why 
 it wouldn't work on an older version (I also had to remove formstyle 
 from 
 appconfig to support an older 

Re: [web2py] web2py 2.14.1 is OUT

2016-03-24 Thread Ron Chatterjee
Its all good Massimo. I was able to download it from the link. Idk what 
happened . I thoughts I got the source and it said 2.13...my bad.

On Thursday, March 24, 2016 at 2:46:41 PM UTC-4, Richard wrote:
>
> Fine for me...
>
> On Thu, Mar 24, 2016 at 2:45 PM, Massimo Di Pierro  > wrote:
>
>> I checked and the stable versions at web2py.com/ and they are 2.14.1. 
>> @Ron. Try again. 
>>
>>
>> On Thursday, 24 March 2016 13:41:38 UTC-5, Massimo Di Pierro wrote:
>>>
>>> Ron is right. Should be there. Checking.
>>>
>>> Massimo
>>>
>>> On Thursday, 24 March 2016 13:13:13 UTC-5, Ron Chatterjee wrote:

 I downloaded the new source code from web2py/download and it still says:

 2.13.4-stable+timestamp.2015.12.26.04.59.39

 Where is 2.14.1 is located?

 On Thursday, March 24, 2016 at 1:52:45 PM UTC-4, Richard wrote:
>
> Here : https://github.com/web2py/web2py/releases
>
> 2.11.2 is still flagged as Latest
>
> 2.14.1 doesn't appear either...
>
> On Thu, Mar 24, 2016 at 1:36 PM, Massimo Di Pierro <
> massimo@gmail.com> wrote:
>
>> http://web2py.com/
>>
>> First of all many many thanks to Simone (niphlod), Richard, and 
>> Leonel. Most of the work is theirs.
>>
>> It is important that you upgrade because we fixed some serious 
>> security bugs that may leak your admin password (if you use rocket and 
>> expose the old example app).
>>
>> We fixed many many bug and in particular everything should work fine 
>> on GAE now, including Datastore and Cloud SQL.
>>
>> CHANGELOG
>>
>> - fixed two major security issues that caused the examples app to 
>> leak information
>>
>> - new Auth(…,host_names=[…]) to prevent host header injection
>>
>> - improved scheduler
>>
>> - pep8 enhancements
>>
>> - many bug fixes
>>
>> - restored GAE support that was broken in 2.13.*
>>
>> - improved fabfile for deployment
>>
>> - refactored examples with stupid.css
>>
>> - new JWT implementation (experimental)
>>
>> - new gluon.contrib.redis_scheduler
>>
>> - myconf.get
>>
>> - LDAP groups (experimental)
>>
>> - .flash -> .w2p_flash
>>
>> - Updated feedparser.py 5.2.1
>>
>> - Updated jQuery 1.12.2
>>
>> - welcome app now checks for version number
>>
>> - Redis improvements.
>>
>>
>> BEFORE:
>>
>> from gluon.contrib.redis_cache import RedisCache
>>
>> cache.redis = RedisCache('localhost:6379',db=None, debug=True)
>>
>>
>> NOW:
>>
>> from gluon.contrib.redis_utils import RConn
>>
>> from gluon.contrib.redis_cache import RedisCache
>>
>> rconn = RConn()
>>
>> # or RConn(host='localhost', port=6379,
>>
>> # db=0, password=None, socket_timeout=None,
>>
>> # socket_connect_timeout=None, .)
>>
>> # exactly as a redis.StrictRedis instance
>>
>> cache.redis = RedisCache(redis_conn=rconn, debug=True)
>>
>> BEFORE:
>>
>> from gluon.contrib.redis_session import RedisSession
>>
>> sessiondb = RedisSession('localhost:6379',db=0, 
>> session_expiry=False)
>>
>> session.connect(request, response, db = sessiondb)
>>
>>
>> NOW:
>>
>> from gluon.contrib.redis_utils import RConn
>>
>> from gluon.contrib.redis_session import RedisSession
>>
>> rconn = RConn()
>>
>> sessiondb = RedisSession(redis_conn=rconn, session_expiry=False)
>>
>> session.connect(request, response, db = sessiondb)
>>
>> -- 
>> 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+un...@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+un...@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 Issue

Re: [web2py] new Starter app (alternative to Welcome app)

2016-03-24 Thread Michael Beller
No Avatar field yet!  It's hardcoded in the template.  It should be easy to 
add a custom field to the auth_user table following these instructions:
http://web2py.com/books/default/chapter/29/09/access-control?search=auth_user#Customizing-Auth

Then you can upload an avatar using the user profile page.

I haven't done this with images but it should be straight forward (it's on 
my todo list!)

You can also designate a dedicated folder for the avatar uploads so they're 
not commingled with other upload files ...
http://web2py.com/books/default/chapter/29/07/forms-and-validators?search=upload#SQLFORM-and-uploads

On Thursday, March 24, 2016 at 3:03:41 PM UTC-4, Ron Chatterjee wrote:
>
> I am sorry, I was having some problem downloading the latest version so 
> everything is good. Quick question Michael, how does someone change the 
> profile picture? There is a avatar field?
>
> On Thursday, March 24, 2016 at 11:56:27 AM UTC-4, Michael Beller wrote:
>>
>> The appconfig in 2.13 has a problem with strings separated by comma's in 
>> the appconfig.ini file.  Starter app uses 2.14.1
>>
>> You can either install 2.14.1 or just change ...
>>
>> line 34 in initialize.py:
>> for group in myconf.get('admin_user.auth_groups'):
>>
>> could replace with
>> for group in ['Admin', 'Customer Service', 'Operations']:
>>
>> or just change the function to create the Admin group which is all that's 
>> needed.
>>
>>
>>
>> On Thu, Mar 24, 2016 at 11:20 AM, Ron Chatterjee  
>> wrote:
>>
>>> Not sure its ready to be posted. I just downloaded the app and I don't 
>>> see any initialization. My experience...it seems have some issues still 
>>> (see the attached pic) . When I tried to register, I get this error:
>>>
>>>
>>> Traceback *(*most recent call last
>>> *):   *File "…\web2py\gluon\restricted.py"*, *line 227*, in *restricted
>>> *exec *ccode *in *environment
>>>   File" …applications/starter/controllers/default.py" 
>>> *, 
>>> *line 91*, in <*module
>>> *>   *File "…web2py\gluon\globals.py"*, *line 412
>>> *, in  self.*_caller *= lambda *f*: *f
>>> *()   *File …/starter/controllers/default.py" 
>>> *, 
>>> *line 70*, in *user
>>> *return *dict*(*form*=*auth
>>> *())   *File "…web2py\gluon\tools.py"*, *line 1923*, in *__call__
>>> *return *getattr*(self, *args*[*0
>>> *])()   *File "…\tools.py"*, *line 3375*, in *register
>>> *self.*login_user*(*user
>>> *)   *File "…web2py\gluon\tools.py"*, *line 2630*, in *login_user
>>> user *= *Row*(*user
>>> *)   *File "…\helpers\classes.py"*, *line 18*, in *__init__
>>> *return self.*__dict__*.*__init__*(**args*, ***kwargs
>>> *) *TypeError*: *'NoneType' object *is not *iterable
>>>
>>> Using 2.13.4 (which has a flash bar rash that just don't go away). 
>>>
>>>
>>>
>>> On Thursday, March 24, 2016 at 10:38:35 AM UTC-4, Michael Beller wrote:

 I commonly create a user (usually my email) and an Admin group and then 
 add myself to the Admin group.  I have logic in the Starter app based on 
 the Admin group.  I usually have other groups such as Operations and 
 Customer Service (I tend to build enterprise 'line of business' apps).  
 Since I frequently clean out the database during initial development, I 
 just created an initialization function that automatically adds an initial 
 set of test users, groups, and memberships so I don't have to do it 
 manually,   The Initialization function also calls a function that 
 automatically populates tables with test data (using the Populate 
 function) 
 that is helpful for quick demos during prototyping and user demos.  You 
 can 
 modify the routines to meet your needs - it's just something I always end 
 up creating so I put it in my scaffold app.

 On Thu, Mar 24, 2016 at 9:13 AM,  wrote:

> This may be little preliminary but what you mean by "Admin user and 
> auth_groups" setup and how? I don't recall anything to set up with the 
> welcome app. It worked the first time straight out of the box.
>
>
> On Thursday, March 24, 2016 at 8:56:22 AM UTC-4, Ron Chatterjee wrote:
>>
>> I am looking at this link:
>>
>> https://almsaeedstudio.com/themes/AdminLTE/documentation/index.html. 
>> Is that widget/plugin that comes with that bootstrap? Michael, you 
>> familiar 
>> with that?
>>
>> It has something call direct chat. 
>>
>> On Thursday, March 24, 2016 at 12:23:08 AM UTC-4, Michael Beller 
>> wrote:
>>>
>>> I plan to! When ready, I'd like to try and apply these styles
>>> https://almsaeedstudio.com/themes/AdminLTE/pages/forms/general.html 
>>> to the new form.py and perhaps
>>> https://almsaeedstudio.com/themes/AdminLTE/pages/tables/data.html
>>> to the new grid.py
>>>
>>> On Wednesday, M

[web2py] Re: Input Form Fields

2016-03-24 Thread Leonel Câmara
Plenty of options, you can store it in the user's localstorage, you can 
store it in the session, you can store it in cache disk or ram.

-- 
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: web2py 2.14.1 is OUT

2016-03-24 Thread Dave S


On Thursday, March 24, 2016 at 10:36:54 AM UTC-7, Massimo Di Pierro wrote:
>
> http://web2py.com/
>
> First of all many many thanks to Simone (niphlod), Richard, and Leonel. 
> Most of the work is theirs.
>
>
My thanks also ... web2py has been a great resource for me.

As with the beta, I'm still getting a problem with one app:

web2py
Version 2.14.1-stable+timestamp.2016.03.24.17.26.52Python  Python 2.7.3: 
/usr/bin/python (prefix: /usr)



Traceback (most recent call last):
  File "/home/develop2/web2py/web2py-2141-beta/gluon/restricted.py", line 
227, in restricted
exec ccode in environment
  File "/home/develop2/web2py/web2py-2141-beta/applications/uploader/models/
scheduler.py", line 5, in 
from upwatcher import uploadwatch
  File "/home/develop2/web2py/web2py-2141-beta/gluon/custom_import.py", 
line 95, in custom_importer
return base_importer(pname, globals, locals, fromlist, level)
ImportError: No module named uploader.modules.upwatcher



Note   [applications/]uploader/models/scheduler.py is trying to import 
[applications/]uploader/module/upwatcher.py

This worked in 2.13.4,broke in 2.14.1-beta, still broke in 2.14.1
I've verified that upwatcher.py is present and contains the expected code.

Github says custom_importer hasn't changed since 2.13.1, so it may be 
something I'm doing, but I'm not sure what I've changed from the working 
version that would cause this.

/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] Re: web2py 2.14.1 is OUT

2016-03-24 Thread Richard Vézina
Hello Dave,

You may have a look in gluon/contrib... Simone had change scheduler since
2.13.1 and there is info about how to instantiate scheduler now in the
changelog...

On Thu, Mar 24, 2016 at 3:41 PM, Dave S  wrote:

>
>
> On Thursday, March 24, 2016 at 10:36:54 AM UTC-7, Massimo Di Pierro wrote:
>>
>> http://web2py.com/
>>
>> First of all many many thanks to Simone (niphlod), Richard, and Leonel.
>> Most of the work is theirs.
>>
>>
> My thanks also ... web2py has been a great resource for me.
>
> As with the beta, I'm still getting a problem with one app:
>
> web2py
> Version 2.14.1-stable+timestamp.2016.03.24.17.26.52Python  Python 2.7.3:
> /usr/bin/python (prefix: /usr)
>
>
>
> Traceback (most recent call last):
>   File "/home/develop2/web2py/web2py-2141-beta/gluon/restricted.py", line
> 227, in restricted
> exec ccode in environment
>   File "/home/develop2/web2py/web2py-2141-beta/applications/uploader/
> models/scheduler.py", line 5, in 
> from upwatcher import uploadwatch
>   File "/home/develop2/web2py/web2py-2141-beta/gluon/custom_import.py",
> line 95, in custom_importer
> return base_importer(pname, globals, locals, fromlist, level)
> ImportError: No module named uploader.modules.upwatcher
>
>
>
> Note   [applications/]uploader/models/scheduler.py is trying to import
> [applications/]uploader/module/upwatcher.py
>
> This worked in 2.13.4,broke in 2.14.1-beta, still broke in 2.14.1
> I've verified that upwatcher.py is present and contains the expected code.
>
> Github says custom_importer hasn't changed since 2.13.1, so it may be
> something I'm doing, but I'm not sure what I've changed from the working
> version that would cause this.
>
> /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.
>

-- 
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] new Starter app (alternative to Welcome app)

2016-03-24 Thread Ron Chatterjee
Its all good. Just asked. 

On Thursday, March 24, 2016 at 3:33:00 PM UTC-4, Michael Beller wrote:
>
> No Avatar field yet!  It's hardcoded in the template.  It should be easy 
> to add a custom field to the auth_user table following these instructions:
>
> http://web2py.com/books/default/chapter/29/09/access-control?search=auth_user#Customizing-Auth
>
> Then you can upload an avatar using the user profile page.
>
> I haven't done this with images but it should be straight forward (it's on 
> my todo list!)
>
> You can also designate a dedicated folder for the avatar uploads so 
> they're not commingled with other upload files ...
>
> http://web2py.com/books/default/chapter/29/07/forms-and-validators?search=upload#SQLFORM-and-uploads
>
> On Thursday, March 24, 2016 at 3:03:41 PM UTC-4, Ron Chatterjee wrote:
>>
>> I am sorry, I was having some problem downloading the latest version so 
>> everything is good. Quick question Michael, how does someone change the 
>> profile picture? There is a avatar field?
>>
>> On Thursday, March 24, 2016 at 11:56:27 AM UTC-4, Michael Beller wrote:
>>>
>>> The appconfig in 2.13 has a problem with strings separated by comma's in 
>>> the appconfig.ini file.  Starter app uses 2.14.1
>>>
>>> You can either install 2.14.1 or just change ...
>>>
>>> line 34 in initialize.py:
>>> for group in myconf.get('admin_user.auth_groups'):
>>>
>>> could replace with
>>> for group in ['Admin', 'Customer Service', 'Operations']:
>>>
>>> or just change the function to create the Admin group which is all 
>>> that's needed.
>>>
>>>
>>>
>>> On Thu, Mar 24, 2016 at 11:20 AM, Ron Chatterjee  
>>> wrote:
>>>
 Not sure its ready to be posted. I just downloaded the app and I don't 
 see any initialization. My experience...it seems have some issues still 
 (see the attached pic) . When I tried to register, I get this error:


 Traceback *(*most recent call last
 *):   *File "…\web2py\gluon\restricted.py"*, *line 227*, in *restricted
 *exec *ccode *in *environment
   File" …applications/starter/controllers/default.py" 
 *,
  
 *line 91*, in <*module
 *>   *File "…web2py\gluon\globals.py"*, *line 412
 *, in  self.*_caller *= lambda *f*: *f
 *()   *File …/starter/controllers/default.py" 
 *,
  
 *line 70*, in *user
 *return *dict*(*form*=*auth
 *())   *File "…web2py\gluon\tools.py"*, *line 1923*, in *__call__
 *return *getattr*(self, *args*[*0
 *])()   *File "…\tools.py"*, *line 3375*, in *register
 *self.*login_user*(*user
 *)   *File "…web2py\gluon\tools.py"*, *line 2630*, in *login_user
 user *= *Row*(*user
 *)   *File "…\helpers\classes.py"*, *line 18*, in *__init__
 *return self.*__dict__*.*__init__*(**args*, ***kwargs
 *) *TypeError*: *'NoneType' object *is not *iterable

 Using 2.13.4 (which has a flash bar rash that just don't go away). 



 On Thursday, March 24, 2016 at 10:38:35 AM UTC-4, Michael Beller wrote:
>
> I commonly create a user (usually my email) and an Admin group and 
> then add myself to the Admin group.  I have logic in the Starter app 
> based 
> on the Admin group.  I usually have other groups such as Operations and 
> Customer Service (I tend to build enterprise 'line of business' apps).  
> Since I frequently clean out the database during initial development, I 
> just created an initialization function that automatically adds an 
> initial 
> set of test users, groups, and memberships so I don't have to do it 
> manually,   The Initialization function also calls a function that 
> automatically populates tables with test data (using the Populate 
> function) 
> that is helpful for quick demos during prototyping and user demos.  You 
> can 
> modify the routines to meet your needs - it's just something I always end 
> up creating so I put it in my scaffold app.
>
> On Thu, Mar 24, 2016 at 9:13 AM,  wrote:
>
>> This may be little preliminary but what you mean by "Admin user and 
>> auth_groups" setup and how? I don't recall anything to set up with the 
>> welcome app. It worked the first time straight out of the box.
>>
>>
>> On Thursday, March 24, 2016 at 8:56:22 AM UTC-4, Ron Chatterjee wrote:
>>>
>>> I am looking at this link:
>>>
>>> https://almsaeedstudio.com/themes/AdminLTE/documentation/index.html. 
>>> Is that widget/plugin that comes with that bootstrap? Michael, you 
>>> familiar 
>>> with that?
>>>
>>> It has something call direct chat. 
>>>
>>> On Thursday, March 24, 2016 at 12:23:08 AM UTC-4, Michael Beller 
>>> wrote:

 I plan to! When ready, I'd like to try and apply these styl

[web2py] Re: Load component in a ?

2016-03-24 Thread Anthony
You could also do:

LOAD(..., _class='w2p_component')

and then add a CSS rule for that class.

Anthony

On Thursday, March 24, 2016 at 1:38:04 PM UTC-4, webmas...@trytha.com wrote:
>
> Works for my use case, thanks!  Got so wrapped up in not wanting to do 
> anything global in my CSS, I completely drew a blank on defining an in-line 
> style.  Thanks!
>
> On Thursday, March 24, 2016 at 10:26:50 AM UTC-7, Anthony wrote:
>>
>> If you're talking about using the LOAD helper, it only generates a DIV, 
>> and the JS code only looks for DIVs. Would setting it's display to inline 
>> do the trick:
>>
>> mycomponent = LOAD(..., _style='display:inline')
>>
>> If not, you should be able to do something like this in the view (not 
>> tested):
>>
>> 
>> $.web2py.component('{{=URL(...)}}', 'mycomponent', el=$(
>> '#mycomponent'));
>>
>> Anthony
>>
>> On Thursday, March 24, 2016 at 12:51:33 PM UTC-4, webm...@trytha.com 
>> wrote:
>>>
>>> I want my component to load in a span() instead of the default 
>>> div(class="data-w2p_remote").  Anyone know the best way to do 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: web2py 2.14.1 is OUT

2016-03-24 Thread Dave S


On Thursday, March 24, 2016 at 12:51:52 PM UTC-7, Richard wrote:
>
> Hello Dave,
>
> You may have a look in gluon/contrib... Simone had change scheduler since 
> 2.13.1 and there is info about how to instantiate scheduler now in the 
> changelog...
>

Not it.  I have things running on 2.13.4 (different system, though).  And 
when I try the -K, I get the same error.
 
/dps


> On Thu, Mar 24, 2016 at 3:41 PM, Dave S > 
> wrote:
>
>>
>>
>> On Thursday, March 24, 2016 at 10:36:54 AM UTC-7, Massimo Di Pierro wrote:
>>>
>>> http://web2py.com/
>>>
>>> First of all many many thanks to Simone (niphlod), Richard, and Leonel. 
>>> Most of the work is theirs.
>>>
>>>
>> My thanks also ... web2py has been a great resource for me.
>>
>> As with the beta, I'm still getting a problem with one app:
>>
>> web2py
>> Version 2.14.1-stable+timestamp.2016.03.24.17.26.52Python  Python 2.7.3: 
>> /usr/bin/python (prefix: /usr)
>>
>>
>>
>> Traceback (most recent call last):
>>   File "/home/develop2/web2py/web2py-2141-beta/gluon/restricted.py", 
>> line 227, in restricted
>> exec ccode in environment
>>   File "/home/develop2/web2py/web2py-2141-beta/applications/uploader/
>> models/scheduler.py", line 5, in 
>> from upwatcher import uploadwatch
>>   File "/home/develop2/web2py/web2py-2141-beta/gluon/custom_import.py", 
>> line 95, in custom_importer
>> return base_importer(pname, globals, locals, fromlist, level)
>> ImportError: No module named uploader.modules.upwatcher
>>
>>
>>
>> Note   [applications/]uploader/models/scheduler.py is trying to import 
>> [applications/]uploader/module/upwatcher.py
>>
>> This worked in 2.13.4,broke in 2.14.1-beta, still broke in 2.14.1
>> I've verified that upwatcher.py is present and contains the expected code.
>>
>> Github says custom_importer hasn't changed since 2.13.1, so it may be 
>> something I'm doing, but I'm not sure what I've changed from the working 
>> version that would cause this.
>>
>> /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+un...@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] Re: web2py 2.14.1 is OUT

2016-03-24 Thread Dave S


On Thursday, March 24, 2016 at 12:41:50 PM UTC-7, Dave S wrote:
>
>
>
> On Thursday, March 24, 2016 at 10:36:54 AM UTC-7, Massimo Di Pierro wrote:
>>
>> http://web2py.com/
>>
>> First of all many many thanks to Simone (niphlod), Richard, and Leonel. 
>> Most of the work is theirs.
>>
>>
> My thanks also ... web2py has been a great resource for me.
>
> As with the beta, I'm still getting a problem with one app:
>
> web2py
> Version 2.14.1-stable+timestamp.2016.03.24.17.26.52Python  Python 2.7.3: 
> /usr/bin/python (prefix: /usr)
>
>
>
> Traceback (most recent call last):
>   File "/home/develop2/web2py/web2py-2141-beta/gluon/restricted.py", line 
> 227, in restricted
> exec ccode in environment
>   File "/home/develop2/web2py/web2py-2141-beta/applications/uploader/
> models/scheduler.py", line 5, in 
> from upwatcher import uploadwatch
>   File "/home/develop2/web2py/web2py-2141-beta/gluon/custom_import.py", 
> line 95, in custom_importer
> return base_importer(pname, globals, locals, fromlist, level)
> ImportError: No module named uploader.modules.upwatcher
>
>
>
> Note   [applications/]uploader/models/scheduler.py is trying to import 
> [applications/]uploader/module/upwatcher.py
>
> This worked in 2.13.4,broke in 2.14.1-beta, still broke in 2.14.1
> I've verified that upwatcher.py is present and contains the expected code.
>
> Github says custom_importer hasn't changed since 2.13.1, so it may be 
> something I'm doing, but I'm not sure what I've changed from the working 
> version that would cause this.
>
>
>From the ticket, the variables as of line 95 are:
fromlist('uploadwatch',)
level   -1
base_importer   
pname   'applications.uploader.modules.upwatcher'
#plus globals and locals but the ticket truncates that list


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


[web2py] Re: web2py 2.14.1 is OUT

2016-03-24 Thread Niphlod
just to reassure that scheduler code has changed to fix a bug with 
prevent-drift: nothing has changed instantiation-wise (and the traceback 
points otherwise, well before scheduler istantiation...)



On Thursday, March 24, 2016 at 9:17:18 PM UTC+1, Dave S wrote:
>
>
>
> On Thursday, March 24, 2016 at 12:41:50 PM UTC-7, Dave S wrote:
>>
>>
>>
>> On Thursday, March 24, 2016 at 10:36:54 AM UTC-7, Massimo Di Pierro wrote:
>>>
>>> http://web2py.com/
>>>
>>> First of all many many thanks to Simone (niphlod), Richard, and Leonel. 
>>> Most of the work is theirs.
>>>
>>>
>> My thanks also ... web2py has been a great resource for me.
>>
>> As with the beta, I'm still getting a problem with one app:
>>
>> web2py
>> Version 2.14.1-stable+timestamp.2016.03.24.17.26.52Python  Python 2.7.3: 
>> /usr/bin/python (prefix: /usr)
>>
>>
>>
>> Traceback (most recent call last):
>>   File "/home/develop2/web2py/web2py-2141-beta/gluon/restricted.py", 
>> line 227, in restricted
>> exec ccode in environment
>>   File "/home/develop2/web2py/web2py-2141-beta/applications/uploader/
>> models/scheduler.py", line 5, in 
>> from upwatcher import uploadwatch
>>   File "/home/develop2/web2py/web2py-2141-beta/gluon/custom_import.py", 
>> line 95, in custom_importer
>> return base_importer(pname, globals, locals, fromlist, level)
>> ImportError: No module named uploader.modules.upwatcher
>>
>>
>>
>> Note   [applications/]uploader/models/scheduler.py is trying to import 
>> [applications/]uploader/module/upwatcher.py
>>
>> This worked in 2.13.4,broke in 2.14.1-beta, still broke in 2.14.1
>> I've verified that upwatcher.py is present and contains the expected code.
>>
>> Github says custom_importer hasn't changed since 2.13.1, so it may be 
>> something I'm doing, but I'm not sure what I've changed from the working 
>> version that would cause this.
>>
>>
> From the ticket, the variables as of line 95 are:
> fromlist('uploadwatch',)
> level   -1
> base_importer   
> pname   'applications.uploader.modules.upwatcher'
> #plus globals and locals but the ticket truncates that list
>
>
>  /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] Re: web2py 2.14.1 is OUT

2016-03-24 Thread Dave S


On Thursday, March 24, 2016 at 1:14:48 PM UTC-7, Dave S wrote:
>
>
>
> On Thursday, March 24, 2016 at 12:51:52 PM UTC-7, Richard wrote:
>>
>> Hello Dave,
>>
>> You may have a look in gluon/contrib... Simone had change scheduler since 
>> 2.13.1 and there is info about how to instantiate scheduler now in the 
>> changelog...
>>
>
> Not it.  I have things running on 2.13.4 (different system, though).  And 
> when I try the -K, I get the same error.
>  
>
>>
>>
Works on Version 2.13.4-stable+timestamp.2015.12.26.04.59.39 on the same 
machine I'm trying the new release on.

/dps


 

> On Thu, Mar 24, 2016 at 3:41 PM, Dave S  wrote:
>>
>>>
>>>
>>> On Thursday, March 24, 2016 at 10:36:54 AM UTC-7, Massimo Di Pierro 
>>> wrote:

 http://web2py.com/

 First of all many many thanks to Simone (niphlod), Richard, and Leonel. 
 Most of the work is theirs.


>>> My thanks also ... web2py has been a great resource for me.
>>>
>>> As with the beta, I'm still getting a problem with one app:
>>>
>>> web2py
>>> Version 2.14.1-stable+timestamp.2016.03.24.17.26.52Python  Python 2.7.3: 
>>> /usr/bin/python (prefix: /usr)
>>>
>>>
>>>
>>> Traceback (most recent call last):
>>>   File "/home/develop2/web2py/web2py-2141-beta/gluon/restricted.py", 
>>> line 227, in restricted
>>> exec ccode in environment
>>>   File "/home/develop2/web2py/web2py-2141-beta/applications/uploader/
>>> models/scheduler.py", line 5, in 
>>> from upwatcher import uploadwatch
>>>   File "/home/develop2/web2py/web2py-2141-beta/gluon/custom_import.py", 
>>> line 95, in custom_importer
>>> return base_importer(pname, globals, locals, fromlist, level)
>>> ImportError: No module named uploader.modules.upwatcher
>>>
>>>
>>>
>>> Note   [applications/]uploader/models/scheduler.py is trying to import 
>>> [applications/]uploader/module/upwatcher.py
>>>
>>> This worked in 2.13.4,broke in 2.14.1-beta, still broke in 2.14.1
>>> I've verified that upwatcher.py is present and contains the expected 
>>> code.
>>>
>>> Github says custom_importer hasn't changed since 2.13.1, so it may be 
>>> something I'm doing, but I'm not sure what I've changed from the working 
>>> version that would cause this.
>>>
>>> /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+un...@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] Re: iterating through form fields with rows

2016-03-24 Thread aetagothno
What worked for me was utilizing row.values(), because I was doing this 
within the models file!
I haven't been able to find any documentation in regards to using it but 
that is what I was looking for! Thank you!

On Tuesday, March 15, 2016 at 2:15:12 PM UTC-7, Val K wrote:
>
> Hi!
> Just for clarity: 
> *row.field_name* - access to field value of *record retrieved from DB *( 
> by db().select() ) 
> *form.vars.field_name *- access to field value of *submitted form *(  
> *after* form.process() )
>
> form.vars - just a Storage() object  like a dict()
>
> form.vars.keys() - list of all field_names
> form.vars.values() - list of all field_values
>
>
>
>
>
>
>
> On Tuesday, March 15, 2016 at 11:22:45 PM UTC+3, aetag...@gmail.com wrote:
>>
>> I have a table defined with 3 input fields and then an upload field. The 
>> upload field is used to take the values that are entered by the user and 
>> input them into a file which contains all form field values from the 
>> session.
>>
>> The form is generated dynamically, so the number of form fields varies 
>> with each session. 
>>
>> I am stuck on figuring out how to capture the individual form field 
>> values. I am unsure if maybe I should be reading these into an array and 
>> then populating the file? 
>>
>>
>> If the form that is generated contains only one instance of the form 
>> fields, I can grab these values by doing row.field1, row.field2, row.field3.
>>
>> I was wondering if web2py contains a method for dealing with the multiple 
>> instances of form fields?
>> For example, if the user created two instances of the form fields I would 
>> capture values like this:
>> row.field1_0, row.field2_0, row.field3_0
>> row.field1_1, row.field2_1, row.field2_1
>>
>> However this does not work..
>> I have tried doing variations of the following:
>>
>> for i in row.field1:
>> print row.field1
>>
>>
>> When I run this with a session containing the form with two instances of 
>> form fields it will show me the values that were inputted for that session 
>> in field1_0, as well as field1_1. So I am able to at least see that it is 
>> capturing the separate entries in the single form. I am just not sure how 
>> can I can iterate through the form fields or if there is a keyword or 
>> method within web2py which will allow me to do this so I can place them 
>> accordingly before the file is uploaded.
>>
>>

-- 
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] compute field and uploading file

2016-03-24 Thread aetagothno
I've been struggling with trying to figure out how this can be achieved 
...not sure if it can be.


In db1.py I have a table defined..example:

db.define_table('form1',
Field('field1', 'string'),
Field('field2', 'string'),
Field('field3', 'integer'),
Field('form1_file', 'upload', compute=form1compute))

Then within the same models file, I have the form1compute function with the 
parameter row being passed to it.
form1compute generates a file with the data from the form1 and uploads it.

This works fine...

The problem is that I have this form generating dynamically, so a user may 
have a session where 2 instances of the form fields are generated.

What is supposed to happen is these form values should be passed into the 
compute function, and the file that is uploaded will contain all values 
from that session.

Because I have the upload field included in this table definition, it is 
uploading a separate file for each instance of the form even though it is 
all from one session. 

I think I need to make a separate table which references this form1 and has 
an upload field, but I am unsure of what to do after... Maybe make an array 
that gets filled with the row values in the session, and then call on a 
separate function after the array has been filled with all values from the 
single session and then have this function insert the data to the file and 
then somehow call on the table with the upload field Not sure if this 
way even works .. any advice will be very helpful please and thank you!

-- 
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: What are the platforms for free web hosting of web2py apps?

2016-03-24 Thread Michael Beller
I don't know about PHP but if you need a separate install of web2py for 
each app (which is what I do), each new web app costs $2/month.  In several 
cases, I run multiple apps within one instance of web2py (the only 
disadvantage is the URL but that's oftentimes fine for some enterprise 
apps).

I have several pythonanywhere accounts but the one I use for many of my 
small apps costs $12.25 per month for 4 web apps and 2 web workers each. 
 One of those web apps supports several web2py applications under one 
instance (this is also how I manage user testing environments to separate 
them from production environments).

It's also possible to create separate free pythonanywhere accounts for each 
low volume app (I used to do that but paying $2/month just makes it easier 
to manage under one account).

For low volume apps, GAE is also great - I run several apps (really just 
simple sites) on GAE for free (but I don't think that supports PHP either).

On Thursday, March 24, 2016 at 9:35:42 AM UTC-4, Carlos Cesar Caballero 
wrote:
>
> Hi Michael, thanks for your suggestion, pythonanywhere is really good, but 
> it do not meet two requirements that I need, the first is that I have some 
> php apps, and the second is that I have many low traffic sites, making the 
> pythonanywhere plan too expensive.
>
> Greetings.
>
> El miércoles, 23 de marzo de 2016, 21:54:47 (UTC-4), Michael Beller 
> escribió:
>>
>> +1 for pythonanywhere.com 
>>
>> based in UK if that meets your non-USA requirement
>> awesome support
>> completely scalable
>> runs on AWS infrastructure (they've essentially built a layer on top of 
>> AWS that's make it trivial to manage)
>>
>> On Tuesday, March 22, 2016 at 8:47:12 AM UTC-4, Carlos Cesar Caballero 
>> wrote:
>>>
>>> Hi, have you some experience with forpsi.com? I am looking for reliable 
>>> non USA providers.
>>>
>>> Greetings.
>>>
>>> El lunes, 14 de marzo de 2016, 8:28:13 (UTC-4), Mirek Zvolský escribió:

 allwaysdata.com, but has only 10M place (about 6M after you install 
 web2py-min), good ssh, cron, no problem to install everything.
 forpsi.com paid, but only 2$/month for full VM



 Dne neděle 21. února 2016 7:38:46 UTC+1 Rgb Aston napsal(a):
>
> Which one's the best to go for?
>


-- 
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: compute field and uploading file

2016-03-24 Thread aetagothno
Or maybe would I have to construct a class within the models file so that 
it is called in form1compute each time, and the values from row are passed 
to it and saved in an array within that? I'm not that advanced with python 
but I think I need the class in order to actually continue to append all 
the form values to it because I don't think a function alone can save that 
each time it is called??

-- 
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: Djano channels

2016-03-24 Thread Ron Chatterjee
You know if we can turn this into a audio video chat and conference 
application similar to web meeting?

On Monday, March 21, 2016 at 1:19:27 AM UTC-4, Massimo Di Pierro wrote:
>
> Supports multiple chat rooms. It is in the example in the code itself. It 
> is very similar to the Django one.
>
>
> On Sunday, 20 March 2016 09:42:41 UTC-5, Ron Chatterjee wrote:
>>
>> I haven't had a chance to go through the code but is it using multiple 
>> chat room or just one single room? 
>>
>> On Sunday, March 20, 2016 at 2:15:11 AM UTC-4, pbreit wrote:
>>>
>>> Have you seen:
>>>
>>> https://github.com/web2py/web2py/blob/master/gluon/contrib/websocket_messaging.py
>>>
>>> On Thursday, March 17, 2016 at 2:48:08 PM UTC-7, Najtsirk wrote:


 https://blog.heroku.com/archives/2016/3/17/in_deep_with_django_channels_the_future_of_real_time_apps_in_django

 Is there anything similar in web2py? 

 I read about comet messaging.  How these two compare? 

 Thanks,  
 Najtsirk



-- 
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: Djano channels

2016-03-24 Thread Massimo Di Pierro
Theoretically yes. In practice it would not be nearly as good or efficient 
as webrtc. Just use webrtc for that.

On Thursday, 24 March 2016 17:22:43 UTC-5, Ron Chatterjee wrote:
>
> You know if we can turn this into a audio video chat and conference 
> application similar to web meeting?
>
> On Monday, March 21, 2016 at 1:19:27 AM UTC-4, Massimo Di Pierro wrote:
>>
>> Supports multiple chat rooms. It is in the example in the code itself. It 
>> is very similar to the Django one.
>>
>>
>> On Sunday, 20 March 2016 09:42:41 UTC-5, Ron Chatterjee wrote:
>>>
>>> I haven't had a chance to go through the code but is it using multiple 
>>> chat room or just one single room? 
>>>
>>> On Sunday, March 20, 2016 at 2:15:11 AM UTC-4, pbreit wrote:

 Have you seen:

 https://github.com/web2py/web2py/blob/master/gluon/contrib/websocket_messaging.py

 On Thursday, March 17, 2016 at 2:48:08 PM UTC-7, Najtsirk wrote:
>
>
> https://blog.heroku.com/archives/2016/3/17/in_deep_with_django_channels_the_future_of_real_time_apps_in_django
>
> Is there anything similar in web2py? 
>
> I read about comet messaging.  How these two compare? 
>
> Thanks,  
> Najtsirk
>
>

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

2016-03-24 Thread Massimo Di Pierro
http://web2py.com/

First of all many many thanks to Simone (niphlod), Richard, and Leonel. 
Most of the work is theirs.

It is important that you upgrade because we fixed some serious security 
bugs that may leak your admin password (if you use rocket and expose the 
old example app).

We fixed many many bug and in particular everything should work fine on GAE 
now, including Datastore and Cloud SQL.

** IMPORTANT: We also strongly recommend that you do not expose the 
examples app if you do not have to. Although all known security issue have 
been fixed in the new examples app, there may be issue with your legacy 
examples app.**

CHANGELOG

- fixed two major security issues that caused the examples app to leak 
information

- new Auth(…,host_names=[…]) to prevent host header injection

- improved scheduler

- pep8 enhancements

- many bug fixes

- restored GAE support that was broken in 2.13.*

- improved fabfile for deployment

- refactored examples with stupid.css

- new JWT implementation (experimental)

- new gluon.contrib.redis_scheduler

- myconf.get

- LDAP groups (experimental)

- .flash -> .w2p_flash

- Updated feedparser.py 5.2.1

- Updated jQuery 1.12.2

- welcome app now checks for version number

- Redis improvements.


BEFORE:

from gluon.contrib.redis_cache import RedisCache

cache.redis = RedisCache('localhost:6379',db=None, debug=True)


NOW:

from gluon.contrib.redis_utils import RConn

from gluon.contrib.redis_cache import RedisCache

rconn = RConn()

# or RConn(host='localhost', port=6379,

# db=0, password=None, socket_timeout=None,

# socket_connect_timeout=None, .)

# exactly as a redis.StrictRedis instance

cache.redis = RedisCache(redis_conn=rconn, debug=True)

BEFORE:

from gluon.contrib.redis_session import RedisSession

sessiondb = RedisSession('localhost:6379',db=0, session_expiry=False)

session.connect(request, response, db = sessiondb)


NOW:

from gluon.contrib.redis_utils import RConn

from gluon.contrib.redis_session import RedisSession

rconn = RConn()

sessiondb = RedisSession(redis_conn=rconn, session_expiry=False)

session.connect(request, response, db = sessiondb)

-- 
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: web2py 2.14.1 is OUT

2016-03-24 Thread Dave S


On Thursday, March 24, 2016 at 1:17:18 PM UTC-7, Dave S wrote:
>
>
>
> On Thursday, March 24, 2016 at 12:41:50 PM UTC-7, Dave S wrote:
>>
>>
>>
>> On Thursday, March 24, 2016 at 10:36:54 AM UTC-7, Massimo Di Pierro wrote:
>>>
>>> http://web2py.com/
>>>
>>> First of all many many thanks to Simone (niphlod), Richard, and Leonel. 
>>> Most of the work is theirs.
>>>
>>>
>> My thanks also ... web2py has been a great resource for me.
>>
>> As with the beta, I'm still getting a problem with one app:
>>
>> web2py
>> Version 2.14.1-stable+timestamp.2016.03.24.17.26.52Python  Python 2.7.3: 
>> /usr/bin/python (prefix: /usr)
>>
>>
>>
>> Traceback (most recent call last):
>>   File "/home/develop2/web2py/web2py-2141-beta/gluon/restricted.py", 
>> line 227, in restricted
>> exec ccode in environment
>>   File "/home/develop2/web2py/web2py-2141-beta/applications/uploader/
>> models/scheduler.py", line 5, in 
>> from upwatcher import uploadwatch
>>   File "/home/develop2/web2py/web2py-2141-beta/gluon/custom_import.py", 
>> line 95, in custom_importer
>> return base_importer(pname, globals, locals, fromlist, level)
>> ImportError: No module named uploader.modules.upwatcher
>>
>>
>>
>> Note   [applications/]uploader/models/scheduler.py is trying to import 
>> [applications/]uploader/module/upwatcher.py
>>
>> This worked in 2.13.4,broke in 2.14.1-beta, still broke in 2.14.1
>> I've verified that upwatcher.py is present and contains the expected code.
>>
>> Github says custom_importer hasn't changed since 2.13.1, so it may be 
>> something I'm doing, but I'm not sure what I've changed from the working 
>> version that would cause this.
>>
>>
> From the ticket, the variables as of line 95 are:
> fromlist('uploadwatch',)
> level   -1
> base_importer   
> pname   'applications.uploader.modules.upwatcher'
> #plus globals and locals but the ticket truncates that list
>
>
I see that the upwatcher.py doesn't have an uploader.pyc, nor does the 
__init__.pyc.

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


[web2py] Re: web2py 2.14.1 is OUT

2016-03-24 Thread 黄祥
the new configuration surely is different from previous one, i have some 
question about it (appconfig.ini and db.py)
1. myconf.get() instead of myconf.take() is there any difference or the old 
one is drop?
2. pool_size = myconf.get('db.pool_size'), i learned from anthony in the 
old version it have cast = int, e.g. pool_size = 
myconf.take('db.pool_size', cast = int), is the newest one can recognize 
int data type without defining cast = int?
3. is the new appconfig.ini now can support boolean field type (True or 
False), if i'm not wrong the previous one can not support boolean field 
type?
4. auth = Auth(db, host_names=myconf.get('host.names')) the old one just 
auth = Auth(db), so i assume the auth will only appear in the allowed host, 
right?
5. from gluon.tools import Auth, Service, PluginManager the old one have 
from gluon.tools import Auth, Crud, Service, PluginManager, prettydate is 
the crud and prettydate is drop in the new version or just unloaded in 
scaffolding app?

good works and good framewrok.
\(^o^)/

thanks and 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: web2py 2.14.1 is OUT

2016-03-24 Thread 黄祥
i realize the sqlform(), sqlform.grid() and sqlform.factory() is behave 
strangely, the form field is added with None, e.g. NameNone
is there a way to fix this?

thanks and 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: web2py 2.14.1 is OUT

2016-03-24 Thread Massimo Di Pierro


On Thursday, 24 March 2016 20:15:13 UTC-5, 黄祥 wrote:
>
> the new configuration surely is different from previous one, i have some 
> question about it (appconfig.ini and db.py)
> 1. myconf.get() instead of myconf.take() is there any difference or the 
> old one is drop?
>

Not the same. take is still there and backward compatible. get() also makes 
a guess about type and parses it.
 

> 2. pool_size = myconf.get('db.pool_size'), i learned from anthony in the 
> old version it have cast = int, e.g. pool_size = 
> myconf.take('db.pool_size', cast = int), is the newest one can recognize 
> int data type without defining cast = int?
>

yes
 
 3. is the new appconfig.ini now can support boolean field type (True or 
False), if i'm not wrong the previous one can not support boolean field 
type?

yes

4. auth = Auth(db, host_names=myconf.get('host.names')) the old one just 
> auth = Auth(db), so i assume the auth will only appear in the allowed host, 
> right?
>

that prevents host injection attacks.
 

> 5. from gluon.tools import Auth, Service, PluginManager the old one have 
> from gluon.tools import Auth, Crud, Service, PluginManager, prettydate is 
> the crud and prettydate is drop in the new version or just unloaded in 
> scaffolding app?
>

You can import them yourself. They are still there. Crud must die.

 

>
> good works and good framewrok.
> \(^o^)/
>
> thanks and 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: web2py 2.14.1 is OUT

2016-03-24 Thread Massimo Di Pierro
Do not understand can you explain more?

On Thursday, 24 March 2016 20:27:56 UTC-5, 黄祥 wrote:
>
> i realize the sqlform(), sqlform.grid() and sqlform.factory() is behave 
> strangely, the form field is added with None, e.g. NameNone
> is there a way to fix this?
>
> thanks and 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: web2py 2.14.1 is OUT

2016-03-24 Thread 黄祥
pictures means thousand words, in previous version 2.13.x the same code 
doesnt have None in every form field, i guess the root cause is in T() but 
not sure because I never Translate for Id yet the result is same IdNone 
(please see attached files), the expected is without None : Id

thanks and 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: web2py 2.14.1 is OUT

2016-03-24 Thread 黄祥
target locked, the culprit is :
*in old version :*
response.form_label_separator = myconf.get('forms.separator')
*in current version : *
response.form_label_separator = myconf.get('forms.separator') or ''

*effect :*
when using old version conf in current version web2py, in form field the 
name is embedded with None, e.g. IdNone

mission accomplished.

thanks and 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: web2py 2.14.1 is OUT

2016-03-24 Thread 黄祥
not sure enough about the boolean configuration in appconfig. just tested 
it but return an error traceback, e.g.
*appconfig.ini*
[smtp]
ssl= true

*db.py*
auth.settings.create_user_groups = myconf.get('smtp.ssl')

*traceback error*

TypeError: unsupported operand type(s) for %: 'bool' and 'Storage'


thanks and 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: Get list of user groups

2016-03-24 Thread mfarees . knysys
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] Why datetime.now() is not returning correct value

2016-03-24 Thread mfarees . knysys
Hi.
I am in Asia/Karachi timezone and am testing my application for US/Pacific 
timezone. Here is the scenario:
The *system time* that I've set is,
2016-03-24 18:02:58
and the timezone is US/Pacific

When I use the *Python interpreter* to print the datetime, I get 
>>> print datetime.datetime.now()
2016-03-24 18:02:58.814000
>>> print datetime.datetime.utcnow()
2016-03-25 01:02:58.814000

Which is correct. But when I use my *web2py application* to print the same 
I get,
print datetime.datetime.now()   # 2016-03-25 06:02:58.814000
print datetime.datetime.utcnow()  # 2016-03-25 01:02:58.814000

So, the problem is that the two datetime.now() results do not match. For 
some reason, the application is returning a datetime which is 12 hours 
ahead of what it should actually return. I'm facing this issue on a Windows 
machine; but on Linux Mint, I'm getting correct results.
This seems like its a tricky one, who's up for a challenge? : )

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