If I remember web2py get the backend comment if there is no comment in the
model definition.. So if you want to have dual comment definition, use your
backend comment for code documentation and override them in your model
definition...

Richard


On Tue, Mar 12, 2013 at 8:27 AM, Alex <[email protected]> wrote:

> Hi,
>
> is it possible to set the database column comment in web2py? I'd like to
> document my fields only once and have the comment in the code and in the db.
>
> At the moment I comment some of my fields in db.py like
> Field('status', 'integer', comment='0=error, 1=warning, 2=success')
>
>
>
> So I'm somehow misusing the comment argument for my internal documentation
> (I don't use the autogenerated forms). It would be very useful to have an
> argument like dbcomment for the Field class.
>
> Alex
>
>  --
>
> ---
> 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 [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to