On Sunday, 23 December 2012 03:51:59 UTC-6, Annet wrote:
>
> Does this mean I should remove these lines of code from db.py:
>
> from gluon.tools import Crud
> crud = Crud(db)
>

If you remove these some plugins may break so we will not be doing it in 
welcome. Yet, yes, that is what I was suggesting.
 

> What are the equivalents for the settings and messages?
>
> crud.settings.label_separator=''
>
> crud.messages.record_updated=session.record_updated
> crud.messages.record_deleted=session.record_deleted
> crud.messages.record_created=session.record_updated
>

You cannot do it in one place for SQLFORM. You have to pass the messages to 
each call.

Do I replace every 
> form=crud.update(table=db.nodeAccount,record=row,next=session.crud_next,deletable=False)
> with 
> form=SQLFORM(table=db.nodeAccount,record=row,next=session.crud_next,deletable=False)
>

no with:

form=SQLFORM(db.nodeAccount,rowt,deletable=False).process(next=session.row.crud_nex)
 

>
>
> Kind regards,
>
> Annet.
>

-- 



Reply via email to