Also in chapter 7, SQLFORM.factory. Missing ":" in function "form_from_factory()" example.
should read: "form_from_factory():" In epydoc, INPUT component. There are two examples for "radio" types. I suppose the other one is meant for the "submit" type, which isn't listed at all? On Mar 18, 8:02 am, niknok <nikolai...@gmail.com> wrote: > In Validator section of Chapter 7, the example for IS_DATE_IN_RANGE > incorrectly uses IS_DATETIME where IS_DATE_IN_RANGE is expected: > > requires = IS_DATE(format=T('%Y-%m-%d'), > minimum=datetime.date(2008,1,1), > maximum=datetime.date(2009,12,31), > error_message=T('must be YYYY-MM-DD!')) > > should be: > > requires = IS_DATE_IN_RANGE(format=T('%Y-%m-%d'), > minimum=datetime.date(2008,1,1), > maximum=datetime.date(2009,12,31), > error_message=T('must be YYYY-MM-DD!')) > > The same error occured in the IS_DATETIME_IN_RANGE validator example: > > requires = IS_DATE(format=T('%Y-%m-%d'), > minimum=datetime.date(2008,1,1), > maximum=datetime.date(2009,12,31), > error_message=T('must be YYYY-MM-DD!')) > > should read as: > > requires = IS_DATETIME_IN_RANGE(format=T('%Y-%m-%d'), > minimum=datetime.date(2008,1,1), > maximum=datetime.date(2009,12,31), > error_message=T('must be YYYY-MM-DD!')) > > hth