source: products/quintagroup.themetemplate/trunk/quintagroup/themetemplate/localcommands/templates/importing/setuphandlers.py_insert @ 1005

Last change on this file since 1005 was 1005, checked in by mylan, 15 years ago

Import package: Copied http://svn.quintagroup.com/products/qtheme.template/trunk@2041 + modifications concerning changed package name, namespace

File size: 378 bytes
Line 
1#if not $already_used:
2from ${namespace_package}.${namespace_package2}.${package}.utils import checkIfImport, performImportToPortal
3
4def importZEXPs(context):
5
6    if context.readDataFile("${namespace_package}.${namespace_package2}.${package}_various.txt") is None:
7        return
8
9    site = context.getSite()
10    if checkIfImport():
11        performImportToPortal(site)
12#end if
Note: See TracBrowser for help on using the repository browser.