From 1e6eb9e4f6db0614ff544c7a22fbf9213d6bc3de Mon Sep 17 00:00:00 2001 From: helmutm Date: Sat, 11 Aug 2007 12:37:01 +0000 Subject: [PATCH] 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 --- base.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/base.py b/base.py index efdc99a..febeb27 100644 --- a/base.py +++ b/base.py @@ -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 +