This is not a bug but it was a bug before.

If you want the field editable

         SQLField('field_n', 'boolean', writable=True),

If you want the field to appear readonly

         SQLField('field_n', 'boolean', writable=False, readable=True,
default=True),

(it will show the default value, in your case None because default is
no set)

If you do not want the field to appear at all (what you want)

         SQLField('field_n', 'boolean', writable=False,
readable=False),

Massimo


On 19 Apr, 20:58, Jose <jjac...@gmail.com> wrote:
> On 20 abr, 01:30, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > Works for me. Can you give an example of code, what you expect and
> > what it does instead?
>
> Simply something that two days ago it was working now well does not do
> it.
>
> db.define_table('mytable',
>         SQLField('field_1', 'string'),
>         SQLField('field_2', 'string'),
>         ...
>         SQLField('field_n', 'boolean', writable=False),
>         )
>
> When I create the form with SQLFORM, it shows me the label of the
> field in the first column and None in the second.
>
> As I said, two days ago (v.: 1.60 or 1.61 I do not remember) this
> field was not appearing, that it is since I hope that it works.
>
> I tried this in windows and in freebsd.
>
> Jose
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to