Ignore:
Timestamp:
11 Mar 2010, 13:25:41 (15 years ago)
Author:
uli
Message:
  • BBB imports for older groktoolkit.
  • Reorder imports (PEP 8)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/app.py

    r5016 r5054  
    22import logging
    33import os
    4 from zope.app.authentication.authentication import PluggableAuthentication
    5 from zope.app.security.interfaces import IAuthentication
     4try:
     5    from zope.authentication.interfaces import IAuthentication
     6except:
     7    # BBB
     8    from zope.app.security.interfaces import IAuthentication
    69from zope.component import createObject, getAllUtilitiesRegisteredFor
     10try:
     11    from zope.pluggableauth import PluggableAuthentication
     12except ImportError:
     13    # BBB
     14    from zope.app.authentication.authentication import PluggableAuthentication
    715
     16from waeup.sirp.authentication import setup_authentication
     17from waeup.sirp.datacenter import DataCenter
    818from waeup.sirp.interfaces import (
    919    IUniversity, IDataCenter, IWAeUPSIRPPluggable,
    1020    IDataCenterStorageMovedEvent)
    11 from waeup.sirp.authentication import setup_authentication
    12 from waeup.sirp.datacenter import DataCenter
    1321from waeup.sirp.users import UserContainer
    1422
     
    2129    grok.local_utility(
    2230        PluggableAuthentication, provides = IAuthentication,
    23         setup = setup_authentication)
    24 
     31        setup = setup_authentication,)
     32   
    2533    @property
    2634    def logger(self):
Note: See TracChangeset for help on using the changeset viewer.