blob: 882091ab9e5fe16874172aaf7e4dac64a8f15c6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
from common.ConfigSet import ConfigSet
from CGArgument import CGArgument
from common.ConfigGroup import ConfigGroup
class CGExporter(ConfigGroup):
cp_Index = -1
cp_Name = str()
cp_ExporterClass = str()
cp_OwnDirectory = bool()
cp_SupportsFilename = bool()
cp_DefaultFilename = str()
cp_Extension = str()
cp_SupportedMimeTypes = str()
cp_Icon = str()
cp_TargetType = str()
cp_Binary = bool()
cp_PageType = int()
targetTypeName = ""
cp_Arguments = ConfigSet(CGArgument())
def supports(self, mime):
return CGExporter.cp_SupportedMimeTypes == "" or \
CGExporter.cp_SupportedMimeTypes.index(mime) > -1
|