Has this problem already been solved?

I am developing my application on Mac OS X Leopard in web2py version
1.61.4, and did not experience any difficulties creating, retrieving,
updating and deleting records in SQLite. However, when I connect to a
Postgresql database creating a record doesn't work. Retrieving,
updating and deleting isn't a problem.

This is the function:

@auth.requires_membership('core_manager')
def crud_address():
    response.functionname= T('CRUD adres')
    db.adres.bedrijf.writable=False
    db.adres.bedrijf.default=auth.user.bedrijf
    form=crud.create(db.adres)
    records=db(db.adres.bedrijf==auth.user.bedrijf)\
    .select(db.adres.ALL,orderby=db.adres.adressoort)
    if form.accepts(form.vars,session):
       response.flash=T('new record created')
    elif form.errors:
        response.flash=T('form has errors')
    else:
        response.flash=T('create new record')
    return dict(form=form,records=records)


Kind regards,

Annet
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to