[web2py] Re: Why is the world's smallest web2py app failing?

2015-01-17 Thread Tom Campbell
Took a while to respond because I'm embarrassed. I somehow thought that 
omitting the @auth.requires_login() decorator would eliminate that default 
behavior and did not bother to test my assumption. Thank you.

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


[web2py] Re: helper function BUTTON - insert in documentation

2015-01-17 Thread Dave S


On Saturday, January 17, 2015 at 1:14:13 PM UTC-8, Dmitry Ermolaev wrote:
>
> helher BUTTON - insert in documentation
>

Is BUTTON a stand-alone helper?

I worked from an example that had TAG.BUTTON():

TAG.BUTTON('"label" _type="submit", _name="mybutton", _value=buttonvalue,
 _onclick='js-stuff')

(my 'js-stuff' is actually 'ajax("stuff.load", ["val1","val2", "val3"], 
"stuff_div")')

>From other discussion, I would expect TAG.BUTTON() to also take a 
'value="VALUE"' parameter, with the default/override behavior mentioned in 
connection with the INPUT() helper.

/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] helher BUTTON - insert in documentation

2015-01-17 Thread Dmitry Ermolaev
helher BUTTON - insert in documentation

-- 
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 is the best way to add an extra input on the client side?

2015-01-17 Thread Dave S


On Friday, January 16, 2015 at 11:15:17 AM UTC-8, Przemysław wrote:
>
> Thank you very much Derek. I've adapted your solution and it works very 
> well.
> Thanks a lot!
>
>
That link also helped me get my first ajax button done.  Good stuff to be 
found here, thanks!

/dps
 

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


[web2py] Re: web2py 2.9.12 is OUT

2015-01-17 Thread JorgeH
Many thanks  Massimo, Niphlod, and guys!!

Keep up the good work!

On Saturday, January 17, 2015 at 1:20:14 AM UTC-5, Massimo Di Pierro wrote:
>
> Changelog:
>
> - Modular DAL, thanks Giovanni
> - Added coverage support, thanks Niphlod
> - More tests, thanks Niphlod and Paolo Valleri
> - Added support for show_if in readonly sqlform, thanks Paolo
> - Tornado HTTPS support, thanks Diego
> - Improved scheduler, thanks Niphlod
> - Email timeout support
> - Made web2py's custom_import work with circular imports, thanks Jack Kuan
> - Added Portuguese, Catalan, and Burmese translations
> - Allow map_hyphen to work for application names, thanks Tim Nyborg
> - New module appconfig.py, thanks Niphlod
> - Added geospatial support to Teradata adaptor, thanks Andrew Willimott
> - Many bug fixes
>
> I am sure I am forgetting something. Thanks to all those who contributed. 
> The major change is the new modular DAL. I am sure this will break 
> something. So please report problems and will address them.
>
>
>

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


[web2py] Re: Why is the world's smallest web2py app failing?

2015-01-17 Thread Anthony
By default, to create, edit, or delete with the grid, you must be logged 
in, unless you set user_signature=False.

See 
http://web2py.com/books/default/chapter/29/07/forms-and-validators#login-required-by-default-for-data-updates.

Anthony

On Saturday, January 17, 2015 at 4:27:20 AM UTC-5, Tom Campbell wrote:
>
> Having problems with grid and smartgrid not showing Add and buttons. So I 
> created the smallest possible app and they still don't show up. Here is the 
> code.
>
>
> # append to db.py
>
> db.define_table('supplier', Field('name'))
>
>
> # file index.html
>
> {{extend 'layout.html'}}
>
> {{if 'message' in globals():}}
>
> {{=message}}
>
> {{pass}}
>
> {{=grid}}
>
>
> # file default.py
>
> # Replace the index() action:
>
> def index():
>
> grid=SQLFORM.smartgrid(db.supplier)
>
> return locals()
>
>
> Image of smartgrid attached.
>
>
> What incredibly stupid thing am I doing? Or not doing?
>

-- 
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.9.12 is OUT

2015-01-17 Thread Kiran Subbaraman
Directly downloaded the web2py source, extracted, and started web2py via 
python web2py.py.

This works (though haven't deployed any applications onto this instance)


Kiran Subbaraman
http://subbaraman.wordpress.com/about/

On Sat, 17-01-2015 4:49 PM, Kiran Subbaraman wrote:
Also noticed that the VERSION is updated to 'Version 
2.9.12-stable+timestamp.2015.01.17.06.11.03'

Tried starting web2py (though didn't expect it to work), and I see this:
```
PS C:\Users\subbaraman> python.exe d:\programs\open\web2py\web2py.py
Traceback (most recent call last):
  File "d:\programs\open\web2py\web2py.py", line 18, in 
import gluon.widget
  File "d:\programs\open\web2py\gluon\__init__.py", line 21, in 
from compileapp import LOAD
  File "d:\programs\open\web2py\gluon\compileapp.py", line 29, in 
from gluon.dal.base import BaseAdapter
ImportError: No module named base
```

Kiran Subbaraman
http://subbaraman.wordpress.com/about/
On Sat, 17-01-2015 3:03 PM, Kiran Subbaraman wrote:

Issue with upgrade - via the admin web UI. Please see attached image.
Am on Windows 8.1

On Saturday, January 17, 2015 at 11:50:14 AM UTC+5:30, Massimo Di 
Pierro wrote:


Changelog:

- Modular DAL, thanks Giovanni
- Added coverage support, thanks Niphlod
- More tests, thanks Niphlod and Paolo Valleri
- Added support for show_if in readonly sqlform, thanks Paolo
- Tornado HTTPS support, thanks Diego
- Improved scheduler, thanks Niphlod
- Email timeout support
- Made web2py's custom_import work with circular imports, thanks
Jack Kuan
- Added Portuguese, Catalan, and Burmese translations
- Allow map_hyphen to work for application names, thanks Tim Nyborg
- New module appconfig.py, thanks Niphlod
- Added geospatial support to Teradata adaptor, thanks Andrew
Willimott
- Many bug fixes

I am sure I am forgetting something. Thanks to all those who
contributed. The major change is the new modular DAL. I am sure
this will break something. So please report problems and will
address them.


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

For more options, visit https://groups.google.com/d/optout.




--
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.9.12 is OUT

2015-01-17 Thread Kiran Subbaraman
Also noticed that the VERSION is updated to 'Version 
2.9.12-stable+timestamp.2015.01.17.06.11.03'

Tried starting web2py (though didn't expect it to work), and I see this:
```
PS C:\Users\subbaraman> python.exe d:\programs\open\web2py\web2py.py
Traceback (most recent call last):
  File "d:\programs\open\web2py\web2py.py", line 18, in 
import gluon.widget
  File "d:\programs\open\web2py\gluon\__init__.py", line 21, in 
from compileapp import LOAD
  File "d:\programs\open\web2py\gluon\compileapp.py", line 29, in 
from gluon.dal.base import BaseAdapter
ImportError: No module named base
```


Kiran Subbaraman
http://subbaraman.wordpress.com/about/

On Sat, 17-01-2015 3:03 PM, Kiran Subbaraman wrote:

Issue with upgrade - via the admin web UI. Please see attached image.
Am on Windows 8.1

On Saturday, January 17, 2015 at 11:50:14 AM UTC+5:30, Massimo Di 
Pierro wrote:


Changelog:

- Modular DAL, thanks Giovanni
- Added coverage support, thanks Niphlod
- More tests, thanks Niphlod and Paolo Valleri
- Added support for show_if in readonly sqlform, thanks Paolo
- Tornado HTTPS support, thanks Diego
- Improved scheduler, thanks Niphlod
- Email timeout support
- Made web2py's custom_import work with circular imports, thanks
Jack Kuan
- Added Portuguese, Catalan, and Burmese translations
- Allow map_hyphen to work for application names, thanks Tim Nyborg
- New module appconfig.py, thanks Niphlod
- Added geospatial support to Teradata adaptor, thanks Andrew
Willimott
- Many bug fixes

I am sure I am forgetting something. Thanks to all those who
contributed. The major change is the new modular DAL. I am sure
this will break something. So please report problems and will
address them.


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

For more options, visit https://groups.google.com/d/optout.


--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups "web2py-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: web2py 2.9.12 is OUT

2015-01-17 Thread Kiran Subbaraman
Issue with upgrade - via the admin web UI. Please see attached image.
Am on Windows 8.1

On Saturday, January 17, 2015 at 11:50:14 AM UTC+5:30, Massimo Di Pierro 
wrote:
>
> Changelog:
>
> - Modular DAL, thanks Giovanni
> - Added coverage support, thanks Niphlod
> - More tests, thanks Niphlod and Paolo Valleri
> - Added support for show_if in readonly sqlform, thanks Paolo
> - Tornado HTTPS support, thanks Diego
> - Improved scheduler, thanks Niphlod
> - Email timeout support
> - Made web2py's custom_import work with circular imports, thanks Jack Kuan
> - Added Portuguese, Catalan, and Burmese translations
> - Allow map_hyphen to work for application names, thanks Tim Nyborg
> - New module appconfig.py, thanks Niphlod
> - Added geospatial support to Teradata adaptor, thanks Andrew Willimott
> - Many bug fixes
>
> I am sure I am forgetting something. Thanks to all those who contributed. 
> The major change is the new modular DAL. I am sure this will break 
> something. So please report problems and will address them.
>
>
>

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


[web2py] Why is the world's smallest web2py app failing?

2015-01-17 Thread Tom Campbell
Having problems with grid and smartgrid not showing Add and buttons. So I 
created the smallest possible app and they still don't show up. Here is the 
code.


# append to db.py

db.define_table('supplier', Field('name'))


# file index.html

{{extend 'layout.html'}}

{{if 'message' in globals():}}

{{=message}}

{{pass}}

{{=grid}}


# file default.py

# Replace the index() action:

def index():

grid=SQLFORM.smartgrid(db.supplier)

return locals()


Image of smartgrid attached.


What incredibly stupid thing am I doing? Or not doing?

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