Import Document Settings¶
Import Document Settings¶
1ot = impact.gui.output_toolbox
2db = impact.active_database
3
4ot.clear()
5
6docs = db.documents
7
8if docs is None:
9 ot.add("No document support in the database")
10else:
11 ot.add("Document support is enabled in this database")
12
13 settings = db.settings.document_settings
14
15 if settings.import_xml(r"C:\\Document Settings\\Settings.xml"):
16 ot.add("Successfully imported document settings")
17
18 else:
19 ot.add("One or more errors occurred while importing the document settings")
20
21 ot.add("Document MIME Types: " + str(settings.mime_types.count))
22 ot.add("Document Groups: " + str(settings.groups.count))
23 ot.add("Document Tags: " + str(settings.tags.count))
24
25
26