source: products/qPloneResolveUID/trunk/transforms/__init__.py @ 1

Last change on this file since 1 was 1, checked in by myroslav, 14 years ago

Building directory structure

File size: 661 bytes
Line 
1# Author: Melnychuk Taras
2# Contact: fenix@quintagroup.com
3# Date: $Date: 2006-08-11
4# Copyright: quintagroup.com
5
6from Products.PortalTransforms.libtransforms.utils import MissingBinary
7modules = [
8    'ruid_to_url',
9    ]
10
11g = globals()
12transforms = []
13for m in modules:
14    try:
15        ns = __import__(m, g, g, None)
16        transforms.append(ns.register())
17    except ImportError, e:
18        print "Problem importing module %s : %s" % (m, e)
19    except MissingBinary, e:
20        print e
21    except:
22        import traceback
23        traceback.print_exc()
24
25def initialize(engine):
26    for transform in transforms:
27        engine.registerTransform(transform)
Note: See TracBrowser for help on using the repository browser.