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:
parent
f3002188d5
commit
1e6eb9e4f6
1 changed files with 7 additions and 0 deletions
7
base.py
7
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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue