Create site extension profile and add dependencies
[zope-bootstrap.git] / src / koehsel.policy / koehsel / policy / setuphandlers.py
diff --git a/src/koehsel.policy/koehsel/policy/setuphandlers.py b/src/koehsel.policy/koehsel/policy/setuphandlers.py
new file mode 100644 (file)
index 0000000..5140789
--- /dev/null
@@ -0,0 +1,11 @@
+def setupVarious(context):
+
+    # Ordinarily, GenericSetup handlers check for the existence of XML files.
+    # Here, we are not parsing an XML file, but we use this text file as a
+    # flag to check that we actually meant for this import step to be run.
+    # The file is found in profiles/default.
+
+    if context.readDataFile('koehsel.theme_various.txt') is None:
+        return
+
+    # Add additional setup code here