Devi

Bangalore, India

1d
awarded Commentator
1d
comment Execute some code when an SQLAlchemy object's deletion is actually committed
But models_committed is not limited to delete only, but called for inserts and updates which are most common. From the doc, "This signal is sent when changed models where committed to the database"
2d
comment Execute some code when an SQLAlchemy object's deletion is actually committed
This is called on every commit for every model that's in the app. Isn't it an overkill?
Mar
23
answered SQLAlchemy: selecting which columns of an object in a query
Mar
7
awarded Yearling
Mar
7
awarded Yearling
May
5
answered Flask: How to manage different environment databases?
Apr
19
awarded Nice Answer
Feb
13
comment How do I discover the structure of a PostgreSQL database?
If you want to see the entire database structure in one go, type \d * in the psql console. That gives schema of all tables in that database.
Dec
18
comment How do I run Python code from Sublime Text 2?
Having the line {"keys": ["ctrl+shift+c"], "command": "exec", "args": {"kill": true} } in User key bindings and using ctrl+shift+c prints that the build is [Cancelled] while the program still being run.
Oct
21
answered building REST API in FLASK
Oct
21
comment How to remove all items from many-to-many collection in SqlAlchemy?
Why not just blogpost.tags = new_tags? (without [:])
Aug
27
comment How to handle nested context?
The above example doesn't work in the online demo still, as it uses very old version (0.2.3-dev source), where as the latest version is 0.7.2, as of today.
Jul
16
awarded Tumbleweed
Jul
9
asked Accessing models in alembic migrations
Jul
9
comment Modify data as part of an alembic upgrade
Can you post the solution if you had solved this?
Feb
14
awarded Necromancer
Jan
7
answered Generating random text strings of a given pattern
Nov
30
awarded Scholar
Nov
30
accepted keyboard transmit mode in vt100 terminal emulator
1 2