From: Stefan Bund Date: Tue, 20 Oct 2009 17:22:06 +0000 (+0200) Subject: Create site extension profile and add dependencies X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=f53789c630416150b13df1204b0bb94334d7a0b0;p=zope-bootstrap.git Create site extension profile and add dependencies --- diff --git a/src/koehsel.policy/koehsel.policy.egg-info/SOURCES.txt b/src/koehsel.policy/koehsel.policy.egg-info/SOURCES.txt index d27dbe8..06f823e 100644 --- a/src/koehsel.policy/koehsel.policy.egg-info/SOURCES.txt +++ b/src/koehsel.policy/koehsel.policy.egg-info/SOURCES.txt @@ -12,4 +12,5 @@ koehsel.policy.egg-info/paster_plugins.txt koehsel.policy.egg-info/requires.txt koehsel.policy.egg-info/top_level.txt koehsel/policy/__init__.py +koehsel/policy/setuphandlers.py koehsel/policy/tests.py \ No newline at end of file diff --git a/src/koehsel.policy/koehsel/policy/configure.zcml b/src/koehsel.policy/koehsel/policy/configure.zcml index 600a528..56160c0 100644 --- a/src/koehsel.policy/koehsel/policy/configure.zcml +++ b/src/koehsel.policy/koehsel/policy/configure.zcml @@ -1,8 +1,24 @@ + + + + + diff --git a/src/koehsel.policy/koehsel/policy/profiles/default/README.txt b/src/koehsel.policy/koehsel/policy/profiles/default/README.txt new file mode 100644 index 0000000..e69de29 diff --git a/src/koehsel.policy/koehsel/policy/profiles/default/metadata.xml b/src/koehsel.policy/koehsel/policy/profiles/default/metadata.xml new file mode 100644 index 0000000..ade50ca --- /dev/null +++ b/src/koehsel.policy/koehsel/policy/profiles/default/metadata.xml @@ -0,0 +1,8 @@ + + + 1 + + profile-easyshop.core:default + profile-koehsel.theme:default + + diff --git a/src/koehsel.policy/koehsel/policy/setuphandlers.py b/src/koehsel.policy/koehsel/policy/setuphandlers.py new file mode 100644 index 0000000..5140789 --- /dev/null +++ b/src/koehsel.policy/koehsel/policy/setuphandlers.py @@ -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