Richard Jones' Log: PyCon Sprints, day 3
Another good day of sprinting, mostly. Martin v. L�wis got the distutils upload command checked into Python 2.5 CVS. He's working on an OpenPGP signing facility now too. Yay Martin!
I met Mick Twomey today, who I know from Roundup, and he's a great guy. We worked on migrating the PyPI web interface to ZPT. The ChiPy people did some work on this, which we built on. Unfortunately, we couldn't find a ZopePageTemplates download (a recent one, that is) so we switched to SimpleTAL. Later in the day, realising that we were losing significant development time to chasing down errors that were hidden by SimpleTAL, we switched over to the Zope 3 zope.pagetemplates implementation. There were some teething problems which Mick was still working on when we finished up at 9:30. I spend the evening working on Unicode issues (with Mick's help). PyPI now handles unicode much better, and the web interface and database work only in utf-8.
David Goodger supplied us with docutils patches allowing disabling of the "raw" and "include" directives, allowing John Camara to work more on the ReST-ifying of the PyPI "description" fields. John also spent some time working on general bugs in the distutils code lodged in the sf.net tracker.
The package archive had two packages in it by the end of the day - my roundup upload and Fred Drake's ZConfig one. More will come soon, I suppose :)
Now that even things you post yourself are messed up ("Löwis"), perhaps it's time to fix the Unicode problems in pyblagg ;-)
Argh! Unicode! :)
Want me to take a look? Where's the code?
Sure, the code's in fetch.py and scrape_wiki.py.
You'll need sqlite and Mark Pilgrim's feedparser module.
And a script to initialize the database, perhaps?
Nevermind. Here's a minimal patch (this assumes that you're using 2.3 or newer):
Index: fetch.py =================================================================== --- fetch.py (revision 333) +++ fetch.py (working copy) @@ -206,7 +206,7 @@ </div> %(items)s </html></body>'''%contents - f.write(s.encode('utf-8')) + f.write(s.encode('ascii', 'xmlcharrefreplace')) f.close() # format RSS
Thanks, I've updated the code and am re-generating the page right now.
Whoops -- I used the zpt.sf.net code, but the zope3 code is probably better. Hope that didn't cause too much trouble -- I was next door in the other room (but I wasn't on IRC)