Changeset 617:e8e4152aa08e


Ignore:
Timestamp:
11/06/12 15:23:07 (12 months ago)
Author:
Santiago Piccinini (SAn) <spiccinini@…>
Branch:
default
rebase_source:
adec3c14096c65e9520d0cb8b53c7efc102c1c09
Message:

Fixed circular imports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cyclope/middleware.py

    r584 r617  
    2020# along with this program.  If not, see <http://www.gnu.org/licenses/>. 
    2121 
    22 # based on  shestera's django-multisite 
    23 # http://github.com/shestera/django-multisite 
    24  
    25 import cyclope 
    26 import cyclope.settings # Leave this here 
    27  
    2822class LayoutMiddleware(object): 
    2923    """Sets session['layout'] if the current menu item has a persistent layout and clears it when another menu_item changes the layout. 
    3024    """ 
    3125    def process_request(self, request): 
     26        import cyclope # Leave this here, it prevents circular imports 
     27        import cyclope.settings # Leave this here 
     28 
    3229        menu_item = cyclope.utils.menu_item_for_request(request) 
    3330        if menu_item: 
Note: See TracChangeset for help on using the changeset viewer.