book revision

24 views
Skip to first unread message

mdipierro

unread,
Jul 23, 2010, 5:53:24 PM7/23/10
to web2py-users
I am revising the book.

Please list what features are not mentioned in the book or deserve
more space they correctly get.
You suggestions will be appreciated.

Massimo

mr.freeze

unread,
Jul 23, 2010, 6:16:58 PM7/23/10
to web2py-users

mr.freeze

unread,
Jul 23, 2010, 6:29:21 PM7/23/10
to web2py-users
crud.search
RPXAccount
populate
plugins and PluginManager
any new validators
LOAD

Adi

unread,
Jul 24, 2010, 4:44:35 AM7/24/10
to web2py-users

- compute, virtualfields, represent and all such things that are are
db.table.field level
- a chapter on reusable logic (where to place it - module, model,
controller, site-packages in which scenario)
- templates, blocks, {{include}} in views
- custom forms, including sign up forms (lots of questions asked on
this subject)

That's all I can think of right now.

mdipierro

unread,
Jul 24, 2010, 6:46:55 AM7/24/10
to web2py-users
{{blocks}} were put in the web2py as an experiment and we took them
out because of a problem. We need to put them back in.

Massimo

Johann Spies

unread,
Jul 24, 2010, 4:21:11 PM7/24/10
to web...@googlegroups.com
Enough information for total javascript beginners to understand and
use jqgrid and friends please.

Johann

--
"Finally, brethren, whatsoever things are true,  whatsoever things are
honest, whatsoever things are  just, whatsoever things are pure,
whatsoever things are lovely, whatsoever things are of good report; if
there be any virtue, and if there be any praise, think on these
things."    Philippians 4:8

weheh

unread,
Jul 24, 2010, 4:26:33 PM7/24/10
to web2py-users
+1 all above suggestions. I would also suggest some more doc on the
ajax interface to radio buttons, check boxes, and select lists.

weheh

unread,
Jul 24, 2010, 4:37:11 PM7/24/10
to web2py-users
Doc index needs expansion. When I was a little more of a newbie, I
know I looked in the index for keywords that I was sure should be
there, only to find them missing. At the moment, I don't recall what
they were, sorry. At the least, every web2py function and attribute
should be listed in the index. If I can dredge up some of the missing
items, I'll let you know.

mdipierro

unread,
Jul 24, 2010, 7:58:13 PM7/24/10
to web2py-users
Working on this as we speak.

Garrafa Pet 2 Litros

unread,
Jul 24, 2010, 6:54:45 PM7/24/10
to web2py-users
I think it's good to review the section 3.9 that discusses the wiki
and add documentation of new features found in the plugin wiki.

Jonathan Lundell

unread,
Jul 24, 2010, 8:01:25 PM7/24/10
to web...@googlegroups.com
More on the DAL objects would be nice, especially on the details of their methods. Which operations they support, how they're combined, etc. There's something there already, but it could use fleshing out.

mdipierro

unread,
Jul 24, 2010, 8:25:47 PM7/24/10
to web2py-users
I have identified the following items that are missing from the book.
Listed here in some random order.

compute fields
virtual fields
crud.search
RPXAccount
new validators
populate
plugins
LOAD and generic.load
Field attributes (compute, virtualfield, uploadseparate)
format, represent
recursive queries
MARKMIN syntax
Informix support
named id fields
keyedtables
DAL('gae')
XHTML
first() last()
find(), sort(), exclude()
as_dict(), as_list()
request.meta
request.wsgi
IS_IN_DB(....,and=....)
python web2py.py -S app -M -R script.py -A arg1 arg2 arg3
New syntax T("%(a)s") % dict(a="hello")
web2py.py -nogui
SQLFORM.factory(...,table_name='no_table')
new setup-web2py-ubuntu.sh
new setup-web2py-fedora.sh
autocomplete widget
pam authentication
auth.settings.login_captcha and auth.settings.register_captcha
crud.settings.create_captcha and crud.settings.update_captcha
gluon/contrib/login_methods/linkedin_account.py (to be tested)
cherrypy to rocket
SQLFORM(...,formstyle='divs')
SQLTABLE(...,headers='fieldname:capitalize')
Field().with_alias
has_membership(group=...,role=...)
db.define_table(username=True)
gluon.tools.prettydate, gluon.tools.geocode
gluon.contrib.AuthorizeNet
gluon.contrib.sms_utils
can specify hostname in routes_out (same syntax as routes in)
db.table.bulk_insert([...records...]) now works on GAE
OPTGROUP helper
fake_migrate to restore borken db metadata
x509 emails
attachment and html in Mail on GAE
TAG(html) parese html into helpers (experimental, still some problems
with unicode)
DIV.elements(find=re.compile(....))
DIV.flatten()
DIV.elements('....') supports jQuery syntax in '....'

Bruno Rocha

unread,
Jul 24, 2010, 8:53:05 PM7/24/10
to web...@googlegroups.com
I would like more detailed information about testing, unittest,
docTest. explaining how it works in detail, and showing a good example
of a test using the 'test' in appadmin

2010/7/24 mdipierro <mdip...@cs.depaul.edu>:

--

http://rochacbruno.com.br

Jonathan Lundell

unread,
Jul 24, 2010, 8:57:33 PM7/24/10
to web...@googlegroups.com

mdipierro

unread,
Jul 24, 2010, 9:08:16 PM7/24/10
to web2py-users
Thanks. this is very helpful

On Jul 24, 7:57 pm, Jonathan Lundell <jlund...@pobox.com> wrote:
> http://code.google.com/p/web2py-book/wiki/BookGeneralIssues

Scott

unread,
Jul 24, 2010, 9:20:55 PM7/24/10
to web2py-users
Cube2py explanation along with examples for all of the widgets and how
to implement. Since we're headed in that direction... :)

Jeff S

unread,
Jul 25, 2010, 1:15:26 AM7/25/10
to web2py-users
For new users like me, downloadable packed applications would be great
with each examples in the book. A few times, the examples were not
showing correctly online and the cut&paste on IE browser is not
providing the line feed and carriage return showing online.

Although, the packed applications don't really have to be included in
the book. They could be available anywhere else.

The more I read the book and the more I read the posts in this group,
the more I know I don't know much of Python and web2py. :)

weheh

unread,
Jul 25, 2010, 12:28:37 PM7/25/10
to web2py-users
There are also comments embedded directly into the online book. These
should be reviewed and incorporated into the new doc as deemed fit.

howesc

unread,
Jul 25, 2010, 6:27:44 PM7/25/10
to web2py-users
I use google app engine a lot, and would love to have mention in the
main content of the book when features won't work on GAE. some are
now, and others are only in the GAE section at the end.

also not everything in
http://groups.google.com/group/web2py/browse_thread/thread/cd89f11de4d23b53/f67faac66a695ca2?lnk=gst&q=google+app+engine+production#f67faac66a695ca2
has made it to the code, so those tips would be nice in the book
(especially the caching of wsgihandler.py - it saves 90% of the
execution time for a simple page).

http://www.web2py.com/AlterEgo/default/show/248 would be great in the
book as well.

thanks!

cfh

Thadeus Burgess

unread,
Jul 26, 2010, 1:00:26 AM7/26/10
to web...@googlegroups.com
Update the deployment section.

I never got the instructions in the book to work without tweaking, so
I think it needs
some fine tuning and references to web2pyslices slice 14, 29, 33, 36,
57, 64

--
Thadeus

Ramjee Ganti

unread,
Jul 26, 2010, 4:05:43 AM7/26/10
to web...@googlegroups.com
Hi,

For people new to web2py like me a section which mentions all the third party libraries that are used in web2py. eg. pyodbc for MSSQL, Mysql conncetor for MYSQL etc. would be great help.


rAm

i Think, i Wait, i Fast -- Siddhartha
http://sodidi.ramjeeganti.com

rAm

i Think, i Wait, i Fast -- Siddhartha
http://sodidi.ramjeeganti.com

mdipierro

unread,
Jul 26, 2010, 4:55:34 AM7/26/10
to web2py-users
That is already there at the beginning of chapter 6.

On Jul 26, 3:05 am, Ramjee Ganti <gant...@gmail.com> wrote:
> Hi,
>
> For people new to web2py like me a section which mentions all the third
> party libraries that are used in web2py. eg. pyodbc for MSSQL, Mysql
> conncetor for MYSQL etc. would be great help.
>
> rAm

Timmie

unread,
Jul 26, 2010, 5:25:01 AM7/26/10
to web2py-users
Hello,
will the plugin system be documented?

What about isses mentioned in:

New features not documented in PDF book (2 ed)
http://groups.google.com/group/web2py/browse_frm/thread/208cdabdba546cd0?

best regards,
Timmie

mdipierro

unread,
Jul 26, 2010, 5:43:58 AM7/26/10
to web2py-users
Here is where we stand: So far I added this:

[x] compute fields
[x] virtual fields
[x] upload separate
[x] crud.search
[x] RPXAccount
[x] new validators
[x] run background tasks
[x] recursive queries
[x] MARKMIN helper
[x] Informix support
[x] named id fields
[x] keyedtables
[x] first() last()
[x] find(), sort(), exclude()
[x] as_dict(), as_list()
[x] request.wsgi
[x] IS_IN_DB(....,_and=....)
[x] python web2py.py -S app -M -R script.py -A arg1 arg2 arg3 (need
example)
[x] New syntax T("%(a)s") % dict(a="hello")
[x] web2py.py -nogui
[x] SQLFORM.factory(...,table_name='no_table')
[x] new setup-web2py-ubuntu.sh
[x] new setup-web2py-fedora.sh
[X] cherrypy to rocket
[x] SQLFORM(...,formstyle='divs')
[x] SQLTABLE(...,headers='fieldname:capitalize')
[x] has_membership(group=...,role=...)
[x] db.define_table(username=True)
[x] gluon.tools.prettydate, gluon.tools.geocode
[x] gluon.contrib.AuthorizeNet
[x] gluon.contrib.sms_utils
[x] db.table.bulk_insert([...records...]) now works on GAE
[x] OPTGROUP helper
[x] recursive queries
[x] x509 emails
[x] attachment and html in Mail on GAE
[x] populate
[x] MARKMIN syntax (added link only)
[x] fake_migrate to restore borken db metadata
[x] TAG(html) parese html into helpers (experimental, still some
problems with unicode)
[x] DIV.elements(find=re.compile(....))
[x] DIV.flatten()
[x] DIV.elements('....') supports jQuery syntax in '....'
[x] pam authentication
[x] autocomplete widget

I.e. about 20 new pages to the manual.

This remains on my TODO list:

[ ] format, represent
[ ] revise chapter 7 including
[ ] new layout
[ ] ez.css
[ ] response.meta
[ ] example of response.files
[ ] new template system from Thedeus with {{block}}
[ ] update list of contributors

[ ] Add a new chapter (13?) (this is the most difficult task!)
[ ] LOAD and generic.load
[ ] plugins and examples

[ ] Follow Jonathan suggestion
http://groups.google.com/group/web2py/browse_thread/thread/cd89f11de4d23b53/f67faac66a695ca2?lnk=gst&q=google+app+engine+production#f67faac66a695ca2
and other GAE issues

[ ] Follow Thedeus suggestion to incorporate some deployment
web2pyslices


On Jul 26, 4:25 am, Timmie <timmichel...@gmx-topmail.de> wrote:
> Hello,
> will the plugin system be documented?
>
> What about isses mentioned in:
>
> New features not documented in PDF book (2 ed)http://groups.google.com/group/web2py/browse_frm/thread/208cdabdba546...

mdipierro

unread,
Jul 26, 2010, 5:47:19 AM7/26/10
to web2py-users
P.S. I added this to my provate latex source (after incorporating the
corrections editors posted online). I still need to convert everything
in markmin syntax to post it online... this will take another month
but will make some chapters available for review asap.
> [ ] Follow Jonathan suggestionhttp://groups.google.com/group/web2py/browse_thread/thread/cd89f11de4...

Nico de Groot

unread,
Jul 26, 2010, 5:51:33 AM7/26/10
to web2py-users
Info about vitualfields, some links I use:

http://groups.google.com/group/web2py/browse_thread/thread/fa7936be97a82fec

Thadeus' blog about vitual links including lazy fields using a
'inline' function , not working anymore in latest releases
http://thadeusb.com/weblog/2009/12/31/web2py_virtualfields_as_an_orm_an_sqlalchemy_approach

remedy (promote lzy() function to class level)
http://groups.google.com/group/web2py/browse_thread/thread/d91c13e2fb0a1fde

Nico

mdipierro

unread,
Jul 26, 2010, 6:14:27 AM7/26/10
to web2py-users
I think the problem is fixed in trunk. can you try?

On Jul 26, 4:51 am, Nico de Groot <ndegr...@chello.nl> wrote:
> Info about vitualfields, some links I use:
>
> http://groups.google.com/group/web2py/browse_thread/thread/fa7936be97...
>
> Thadeus' blog about vitual links including lazy fields using a
> 'inline' function , not working anymore in latest releaseshttp://thadeusb.com/weblog/2009/12/31/web2py_virtualfields_as_an_orm_...
>
> remedy (promote lzy() function to class level)http://groups.google.com/group/web2py/browse_thread/thread/d91c13e2fb...

Johann Spies

unread,
Jul 26, 2010, 6:34:03 AM7/26/10
to web...@googlegroups.com
On 25 July 2010 00:54, Garrafa Pet 2 Litros <garr...@gmail.com> wrote:
> I think it's good to review the section 3.9 that discusses the wiki
> and add documentation of new features found in the plugin wiki.

+1

Regards
Johann

--
    "Be not deceived; God is not mocked: for whatsoever a
     man soweth, that shall he also reap."
                                  Galatians 6:7

mdipierro

unread,
Jul 26, 2010, 7:43:05 AM7/26/10
to web2py-users
The fact is the purpose of 3.9 is not to build a wiki but teach web2py
programming. If we use plugin_wiki there users would not learn much.
Moreover plugin_wiki may change after the book is completed therefore
I want to use it as an example of plugin but not suggest its API will
be supported in the same way as web2py APIs are. I was planning to
discuss plugins (and plugin_wiki) in a new chapter13.

On Jul 26, 5:34 am, Johann Spies <johann.sp...@gmail.com> wrote:

VP

unread,
Jul 26, 2010, 12:09:07 PM7/26/10
to web2py-users
I think the book needs some work. I'm learning web2py. I like it.
But I feel there are some "mysteries" that have not been explained in
the book. I hope you put a team on the book. Chapter 3 needs to be
thoughtfully expanded.

I saw some usage inconsistencies in examples in Chapter 3, regarding
IS_NOT_IN_DB, for example.

Iceberg

unread,
Jul 27, 2010, 12:20:53 AM7/27/10
to web2py-users
On Jul 24, 5:53am, mdipierro <mdipie...@cs.depaul.edu> wrote:
> I am revising the book.
>
> Please list what features are not mentioned in the book or deserve
> more space they correctly get.
> You suggestions will be appreciated.
>
> Massimo


Not sure whether is already mentioned in this 30-post thread, anyway
please include the "parse html" feature. Currently a post is available
here. http://web2py.com/AlterEgo/default/show/266

Iceberg

Thadeus Burgess

unread,
Jul 27, 2010, 1:52:11 AM7/27/10
to web...@googlegroups.com
IS_IN_SET zero changes and how they work and why it is that way now.

--
Thadeus

Timmie

unread,
Jul 27, 2010, 4:18:44 AM7/27/10
to web2py-users
Hello,
what date do you target as publishing date?

Best regards,
Timmie

Timmie

unread,
Jul 27, 2010, 4:22:43 AM7/27/10
to web2py-users
Hello,
have you tried Pandoc:
http://johnmacfarlane.net/pandoc/

http://johnmacfarlane.net/pandoc/try

If you consider your markup langauge stable, why not submitting it to
the developer of Pandoc?

Regards,
Timmie

Thadeus Burgess

unread,
Jul 27, 2010, 2:52:24 AM7/27/10
to web...@googlegroups.com
And SQLFORM(onvalidate)
--
Thadeus

mdipierro

unread,
Jul 27, 2010, 5:20:02 AM7/27/10
to web2py-users
Can you help? I am swamped

mdipierro

unread,
Jul 27, 2010, 5:23:58 AM7/27/10
to web2py-users
End of August final.

Jonathan Lundell

unread,
Aug 1, 2010, 4:21:29 PM8/1/10
to web...@googlegroups.com
On Jul 26, 2010, at 9:09 AM, VP wrote:

> I think the book needs some work. I'm learning web2py. I like it.
> But I feel there are some "mysteries" that have not been explained in
> the book. I hope you put a team on the book. Chapter 3 needs to be
> thoughtfully expanded.

The problem with magic is that it's hard to users to apply flexibly until they understand what's going on behind the curtain. I don't think it'd take a *lot* of explanation, but more than we've got now. A minor complication is that dal.py and sql.py aren't quite the same under the sheets. Is a move to dal.py in the near future?

Reply all
Reply to author
Forward
0 new messages