Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Auto-conversions and distutils (Or how I spent my afternoon)

Turns out the auto-conversion script I was given is actually pretty limited in what it does. I wound up hacking in a few extra features (such as actually using the new import wx form), but I really should have just gone ahead and rewritten it. It's using a manually-maintained mapping set that's seriously limited, so ...

Continue reading

Kinda late getting started today (Up all night with wxPython migration)

wxPython 2.5 is finally making the import wx style "normal", so I figure wxoo should be converted to it. Ah, thinks I, 2 or 3 hour task I can do before going to bed (forgetting that it's the leap-forward-day). 6 clock hours (5 actual) later I've only converted 1/5th of the project. I did fix ...

Continue reading

Oh yes, that stuff... (In case anyone cares)

I know no-one really cares about how the internal project is going, but I did finally manage to get the front-page tree control to display the (now recorded) summary data. So far only one piece of it, but the data is now getting in there, so it's just a matter for tweaking what's stored and ...

Continue reading

wxPython is migrating rather fast (Looks like maintenance on the wx projects would be a good idea)

Just reading through the wxPython migration guide and change-log. I need to get cracking and update wxoo for the new apis & the changes. There's a lot of stuff that looks like it may break some of the hackier bits. Also thinking that I should see about creating and donating a multi-method mechanism to provide ...

Continue reading

The next bug awaits... (Hierarchy properly created, but no record of group's values)

Some day real soon I'll be able to make the front-page tree control display the group data... sigh. For some reason the group-data recorder refuses to actually insert any data (though it will insert empty records). I'm suspecting a problem in the database definition (i.e. lack of a unique key) as the code all seems ...

Continue reading

Software bugs are most similar to ticks (They suck the blood (time) right out of a project)

Been trying to track down this silly bug for... far too long. Basically two fields from the scanner aren't getting copied to the tracking table, as a result, the automatic generation of network hierarchy is failing (it can only assert that the modems belong to the CMTS, not that they exist on a particular channel). ...

Continue reading

Shrubbery and such-like (Tree controls developing apace)

Webui uses a modified, chaining-friendly version of Zope3's page templates. It's very easy to create recursive templates, as the templates can readily call any registered view for any object to which they have access. The tree control is such a recursive template. It does a little work up-front to see how many children the current ...

Continue reading

Growing trees... (Webui gets new controls today)

Client wants the UI to have an overview page, so looks like I'll be creating a tree+grid control to display all of the branches of the system with summaries of their current status. Doesn't look too terribly hard, so I'm expecting it to be a royal PITA :) .

Yesterday was useful, but the last ...

Continue reading

Metaclass presentation & code online (Well, presentation was always there, but the code is just up now)

I've just uploaded the final metaclass presentation and the code samples for it to my website. The code samples are very low-level and readily followed (I hope), they just show where you put your finger to accomplish the various effects discussed in the presentation. The presentation is the full 74 page PDF I presented ...

Continue reading