Category archives: Snaking
Discussions of programming, particularly of programming Python
Ooh, now I want to play with PyPy (Time slips away in sleep...)
Written by
on
in
Snaking.
Apparently the sunburn just clobbered me. Slept most of yesterday and today instead of getting work done on OpenGL-ctypes. Have another hour and 10 minutes just to meet today's working target. Sigh.
Anyway, in the intersticies of the days I cleared out my backlog of Python-list emails (3000+, though I probably only read 100 or ...!-->!-->
Fried Mikey (Don't put on jeans and go for long walks when you're sun-fried)
Written by
on
in
Design Theory,
Snaking,
Vindaloo.
Went out to Woodbine beaches on Saturday. Spent the whole afternoon out in the sun and wound up lobster-red across my whole front (including my feet) and back. Walked down to Sacha's barbecue when we got home. The jeans I wore down rubbed the sunburn into a nasty glowing red patch.
Also went to Sacha's ...!-->!-->
UI stuff just feels more interesting (Simple little navigation widgets for a hierarchic schema...)
Written by
on
in
Snaking.
Finished off the day's work by working on some simple navigation widgets for the billing system. The entire system is built using directed acyclic graphs (of various types). Because of that you can readily construct generic views that let you see the parents and children of any node in the system. I'm still looking for ...
FormEncode is nice (Validators are so much nicer than coding everything oneself)
Written by
on
in
Snaking.
Dipping my toes in the waters of FormEncode today. Basically decided I needed a break from financial aspects, so spent some time roughing out a simple list and add view for Inventory objects (in this particular case, phone numbers/DIDs). Most of the work was:
Figuring out that All and Any values are applied in reverse ...!-->!-->
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 ...
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 ...