Simple web2py and Elixir
So I have a sample data set in a database created by web2py. After some experimentation I can access, modify and create data with Elixir/SQLAlchemy. Just some notes, like remember to encode web2py blobs with utf8 if you’re not going through web2py’s functions.
r=Recipe.query.all() r[0].instructions=u’some text to submit’.encode(’utf8′
cb.session.flush()
And then something happend before this got pulished [...]
Filed under: dev, elixir, orm, sqlalchemy, web2py | No Comments »