Thank you for this explanation and the workaround.
I have found the next *problem with "common_filter"*: it seems, that a
common_filter is not applied in the following situation:
db.define_table("test",
Field("name"),
common_filter = lambda query: db.test.id==1)
SQLFORM.factory creates a dummy DAL table via DAL(None). A change was made
so that auto-validators no longer get applied to fields with DAL(None), so
no fields in a SQLFORM.factory table will get the usual default DAL
validators. Datetime fields typically get a default IS_DATETIME() validator
On Monday, September 11, 2017 at 5:30:22 PM UTC-7, Anthony wrote:
>
> On Monday, September 11, 2017 at 6:15:50 PM UTC-4, Dave S wrote:
>>
>>
>>
>> On Monday, September 11, 2017 at 12:53:52 PM UTC-7, mweissen wrote:
>>>
>>> What is the type of the result of a Field(...;'datetime') ?
>>>
>>> I
On Monday, September 11, 2017 at 6:15:50 PM UTC-4, Dave S wrote:
>
>
>
> On Monday, September 11, 2017 at 12:53:52 PM UTC-7, mweissen wrote:
>>
>> What is the type of the result of a Field(...;'datetime') ?
>>
>> I think, it should be "datetime" (and I am shure it has been in version
>> 2.14.x),
On Monday, September 11, 2017 at 12:53:52 PM UTC-7, mweissen wrote:
>
> What is the type of the result of a Field(...;'datetime') ?
>
> I think, it should be "datetime" (and I am shure it has been in version
> 2.14.x), but web2py 2.15.4 delivers a "str".
>
>
Which DB engine are you using? In
5 matches
Mail list logo