backward compatibility for not directly importing class Loops in __init__.py

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1906 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2007-08-11 12:37:01 +00:00
parent f3002188d5
commit 1e6eb9e4f6

View file

@ -74,3 +74,10 @@ class Loops(Folder):
prefix = loopsPrefix + '/'
if uri.startswith(prefix):
return traverse(self, uri[len(prefix):])
# backward compatibility for old loops sites that got their Loops object
# directly from loops/__init__.py
import loops
loops.Loops = Loops