Posts Tagged ‘sqlalchemy’
Updates this week Slow week. The changes to the fulltext search involved a small bug in updating the tag_str property of the bookmark. I got this fixed and added a migration to rebuilt the tag_str for all bookmarks in the system. The big sign of this was that the edit ui wasn’t showing the tags [...]
Filed under: Bookie, Code, Python | Leave a Comment
Tags: bug, pyramid, sqlalchemy
In search of better enums
I’ve been fighting now to deal with a pretty common use case in my Pylons applications. I often have a db model (with the marvelous SqlAlchemy) and the object in question has some type of limited set of options for a field. It’s basically an enum field, but I don’t want to deal with the [...]
Filed under: Code, Python | Leave a Comment
Tags: pylons, sqlalchemy
I really want to be a unit tester, I really do. Unfortunately it’s one of those things I can’t seem to get going. I start and end up falling short before I get over the initial setup hurdle. Or I get a couple of tests working, but then as I have a hard time trying [...]
Filed under: Tech | Leave a Comment
Tags: python, sqlalchemy, sqlalchemy-migrate, testing
Just a quick follow up to my last post on adding the ability to add some tools to help serialize SqlAlchemy instances. I needed to do the reverse. I want to take the POST’d values from a form submission and tack them onto one of my models. So I now also add a fromdict() method [...]
Filed under: Tech, Uncategorized | 2 Comments
Tags: python, sqlalchemy
I’m not a month into my new job. I’ve started working for a market research company here locally. Definitely new since I don’t know I’ve ever found myself really reading or talking about ‘market research’ before. In a way it’s a lot like my last job in advertising. You get in and there’s a whole [...]
Filed under: Tech, Uncategorized | 2 Comments
Tags: python, sqlalchemy
I’ve been playing with Turbogear2 (TG2) for some personal tools that help me get work done. One of the things I’ve run into is an important missing feature that my work code has that isn’t in my TG2 application yet. In my PHP5 app for work, I use the Doctrine ORM and I have post [...]
Filed under: Tech, Uncategorized | 2 Comments
Tags: python, sqlalchemy, turbogears
