Well, yes I think it breaks something,
in 2.16.1 this was fine:
form = SQLFORM.factory(
    Field('always_show', default='123', readable=True, writable=False),
    Field('writable_if_intended', default='456', readable=True, 
writable=True),
    readonly=False,
    )
Both fields were shown, first field as textonly, and second one as 
edit/input field

In 2.17.1
print form.fields
->['id', 'writable_if_intended']
The first field does not appear, so all my forms a broken for the moment 
and I do not know how to
create a form with mixed intentions for the fields (readable only / and 
writable fields)

many thanks for your help,
Andreas



Am Montag, 13. August 2018 03:36:06 UTC+2 schrieb Massimo Di Pierro:
>
> On second look this is correct and intentional and fixed a bug. this form 
> is a from a factory and there is no record. the field is not writable 
> therefore it can only be displayed in read-only mode but there is no value 
> (record) to display.
>
> Does it break something?
>
> On Sunday, 12 August 2018 12:52:31 UTC-7, Jim Karsten wrote:
>>
>> I'm seeing a change in behaviour between versions 2.16.1 and 2.17.1. 
>>
>> form = SQLFORM.factory(Field('name', writable=False))
>> print form.fields
>>
>> # In 2.16.1 prints: ['id', 'name']
>> # In 2.17.1 prints: ['id']
>>
>> Is this intentional?
>>
>>

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

Reply via email to