Changeset 617:e8e4152aa08e
- Timestamp:
- 11/06/12 15:23:07 (12 months ago)
- Branch:
- default
- rebase_source:
- adec3c14096c65e9520d0cb8b53c7efc102c1c09
- File:
-
- 1 edited
-
cyclope/middleware.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cyclope/middleware.py
r584 r617 20 20 # along with this program. If not, see <http://www.gnu.org/licenses/>. 21 21 22 # based on shestera's django-multisite23 # http://github.com/shestera/django-multisite24 25 import cyclope26 import cyclope.settings # Leave this here27 28 22 class LayoutMiddleware(object): 29 23 """Sets session['layout'] if the current menu item has a persistent layout and clears it when another menu_item changes the layout. 30 24 """ 31 25 def process_request(self, request): 26 import cyclope # Leave this here, it prevents circular imports 27 import cyclope.settings # Leave this here 28 32 29 menu_item = cyclope.utils.menu_item_for_request(request) 33 30 if menu_item:
Note: See TracChangeset
for help on using the changeset viewer.

