Archives week 25 of 2006
June 19, 2006 - June 25, 2006
Select from an inherited table in TurboGears (Since it took me so long to figure this out...)
Written by
on
in
Snaking.
Okay, key tip for debugging TurboGears SQLObject problems, add ?debug=1 to the dev.cfg URL for your database. Once you have that and you try to run a query for an inherited class you'll see the problem, but so that you don't have to set it up, here's the description of the problem and the solution: ...
Fits and starts (Little things...)
Written by
on
in
Snaking.
Did some more work on TurboGears. Found another couple of bugs in the SQLObject SQL generation code. Now failing with the inheritance stuff, seems that the documented ability to do Child.select( Parent.field==something) doesn't throw any errors but also doesn't seem to return the results. Anyway, nothing huge, just little things I'll have to track down ...
Offerred Water
Written by
on
in
Vindaloo.
It's not that I'm not thirsty
I'm parched to dusty stone
But the timing seems all wrong
For I've just resolved to quit
The search for cups of water
In hopes forgetting hard thirst
Will let me grow to be a man
Who deserves a cup of water
3 hours of procrastination on a 5 minute fix (Well, at least I got my laundry folded...)
Written by
on
in
Snaking.
The bug in SQLObject was just a missing '+' character, it was doing:
sql = ';\n'+join_sql
instead of:
sql += ';\n'+join_sql
so the SQL for the table was getting dropped when there was "join" sql for the final content. Somewhat of a letdown, I was thinking it would be hours of plunging through deep-dark code ...!-->!-->!-->!-->
Where'd that three hours go? (So much for buying my interest with smoothies...)
Written by
on
in
Snaking.
It seems that the smoothies were not sufficiently enticing to get me to actually sit down and work on the SQLObject problem. Shane's coming by in an hour to get his router re-provisioned, so not going to have a big block of time for work tonight. Maybe I should just call the day a write-off ...
PyGTA Review of web frameworks part 2 this Tuesday... (We will, we will... frame you!)
Written by
on
in
Snaking.
Coming up on the 4th Tuesday of the month again. We'll be continuing our review of web frameworks from last month, so if you have a particular framework you've used and can review (critically) come on down and share your opinations.
As usual we'll be at our generous venue Linux Caffe, who go ...!-->!-->
Once you have a schema generator you get lazy (Stalled on TurboGears, sort-of...)
Written by
on
in
Snaking.
Hasn't been a stellar day for productivity today. The flip side of frameworks is that when something goes wrong you have to do a lot more work (in someone else's code) to fix it. The bug I hit is a fairly minor one, the SQL generator for the TurboGears model is "forgetting" a table (and ...
My first day with TurboGears (So far so good...)
Written by
on
in
Knight Errant,
Snaking.
Decided today was the day to learn TurboGears, so I sat down and started working out a model for the BetterBilling project. This is basically a generic provisioning system for ISPs or VoIP providers that I'm wanting to build.
The version I'm looking at right now is less generic than the envisioned one; that's just ...!-->!-->
Great way to spend a night (Coffee and cheesecake and hours of conversation...)
Written by
on
in
Vindaloo.
Out to coffee to get to know a new friend better. One of those great conversations that refuses to die, even though you both know you should get going if you're going to be up in the morning.
One-on-one conversations really are so much deeper than the big-group ones. I like the big-group ones I ...!-->!-->
Getting out of the house is a good thing (Only takes 20 minutes or so to pay for the food...)
Written by
on
in
Knight Errant.
Pleasant day in my corner under a plant at Linux Caffe. 7-1/4 hours here, with 6-1/4 hours billable. It's good not to have any temptation to lie down when you're tired/sore. It's also nice having half a dozen different types of drinks available and good food and pleasant conversations here and there. Still don't know ...