Line | |
---|
1 | def setupVarious(context): |
---|
2 | |
---|
3 | # Ordinarily, GenericSetup handlers check for the existence of XML files. |
---|
4 | # Here, we are not parsing an XML file, but we use this text file as a |
---|
5 | # flag to check that we actually meant for this import step to be run. |
---|
6 | # The file is found in profiles/default. |
---|
7 | |
---|
8 | if context.readDataFile('${namespace_package}.${namespace_package2}.${package}_various.txt') is None: |
---|
9 | return |
---|
10 | |
---|
11 | # Add additional setup code here |
---|
12 | |
---|
13 | def uninstallVarious(context): |
---|
14 | |
---|
15 | # Ordinarily, GenericSetup handlers check for the existence of XML files. |
---|
16 | # Here, we are not parsing an XML file, but we use this text file as a |
---|
17 | # flag to check that we actually meant for this import step to be run. |
---|
18 | # The file is found in profiles/uninstall. |
---|
19 | |
---|
20 | if context.readDataFile('${namespace_package}.${namespace_package2}.${package}_uninstall.txt') is None: |
---|
21 | return |
---|
22 | |
---|
23 | # Add additional uninstall code here |
---|
24 | |
---|
25 | \#\# -*- extra stuff goes here -*- |
---|
Note: See
TracBrowser
for help on using the repository browser.