Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 3179:88dbe6b3d891
merge removal of rcsv
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 15 Feb 2005 00:23:30 +0000 |
| parents | d8d1ebd80930 |
| children | 5b39bff8f1e1 |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Mon Feb 14 06:09:14 2005 +0000 +++ b/roundup/cgi/templating.py Tue Feb 15 00:23:30 2005 +0000 @@ -21,7 +21,7 @@ import sys, cgi, urllib, os, re, os.path, time, errno, mimetypes -from roundup import hyperdb, date, rcsv, support +from roundup import hyperdb, date, csv, support from roundup import i18n from roundup.i18n import _ @@ -575,12 +575,9 @@ def csv(self): ''' Return the items of this class as a chunk of CSV text. ''' - if rcsv.error: - return rcsv.error - props = self.propnames() s = StringIO.StringIO() - writer = rcsv.writer(s, rcsv.comma_separated) + writer = csv.writer(s) writer.writerow(props) for nodeid in self._klass.list(): l = []
