[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue common/etc/sample.report-filters.conf comm...
From: |
Jason Cater |
Subject: |
gnue common/etc/sample.report-filters.conf comm... |
Date: |
Wed, 24 Apr 2002 18:51:45 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: Jason Cater <address@hidden> 02/04/24 18:51:45
Modified files:
common/etc : sample.report-filters.conf
common/src : GMimeTypes.py
reports/adapters/destinations/email: sendmail.py
Added files:
reports/filters/SimpleTabulation: kspread.xsl
Log message:
more work on report output formats
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/common/etc/sample.report-filters.conf.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/common/src/GMimeTypes.py.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/reports/adapters/destinations/email/sendmail.py.diff?tr1=1.4&tr2=1.5&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/reports/filters/SimpleTabulation/kspread.xsl?rev=1.1
Patches:
Index: gnue/common/etc/sample.report-filters.conf
diff -c gnue/common/etc/sample.report-filters.conf:1.7
gnue/common/etc/sample.report-filters.conf:1.8
*** gnue/common/etc/sample.report-filters.conf:1.7 Sun Apr 14 17:06:00 2002
--- gnue/common/etc/sample.report-filters.conf Wed Apr 24 18:51:45 2002
***************
*** 20,25 ****
--- 20,32 ----
mimetype = text/html
+ [simple:kspread]
+ description = KSpread 1.1 format (KOffice spreadsheet).
+ engine = sablotron
+ script = kspread.xsl
+ mimetype = application/x-kspread
+
+
#
# It is not necessary to define 'raw' drivers
# GNUe Reports automatically associates a "raw"
Index: gnue/common/src/GMimeTypes.py
diff -c gnue/common/src/GMimeTypes.py:1.1 gnue/common/src/GMimeTypes.py:1.2
*** gnue/common/src/GMimeTypes.py:1.1 Wed Apr 24 12:12:25 2002
--- gnue/common/src/GMimeTypes.py Wed Apr 24 18:51:45 2002
***************
*** 26,33 ****
#
# NOTES:
#
- # Ripped from the Debian mime-support package.
- #
#
--- 26,31 ----
***************
*** 53,58 ****
--- 51,59 ----
return ()
+ #
+ # Originally ripped from the Debian mime-support package.
+ #
_mimetypes = {
'application/activemessage': ()
'application/andrew-inset': ('ez',)
***************
*** 378,383 ****
--- 379,385 ----
'application/x-kdelnk': ()
'application/x-kchart': ('chrt',)
'application/x-killustrator': ('kil',)
+ 'application/x-kontour': ('kil',)
'application/x-kpresenter': ('kpr','kpt')
'application/x-koan': ('skp','skd','skt','skm')
'application/x-kspread': ('ksp',)
***************
*** 468,481 ****
'image/g3fax': ()
'image/gif': ('gif',)
'image/ief': ('ief',)
! 'image/jpeg': ('jpeg','jpg','jpe')
'image/naplps': ()
'image/pcx': ('pcx',)
'image/png': ('png',)
'image/prs.btif': ()
'image/prs.pti': ()
'image/svg+xml': ('svg','svgz')
! 'image/tiff': ('tiff','tif')
'image/vnd.cns.inf2': ()
'image/vnd.dwg': ()
'image/vnd.dxf': ()
--- 470,483 ----
'image/g3fax': ()
'image/gif': ('gif',)
'image/ief': ('ief',)
! 'image/jpeg': ('jpg','jpeg','jpe')
'image/naplps': ()
'image/pcx': ('pcx',)
'image/png': ('png',)
'image/prs.btif': ()
'image/prs.pti': ()
'image/svg+xml': ('svg','svgz')
! 'image/tiff': ('tif','tiff')
'image/vnd.cns.inf2': ()
'image/vnd.dwg': ()
'image/vnd.dxf': ()
***************
*** 548,557 ****
'text/directory': ()
'text/english': ()
'text/enriched': ()
! 'text/html': ('htm','html','xhtml')
'text/mathml': ('mml',)
'text/parityfec': ()
! 'text/plain': ('asc','txt','text','diff')
'text/prs.lines.tag': ()
'text/rfc822-headers': ()
'text/richtext': ('rtx',)
--- 550,559 ----
'text/directory': ()
'text/english': ()
'text/enriched': ()
! 'text/html': ('html','htm','xhtml')
'text/mathml': ('mml',)
'text/parityfec': ()
! 'text/plain': ('txt','asc','text','diff')
'text/prs.lines.tag': ()
'text/rfc822-headers': ()
'text/richtext': ('rtx',)
Index: gnue/reports/adapters/destinations/email/sendmail.py
diff -c gnue/reports/adapters/destinations/email/sendmail.py:1.4
gnue/reports/adapters/destinations/email/sendmail.py:1.5
*** gnue/reports/adapters/destinations/email/sendmail.py:1.4 Mon Apr 15
00:36:43 2002
--- gnue/reports/adapters/destinations/email/sendmail.py Wed Apr 24
18:51:45 2002
***************
*** 27,33 ****
# NOTES:
#
! from gnue.common import GConfig
from gnue.reports import VERSION
from gnue.reports.GROutputAdapter import DestinationAdapter as Base
import sys, os, string
--- 27,33 ----
# NOTES:
#
! from gnue.common import GConfig, GMimeTypes
from gnue.reports import VERSION
from gnue.reports.GROutputAdapter import DestinationAdapter as Base
import sys, os, string
***************
*** 71,80 ****
#
def close(self, mimetype='plain/text'):
! if _mimeFileTypes.has_key(mimetype):
! fileExt = _mimeFileTypes[fileExt]
! else:
! fileExt = string.split(mimetype,'/')[-1]
if self.usingHandle:
self.input.close()
--- 71,80 ----
#
def close(self, mimetype='plain/text'):
! # TODO: Eventually, I'd like for the report-filters.conf
! # TODO: file to be able to specify the extension. We would
! # TODO: only use this method if an extension wasn't specified.
! fileExt = GMimeTypes.getExtension(mimetype)
if self.usingHandle:
self.input.close()
***************
*** 114,123 ****
self.deleteTempFile(self.tempfile)
-
- # TODO: This is awefully redundant... must be a better way!
- _mimeFileTypes = {
- 'plain/text': 'txt',
- 'plain/html': 'html',
- 'application/pdf': 'pdf'
- }
--- 114,116 ----