There are examples throughout the code - look at sql.py and gql.py for examples in the docstrings (I agree, the docstrings could explain a little more).
select(limitby=(start_record,end_record), so limitby(1,2) would select one record - record 1 (2 is not included). You can see this in test_dal.py test cases. The book (page 147) uses an example which does not clear up use: "With limitby you can select a subset of records, in this case the first two starting at zero: .....select(...., limitby(0,2)) This leaves the use ambiguous: is 2 the number of records to return, or the ending record number? You can't tell from this; you still have to either experiment, or look at the test cases. On Sun, May 3, 2009 at 9:45 AM, mdipierro <[email protected]> wrote: > > why not. Can you do it and send me a new file? > > Massimo > > On May 3, 5:59 am, Iceberg <[email protected]> wrote: > > Hi Massimo, > > > > Once again, I forgot the syntax for the limitby clause, so I turned to > > the built-in doc for help. Unfortunately, the detail syntax of limitby > > is not mentioned at all. > > http://www.web2py.com/examples/default/dal > > > > Eventually google still guides me to the old document for DAL: > > http://svn.assembla.com/svn/180Project/src/web2py/applications/exampl. > .. > > > > IMHO, that old DAL document still serves good for beginners, because > > it has more details than the current new DAL document. Shall we merge > > it back into the current DAL doc? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

