Ignore:
Timestamp:
Mar 18, 2010 2:05:00 PM (14 years ago)
Author:
mylan
Message:

#161: Fixed differencis in global ram cache utility registration in plone.memoize.v.1.1a4 (tests breaks in plone4)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.seoptimizer/branches/refactoring2.3.0/quintagroup/seoptimizer/tests/base.py

    r1937 r1938  
    99import transaction 
    1010from zope.component import getUtility 
    11 from zope.app.cache.interfaces.ram import IRAMCache 
     11 
     12# Starting from plone.memoize v1.1a4 (used in plone4), global ram cache 
     13# utility provides other IRAMCache interface, than before 
     14try: 
     15    # In plone4 provides 
     16    from zope.ramcache.interfaces.ram import IRAMCache 
     17except ImportError: 
     18    # In plone3 provides 
     19    from zope.app.cache.interfaces.ram import IRAMCache 
    1220 
    1321from AccessControl.SecurityManagement import newSecurityManager 
Note: See TracChangeset for help on using the changeset viewer.