Skip to content

Commit

Permalink
Added JSONFormat, renamed UndefinedXMLFormat to XMLFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Feb 1, 2018
1 parent ea6650f commit 0119ef7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions clam/common/formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,15 @@ class CSVFormat(CLAMMetaData):
name = "Comma separated file"
mimetype = 'text/csv'

class UndefinedXMLFormat(CLAMMetaData):
name = "Undefined XML Format"
class XMLFormat(CLAMMetaData):
name = "XML Format (not further specified)"
mimetype = 'text/xml'
scheme = ''
UndefinedXMLFormat = XMLFormat #backward compatibility

class JSONFormat(CLAMMetaData):
name = "JSON Format (not further specified)"
mimetype = 'application/json'

class FoLiAXMLFormat(CLAMMetaData):
attributes = {}
Expand Down

0 comments on commit 0119ef7

Please sign in to comment.