Archive for the ‘Python’ Category
UNF thinks Ukraine is in the Asia :(
Monday, May 26th, 2008Check their Measles Initiative site. Obviously they also consider we have situation twice worse than Afghanistan. To give little context: UNF-sponsored vaccine already killed one child in Ukraine and let another 60+ children to hospitals. Only 60'000 dozes of vaccine (out of ~8M) where used so far.
nosetest exception helper
Tuesday, May 13th, 2008Last night, enhancing the Chytach, I've again come across a feeling that standard nose asserts and decorators are not quite useful when testing exceptions. For example, when I'm checking a django form validation, I'd like to make sure that my form throws a ValidationError (easy part) with a particular message (oops). Nose proposes ...
Couple feedparser bugs fixed
Wednesday, March 19th, 2008If you massively use python feedparser, sooner or later you'll encounter a feed with non-ascii symbols that tracebacks with somethings like UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 10: ordinal not in range(128) or even IndexError: pop from empty list Using latest version from svn helps, but even it has some bugs ...
django’s urlconf for webware
Monday, December 3rd, 2007It appears to be quite easy (from technical side) to do a coup refactoring an application from webware to django. As a first step could be substituting default webware url mapper from url-maps-to-file-hierarchy to django-like regexp matcher. url map would look like familiar django file: from django.conf.urls.defaults import patterns from Pages import Main urlpatterns ...