Christopher Lenz wrote:
Am 07.03.2006 um 11:49 schrieb Christian Boos:

Christopher Lenz wrote:

Hey folks,

trac.util is becoming a dropbox for all sorts of (more or less) reusable code. Before its size gets out of hand, I'd like to make it a package (instead of a module), and split off some functionality (such as the date formatting or the Markup class) into separate modules inside that package.

A lot of the functions will remain in trac/util/__init__.py, and whatever gets moved out should be made available at the package level (through an import in __init__.py) as to not break backward- compatibility.

What do you think?


Yes, that's a good idea.

I was also thinking about putting some more stuff in util,
like defining a trac.util.StringIO that would factor out the
try: from cStringIO ... catch: stuff we have everywhere...


I think cStringIO is going to go away when we move to Unicode anyway... Jonas?

Yeah that's right, cStringIO is not compatible with unicode strings so it will have to go away when/if the unicode branch is merged.

/ Jonas
_______________________________________________
Trac-dev mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-dev

Reply via email to