From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmccabe@sourceware.org Date: 26 Jul 2006 01:17:19 -0000 Subject: [Cluster-devel] conga/luci/utils luci_admin Message-ID: <20060726011719.22814.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Changes by: rmccabe at sourceware.org 2006-07-26 01:17:18 Modified files: luci/utils : luci_admin Log message: fix problem of zope choking on nonexistent directories in the product path Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/utils/luci_admin.diff?cvsroot=cluster&r1=1.29&r2=1.30 --- conga/luci/utils/luci_admin 2006/07/25 22:36:14 1.29 +++ conga/luci/utils/luci_admin 2006/07/26 01:17:18 1.30 @@ -21,13 +21,13 @@ )) from Products import __path__ -__path__.extend(( - '/usr/lib/luci/zope/lib/python/Products', - '/usr/lib64/luci/zope/lib/python/Products', - '/usr/lib64/zope/lib/python/Products', - '/usr/lib64/zope/lib64/python/Products', - '/usr/lib/zope/lib/python/Products' -)) +for i in [ '/usr/lib/luci/zope/lib/python/Products', + '/usr/lib64/luci/zope/lib/python/Products', + '/usr/lib64/zope/lib/python/Products', + '/usr/lib64/zope/lib64/python/Products', + '/usr/lib/zope/lib/python/Products' ]: + if os.path.isdir(i): + __path__.append(i) LUCI_INIT_DEBUG = 0 @@ -223,7 +223,6 @@ return -1 if True: - print app.unrestrictedTraverse('/luci/') portal_mem = app.unrestrictedTraverse('/luci/portal_membership') portal_reg = app.unrestrictedTraverse('/luci/portal_registration') if not portal_mem or not portal_reg: