[web2py] Re: Localize JavaScript

2016-03-23 Thread Mirek Zvolský
no idea ?




Dne středa 16. března 2016 10:12:31 UTC+1 Mirek Zvolský napsal(a):
>
> Any idea how to localize JavaScript texts?
>
> I think I need
> generate some js code with objects/dictionaries (similar to web2py 
> language files)
> and make a function which will seek in this dictionaries.
>
> Maybe gettext already has some support for this.
> That leads me to the question if I should prefer web2py translation system 
> or gettext at all?
>
>

-- 
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-23 Thread Massimiliano
Very very nice.

Thank you for sharing

On Wed, Mar 23, 2016 at 3:17 AM, Michael Beller  wrote:

> I created a new 'starter' app for the types of data and process management
> apps I tend to build.
>
> I used https://almsaeedstudio.com/preview as the template and I'm hosting
> a preview at https://mjbeller.pythonanywhere.com/starter.
>
> I'd welcome any feedback but also wanted to share the code at
> https://github.com/mjbeller/web2py-starter for anybody that may want to
> explore.
>
> I started with the goal to create a new web2py app without using the
> Welcome app to help me learn a little more about web2py.  I found myself
> slowly adding more and more code (primarily CSS and JS) from the Welcome
> app to support some features such as Smartgrids.  I'd like to evolve
> Starter to support the upcoming form.py and grid.py that the core team is
> evaluating and developing.
>
> --
> 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.
>



-- 
Massimiliano

-- 
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: Why I can send mail use python but can't send by web2py mail object

2016-03-23 Thread Leonel Câmara
I think web2py is sending its mail using IPv6 because the default OS 
behavior for the environment you're using web2py on is to have your IPv6 
address as the source_address.

Can you do a test for me? In gluon/tools.py can you change: 

server = smtplib.SMTP(*smtp_args, **kwargs)

To:

server = smtplib.SMTP(*smtp_args, source_address=(YOUR_IPV4_ADDRESS, 0))

Restart web2py and tell me if this works. If it does I will make a pull 
request so you can have a mail.setttings.source_address and fix this issue 
in case something is misconfigured in your web2py environment and it's 
using IPv6 against your will.

-- 
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-23 Thread António Ramos
Nice but i get an error installing it as "starter" application
any help ?

[image: Imagem inline 1]

2016-03-23 9:40 GMT+00:00 Massimiliano :

> Very very nice.
>
> Thank you for sharing
>
> On Wed, Mar 23, 2016 at 3:17 AM, Michael Beller 
> wrote:
>
>> I created a new 'starter' app for the types of data and process
>> management apps I tend to build.
>>
>> I used https://almsaeedstudio.com/preview as the template and I'm
>> hosting a preview at https://mjbeller.pythonanywhere.com/starter.
>>
>> I'd welcome any feedback but also wanted to share the code at
>> https://github.com/mjbeller/web2py-starter for anybody that may want to
>> explore.
>>
>> I started with the goal to create a new web2py app without using the
>> Welcome app to help me learn a little more about web2py.  I found myself
>> slowly adding more and more code (primarily CSS and JS) from the Welcome
>> app to support some features such as Smartgrids.  I'd like to evolve
>> Starter to support the upcoming form.py and grid.py that the core team is
>> evaluating and developing.
>>
>> --
>> 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.
>>
>
>
>
> --
> Massimiliano
>
> --
> 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-23 Thread Ron Chatterjee
Does it has a version similar to web2py welcome app with no user name? And 
I got the same error

On Wednesday, March 23, 2016 at 6:19:23 AM UTC-4, Ramos wrote:
>
> Nice but i get an error installing it as "starter" application
> any help ?
>
> [image: Imagem inline 1]
>
> 2016-03-23 9:40 GMT+00:00 Massimiliano >:
>
>> Very very nice. 
>>
>> Thank you for sharing
>>
>> On Wed, Mar 23, 2016 at 3:17 AM, Michael Beller > > wrote:
>>
>>> I created a new 'starter' app for the types of data and process 
>>> management apps I tend to build.
>>>
>>> I used https://almsaeedstudio.com/preview as the template and I'm 
>>> hosting a preview at https://mjbeller.pythonanywhere.com/starter.
>>>
>>> I'd welcome any feedback but also wanted to share the code at 
>>> https://github.com/mjbeller/web2py-starter for anybody that may want to 
>>> explore.
>>>
>>> I started with the goal to create a new web2py app without using the 
>>> Welcome app to help me learn a little more about web2py.  I found myself 
>>> slowly adding more and more code (primarily CSS and JS) from the Welcome 
>>> app to support some features such as Smartgrids.  I'd like to evolve 
>>> Starter to support the upcoming form.py and grid.py that the core team is 
>>> evaluating and developing.
>>>
>>> -- 
>>> 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.
>>>
>>
>>
>>
>> -- 
>> Massimiliano
>>
>> -- 
>> 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: Localize JavaScript

2016-03-23 Thread Leonel Câmara
Do it the same way the welcome application does in web2py_ajax.html

-- 
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-23 Thread Nico de Groot
Haven't tried yet, but you need to configure a little. From the preview site:

IMPORTANT NOTES:
Starter App is currently maintained on web2py current master branch
appconfig.ini is not included in the git repo (it's excluded by .gitignore) so 
you'll need to copy the file if you clone rather than download the repo
when you first install on localhost, you can access /initialize/adminuser to 
create initial admin user and auth_groups
models includes some sample tables for Dogs, Persons, and Dog Owners which you 
can easily delete

-- 
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-23 Thread Ron Chatterjee
you calling me a dog? lol. jk. Get the point. Thanks

On Wednesday, March 23, 2016 at 6:33:27 AM UTC-4, Nico de Groot wrote:
>
> Haven't tried yet, but you need to configure a little. From the preview 
> site:
>
> IMPORTANT NOTES:
> Starter App is currently maintained on web2py current master branch
> appconfig.ini is not included in the git repo (it's excluded by 
> .gitignore) so you'll need to copy the file if you clone rather than 
> download the repo
> when you first install on localhost, you can access /initialize/adminuser 
> to create initial admin user and auth_groups
> models includes some sample tables for Dogs, Persons, and Dog Owners which 
> you can easily delete
>

-- 
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-23 Thread rajjmatthur
Is there a dashboard version of the starter app we can use?

On Wednesday, March 23, 2016 at 6:51:42 AM UTC-4, Ron Chatterjee wrote:
>
> you calling me a dog? lol. jk. Get the point. Thanks
>
> On Wednesday, March 23, 2016 at 6:33:27 AM UTC-4, Nico de Groot wrote:
>>
>> Haven't tried yet, but you need to configure a little. From the preview 
>> site:
>>
>> IMPORTANT NOTES:
>> Starter App is currently maintained on web2py current master branch
>> appconfig.ini is not included in the git repo (it's excluded by 
>> .gitignore) so you'll need to copy the file if you clone rather than 
>> download the repo
>> when you first install on localhost, you can access /initialize/adminuser 
>> to create initial admin user and auth_groups
>> models includes some sample tables for Dogs, Persons, and Dog Owners 
>> which you can easily delete
>>
>

-- 
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-23 Thread Massimiliano
Just copy

appconfic.ini from welcome/private to starter/private

On Wednesday, March 23, 2016 at 11:19:23 AM UTC+1, Ramos wrote:
>
> Nice but i get an error installing it as "starter" application
> any help ?
>
> [image: Imagem inline 1]
>
> 2016-03-23 9:40 GMT+00:00 Massimiliano >:
>
>> Very very nice. 
>>
>> Thank you for sharing
>>
>> On Wed, Mar 23, 2016 at 3:17 AM, Michael Beller > > wrote:
>>
>>> I created a new 'starter' app for the types of data and process 
>>> management apps I tend to build.
>>>
>>> I used https://almsaeedstudio.com/preview as the template and I'm 
>>> hosting a preview at https://mjbeller.pythonanywhere.com/starter.
>>>
>>> I'd welcome any feedback but also wanted to share the code at 
>>> https://github.com/mjbeller/web2py-starter for anybody that may want to 
>>> explore.
>>>
>>> I started with the goal to create a new web2py app without using the 
>>> Welcome app to help me learn a little more about web2py.  I found myself 
>>> slowly adding more and more code (primarily CSS and JS) from the Welcome 
>>> app to support some features such as Smartgrids.  I'd like to evolve 
>>> Starter to support the upcoming form.py and grid.py that the core team is 
>>> evaluating and developing.
>>>
>>> -- 
>>> 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.
>>>
>>
>>
>>
>> -- 
>> Massimiliano
>>
>> -- 
>> 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] new Starter app (alternative to Welcome app)

2016-03-23 Thread António Ramos
I already copied appconfig.ini to private

but next error...

[image: Imagem inline 1]
then i changed auth above to just
auth=auth(db)

and now i could open the app but when i go to login or sign up i get
another error

[image: Imagem inline 2]




2016-03-23 11:41 GMT+00:00 Massimiliano :

> Just copy
>
> appconfic.ini from welcome/private to starter/private
>
> On Wednesday, March 23, 2016 at 11:19:23 AM UTC+1, Ramos wrote:
>>
>> Nice but i get an error installing it as "starter" application
>> any help ?
>>
>> [image: Imagem inline 1]
>>
>> 2016-03-23 9:40 GMT+00:00 Massimiliano :
>>
>>> Very very nice.
>>>
>>> Thank you for sharing
>>>
>>> On Wed, Mar 23, 2016 at 3:17 AM, Michael Beller 
>>> wrote:
>>>
 I created a new 'starter' app for the types of data and process
 management apps I tend to build.

 I used https://almsaeedstudio.com/preview as the template and I'm
 hosting a preview at https://mjbeller.pythonanywhere.com/starter.

 I'd welcome any feedback but also wanted to share the code at
 https://github.com/mjbeller/web2py-starter for anybody that may want
 to explore.

 I started with the goal to create a new web2py app without using the
 Welcome app to help me learn a little more about web2py.  I found myself
 slowly adding more and more code (primarily CSS and JS) from the Welcome
 app to support some features such as Smartgrids.  I'd like to evolve
 Starter to support the upcoming form.py and grid.py that the core team is
 evaluating and developing.

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

>>>
>>>
>>>
>>> --
>>> Massimiliano
>>>
>>> --
>>> 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] Re: Localize JavaScript

2016-03-23 Thread Mirek Zvolský
Thanks, that is not bad (and not good, but not bad).



Dne středa 23. března 2016 11:30:18 UTC+1 Leonel Câmara napsal(a):
>
> Do it the same way the welcome application does in web2py_ajax.html
>

-- 
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-23 Thread Michael Beller
I just added the appconfig.ini to the repo since that will cause confusion. 
 It contained the item for host_names supported by the current web2py in 
trunk.

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

Since I'm not sure what that is for, I just changed it back to:

auth = Auth(db)

in /models/db1.py

Update your appconfig.ini to include the host_names entry (the 
appconfig.ini in the repo on github contains the entry)
OR
Remove the host_names parameter from the call to Auth on line 58 
in /models/db1.py

That should get your local copy working (and eliminate the confusion for 
future downloads or clones)

On Wednesday, March 23, 2016 at 7:47:37 AM UTC-4, Ramos wrote:
>
> I already copied appconfig.ini to private
>
> but next error...
>
> [image: Imagem inline 1]
> then i changed auth above to just
> auth=auth(db)
>
> and now i could open the app but when i go to login or sign up i get 
> another error
>
> [image: Imagem inline 2]
>
>
>
>
> 2016-03-23 11:41 GMT+00:00 Massimiliano >:
>
>> Just copy
>>
>> appconfic.ini from welcome/private to starter/private
>>
>> On Wednesday, March 23, 2016 at 11:19:23 AM UTC+1, Ramos wrote:
>>>
>>> Nice but i get an error installing it as "starter" application
>>> any help ?
>>>
>>> [image: Imagem inline 1]
>>>
>>> 2016-03-23 9:40 GMT+00:00 Massimiliano :
>>>
 Very very nice. 

 Thank you for sharing

 On Wed, Mar 23, 2016 at 3:17 AM, Michael Beller  
 wrote:

> I created a new 'starter' app for the types of data and process 
> management apps I tend to build.
>
> I used https://almsaeedstudio.com/preview as the template and I'm 
> hosting a preview at https://mjbeller.pythonanywhere.com/starter.
>
> I'd welcome any feedback but also wanted to share the code at 
> https://github.com/mjbeller/web2py-starter for anybody that may want 
> to explore.
>
> I started with the goal to create a new web2py app without using the 
> Welcome app to help me learn a little more about web2py.  I found myself 
> slowly adding more and more code (primarily CSS and JS) from the Welcome 
> app to support some features such as Smartgrids.  I'd like to evolve 
> Starter to support the upcoming form.py and grid.py that the core team is 
> evaluating and developing.
>
> -- 
> 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.
>



 -- 
 Massimiliano

 -- 
 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 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] learning curve?

2016-03-23 Thread Michael Beller
Hi Jon,

I just posted my sample app, called Starter, that uses:
https://almsaeedstudio.com/preview

You can read about it here:
https://groups.google.com/forum/#!topic/web2py/Md-OTq-hi-U%5B1-25%5D

and download it here:
https://github.com/mjbeller/web2py-starter

On Monday, March 21, 2016 at 8:37:52 PM UTC-4, Literate Aspects wrote:
>
> Hi Thomas,
>
> Is there anything like: http://is.gd/pzcxYe a UI framework?
>
> Jon
>
> On Tuesday, February 9, 2016 at 12:49:54 AM UTC-8, Thomas Bellembois wrote:
>>
>> Hi Jon,
>>
>> I have spent a long time studying the different Python Web frameworks to 
>> develop a small chemical products management application and I have choosen 
>> Web2py mainly because of its fast learning curve (and also the active 
>> community).
>> The official documentation is a really good point to start. 
>>
>> Start with few pages to play with the model-controller-view structure and 
>> see.
>>
>> Regards,
>>
>> Thomas
>>
>> On 09/02/2016 01:25, Literate Aspects wrote:
>>
>> I tried django ... to discover HUGE learning curve
>> I tried Qt ... to discover moderate learning curve
>>
>> I can amateur code in VBA and want to transfer that same code function to 
>> a webapp with database.
>>
>> My question, how many hours or days or months would it take to develop a 
>> simple application that controls a web page to enter data into?
>>
>> Jon
>> -- 
>> 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] many session files

2016-03-23 Thread Anthony
On Wednesday, March 23, 2016 at 1:22:27 AM UTC-4, Massimo Di Pierro wrote:
>
> It is but make sure you do not expose the welcome app. That app exposes 
> (as an example) the state of the system, which includes your secret key. 
> The next we2py version (this week, I promise) will prevent that.
>

Do you mean the *examples* app rather than the *welcome* app? If so, my 
understanding is that it exposes the cookie_key of the examples app itself, 
not the cookie_keys of any other apps -- so the risk is not that the 
session data of other apps will be compromised but that there is a 
different vulnerability via the examples app (which is therefore a risk of 
any installation, regardless of the type of sessions used in other apps), 
no?

Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] learning curve?

2016-03-23 Thread billmackalister
Hi Michael,

I looked at the preview of the starter app. However I am not seeing the 
dashboard icons (like attached). Is it something I need to configure in the 
app or there are some specific setups?

Bill.

On Wednesday, March 23, 2016 at 8:16:23 AM UTC-4, Michael Beller wrote:
>
> Hi Jon,
>
> I just posted my sample app, called Starter, that uses:
> https://almsaeedstudio.com/preview
>
> You can read about it here:
> https://groups.google.com/forum/#!topic/web2py/Md-OTq-hi-U%5B1-25%5D
>
> and download it here:
> https://github.com/mjbeller/web2py-starter
>
> On Monday, March 21, 2016 at 8:37:52 PM UTC-4, Literate Aspects wrote:
>>
>> Hi Thomas,
>>
>> Is there anything like: http://is.gd/pzcxYe a UI framework?
>>
>> Jon
>>
>> On Tuesday, February 9, 2016 at 12:49:54 AM UTC-8, Thomas Bellembois 
>> wrote:
>>>
>>> Hi Jon,
>>>
>>> I have spent a long time studying the different Python Web frameworks to 
>>> develop a small chemical products management application and I have choosen 
>>> Web2py mainly because of its fast learning curve (and also the active 
>>> community).
>>> The official documentation is a really good point to start. 
>>>
>>> Start with few pages to play with the model-controller-view structure 
>>> and see.
>>>
>>> Regards,
>>>
>>> Thomas
>>>
>>> On 09/02/2016 01:25, Literate Aspects wrote:
>>>
>>> I tried django ... to discover HUGE learning curve
>>> I tried Qt ... to discover moderate learning curve
>>>
>>> I can amateur code in VBA and want to transfer that same code function 
>>> to a webapp with database.
>>>
>>> My question, how many hours or days or months would it take to develop a 
>>> simple application that controls a web page to enter data into?
>>>
>>> Jon
>>> -- 
>>> 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] Re: web2py 2.14.1 beta

2016-03-23 Thread Massimo Di Pierro
Making sure I understand. Uncommenting these fixed your problem?

# if not 'charset' in driver_args:

# driver_args['charset'] = 'utf8'


Massimo




On Wednesday, 23 March 2016 01:05:35 UTC-5, webmas...@trytha.com wrote:
>
> I'm on it, Pierbro!
>
> Ooh, cool, just found a bug in my code that didn't account for a user 
> clicking on a requires_login() link after a server restart resulted in them 
> being logged out with the page still up.  Paying dividends!
>
> テスト成功しました、先輩!!萌〜
>
> Yeah, that seems to have fixed it (at least for this extremely limited 
> level of testing).
>
> On Tuesday, March 22, 2016 at 10:37:23 PM UTC-7, Massimo Di Pierro wrote:
>>
>> Can you provide a simple two lines of code to reproduce the problem with 
>> dev_appserver?
>>
>>
>> On Tuesday, 22 March 2016 20:03:52 UTC-5, webm...@trytha.com wrote:
>>>
>>> Then, as the Japanese say:  ピンポン!
>>>
>>> This is disturbing.  Massimo thinks he *fixed* GAE database stuff in 
>>> the change from 2.12.2 to 2.12.3, but this is the second thing I've found 
>>> that went the exact opposite direction.  I wonder if he fixed a bunch of 
>>> code, then saved over 2.12.2 with the corrected code and accidentally 
>>> brought forward the non-corrected code into 2.12.3 (where it has sat ever 
>>> since)?
>>>
>>>
>>> On Tuesday, March 22, 2016 at 5:57:23 PM UTC-7, Richard wrote:

 Nop!

 On Tue, Mar 22, 2016 at 8:53 PM,  wrote:

> Are you using GAE?
>
> On Tuesday, March 22, 2016 at 5:42:33 PM UTC-7, Richard wrote:
>>
>> I use to store fr uft8 and didn't have any issue with 2.13.4
>>
>> Richard
>>
>> On Tue, Mar 22, 2016 at 8:33 PM,  wrote:
>>
>>> It could possibly be something specific to GAE.  As I said, I don't 
>>> have time for a lot of tests right now.  Try uploading this in a 
>>> database 
>>> somewhere:  テスト
>>>
>>> On Tuesday, March 22, 2016 at 5:29:02 PM UTC-7, Richard wrote:

 All my functional tests had passed just fine...

 Richard

 On Tue, Mar 22, 2016 at 8:15 PM,  wrote:

> Guess I could have posted here first, but it's not an error in the 
> new version, it's in multiple versions:
>
> Unicode is not working in "string" DB entries.  WTF mate?  
> https://groups.google.com/forum/#!topic/web2py/T5eQExgTP1w
>
>
>
> On Tuesday, March 22, 2016 at 4:19:15 PM UTC-7, Dave S wrote:
>>
>> Never mind, this one is fixed by restarting the web2py instance.
>>
>> /dps
>>
>>
>> On Tuesday, March 22, 2016 at 4:16:11 PM UTC-7, Dave S wrote:
>>>
>>>
>>>
>>> On Monday, March 21, 2016 at 3:38:16 PM UTC-7, Massimo Di Pierro 
>>> wrote:

 Please help us check it (for testers version)

 http://web2py.com/init/default/download

 and let us know if it does not work with your code. I will be 
 released as stable in 2 days. So better check it sooner rather 
 than later.


>>> I'm also seeing a problem with my simplistic routes.py (works in 
>>> 2.13.4) 
>>>
>>> routers = dict(
>>> BASE=dict( default_application='uploader'),
>>> )
>>>
>>>
>>> The uploader application is okay, the welcome appli (cation is 
>>> okay, but the alternate -- stupid.css -- version called welstoop is 
>>> ending 
>>> up in uploader,
>>> even with an explicit a/c/f URL (
>>> http://127.0.0.1:8000/welstoop/default/index).
>>>
>>> Renaming routes.py to old-routes.py fixes the symptoms.
>>>
>>> /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+un...@googlegroups.com.
>>> For more options, visit https://

[web2py] Re: Function can't update DB when called from scheduler, but can when called from a controller/function

2016-03-23 Thread M Mihai


On Wednesday, March 23, 2016 at 1:24:32 AM UTC+2, Dave S wrote:
>
>
>
> On Tuesday, March 22, 2016 at 3:45:25 PM UTC-7, M Mihai wrote:
>>
>> So I want to update the database while a scheduler task is running but 
>> the function won't update it. If I try to run the same function from a 
>> controller it will update the database.
>>
>> Here is the function:
>>
>> def Test():
>> row = db(db.posts.Posted==False).select().first()
>> row.update_record(Posted=True)
>>
>>
> In the scheduler environment, I believe you need db.commit().  If using 
> SQLITE, you may also see locking conflicts if the task runs during heavy 
> request activity.
>
> /dps
>  
>


It worked with db.commit(), thanks!

I do use sqlite but I have 2 databases, one for scheduler and another for 
site, do you think the database may have locking conflicts? 

-- 
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: Why I can send mail use python but can't send by web2py mail object

2016-03-23 Thread killzane
Hi I test your suggestion.
and mail.error shows __init__() got an unexpected keyword argument 
'source_address'

here is the code
 smtp_args = self.settings.server.split(':')
kwargs = dict(timeout=self.settings.timeout)
if self.settings.ssl:
server = smtplib.SMTP_SSL(*smtp_args, **kwargs)
else:
# server = smtplib.SMTP(*smtp_args, **kwargs)
server = smtplib.SMTP(*smtp_args, 
source_address=('MY_IP_ADDRESS', 0))



Leonel Câmara於 2016年3月23日星期三 UTC+8下午6時01分10秒寫道:
>
> I think web2py is sending its mail using IPv6 because the default OS 
> behavior for the environment you're using web2py on is to have your IPv6 
> address as the source_address.
>
> Can you do a test for me? In gluon/tools.py can you change: 
>
> server = smtplib.SMTP(*smtp_args, **kwargs)
>
> To:
>
> server = smtplib.SMTP(*smtp_args, source_address=(YOUR_IPV4_ADDRESS, 0))
>
> Restart web2py and tell me if this works. If it does I will make a pull 
> request so you can have a mail.setttings.source_address and fix this issue 
> in case something is misconfigured in your web2py environment and it's 
> using IPv6 against your will.
>

-- 
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: Function can't update DB when called from scheduler, but can when called from a controller/function

2016-03-23 Thread Dave S


On Wednesday, March 23, 2016 at 7:46:24 AM UTC-7, M Mihai wrote:
>
>
>
> On Wednesday, March 23, 2016 at 1:24:32 AM UTC+2, Dave S wrote:
>>
>>
>>
>> On Tuesday, March 22, 2016 at 3:45:25 PM UTC-7, M Mihai wrote:
>>>
>>> So I want to update the database while a scheduler task is running but 
>>> the function won't update it. If I try to run the same function from a 
>>> controller it will update the database.
>>>
>>> Here is the function:
>>>
>>> def Test():
>>> row = db(db.posts.Posted==False).select().first()
>>> row.update_record(Posted=True)
>>>
>>>
>> In the scheduler environment, I believe you need db.commit().  If using 
>> SQLITE, you may also see locking conflicts if the task runs during heavy 
>> request activity.
>>
>> /dps
>>  
>>
>
>
> It worked with db.commit(), thanks!
>
> I do use sqlite but I have 2 databases, one for scheduler and another for 
> site, do you think the database may have locking conflicts? 
>


That should be okay; I believe the locking is per database (probably a file 
lock; sqlite uses 1 file for each database).

/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: Progress bars and session

2016-03-23 Thread Alfonso Serra
Ill try to explain it here but this is gonna require a video tutorial:

First there are several ways to achieve it. Although Anthony's suggestion 
(cache.ram) is optimal it didnt work on production, I dont know why 
cache.ram doesnt work on pythonanywhere.

I got the progress bar working on production using the scheduler, which i 
dont like cos its db intensive and more complex to setup, but i had no 
choice since the processes where too long to finish (10 minutes) and the 
http conection times out before its done.

Cache.ram
Create 2 controllers, one for your view and another one to get the progress.

def getprogress():
return cache.ram('message', lambda: None, None)

def progress():
# when a form is submitted, change progress each second
if request.post_vars:
n = 20 #simulate 20 iterations
for i in range(n):
msg = "Inserting records"
percent = 100*(i+1) / n

#update the percent each 5%
if percent % 5 == 0:
#store the array in ram [percent, text msg]
message = cache.ram('message', lambda: ";".join([percent, 
msg]), time_expire=0)

print "main:", percent, message
sleep(1)
#we are calling this controller through ajax so return a string 
when done
return "done"
else:
message = cache.ram('message', lambda: -1, time_expire=0)
return locals()

The view:




Processing...



0%





 



js:
create a progress bar "class" jquery ui required if i recall.


[web2py] Re: Function can't update DB when called from scheduler, but can when called from a controller/function

2016-03-23 Thread M Mihai


On Wednesday, March 23, 2016 at 5:44:34 PM UTC+2, Dave S wrote:
>
>
>
> On Wednesday, March 23, 2016 at 7:46:24 AM UTC-7, M Mihai wrote:
>>
>>
>>
>> On Wednesday, March 23, 2016 at 1:24:32 AM UTC+2, Dave S wrote:
>>>
>>>
>>>
>>> On Tuesday, March 22, 2016 at 3:45:25 PM UTC-7, M Mihai wrote:

 So I want to update the database while a scheduler task is running but 
 the function won't update it. If I try to run the same function from a 
 controller it will update the database.

 Here is the function:

 def Test():
 row = db(db.posts.Posted==False).select().first()
 row.update_record(Posted=True)


>>> In the scheduler environment, I believe you need db.commit().  If using 
>>> SQLITE, you may also see locking conflicts if the task runs during heavy 
>>> request activity.
>>>
>>> /dps
>>>  
>>>
>>
>>
>> It worked with db.commit(), thanks!
>>
>> I do use sqlite but I have 2 databases, one for scheduler and another for 
>> site, do you think the database may have locking conflicts? 
>>
>
>
> That should be okay; I believe the locking is per database (probably a 
> file lock; sqlite uses 1 file for each database).
>
> /dps
>  
>

Ok, thank you very much for helping me! 

>  
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] learning curve?

2016-03-23 Thread Michael Beller
Those should appear after you log in (but are hidden for guests).

Were you logged in?

On Wednesday, March 23, 2016 at 9:25:20 AM UTC-4, billmac...@gmail.com 
wrote:
>
> Hi Michael,
>
> I looked at the preview of the starter app. However I am not seeing the 
> dashboard icons (like attached). Is it something I need to configure in the 
> app or there are some specific setups?
>
> Bill.
>
> On Wednesday, March 23, 2016 at 8:16:23 AM UTC-4, Michael Beller wrote:
>>
>> Hi Jon,
>>
>> I just posted my sample app, called Starter, that uses:
>> https://almsaeedstudio.com/preview
>>
>> You can read about it here:
>> https://groups.google.com/forum/#!topic/web2py/Md-OTq-hi-U%5B1-25%5D
>>
>> and download it here:
>> https://github.com/mjbeller/web2py-starter
>>
>> On Monday, March 21, 2016 at 8:37:52 PM UTC-4, Literate Aspects wrote:
>>>
>>> Hi Thomas,
>>>
>>> Is there anything like: http://is.gd/pzcxYe a UI framework?
>>>
>>> Jon
>>>
>>> On Tuesday, February 9, 2016 at 12:49:54 AM UTC-8, Thomas Bellembois 
>>> wrote:

 Hi Jon,

 I have spent a long time studying the different Python Web frameworks 
 to develop a small chemical products management application and I have 
 choosen Web2py mainly because of its fast learning curve (and also the 
 active community).
 The official documentation is a really good point to start. 

 Start with few pages to play with the model-controller-view structure 
 and see.

 Regards,

 Thomas

 On 09/02/2016 01:25, Literate Aspects wrote:

 I tried django ... to discover HUGE learning curve
 I tried Qt ... to discover moderate learning curve

 I can amateur code in VBA and want to transfer that same code function 
 to a webapp with database.

 My question, how many hours or days or months would it take to develop 
 a simple application that controls a web page to enter data into?

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

2016-03-23 Thread António Ramos
error in login/register
[image: Imagem inline 1]

2016-03-23 17:07 GMT+00:00 António Ramos :

> i cannot log in or register...
>
> 2016-03-23 12:13 GMT+00:00 Michael Beller :
>
>> I just added the appconfig.ini to the repo since that will cause
>> confusion.  It contained the item for host_names supported by the current
>> web2py in trunk.
>>
>> auth = Auth(db, host_names=myconf.get('host.name'))
>>
>> Since I'm not sure what that is for, I just changed it back to:
>>
>> auth = Auth(db)
>>
>> in /models/db1.py
>>
>> Update your appconfig.ini to include the host_names entry (the
>> appconfig.ini in the repo on github contains the entry)
>> OR
>> Remove the host_names parameter from the call to Auth on line 58
>> in /models/db1.py
>>
>> That should get your local copy working (and eliminate the confusion for
>> future downloads or clones)
>>
>> On Wednesday, March 23, 2016 at 7:47:37 AM UTC-4, Ramos wrote:
>>>
>>> I already copied appconfig.ini to private
>>>
>>> but next error...
>>>
>>> [image: Imagem inline 1]
>>> then i changed auth above to just
>>> auth=auth(db)
>>>
>>> and now i could open the app but when i go to login or sign up i get
>>> another error
>>>
>>> [image: Imagem inline 2]
>>>
>>>
>>>
>>>
>>> 2016-03-23 11:41 GMT+00:00 Massimiliano :
>>>
 Just copy

 appconfic.ini from welcome/private to starter/private

 On Wednesday, March 23, 2016 at 11:19:23 AM UTC+1, Ramos wrote:
>
> Nice but i get an error installing it as "starter" application
> any help ?
>
> [image: Imagem inline 1]
>
> 2016-03-23 9:40 GMT+00:00 Massimiliano :
>
>> Very very nice.
>>
>> Thank you for sharing
>>
>> On Wed, Mar 23, 2016 at 3:17 AM, Michael Beller 
>> wrote:
>>
>>> I created a new 'starter' app for the types of data and process
>>> management apps I tend to build.
>>>
>>> I used https://almsaeedstudio.com/preview as the template and I'm
>>> hosting a preview at https://mjbeller.pythonanywhere.com/starter.
>>>
>>> I'd welcome any feedback but also wanted to share the code at
>>> https://github.com/mjbeller/web2py-starter for anybody that may
>>> want to explore.
>>>
>>> I started with the goal to create a new web2py app without using the
>>> Welcome app to help me learn a little more about web2py.  I found myself
>>> slowly adding more and more code (primarily CSS and JS) from the Welcome
>>> app to support some features such as Smartgrids.  I'd like to evolve
>>> Starter to support the upcoming form.py and grid.py that the core team 
>>> is
>>> evaluating and developing.
>>>
>>> --
>>> 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.
>>>
>>
>>
>>
>> --
>> Massimiliano
>>
>> --
>> 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 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 (Sourc

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

2016-03-23 Thread António Ramos
i cannot log in or register...

2016-03-23 12:13 GMT+00:00 Michael Beller :

> I just added the appconfig.ini to the repo since that will cause
> confusion.  It contained the item for host_names supported by the current
> web2py in trunk.
>
> auth = Auth(db, host_names=myconf.get('host.name'))
>
> Since I'm not sure what that is for, I just changed it back to:
>
> auth = Auth(db)
>
> in /models/db1.py
>
> Update your appconfig.ini to include the host_names entry (the
> appconfig.ini in the repo on github contains the entry)
> OR
> Remove the host_names parameter from the call to Auth on line 58
> in /models/db1.py
>
> That should get your local copy working (and eliminate the confusion for
> future downloads or clones)
>
> On Wednesday, March 23, 2016 at 7:47:37 AM UTC-4, Ramos wrote:
>>
>> I already copied appconfig.ini to private
>>
>> but next error...
>>
>> [image: Imagem inline 1]
>> then i changed auth above to just
>> auth=auth(db)
>>
>> and now i could open the app but when i go to login or sign up i get
>> another error
>>
>> [image: Imagem inline 2]
>>
>>
>>
>>
>> 2016-03-23 11:41 GMT+00:00 Massimiliano :
>>
>>> Just copy
>>>
>>> appconfic.ini from welcome/private to starter/private
>>>
>>> On Wednesday, March 23, 2016 at 11:19:23 AM UTC+1, Ramos wrote:

 Nice but i get an error installing it as "starter" application
 any help ?

 [image: Imagem inline 1]

 2016-03-23 9:40 GMT+00:00 Massimiliano :

> Very very nice.
>
> Thank you for sharing
>
> On Wed, Mar 23, 2016 at 3:17 AM, Michael Beller 
> wrote:
>
>> I created a new 'starter' app for the types of data and process
>> management apps I tend to build.
>>
>> I used https://almsaeedstudio.com/preview as the template and I'm
>> hosting a preview at https://mjbeller.pythonanywhere.com/starter.
>>
>> I'd welcome any feedback but also wanted to share the code at
>> https://github.com/mjbeller/web2py-starter for anybody that may want
>> to explore.
>>
>> I started with the goal to create a new web2py app without using the
>> Welcome app to help me learn a little more about web2py.  I found myself
>> slowly adding more and more code (primarily CSS and JS) from the Welcome
>> app to support some features such as Smartgrids.  I'd like to evolve
>> Starter to support the upcoming form.py and grid.py that the core team is
>> evaluating and developing.
>>
>> --
>> 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.
>>
>
>
>
> --
> Massimiliano
>
> --
> 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 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 emai

Re: [web2py] many session files

2016-03-23 Thread Alex
I've blocked all the other applications in the apache config. just 
wondering: wouldn't it be better to move the applications from the web2py 
git repository to somewhere else? I'm using web2py source from git (with 
specific tag) for my productive system and therefor also have the examples 
and welcome app installed. Since they are blocked it's not an issue for me 
but it's probably not optimal.

Concerning my session handling: I think I will modify my code to only 
create sessions when the user is logged in. Until now I also used the 
session for anonymous users to store the selected language but I can move 
this into a cookie. So I assume the number of sessions will be reduced from 
~ 2 millions (for users, monitoring requests, crawlers and whatever) to a 
few thousands. This alone should solve my performance issues.

Maybe I'll store the sessions in the same db after all and not in an 
additional redis db. I guess the performance difference is negligible, 
especially since there will be much fewer sessions.

Alex

On Wednesday, March 23, 2016 at 1:29:51 PM UTC+1, Anthony wrote:
>
> On Wednesday, March 23, 2016 at 1:22:27 AM UTC-4, Massimo Di Pierro wrote:
>>
>> It is but make sure you do not expose the welcome app. That app exposes 
>> (as an example) the state of the system, which includes your secret key. 
>> The next we2py version (this week, I promise) will prevent that.
>>
>
> Do you mean the *examples* app rather than the *welcome* app? If so, my 
> understanding is that it exposes the cookie_key of the examples app itself, 
> not the cookie_keys of any other apps -- so the risk is not that the 
> session data of other apps will be compromised but that there is a 
> different vulnerability via the examples app (which is therefore a risk of 
> any installation, regardless of the type of sessions used in other apps), 
> no?
>
> Anthony
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-03-23 Thread Michael Beller
That may be a problem with an earlier version of web2py.  I'm testing now 
on trunk, i.e., the master branch of web2py.  I noticed this earlier but 
haven't been able to see what's changed in master vs. previous versions. 
 Anybody know?

What version of web2py are you using?

I should probably move Starter to the stable release.

On Wednesday, March 23, 2016 at 1:08:10 PM UTC-4, Ramos wrote:
>
> error in login/register
> [image: Imagem inline 1]
>
> 2016-03-23 17:07 GMT+00:00 António Ramos 
> >:
>
>> i cannot log in or register...
>>
>> 2016-03-23 12:13 GMT+00:00 Michael Beller > >:
>>
>>> I just added the appconfig.ini to the repo since that will cause 
>>> confusion.  It contained the item for host_names supported by the current 
>>> web2py in trunk.
>>>
>>> auth = Auth(db, host_names=myconf.get('host.name'))
>>>
>>> Since I'm not sure what that is for, I just changed it back to:
>>>
>>> auth = Auth(db)
>>>
>>> in /models/db1.py
>>>
>>> Update your appconfig.ini to include the host_names entry (the 
>>> appconfig.ini in the repo on github contains the entry)
>>> OR
>>> Remove the host_names parameter from the call to Auth on line 58 
>>> in /models/db1.py
>>>
>>> That should get your local copy working (and eliminate the confusion for 
>>> future downloads or clones)
>>>
>>> On Wednesday, March 23, 2016 at 7:47:37 AM UTC-4, Ramos wrote:

 I already copied appconfig.ini to private

 but next error...

 [image: Imagem inline 1]
 then i changed auth above to just
 auth=auth(db)

 and now i could open the app but when i go to login or sign up i get 
 another error

 [image: Imagem inline 2]




 2016-03-23 11:41 GMT+00:00 Massimiliano :

> Just copy
>
> appconfic.ini from welcome/private to starter/private
>
> On Wednesday, March 23, 2016 at 11:19:23 AM UTC+1, Ramos wrote:
>>
>> Nice but i get an error installing it as "starter" application
>> any help ?
>>
>> [image: Imagem inline 1]
>>
>> 2016-03-23 9:40 GMT+00:00 Massimiliano :
>>
>>> Very very nice. 
>>>
>>> Thank you for sharing
>>>
>>> On Wed, Mar 23, 2016 at 3:17 AM, Michael Beller  
>>> wrote:
>>>
 I created a new 'starter' app for the types of data and process 
 management apps I tend to build.

 I used https://almsaeedstudio.com/preview as the template and I'm 
 hosting a preview at https://mjbeller.pythonanywhere.com/starter.

 I'd welcome any feedback but also wanted to share the code at 
 https://github.com/mjbeller/web2py-starter for anybody that may 
 want to explore.

 I started with the goal to create a new web2py app without using 
 the Welcome app to help me learn a little more about web2py.  I found 
 myself slowly adding more and more code (primarily CSS and JS) from 
 the 
 Welcome app to support some features such as Smartgrids.  I'd like to 
 evolve Starter to support the upcoming form.py and grid.py that the 
 core 
 team is evaluating and developing.

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

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

[web2py] Re: JQuery Help with book example of .slideToggle

2016-03-23 Thread billmackalister
Thank you!

On Wednesday, March 23, 2016 at 2:30:23 AM UTC-4, xmarx wrote:
>
> you have to specify that with css.
>
> add this:
>
> 
> .two {
> display:none;
> }
> 
>
>
>
> 22 Mart 2016 Salı 21:22:14 UTC+2 tarihinde billmac...@gmail.com yazdı:
>>
>> In the book example page 501
>>
>> Hello
>> World
>> 
>> jQuery(document).ready(function(){
>> jQuery('.one').click(function(){jQuery('.two').slideToggle()});
>> });
>> 
>>
>>
>> When the page loads up it shows both hello and world. How to show just 
>> hello keeping the world hidden and when clicked then only the world to 
>> appear? 
>>
>

-- 
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] learning curve?

2016-03-23 Thread billmackalister
No I wasn't. I am looking fwd to the stable version that works out of box. 
Nice work btw! 

On Wednesday, March 23, 2016 at 12:28:21 PM UTC-4, Michael Beller wrote:
>
> Those should appear after you log in (but are hidden for guests).
>
> Were you logged in?
>
> On Wednesday, March 23, 2016 at 9:25:20 AM UTC-4, billmac...@gmail.com 
> wrote:
>>
>> Hi Michael,
>>
>> I looked at the preview of the starter app. However I am not seeing the 
>> dashboard icons (like attached). Is it something I need to configure in the 
>> app or there are some specific setups?
>>
>> Bill.
>>
>> On Wednesday, March 23, 2016 at 8:16:23 AM UTC-4, Michael Beller wrote:
>>>
>>> Hi Jon,
>>>
>>> I just posted my sample app, called Starter, that uses:
>>> https://almsaeedstudio.com/preview
>>>
>>> You can read about it here:
>>> https://groups.google.com/forum/#!topic/web2py/Md-OTq-hi-U%5B1-25%5D
>>>
>>> and download it here:
>>> https://github.com/mjbeller/web2py-starter
>>>
>>> On Monday, March 21, 2016 at 8:37:52 PM UTC-4, Literate Aspects wrote:

 Hi Thomas,

 Is there anything like: http://is.gd/pzcxYe a UI framework?

 Jon

 On Tuesday, February 9, 2016 at 12:49:54 AM UTC-8, Thomas Bellembois 
 wrote:
>
> Hi Jon,
>
> I have spent a long time studying the different Python Web frameworks 
> to develop a small chemical products management application and I have 
> choosen Web2py mainly because of its fast learning curve (and also the 
> active community).
> The official documentation is a really good point to start. 
>
> Start with few pages to play with the model-controller-view structure 
> and see.
>
> Regards,
>
> Thomas
>
> On 09/02/2016 01:25, Literate Aspects wrote:
>
> I tried django ... to discover HUGE learning curve
> I tried Qt ... to discover moderate learning curve
>
> I can amateur code in VBA and want to transfer that same code function 
> to a webapp with database.
>
> My question, how many hours or days or months would it take to develop 
> a simple application that controls a web page to enter data into?
>
> Jon
> -- 
> 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] learning curve?

2016-03-23 Thread Literate Aspects
I am looking at your online app but do not understand its purpose.  I
shows a lot of data representations, and says "Alexander Pierce" is
online.

Jon

On 3/23/16, Michael Beller  wrote:
> Hi Jon,
>
> I just posted my sample app, called Starter, that uses:
> https://almsaeedstudio.com/preview
>
> You can read about it here:
> https://groups.google.com/forum/#!topic/web2py/Md-OTq-hi-U%5B1-25%5D
>
> and download it here:
> https://github.com/mjbeller/web2py-starter
>
> On Monday, March 21, 2016 at 8:37:52 PM UTC-4, Literate Aspects wrote:
>>
>> Hi Thomas,
>>
>> Is there anything like: http://is.gd/pzcxYe a UI framework?
>>
>> Jon
>>
>> On Tuesday, February 9, 2016 at 12:49:54 AM UTC-8, Thomas Bellembois
>> wrote:
>>>
>>> Hi Jon,
>>>
>>> I have spent a long time studying the different Python Web frameworks to
>>>
>>> develop a small chemical products management application and I have
>>> choosen
>>> Web2py mainly because of its fast learning curve (and also the active
>>> community).
>>> The official documentation is a really good point to start.
>>>
>>> Start with few pages to play with the model-controller-view structure and
>>>
>>> see.
>>>
>>> Regards,
>>>
>>> Thomas
>>>
>>> On 09/02/2016 01:25, Literate Aspects wrote:
>>>
>>> I tried django ... to discover HUGE learning curve
>>> I tried Qt ... to discover moderate learning curve
>>>
>>> I can amateur code in VBA and want to transfer that same code function to
>>>
>>> a webapp with database.
>>>
>>> My question, how many hours or days or months would it take to develop a
>>>
>>> simple application that controls a web page to enter data into?
>>>
>>> Jon
>>> --
>>> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/AEP4UjLMlMc/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] learning curve?

2016-03-23 Thread Literate Aspects
It seems to be some sort of display of  'components' ?

Looks cool, hopefully today I can discover how the 'components /
widgets' can be utilized in a project?

Thank you.

Jon

On 3/23/16, Literate Aspects  wrote:
> I am looking at your online app but do not understand its purpose.  I
> shows a lot of data representations, and says "Alexander Pierce" is
> online.
>
> Jon
>
> On 3/23/16, Michael Beller  wrote:
>> Hi Jon,
>>
>> I just posted my sample app, called Starter, that uses:
>> https://almsaeedstudio.com/preview
>>
>> You can read about it here:
>> https://groups.google.com/forum/#!topic/web2py/Md-OTq-hi-U%5B1-25%5D
>>
>> and download it here:
>> https://github.com/mjbeller/web2py-starter
>>
>> On Monday, March 21, 2016 at 8:37:52 PM UTC-4, Literate Aspects wrote:
>>>
>>> Hi Thomas,
>>>
>>> Is there anything like: http://is.gd/pzcxYe a UI framework?
>>>
>>> Jon
>>>
>>> On Tuesday, February 9, 2016 at 12:49:54 AM UTC-8, Thomas Bellembois
>>> wrote:

 Hi Jon,

 I have spent a long time studying the different Python Web frameworks
 to

 develop a small chemical products management application and I have
 choosen
 Web2py mainly because of its fast learning curve (and also the active
 community).
 The official documentation is a really good point to start.

 Start with few pages to play with the model-controller-view structure
 and

 see.

 Regards,

 Thomas

 On 09/02/2016 01:25, Literate Aspects wrote:

 I tried django ... to discover HUGE learning curve
 I tried Qt ... to discover moderate learning curve

 I can amateur code in VBA and want to transfer that same code function
 to

 a webapp with database.

 My question, how many hours or days or months would it take to develop
 a

 simple application that controls a web page to enter data into?

 Jon
 --
 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 a topic in the
>> Google Groups "web2py-users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/web2py/AEP4UjLMlMc/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
>


-- 
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-23 Thread António Ramos
2.12.13

2016-03-23 17:15 GMT+00:00 Michael Beller :

> That may be a problem with an earlier version of web2py.  I'm testing now
> on trunk, i.e., the master branch of web2py.  I noticed this earlier but
> haven't been able to see what's changed in master vs. previous versions.
> Anybody know?
>
> What version of web2py are you using?
>
> I should probably move Starter to the stable release.
>
> On Wednesday, March 23, 2016 at 1:08:10 PM UTC-4, Ramos wrote:
>>
>> error in login/register
>> [image: Imagem inline 1]
>>
>> 2016-03-23 17:07 GMT+00:00 António Ramos :
>>
>>> i cannot log in or register...
>>>
>>> 2016-03-23 12:13 GMT+00:00 Michael Beller :
>>>
 I just added the appconfig.ini to the repo since that will cause
 confusion.  It contained the item for host_names supported by the current
 web2py in trunk.

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

 Since I'm not sure what that is for, I just changed it back to:

 auth = Auth(db)

 in /models/db1.py

 Update your appconfig.ini to include the host_names entry (the
 appconfig.ini in the repo on github contains the entry)
 OR
 Remove the host_names parameter from the call to Auth on line 58
 in /models/db1.py

 That should get your local copy working (and eliminate the confusion
 for future downloads or clones)

 On Wednesday, March 23, 2016 at 7:47:37 AM UTC-4, Ramos wrote:
>
> I already copied appconfig.ini to private
>
> but next error...
>
> [image: Imagem inline 1]
> then i changed auth above to just
> auth=auth(db)
>
> and now i could open the app but when i go to login or sign up i get
> another error
>
> [image: Imagem inline 2]
>
>
>
>
> 2016-03-23 11:41 GMT+00:00 Massimiliano :
>
>> Just copy
>>
>> appconfic.ini from welcome/private to starter/private
>>
>> On Wednesday, March 23, 2016 at 11:19:23 AM UTC+1, Ramos wrote:
>>>
>>> Nice but i get an error installing it as "starter" application
>>> any help ?
>>>
>>> [image: Imagem inline 1]
>>>
>>> 2016-03-23 9:40 GMT+00:00 Massimiliano :
>>>
 Very very nice.

 Thank you for sharing

 On Wed, Mar 23, 2016 at 3:17 AM, Michael Beller 
 wrote:

> I created a new 'starter' app for the types of data and process
> management apps I tend to build.
>
> I used https://almsaeedstudio.com/preview as the template and I'm
> hosting a preview at https://mjbeller.pythonanywhere.com/starter.
>
> I'd welcome any feedback but also wanted to share the code at
> https://github.com/mjbeller/web2py-starter for anybody that may
> want to explore.
>
> I started with the goal to create a new web2py app without using
> the Welcome app to help me learn a little more about web2py.  I found
> myself slowly adding more and more code (primarily CSS and JS) from 
> the
> Welcome app to support some features such as Smartgrids.  I'd like to
> evolve Starter to support the upcoming form.py and grid.py that the 
> core
> team is evaluating and developing.
>
> --
> 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.
>



 --
 Massimiliano

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

Re: [web2py] learning curve?

2016-03-23 Thread Dave S


On Wednesday, March 23, 2016 at 10:53:34 AM UTC-7, Literate Aspects wrote:
>
> It seems to be some sort of display of  'components' ? 
>
> Looks cool, hopefully today I can discover how the 'components / 
> widgets' can be utilized in a project? 
>
> Thank you. 
>
> Jon 
>


Well, imagine your data being presented this way instead of the Dog 
Database.

Then take a look at the source code.

I think Michael intended this to be easy to understand .  From a quick 
look, you should be able to follow most of his code if you can read the 
examples in Chapter 3 of the Web2Py book (you've seen that link, I noticed).

/dps

 

>
> On 3/23/16, Literate Aspects > 
> wrote: 
> > I am looking at your online app but do not understand its purpose.  I 
> > shows a lot of data representations, and says "Alexander Pierce" is 
> > online. 
> > 
> > Jon 
> > 
> > On 3/23/16, Michael Beller > wrote: 
> >> Hi Jon, 
> >> 
> >> I just posted my sample app, called Starter, that uses: 
> >> https://almsaeedstudio.com/preview 
> >> 
> >> You can read about it here: 
> >> https://groups.google.com/forum/#!topic/web2py/Md-OTq-hi-U%5B1-25%5D 
> >> 
> >> and download it here: 
> >> https://github.com/mjbeller/web2py-starter 
> >> 
> >> On Monday, March 21, 2016 at 8:37:52 PM UTC-4, Literate Aspects wrote: 
> >>> 
> >>> Hi Thomas, 
> >>> 
> >>> Is there anything like: http://is.gd/pzcxYe a UI framework? 
> >>> 
> >>> Jon 
> >>> 
> >>> On Tuesday, February 9, 2016 at 12:49:54 AM UTC-8, Thomas Bellembois 
> >>> wrote: 
>  
>  Hi Jon, 
>  
>  I have spent a long time studying the different Python Web frameworks 
>  to 
>  
>  develop a small chemical products management application and I have 
>  choosen 
>  Web2py mainly because of its fast learning curve (and also the active 
>  community). 
>  The official documentation is a really good point to start. 
>  
>  Start with few pages to play with the model-controller-view structure 
>  and 
>  
>  see. 
>  
>  Regards, 
>  
>  Thomas 
>  
>  On 09/02/2016 01:25, Literate Aspects wrote: 
>  
>  I tried django ... to discover HUGE learning curve 
>  I tried Qt ... to discover moderate learning curve 
>  
>  I can amateur code in VBA and want to transfer that same code 
> function 
>  to 
>  
>  a webapp with database. 
>  
>  My question, how many hours or days or months would it take to 
> develop 
>  a 
>  
>  simple application that controls a web page to enter data into? 
>  
>  Jon 
>  -- 
>  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 a topic in the 
> >> Google Groups "web2py-users" group. 
> >> To unsubscribe from this topic, visit 
> >> https://groups.google.com/d/topic/web2py/AEP4UjLMlMc/unsubscribe. 
> >> To unsubscribe from this group and all its topics, send an email to 
> >> web2py+un...@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 
> > 
>
>
> -- 
> 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-23 Thread Literate Aspects
Hi Michael,

Thank YOU! for including me in this thread.  Wow, I now understand what 
your admin webapp is.

I am determined TODAY to create my own first Web2PY app, PLEASE, does 
anyone know of a "create your first Web2PY app in 1 hour" type of 
tutorial.  I am viewing the (11 hour) 5 set video tutorials generously 
created by Massimo, but would really like to get hands on.

PLEASE, anybody...

Jon



On Wednesday, March 23, 2016 at 10:15:23 AM UTC-7, Michael Beller wrote:
>
> That may be a problem with an earlier version of web2py.  I'm testing now 
> on trunk, i.e., the master branch of web2py.  I noticed this earlier but 
> haven't been able to see what's changed in master vs. previous versions. 
>  Anybody know?
>
> What version of web2py are you using?
>
> I should probably move Starter to the stable release.
>
> On Wednesday, March 23, 2016 at 1:08:10 PM UTC-4, Ramos wrote:
>>
>> error in login/register
>> [image: Imagem inline 1]
>>
>> 2016-03-23 17:07 GMT+00:00 António Ramos :
>>
>>> i cannot log in or register...
>>>
>>> 2016-03-23 12:13 GMT+00:00 Michael Beller :
>>>
 I just added the appconfig.ini to the repo since that will cause 
 confusion.  It contained the item for host_names supported by the current 
 web2py in trunk.

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

 Since I'm not sure what that is for, I just changed it back to:

 auth = Auth(db)

 in /models/db1.py

 Update your appconfig.ini to include the host_names entry (the 
 appconfig.ini in the repo on github contains the entry)
 OR
 Remove the host_names parameter from the call to Auth on line 58 
 in /models/db1.py

 That should get your local copy working (and eliminate the confusion 
 for future downloads or clones)

 On Wednesday, March 23, 2016 at 7:47:37 AM UTC-4, Ramos wrote:
>
> I already copied appconfig.ini to private
>
> but next error...
>
> [image: Imagem inline 1]
> then i changed auth above to just
> auth=auth(db)
>
> and now i could open the app but when i go to login or sign up i get 
> another error
>
> [image: Imagem inline 2]
>
>
>
>
> 2016-03-23 11:41 GMT+00:00 Massimiliano :
>
>> Just copy
>>
>> appconfic.ini from welcome/private to starter/private
>>
>> On Wednesday, March 23, 2016 at 11:19:23 AM UTC+1, Ramos wrote:
>>>
>>> Nice but i get an error installing it as "starter" application
>>> any help ?
>>>
>>> [image: Imagem inline 1]
>>>
>>> 2016-03-23 9:40 GMT+00:00 Massimiliano :
>>>
 Very very nice. 

 Thank you for sharing

 On Wed, Mar 23, 2016 at 3:17 AM, Michael Beller  
 wrote:

> I created a new 'starter' app for the types of data and process 
> management apps I tend to build.
>
> I used https://almsaeedstudio.com/preview as the template and I'm 
> hosting a preview at https://mjbeller.pythonanywhere.com/starter.
>
> I'd welcome any feedback but also wanted to share the code at 
> https://github.com/mjbeller/web2py-starter for anybody that may 
> want to explore.
>
> I started with the goal to create a new web2py app without using 
> the Welcome app to help me learn a little more about web2py.  I found 
> myself slowly adding more and more code (primarily CSS and JS) from 
> the 
> Welcome app to support some features such as Smartgrids.  I'd like to 
> evolve Starter to support the upcoming form.py and grid.py that the 
> core 
> team is evaluating and developing.
>
> -- 
> 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.
>



 -- 
 Massimiliano

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

Re: [web2py] learning curve?

2016-03-23 Thread Literate Aspects
EXCELLENT!  Dave S.  on point... thank you!

Shall do, beginning with Massimo's chapter 3.

Thank you for your kindness.

Jon

-- 
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-23 Thread Willoughby
I have a 'Create Your First web2py App in 38 Minutes' book, but not the 
hour long version.
Sorry.

On Wednesday, March 23, 2016 at 2:34:40 PM UTC-4, Literate Aspects wrote:
>
> Hi Michael,
>
> Thank YOU! for including me in this thread.  Wow, I now understand what 
> your admin webapp is.
>
> I am determined TODAY to create my own first Web2PY app, PLEASE, does 
> anyone know of a "create your first Web2PY app in 1 hour" type of 
> tutorial.  I am viewing the (11 hour) 5 set video tutorials generously 
> created by Massimo, but would really like to get hands on.
>
> PLEASE, anybody...
>
> Jon
>
>
>
> On Wednesday, March 23, 2016 at 10:15:23 AM UTC-7, Michael Beller wrote:
>>
>> That may be a problem with an earlier version of web2py.  I'm testing now 
>> on trunk, i.e., the master branch of web2py.  I noticed this earlier but 
>> haven't been able to see what's changed in master vs. previous versions. 
>>  Anybody know?
>>
>> What version of web2py are you using?
>>
>> I should probably move Starter to the stable release.
>>
>> On Wednesday, March 23, 2016 at 1:08:10 PM UTC-4, Ramos wrote:
>>>
>>> error in login/register
>>> [image: Imagem inline 1]
>>>
>>> 2016-03-23 17:07 GMT+00:00 António Ramos :
>>>
 i cannot log in or register...

 2016-03-23 12:13 GMT+00:00 Michael Beller :

> I just added the appconfig.ini to the repo since that will cause 
> confusion.  It contained the item for host_names supported by the current 
> web2py in trunk.
>
> auth = Auth(db, host_names=myconf.get('host.name'))
>
> Since I'm not sure what that is for, I just changed it back to:
>
> auth = Auth(db)
>
> in /models/db1.py
>
> Update your appconfig.ini to include the host_names entry (the 
> appconfig.ini in the repo on github contains the entry)
> OR
> Remove the host_names parameter from the call to Auth on line 58 
> in /models/db1.py
>
> That should get your local copy working (and eliminate the confusion 
> for future downloads or clones)
>
> On Wednesday, March 23, 2016 at 7:47:37 AM UTC-4, Ramos wrote:
>>
>> I already copied appconfig.ini to private
>>
>> but next error...
>>
>> [image: Imagem inline 1]
>> then i changed auth above to just
>> auth=auth(db)
>>
>> and now i could open the app but when i go to login or sign up i get 
>> another error
>>
>> [image: Imagem inline 2]
>>
>>
>>
>>
>> 2016-03-23 11:41 GMT+00:00 Massimiliano :
>>
>>> Just copy
>>>
>>> appconfic.ini from welcome/private to starter/private
>>>
>>> On Wednesday, March 23, 2016 at 11:19:23 AM UTC+1, Ramos wrote:

 Nice but i get an error installing it as "starter" application
 any help ?

 [image: Imagem inline 1]

 2016-03-23 9:40 GMT+00:00 Massimiliano :

> Very very nice. 
>
> Thank you for sharing
>
> On Wed, Mar 23, 2016 at 3:17 AM, Michael Beller  > wrote:
>
>> I created a new 'starter' app for the types of data and process 
>> management apps I tend to build.
>>
>> I used https://almsaeedstudio.com/preview as the template and 
>> I'm hosting a preview at 
>> https://mjbeller.pythonanywhere.com/starter.
>>
>> I'd welcome any feedback but also wanted to share the code at 
>> https://github.com/mjbeller/web2py-starter for anybody that may 
>> want to explore.
>>
>> I started with the goal to create a new web2py app without using 
>> the Welcome app to help me learn a little more about web2py.  I 
>> found 
>> myself slowly adding more and more code (primarily CSS and JS) from 
>> the 
>> Welcome app to support some features such as Smartgrids.  I'd like 
>> to 
>> evolve Starter to support the upcoming form.py and grid.py that the 
>> core 
>> team is evaluating and developing.
>>
>> -- 
>> 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.
>>
>
>
>
> -- 
> Massimiliano
>
> -- 
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com

[web2py] Re: Why I can send mail use python but can't send by web2py mail object

2016-03-23 Thread Leonel Câmara
Humm what version of python are you using? 2.7.11 does have 
source_address 
https://hg.python.org/releases/2.7.11/file/tip/Lib/smtplib.py#l248

Basically the problem here google is that google returning an IPv6 address 
to your socket.getaddrinfo(host, port) before the IPv4 addresses so it 
tries to connect to that one first. 

Your options seem to be:
 - Set a PTR record for your IPv6 address
 - disable IPv6 system wide
 - monkeypatch socket.create_connection to ignore IPv6 results from 
socket.getaddrinfo.

-- 
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-23 Thread Rimantas Nedzinskas
Have you tried this?
https://milesm.pythonanywhere.com/wiki

Rimas

On Wednesday, March 23, 2016 at 6:34:40 PM UTC, Literate Aspects wrote:
>
> Hi Michael,
>
> Thank YOU! for including me in this thread.  Wow, I now understand what 
> your admin webapp is.
>
> I am determined TODAY to create my own first Web2PY app, PLEASE, does 
> anyone know of a "create your first Web2PY app in 1 hour" type of 
> tutorial.  I am viewing the (11 hour) 5 set video tutorials generously 
> created by Massimo, but would really like to get hands on.
>
> PLEASE, anybody...
>
> Jon
>
>
>>>

-- 
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-23 Thread Michael Beller
Hi Ramos,

I found the problem.

using appconfig for formstyle doesn't work in older versions (it appears 
that it doesn't recognize the underscore).

I hardcoded the formstyle in db1.py and updated the repo

You can refresh from the repo (there's been some other small enhancements) 
or in models/db1.py change this
response.formstyle = myconf.get('forms.formstyle')

to this
response.formstyle = 'bootstrap3_inline'

that should work in older web2py versions

On Wednesday, March 23, 2016 at 2:27:04 PM UTC-4, Ramos wrote:
>
> 2.12.13
>
> 2016-03-23 17:15 GMT+00:00 Michael Beller 
> >:
>
>> That may be a problem with an earlier version of web2py.  I'm testing now 
>> on trunk, i.e., the master branch of web2py.  I noticed this earlier but 
>> haven't been able to see what's changed in master vs. previous versions.  
>> Anybody know?
>>
>> What version of web2py are you using?
>>
>> I should probably move Starter to the stable release.
>>
>> On Wednesday, March 23, 2016 at 1:08:10 PM UTC-4, Ramos wrote:
>>>
>>> error in login/register
>>> [image: Imagem inline 1]
>>>
>>> 2016-03-23 17:07 GMT+00:00 António Ramos :
>>>
 i cannot log in or register...

 2016-03-23 12:13 GMT+00:00 Michael Beller :

> I just added the appconfig.ini to the repo since that will cause 
> confusion.  It contained the item for host_names supported by the current 
> web2py in trunk.
>
> auth = Auth(db, host_names=myconf.get('host.name'))
>
> Since I'm not sure what that is for, I just changed it back to:
>
> auth = Auth(db)
>
> in /models/db1.py
>
> Update your appconfig.ini to include the host_names entry (the 
> appconfig.ini in the repo on github contains the entry)
> OR
> Remove the host_names parameter from the call to Auth on line 58 
> in /models/db1.py
>
> That should get your local copy working (and eliminate the confusion 
> for future downloads or clones)
>
> On Wednesday, March 23, 2016 at 7:47:37 AM UTC-4, Ramos wrote:
>>
>> I already copied appconfig.ini to private
>>
>> but next error...
>>
>> [image: Imagem inline 1]
>> then i changed auth above to just
>> auth=auth(db)
>>
>> and now i could open the app but when i go to login or sign up i get 
>> another error
>>
>> [image: Imagem inline 2]
>>
>>
>>
>>
>> 2016-03-23 11:41 GMT+00:00 Massimiliano :
>>
>>> Just copy
>>>
>>> appconfic.ini from welcome/private to starter/private
>>>
>>> On Wednesday, March 23, 2016 at 11:19:23 AM UTC+1, Ramos wrote:

 Nice but i get an error installing it as "starter" application
 any help ?

 [image: Imagem inline 1]

 2016-03-23 9:40 GMT+00:00 Massimiliano :

> Very very nice. 
>
> Thank you for sharing
>
> On Wed, Mar 23, 2016 at 3:17 AM, Michael Beller  > wrote:
>
>> I created a new 'starter' app for the types of data and process 
>> management apps I tend to build.
>>
>> I used https://almsaeedstudio.com/preview as the template and 
>> I'm hosting a preview at 
>> https://mjbeller.pythonanywhere.com/starter.
>>
>> I'd welcome any feedback but also wanted to share the code at 
>> https://github.com/mjbeller/web2py-starter for anybody that may 
>> want to explore.
>>
>> I started with the goal to create a new web2py app without using 
>> the Welcome app to help me learn a little more about web2py.  I 
>> found 
>> myself slowly adding more and more code (primarily CSS and JS) from 
>> the 
>> Welcome app to support some features such as Smartgrids.  I'd like 
>> to 
>> evolve Starter to support the upcoming form.py and grid.py that the 
>> core 
>> team is evaluating and developing.
>>
>> -- 
>> 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.
>>
>
>
>
> -- 
> Massimiliano
>
> -- 
> 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 becau

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

2016-03-23 Thread Literate Aspects
Interesting... Willoughby.

Sorry, I fail to see your "humor".

On 3/23/16, Willoughby  wrote:
> I have a 'Create Your First web2py App in 38 Minutes' book, but not the
> hour long version.
> Sorry.

-- 
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-23 Thread Literate Aspects
Hi Rimantas,

Sorry, got it to work, just put the same text in front and it ran.

Thank you, sorry to waste your time.

Jon

On 3/23/16, Literate Aspects  wrote:
> Hi Rimantas,
>
> Thank you.  I humbly appreciate everything you and the other LOVERS OF
> CODING share.
>
> With all respect to those who have shared tutorial data, the instruction
> DOES not exactly match the real time practice.
> Can you help me with this?  I am going to attach screen shots.
>
> Please note, where does the below go?  Do I replace all the text under def
> index(): removing the response.flash = T("Hello World") - NOTE, which is
> NOT what the book has - view screenshot of Chapter 3 and screen shot of
> Live App.
>
> If you could answer this then I could move on, as the web2py keeps
> generating error tickets.
>
>
>
> return "Hello from MyApp"
>
> go?
>
>
>
> On Wednesday, March 23, 2016 at 1:02:27 PM UTC-7, Rimantas Nedzinskas
> wrote:
>>
>> Have you tried this?
>> https://milesm.pythonanywhere.com/wiki
>>
>>
>
> --
> 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/Md-OTq-hi-U/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-23 Thread Literate Aspects
Hi Rimantas, 

Please, what is the difference between:

def index(): return "Hello from MyApp"

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

I see the different RUN screen outputs, but do not have a definition of:

RETURN
RETURN DICT

to be able to determine the specific differences, is there somewhere that 
has a list of commands with definitions?

Any suggestions greatly appreciated.

Jon

ps.  collecting those golden nuggets of KNOWLEDGE !





>
> Sorry, got it to work, just put the same text in front and it ran. 
>
> Thank you, sorry to waste your time. 
>
> Jon 
>
>

-- 
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] Chapter 3 of doc... returns Syntax Error

2016-03-23 Thread Literate Aspects
Hello, please excuse the BEGINNERism of my question.

Attached are two screen shots, one of the Web2PY manual and the other of 
the live app attempting to follow the manual instructions.

I have tried to:
"Let's now add a counter to this page that will count how many times the 
same visitor displays the page."

and when attempting to save the changes, an invalid syntax error RESULTS.

Please any and all suggestions greatly appreciated.

Jon

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Auth_user add username field

2016-03-23 Thread Jerry Liu
Hello, all

I want to add a *username* field to auth_user table. I figured out I can 
use the following line of code to do so, but how can I use *username *instead 
of *email *in login and registration process?

auth.settings.extra_fields[auth.settings.table_user_name] = [ Field]


-- 
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-23 Thread Rimantas Nedzinskas
Jon, I see you are pushing new information into your brains too fast :)
Take a rest. Sleep well. I'm serious. Let your brain to digest. Then go 
back to the beginning of the book or/and review the beginning of the video 
about the basic concepts of the web2py framework.
Try to understand the workflow from the request to the response. Clarify 
how views are used and how templates works. Then examine the generic views 
(generic.html, generic.json, etc.). Try to create your own view. Play with 
different data types in the response. You'll get it.

A little hint: if you did not define your own view the generic view will be 
used. And if you take a look inside the generic.html file then you will 
find a helper function BEAUTIFY(). Read about it in the book.

Good night

Rimas


On Wednesday, March 23, 2016 at 9:23:34 PM UTC, Literate Aspects wrote:
>
> Hi Rimantas, 
>
> Please, what is the difference between:
>
> def index(): return "Hello from MyApp"
>
> def index(): return dict(message="Hello from MyApp")
>
> I see the different RUN screen outputs, but do not have a definition of:
>
> RETURN
> RETURN DICT
>
> to be able to determine the specific differences, is there somewhere that 
> has a list of commands with definitions?
>
> Any suggestions greatly appreciated.
>
> Jon
>
> ps.  collecting those golden nuggets of KNOWLEDGE !
>
>

-- 
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] Chapter 3 of doc... returns Syntax Error

2016-03-23 Thread Anthony
Notice that the indentation levels of your code do not match what is in the 
book. In Python, you must use proper indentation.

Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-03-23 Thread Literate Aspects
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.

Jon

-- 
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: Chapter 3 of doc... returns Syntax Error

2016-03-23 Thread Literate Aspects
Excellent!  Thank you.  Shall try now.

Thank you Anthony.

On Wednesday, March 23, 2016 at 2:59:07 PM UTC-7, Anthony wrote:
>
> Notice that the indentation levels of your code do not match what is in 
> the book. In Python, you must use proper indentation.
>
> Anthony
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Chapter 3 of doc... returns Syntax Error

2016-03-23 Thread Literate Aspects
Anthony, you are the MAN!

I was wondering about the code structure, as in Delphi, this is not 
required, BUT is an added task.  There are separate applications
in Delphi that format the code to different standards including indentation 
(which was the problem), spacing and capitalization.

Now, I have collected another golden nugget of KNOWLEDGE, thank you!

Jon

On Wednesday, March 23, 2016 at 3:02:43 PM UTC-7, Literate Aspects wrote:
>
> Excellent!  Thank you.  Shall try now.
>
> Thank you Anthony.
>
> On Wednesday, March 23, 2016 at 2:59:07 PM UTC-7, Anthony wrote:
>>
>> Notice that the indentation levels of your code do not match what is in 
>> the book. In Python, you must use proper indentation.
>>
>> Anthony
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2016-03-23 Thread Rimantas Nedzinskas
This is what I tried to tell you. Blindly following the tutorials is not so
easy if you don't have clear understanding of how things are related. Most
tutorials could be outdated, different developers used slightly different
approach, different configs, templates and so on.
Anyway, I guess you found my hint to your question useful.

Rimas

On Wed, Mar 23, 2016 at 10:01 PM, Literate Aspects <
tahorsuijurisben...@gmail.com> 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.
>
> Jon
>
> --
> 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/Md-OTq-hi-U/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.
>

-- 
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-23 Thread Dave S


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() helper Rimas mentioned is something that gets executed on 
the server (in rendering the views) to generate HTML that shows what's in 
the object given as it's argument.  If that argument is a dictionary like 
the above, it will render a short table showing the key ("message") and its 
value ("Hello From MyApp").

Chapter 2 covers some Python basics, and general Python tutorials and books 
are available elsewhere.  If you're totally new to programming, than you 
may want to spend some time on those.  If you're used to C or C# or Java, 
Chapter 2 may be enough to get you started.

Good luck!

/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-23 Thread Ron Chatterjee
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?

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() helper Rimas mentioned is something that gets executed on 
> the server (in rendering the views) to generate HTML that shows what's in 
> the object given as it's argument.  If that argument is a dictionary like 
> the above, it will render a short table showing the key ("message") and its 
> value ("Hello From MyApp").
>
> Chapter 2 covers some Python basics, and general Python tutorials and 
> books are available elsewhere.  If you're totally new to programming, than 
> you may want to spend some time on those.  If you're used to C or C# or 
> Java, Chapter 2 may be enough to get you started.
>
> Good luck!
>
> /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: Auth_user add username field

2016-03-23 Thread Michael Beller
It's easier than that ... just change username=True in db.py, all the 
web2py components (e.g., log in form, auth_user table, log in menu, etc.) 
will now support username ...

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



On Wednesday, March 23, 2016 at 5:46:38 PM UTC-4, Jerry Liu wrote:
>
> Hello, all
>
> I want to add a *username* field to auth_user table. I figured out I can 
> use the following line of code to do so, but how can I use *username *instead 
> of *email *in login and registration process?
>
> auth.settings.extra_fields[auth.settings.table_user_name] = [ Field]
>
>
>

-- 
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-23 Thread Michael Beller
I changed auth = Auth(db, host_names=myconf.get('host.name'))
to auth = Auth(db) for backwards compatibility (I think host_names will be 
introduced in the upcoming release)

That should fix that problem.

Are you having another problem?  I'm actually having a problem with the old 
pydal in old versions and can't find the problem - but it's working with 
current 2.14.1

Could you try using the current Version 
2.14.1-beta+timestamp.2016.03.23.16.47.51 ?  That's what I developed 
against.

Would love to find the problem supporting old versions though!


On Wednesday, March 23, 2016 at 7:12:58 PM UTC-4, 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() helper Rimas mentioned is something that gets executed on 
>> the server (in rendering the views) to generate HTML that shows what's in 
>> the object given as it's argument.  If that argument is a dictionary like 
>> the above, it will render a short table showing the key ("message") and its 
>> value ("Hello From MyApp").
>>
>> Chapter 2 covers some Python basics, and general Python tutorials and 
>> books are available elsewhere.  If you're totally new to programming, than 
>> you may want to spend some time on those.  If you're used to C or C# or 
>> Java, Chapter 2 may be enough to get you started.
>>
>> Good luck!
>>
>> /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-23 Thread Literate Aspects
OK, getting into it, EXCELLENT!

Thank you for your reply!

Jon

-- 
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-23 Thread Literate Aspects
Thank you Dave S.

OK, getting into it, EXCELLENT!

Thank you for your reply!

Jon

-- 
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-23 Thread Massimo Di Pierro
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() helper Rimas mentioned is something that gets executed on 
>> the server (in rendering the views) to generate HTML that shows what's in 
>> the object given as it's argument.  If that argument is a dictionary like 
>> the above, it will render a short table showing the key ("message") and its 
>> value ("Hello From MyApp").
>>
>> Chapter 2 covers some Python basics, and general Python tutorials and 
>> books are available elsewhere.  If you're totally new to programming, than 
>> you may want to spend some time on those.  If you're used to C or C# or 
>> Java, Chapter 2 may be enough to get you started.
>>
>> Good luck!
>>
>> /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] Google App Engine Launcher 1.9.34 breaks web2py?

2016-03-23 Thread Tommi Lahtonen

It looks like GAE Launcher 1.34 breaks my web2py-applications. Is this a 
problem with App Engine Launcher or with web2py?

For example this simple application does not work:
http://appro.mit.jyu.fi/web-sovellukset/ohjaus/ohjaus6/web2py_malli.zip

It works just fine with App Engine Launcher 1.9.32. I have another 
application which is much more complex than this one but has been working 
for a couple
of years and now it breaks but with different error than the first one.

Logs:

2016-03-23 17:58:44 Running command: "['C:\\Python27\\pythonw.exe', 
'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', 
'--skip_sdk_update_check=yes', '--port=9080', '--admin_port=8001', 
'E:\\download\\web2py_malli\\web2py_malli']"
INFO 2016-03-23 17:58:45,851 devappserver2.py:769] Skipping SDK update 
check.
INFO 2016-03-23 17:58:46,367 api_server.py:205] Starting API server at: 
http://localhost:62082
INFO 2016-03-23 17:58:46,367 dispatcher.py:197] Starting module 
"default" running at: http://localhost:9080
INFO 2016-03-23 17:58:46,367 admin_server.py:116] Starting admin server 
at: http://localhost:8001
ERROR2016-03-23 15:59:07,539 wsgi.py:263] 

Traceback (most recent call last):

  File "C:\Program Files 
(x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 240, 
in Handle

handler = _config_handle.add_wsgi_middleware(self._LoadHandler())

  File "C:\Program Files 
(x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 299, 
in _LoadHandler

handler, path, err = LoadObject(self._handler)

  File "C:\Program Files 
(x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 85, 
in LoadObject

obj = __import__(path[0])

  File "E:\download\web2py_malli\web2py_malli\gaehandler.py", line 47, in 


from gluon.settings import global_settings

  File "E:\download\web2py_malli\web2py_malli\gluon\__init__.py", line 15, 
in 

from globals import current

  File "E:\download\web2py_malli\web2py_malli\gluon\globals.py", line 17, 
in 

from gluon.storage import Storage, List

  File "E:\download\web2py_malli\web2py_malli\gluon\storage.py", line 16, 
in 

import gluon.portalocker as portalocker

  File "E:\download\web2py_malli\web2py_malli\gluon\portalocker.py", line 
96, in 

if platform.system() == 'Windows':

  File "C:\Python27\lib\platform.py", line 1263, in system

return uname()[0]

  File "C:\Python27\lib\platform.py", line 1159, in uname

release,version,csd,ptype = win32_ver()

  File "C:\Python27\lib\platform.py", line 632, in win32_ver

from _winreg import OpenKeyEx, QueryValueEx, CloseKey, 
HKEY_LOCAL_MACHINE

  File "C:\Program Files 
(x86)\Google\google_appengine\google\appengine\tools\devappserver2\python\sandbox.py",
 
line 963, in load_module

raise ImportError('No module named %s' % fullname)

ImportError: No module named _winreg

INFO 2016-03-23 17:59:07,635 module.py:787] default: "GET / HTTP/1.1" 
500 -

and log from the second application:

2016-03-23 18:00:02 Running command: "['C:\\Python27\\pythonw.exe', 
'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', 
'--skip_sdk_update_check=yes', '--port=8080', '--admin_port=8000', 
'E:\\qr-punch']"
INFO 2016-03-23 18:00:03,996 devappserver2.py:769] Skipping SDK update 
check.
INFO 2016-03-23 18:00:04,069 api_server.py:205] Starting API server at: 
http://localhost:62087
INFO 2016-03-23 18:00:04,075 dispatcher.py:197] Starting module 
"default" running at: http://localhost:8080
INFO 2016-03-23 18:00:04,075 admin_server.py:116] Starting admin server 
at: http://localhost:8000
ERROR2016-03-23 16:00:12,319 wsgi.py:263] 

Traceback (most recent call last):

  File "C:\Program Files 
(x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 240, 
in Handle

handler = _config_handle.add_wsgi_middleware(self._LoadHandler())

  File "C:\Program Files 
(x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 299, 
in _LoadHandler

handler, path, err = LoadObject(self._handler)

  File "C:\Program Files 
(x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 85, 
in LoadObject

obj = __import__(path[0])

  File "E:\qr-punch\gaehandler.py", line 47, in 

from gluon.settings import global_settings

  File "E:\qr-punch\gluon\__init__.py", line 29, in 

"You can also download a complete copy from http://www.web2py.com.";

RuntimeError: web2py depends on pydal, which apparently you have not 
installed.

Probably you cloned the repository using git without '--recursive'

To fix this, please run (from inside your web2py folder):



 git submodule update --init --recursive



You can also download a complete copy from http://www.web2py.com.

INFO 2016-03-23 18:00:12,328 module.py:787] default: "GET / HTTP/1.1" 
500 -


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

[web2py] Re: Google App Engine Launcher 1.9.34 breaks web2py?

2016-03-23 Thread Massimo Di Pierro
Which version of web2py? Did you use git clone? Did you do what it is 
asking?

git submodule update --init --recursive



On Wednesday, 23 March 2016 18:33:39 UTC-5, Tommi Lahtonen wrote:
>
>
> It looks like GAE Launcher 1.34 breaks my web2py-applications. Is this a 
> problem with App Engine Launcher or with web2py?
>
> For example this simple application does not work:
> http://appro.mit.jyu.fi/web-sovellukset/ohjaus/ohjaus6/web2py_malli.zip
>
> It works just fine with App Engine Launcher 1.9.32. I have another 
> application which is much more complex than this one but has been working 
> for a couple
> of years and now it breaks but with different error than the first one.
>
> Logs:
>
> 2016-03-23 17:58:44 Running command: "['C:\\Python27\\pythonw.exe', 
> 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', 
> '--skip_sdk_update_check=yes', '--port=9080', '--admin_port=8001', 
> 'E:\\download\\web2py_malli\\web2py_malli']"
> INFO 2016-03-23 17:58:45,851 devappserver2.py:769] Skipping SDK update 
> check.
> INFO 2016-03-23 17:58:46,367 api_server.py:205] Starting API server 
> at: http://localhost:62082
> INFO 2016-03-23 17:58:46,367 dispatcher.py:197] Starting module 
> "default" running at: http://localhost:9080
> INFO 2016-03-23 17:58:46,367 admin_server.py:116] Starting admin 
> server at: http://localhost:8001
> ERROR2016-03-23 15:59:07,539 wsgi.py:263] 
>
> Traceback (most recent call last):
>
>   File "C:\Program Files 
> (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 240, 
> in Handle
>
> handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
>
>   File "C:\Program Files 
> (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 299, 
> in _LoadHandler
>
> handler, path, err = LoadObject(self._handler)
>
>   File "C:\Program Files 
> (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 85, 
> in LoadObject
>
> obj = __import__(path[0])
>
>   File "E:\download\web2py_malli\web2py_malli\gaehandler.py", line 47, in 
> 
>
> from gluon.settings import global_settings
>
>   File "E:\download\web2py_malli\web2py_malli\gluon\__init__.py", line 15, 
> in 
>
> from globals import current
>
>   File "E:\download\web2py_malli\web2py_malli\gluon\globals.py", line 17, 
> in 
>
> from gluon.storage import Storage, List
>
>   File "E:\download\web2py_malli\web2py_malli\gluon\storage.py", line 16, 
> in 
>
> import gluon.portalocker as portalocker
>
>   File "E:\download\web2py_malli\web2py_malli\gluon\portalocker.py", line 
> 96, in 
>
> if platform.system() == 'Windows':
>
>   File "C:\Python27\lib\platform.py", line 1263, in system
>
> return uname()[0]
>
>   File "C:\Python27\lib\platform.py", line 1159, in uname
>
> release,version,csd,ptype = win32_ver()
>
>   File "C:\Python27\lib\platform.py", line 632, in win32_ver
>
> from _winreg import OpenKeyEx, QueryValueEx, CloseKey, 
> HKEY_LOCAL_MACHINE
>
>   File "C:\Program Files 
> (x86)\Google\google_appengine\google\appengine\tools\devappserver2\python\sandbox.py",
>  
> line 963, in load_module
>
> raise ImportError('No module named %s' % fullname)
>
> ImportError: No module named _winreg
>
> INFO 2016-03-23 17:59:07,635 module.py:787] default: "GET / HTTP/1.1" 
> 500 -
>
> and log from the second application:
>
> 2016-03-23 18:00:02 Running command: "['C:\\Python27\\pythonw.exe', 
> 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', 
> '--skip_sdk_update_check=yes', '--port=8080', '--admin_port=8000', 
> 'E:\\qr-punch']"
> INFO 2016-03-23 18:00:03,996 devappserver2.py:769] Skipping SDK update 
> check.
> INFO 2016-03-23 18:00:04,069 api_server.py:205] Starting API server 
> at: http://localhost:62087
> INFO 2016-03-23 18:00:04,075 dispatcher.py:197] Starting module 
> "default" running at: http://localhost:8080
> INFO 2016-03-23 18:00:04,075 admin_server.py:116] Starting admin 
> server at: http://localhost:8000
> ERROR2016-03-23 16:00:12,319 wsgi.py:263] 
>
> Traceback (most recent call last):
>
>   File "C:\Program Files 
> (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 240, 
> in Handle
>
> handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
>
>   File "C:\Program Files 
> (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 299, 
> in _LoadHandler
>
> handler, path, err = LoadObject(self._handler)
>
>   File "C:\Program Files 
> (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 85, 
> in LoadObject
>
> obj = __import__(path[0])
>
>   File "E:\qr-punch\gaehandler.py", line 47, in 
>
> from gluon.settings import global_settings
>
>   File "E:\qr-punch\gluon\__init__.py", line 29, in 
>
> "You can also download a complete copy from http://www.web2py.com.";
>
> RuntimeError: web2py depends on pydal, which apparently you have not 
> installed.
>
> Probably you cloned the

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

2016-03-23 Thread Literate Aspects
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?

-- 
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-23 Thread Ron Chatterjee
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() helper Rimas mentioned is something that gets executed on 
>>> the server (in rendering the views) to generate HTML that shows what's in 
>>> the object given as it's argument.  If that argument is a dictionary like 
>>> the above, it will render a short table showing the key ("message") and its 
>>> value ("Hello From MyApp").
>>>
>>> Chapter 2 covers some Python basics, and general Python tutorials and 
>>> books are available elsewhere.  If you're totally new to programming, than 
>>> you may want to spend some time on those.  If you're used to C or C# or 
>>> Java, Chapter 2 may be enough to get you started.
>>>
>>> Good luck!
>>>
>>> /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: Auth_user add username field

2016-03-23 Thread Jerry Liu
Not sure if I understood, you mean I still have to make changes on View and 
Controller, right?
because adding this line doesn't change anything on login and registration 
views.

On Wednesday, March 23, 2016 at 4:12:49 PM UTC-7, Michael Beller wrote:
>
> It's easier than that ... just change username=True in db.py, all the 
> web2py components (e.g., log in form, auth_user table, log in menu, etc.) 
> will now support username ...
>
> auth.define_tables(username=True, signature=True)
>
>
>
> On Wednesday, March 23, 2016 at 5:46:38 PM UTC-4, Jerry Liu wrote:
>>
>> Hello, all
>>
>> I want to add a *username* field to auth_user table. I figured out I can 
>> use the following line of code to do so, but how can I use *username 
>> *instead 
>> of *email *in login and registration process?
>>
>> auth.settings.extra_fields[auth.settings.table_user_name] = [ Field]
>>
>>
>>

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

2016-03-23 Thread webmaster
Correct.

On Wednesday, March 23, 2016 at 7:16:07 AM UTC-7, Massimo Di Pierro wrote:
>
> Making sure I understand. Uncommenting these fixed your problem?
>
> # if not 'charset' in driver_args:
>
> # driver_args['charset'] = 'utf8'
>
>
> Massimo
>
>
>
>
> On Wednesday, 23 March 2016 01:05:35 UTC-5, webm...@trytha.com 
>  wrote:
>>
>> I'm on it, Pierbro!
>>
>> Ooh, cool, just found a bug in my code that didn't account for a user 
>> clicking on a requires_login() link after a server restart resulted in them 
>> being logged out with the page still up.  Paying dividends!
>>
>> テスト成功しました、先輩!!萌〜
>>
>> Yeah, that seems to have fixed it (at least for this extremely limited 
>> level of testing).
>>
>> On Tuesday, March 22, 2016 at 10:37:23 PM UTC-7, Massimo Di Pierro wrote:
>>>
>>> Can you provide a simple two lines of code to reproduce the problem with 
>>> dev_appserver?
>>>
>>>
>>> On Tuesday, 22 March 2016 20:03:52 UTC-5, webm...@trytha.com wrote:

 Then, as the Japanese say:  ピンポン!

 This is disturbing.  Massimo thinks he *fixed* GAE database stuff in 
 the change from 2.12.2 to 2.12.3, but this is the second thing I've found 
 that went the exact opposite direction.  I wonder if he fixed a bunch of 
 code, then saved over 2.12.2 with the corrected code and accidentally 
 brought forward the non-corrected code into 2.12.3 (where it has sat ever 
 since)?


 On Tuesday, March 22, 2016 at 5:57:23 PM UTC-7, Richard wrote:
>
> Nop!
>
> On Tue, Mar 22, 2016 at 8:53 PM,  wrote:
>
>> Are you using GAE?
>>
>> On Tuesday, March 22, 2016 at 5:42:33 PM UTC-7, Richard wrote:
>>>
>>> I use to store fr uft8 and didn't have any issue with 2.13.4
>>>
>>> Richard
>>>
>>> On Tue, Mar 22, 2016 at 8:33 PM,  wrote:
>>>
 It could possibly be something specific to GAE.  As I said, I don't 
 have time for a lot of tests right now.  Try uploading this in a 
 database 
 somewhere:  テスト

 On Tuesday, March 22, 2016 at 5:29:02 PM UTC-7, Richard wrote:
>
> All my functional tests had passed just fine...
>
> Richard
>
> On Tue, Mar 22, 2016 at 8:15 PM,  wrote:
>
>> Guess I could have posted here first, but it's not an error in 
>> the new version, it's in multiple versions:
>>
>> Unicode is not working in "string" DB entries.  WTF mate?  
>> https://groups.google.com/forum/#!topic/web2py/T5eQExgTP1w
>>
>>
>>
>> On Tuesday, March 22, 2016 at 4:19:15 PM UTC-7, Dave S wrote:
>>>
>>> Never mind, this one is fixed by restarting the web2py instance.
>>>
>>> /dps
>>>
>>>
>>> On Tuesday, March 22, 2016 at 4:16:11 PM UTC-7, Dave S wrote:



 On Monday, March 21, 2016 at 3:38:16 PM UTC-7, Massimo Di 
 Pierro wrote:
>
> Please help us check it (for testers version)
>
> http://web2py.com/init/default/download
>
> and let us know if it does not work with your code. I will be 
> released as stable in 2 days. So better check it sooner rather 
> than later.
>
>
 I'm also seeing a problem with my simplistic routes.py (works 
 in 2.13.4) 

 routers = dict(
 BASE=dict( default_application='uploader'),
 )


 The uploader application is okay, the welcome appli (cation is 
 okay, but the alternate -- stupid.css -- version called welstoop 
 is ending 
 up in uploader,
 even with an explicit a/c/f URL (
 http://127.0.0.1:8000/welstoop/default/index).

 Renaming routes.py to old-routes.py fixes the symptoms.

 /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 

Re: [web2py] Re: web2py 2.14.1 beta

2016-03-23 Thread Massimo Di Pierro
OK. It is very strange because the code works for me with and without those 
lines. I tried with SQL and noSQL and with japanese chars. My guess is that 
it depends on the version of the driver that you have. Anyway. We will keep 
those lines uncommented.

On Wednesday, 23 March 2016 19:22:28 UTC-5, webmas...@trytha.com wrote:
>
> Correct.
>
> On Wednesday, March 23, 2016 at 7:16:07 AM UTC-7, Massimo Di Pierro wrote:
>>
>> Making sure I understand. Uncommenting these fixed your problem?
>>
>> # if not 'charset' in driver_args:
>>
>> # driver_args['charset'] = 'utf8'
>>
>>
>> Massimo
>>
>>
>>
>>
>> On Wednesday, 23 March 2016 01:05:35 UTC-5, webm...@trytha.com wrote:
>>>
>>> I'm on it, Pierbro!
>>>
>>> Ooh, cool, just found a bug in my code that didn't account for a user 
>>> clicking on a requires_login() link after a server restart resulted in them 
>>> being logged out with the page still up.  Paying dividends!
>>>
>>> テスト成功しました、先輩!!萌〜
>>>
>>> Yeah, that seems to have fixed it (at least for this extremely limited 
>>> level of testing).
>>>
>>> On Tuesday, March 22, 2016 at 10:37:23 PM UTC-7, Massimo Di Pierro wrote:

 Can you provide a simple two lines of code to reproduce the problem 
 with dev_appserver?


 On Tuesday, 22 March 2016 20:03:52 UTC-5, webm...@trytha.com wrote:
>
> Then, as the Japanese say:  ピンポン!
>
> This is disturbing.  Massimo thinks he *fixed* GAE database stuff in 
> the change from 2.12.2 to 2.12.3, but this is the second thing I've found 
> that went the exact opposite direction.  I wonder if he fixed a bunch of 
> code, then saved over 2.12.2 with the corrected code and accidentally 
> brought forward the non-corrected code into 2.12.3 (where it has sat ever 
> since)?
>
>
> On Tuesday, March 22, 2016 at 5:57:23 PM UTC-7, Richard wrote:
>>
>> Nop!
>>
>> On Tue, Mar 22, 2016 at 8:53 PM,  wrote:
>>
>>> Are you using GAE?
>>>
>>> On Tuesday, March 22, 2016 at 5:42:33 PM UTC-7, Richard wrote:

 I use to store fr uft8 and didn't have any issue with 2.13.4

 Richard

 On Tue, Mar 22, 2016 at 8:33 PM,  wrote:

> It could possibly be something specific to GAE.  As I said, I 
> don't have time for a lot of tests right now.  Try uploading this in 
> a 
> database somewhere:  テスト
>
> On Tuesday, March 22, 2016 at 5:29:02 PM UTC-7, Richard wrote:
>>
>> All my functional tests had passed just fine...
>>
>> Richard
>>
>> On Tue, Mar 22, 2016 at 8:15 PM,  wrote:
>>
>>> Guess I could have posted here first, but it's not an error in 
>>> the new version, it's in multiple versions:
>>>
>>> Unicode is not working in "string" DB entries.  WTF mate?  
>>> https://groups.google.com/forum/#!topic/web2py/T5eQExgTP1w
>>>
>>>
>>>
>>> On Tuesday, March 22, 2016 at 4:19:15 PM UTC-7, Dave S wrote:

 Never mind, this one is fixed by restarting the web2py instance.

 /dps


 On Tuesday, March 22, 2016 at 4:16:11 PM UTC-7, Dave S wrote:
>
>
>
> On Monday, March 21, 2016 at 3:38:16 PM UTC-7, Massimo Di 
> Pierro wrote:
>>
>> Please help us check it (for testers version)
>>
>> http://web2py.com/init/default/download
>>
>> and let us know if it does not work with your code. I will be 
>> released as stable in 2 days. So better check it sooner rather 
>> than later.
>>
>>
> I'm also seeing a problem with my simplistic routes.py (works 
> in 2.13.4) 
>
> routers = dict(
> BASE=dict( default_application='uploader'),
> )
>
>
> The uploader application is okay, the welcome appli (cation is 
> okay, but the alternate -- stupid.css -- version called welstoop 
> is ending 
> up in uploader,
> even with an explicit a/c/f URL (
> http://127.0.0.1:8000/welstoop/default/index).
>
> Renaming routes.py to old-routes.py fixes the symptoms.
>
> /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

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

2016-03-23 Thread Michael Beller
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() helper Rimas mentioned is something that gets executed 
 on the server (in rendering the views) to generate HTML that shows what's 
 in the object given as it's argument.  If that argument is a dictionary 
 like the above, it will render a short table showing the key ("message") 
 and its value ("Hello From MyApp").

 Chapter 2 covers some Python basics, and general Python tutorials and 
 books are available elsewhere.  If you're totally new to programming, than 
 you may want to spend some time on those.  If you're used to C or C# or 
 Java, Chapter 2 may be enough to get you started.

 Good luck!

 /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: Auth_user add username field

2016-03-23 Thread Michael Beller
no changes should be required to any controller or view.  Everything is 
handled by the line:
return dict(form=auth())

in the default controller (in combination with the default/user.html).

The line in db.py just tells auth whether to use a username or email.

On Wednesday, March 23, 2016 at 8:16:42 PM UTC-4, Jerry Liu wrote:
>
> Not sure if I understood, you mean I still have to make changes on View 
> and Controller, right?
> because adding this line doesn't change anything on login and registration 
> views.
>
> On Wednesday, March 23, 2016 at 4:12:49 PM UTC-7, Michael Beller wrote:
>>
>> It's easier than that ... just change username=True in db.py, all the 
>> web2py components (e.g., log in form, auth_user table, log in menu, etc.) 
>> will now support username ...
>>
>> auth.define_tables(username=True, signature=True)
>>
>>
>>
>> On Wednesday, March 23, 2016 at 5:46:38 PM UTC-4, Jerry Liu wrote:
>>>
>>> Hello, all
>>>
>>> I want to add a *username* field to auth_user table. I figured out I 
>>> can use the following line of code to do so, but how can I use *username 
>>> *instead of *email *in login and registration process?
>>>
>>> auth.settings.extra_fields[auth.settings.table_user_name] = [ Field]
>>>
>>>
>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Auth_user add username field

2016-03-23 Thread Jerry Liu
Thanks! It worked!

I also want to hide First and Last Name fields. At least, I don't want them 
to be shown on the registration page. Any ideas?

On Wednesday, March 23, 2016 at 5:43:14 PM UTC-7, Michael Beller wrote:
>
> no changes should be required to any controller or view.  Everything is 
> handled by the line:
> return dict(form=auth())
>
> in the default controller (in combination with the default/user.html).
>
> The line in db.py just tells auth whether to use a username or email.
>
> On Wednesday, March 23, 2016 at 8:16:42 PM UTC-4, Jerry Liu wrote:
>>
>> Not sure if I understood, you mean I still have to make changes on View 
>> and Controller, right?
>> because adding this line doesn't change anything on login and 
>> registration views.
>>
>> On Wednesday, March 23, 2016 at 4:12:49 PM UTC-7, Michael Beller wrote:
>>>
>>> It's easier than that ... just change username=True in db.py, all the 
>>> web2py components (e.g., log in form, auth_user table, log in menu, etc.) 
>>> will now support username ...
>>>
>>> auth.define_tables(username=True, signature=True)
>>>
>>>
>>>
>>> On Wednesday, March 23, 2016 at 5:46:38 PM UTC-4, Jerry Liu wrote:

 Hello, all

 I want to add a *username* field to auth_user table. I figured out I 
 can use the following line of code to do so, but how can I use *username 
 *instead of *email *in login and registration process?

 auth.settings.extra_fields[auth.settings.table_user_name] = [ Field]




-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Auth_user add username field

2016-03-23 Thread Michael Beller
yes - I think something like this could/should work:

db.auth_user.first_name.readable = False



On Wednesday, March 23, 2016 at 8:49:42 PM UTC-4, Jerry Liu wrote:
>
> Thanks! It worked!
>
> I also want to hide First and Last Name fields. At least, I don't want 
> them to be shown on the registration page. Any ideas?
>
> On Wednesday, March 23, 2016 at 5:43:14 PM UTC-7, Michael Beller wrote:
>>
>> no changes should be required to any controller or view.  Everything is 
>> handled by the line:
>> return dict(form=auth())
>>
>> in the default controller (in combination with the default/user.html).
>>
>> The line in db.py just tells auth whether to use a username or email.
>>
>> On Wednesday, March 23, 2016 at 8:16:42 PM UTC-4, Jerry Liu wrote:
>>>
>>> Not sure if I understood, you mean I still have to make changes on View 
>>> and Controller, right?
>>> because adding this line doesn't change anything on login and 
>>> registration views.
>>>
>>> On Wednesday, March 23, 2016 at 4:12:49 PM UTC-7, Michael Beller wrote:

 It's easier than that ... just change username=True in db.py, all the 
 web2py components (e.g., log in form, auth_user table, log in menu, etc.) 
 will now support username ...

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



 On Wednesday, March 23, 2016 at 5:46:38 PM UTC-4, Jerry Liu wrote:
>
> Hello, all
>
> I want to add a *username* field to auth_user table. I figured out I 
> can use the following line of code to do so, but how can I use *username 
> *instead of *email *in login and registration process?
>
> auth.settings.extra_fields[auth.settings.table_user_name] = [ Field]
>
>
>

-- 
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-23 Thread Michael Beller
+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-23 Thread Massimo Di Pierro
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() helper Rimas mentioned is something that gets executed 
> on the server (in rendering the views) to generate HTML that shows what's 
> in the object given as it's argument.  If that argument is a dictionary 
> like the above, it will render a short table showing the key ("message") 
> and its value ("Hello From MyApp").
>
> Chapter 2 covers some Python basics, and general Python tutorials and 
> books are available elsewhere.  If you're totally new to programming, 
> than 
> you may want to spend some time on those.  If you're used to C or C# or 
> Java, Chapter 2 may be enough to get you started.
>
> Good luck!
>
> /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

[web2py] Re: print landscape

2016-03-23 Thread lucas
the only way i found that works everywhere was to essentially rotate the 
entire print by 90degrees.  on the screen i show it normal, but on the way 
to the print, i rotate it as in:

@media print {
div#page { position: relative; height: 900px; width: 710px; margin: 
auto; padding: 0px; font: 9pt/1.0 'Times New Roman', serif; border: 0px 
solid black; background-color: black; }
div.rt { position: relative; float: none; left: 352px; width: 444px; 
height: 684px; margin: -222px; padding: 2px; border: 1px solid #555; 
-webkit-transform: rotate(90deg); -moz-transform: rotate(90deg); 
-ms-transform: rotate(90deg); -o-transform: rotate(90deg); 
filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3); }
div.top1 { top: 95px; }
div.top2 { top: 76px; }
}

@media screen {
div#page { position: relative; height: 690px; width: 901px; margin: 
auto; padding: 1px; font: 9pt/1.0 'Times New Roman', serif; border: 1px 
solid #eee; background-color: black; }
div.rt { position: relative; width: 444px; height: 684px; margin: 0px; 
padding: 2px; border: 1px solid #555; background-color: white; }
div.top1 { float: left; }
div.top2 { float: right; }
}

where div.rt is the rotated page when it is sent to the printer but not to 
the screen and div.top1 and div.top2 are two divs embedded within div.rt.  
very tedious to get right, but i got it to work.

lucas

-- 
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-23 Thread Michael Beller
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() helper Rimas mentioned is something that gets executed 
>> on the server (in rendering the views) to generate HTML that shows 
>> what's 
>> in the object given as it's argument.  If that argument is a dictionary 
>> like the above, it will render a short table showing the key ("message") 
>> and its value ("Hello From MyApp").
>>
>> Chapter 2 covers some Python basics, and general Python tutorials and 
>> bo

[web2py] Re: web2py 2.14.1 beta

2016-03-23 Thread Dave S
I've brought up one of my older apps in the beta.  Looks like that is 
working, except for some layout.html/css issues 

 -- menu bar is green
 -- my logo is missing from the banner.
(but favicon is ok!)

Oh, I caught up with using appconfig.ini in db.py.

For this app, I'd give 3/4 of a thumbs-up.  Maybe even 7/8.

/dps


On Tuesday, March 22, 2016 at 4:19:15 PM UTC-7, Dave S wrote:
>
> Never mind, this one is fixed by restarting the web2py instance.
>
> /dps
>
>
> On Tuesday, March 22, 2016 at 4:16:11 PM UTC-7, Dave S wrote:
>>
>>
>>
>> On Monday, March 21, 2016 at 3:38:16 PM UTC-7, Massimo Di Pierro wrote:
>>>
>>> Please help us check it (for testers version)
>>>
>>> http://web2py.com/init/default/download
>>>
>>> and let us know if it does not work with your code. I will be released 
>>> as stable in 2 days. So better check it sooner rather than later.
>>>
>>>
>> I'm also seeing a problem with my simplistic routes.py (works in 2.13.4) 
>>
>> routers = dict(
>> BASE=dict( default_application='uploader'),
>> )
>>
>>
>> The uploader application is okay, the welcome appli (cation is okay, but 
>> the alternate -- stupid.css -- version called welstoop is ending up in 
>> uploader,
>> even with an explicit a/c/f URL (
>> http://127.0.0.1:8000/welstoop/default/index).
>>
>> Renaming routes.py to old-routes.py fixes the symptoms.
>>
>> /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 login password reset WARNING - email not sent

2016-03-23 Thread Dave S


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 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: Why I can send mail use python but can't send by web2py mail object

2016-03-23 Thread killzane
My python is 2.7.9
I tried to disable IPv6, then postfix won't auto start when I reboot my 
server.
and use *#postfix start *will return this warning
postfix/postfix-script: warning: /var/spool/postfix/etc/resolv.conf and 
/etc/resolv.conf differ
postfix/postfix-script: starting the Postfix mail system

but my web2py can send mail to Gmail and work well.

thanks.

Leonel Câmara於 2016年3月24日星期四 UTC+8上午3時36分47秒寫道:
>
> Humm what version of python are you using? 2.7.11 does have source_address 
> https://hg.python.org/releases/2.7.11/file/tip/Lib/smtplib.py#l248
>
> Basically the problem here google is that google returning an IPv6 address 
> to your socket.getaddrinfo(host, port) before the IPv4 addresses so it 
> tries to connect to that one first. 
>
> Your options seem to be:
>  - Set a PTR record for your IPv6 address
>  - disable IPv6 system wide
>  - monkeypatch socket.create_connection to ignore IPv6 results from 
> socket.getaddrinfo.
>

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