[Erp5-report] r27283 - in /erp5/trunk/products/ERP5Type: ./ CachePlugins/ Constraint/

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jun 1 11:39:17 CEST 2009


Author: kazuhiko
Date: Mon Jun  1 11:39:17 2009
New Revision: 27283

URL: http://svn.erp5.org?rev=27283&view=rev
Log:
interfaces directory now follows zope naming convention.

Modified:
    erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py
    erp5/trunk/products/ERP5Type/CachePlugins/RamCache.py
    erp5/trunk/products/ERP5Type/CachePlugins/SQLCache.py
    erp5/trunk/products/ERP5Type/CachePlugins/ZODBCache.py
    erp5/trunk/products/ERP5Type/Constraint/Constraint.py
    erp5/trunk/products/ERP5Type/Utils.py

Modified: erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py?rev=27283&r1=27282&r2=27283&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/CachePlugins/DistributedRamCache.py [utf8] Mon Jun  1 11:39:17 2009
@@ -34,7 +34,7 @@
 from zLOG import LOG
 from BaseCache import BaseCache
 from BaseCache import CacheEntry
-from Products.ERP5Type import Interface
+from Products.ERP5Type import interfaces
 import zope.interface
 
 try:
@@ -50,7 +50,7 @@
   """ Memcached based cache plugin. """
 
   zope.interface.implements(
-        Interface.ICachePlugin
+        interfaces.ICachePlugin
     )
 
   def __init__(self, params={}):

Modified: erp5/trunk/products/ERP5Type/CachePlugins/RamCache.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/CachePlugins/RamCache.py?rev=27283&r1=27282&r2=27283&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CachePlugins/RamCache.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/CachePlugins/RamCache.py [utf8] Mon Jun  1 11:39:17 2009
@@ -33,7 +33,7 @@
 
 import time
 from BaseCache import BaseCache, CacheEntry
-from Products.ERP5Type import Interface
+from Products.ERP5Type import interfaces
 import zope.interface
 
 def calcPythonObjectMemorySize(i):
@@ -53,7 +53,7 @@
   """ RAM based cache plugin."""
 
   zope.interface.implements(
-        Interface.ICachePlugin
+        interfaces.ICachePlugin
     )
 
   _cache_dict = {}

Modified: erp5/trunk/products/ERP5Type/CachePlugins/SQLCache.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/CachePlugins/SQLCache.py?rev=27283&r1=27282&r2=27283&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CachePlugins/SQLCache.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/CachePlugins/SQLCache.py [utf8] Mon Jun  1 11:39:17 2009
@@ -36,7 +36,7 @@
 import base64
 from zLOG import LOG
 from BaseCache import BaseCache, CacheEntry, CachedMethodError
-from Products.ERP5Type import Interface
+from Products.ERP5Type import interfaces
 import zope.interface
 
 try:
@@ -63,7 +63,7 @@
   """ SQL based cache plugin. """
 
   zope.interface.implements(
-        Interface.ICachePlugin
+        interfaces.ICachePlugin
     )
 
   cache_expire_check_interval = 3600

Modified: erp5/trunk/products/ERP5Type/CachePlugins/ZODBCache.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/CachePlugins/ZODBCache.py?rev=27283&r1=27282&r2=27283&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CachePlugins/ZODBCache.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/CachePlugins/ZODBCache.py [utf8] Mon Jun  1 11:39:17 2009
@@ -33,7 +33,7 @@
 import time
 from BaseCache import BaseCache, CacheEntry
 from BTrees.OOBTree import OOBTree
-from Products.ERP5Type import Interface
+from Products.ERP5Type import interfaces
 import zope.interface
 
 PRIVATE_ATTRIBUTE_ZODB_CACHE_NAME = '_zodb_cache'
@@ -42,7 +42,7 @@
   """ ZODB based cache plugin."""
 
   zope.interface.implements(
-        Interface.ICachePlugin
+        interfaces.ICachePlugin
     )
 
   cache_tool = None

Modified: erp5/trunk/products/ERP5Type/Constraint/Constraint.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Constraint/Constraint.py?rev=27283&r1=27282&r2=27283&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Constraint/Constraint.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Constraint/Constraint.py [utf8] Mon Jun  1 11:39:17 2009
@@ -29,7 +29,7 @@
 ##############################################################################
 
 from Products.CMFCore.Expression import Expression
-from Products.ERP5Type.Interface import Constraint as IConstraint
+from Products.ERP5Type.interfaces import IConstraint
 from Products.ERP5Type.ConsistencyMessage import ConsistencyMessage
 
 class Constraint:

Modified: erp5/trunk/products/ERP5Type/Utils.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Utils.py?rev=27283&r1=27282&r2=27283&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Utils.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Utils.py [utf8] Mon Jun  1 11:39:17 2009
@@ -524,7 +524,6 @@
     base_category_dict[bc] = 1
 
 def importLocalInterface(module_id, path = None):
-  import Products.ERP5Type.Interface
   if path is None:
     instance_home = getConfiguration().instancehome
     path = os.path.join(instance_home, "interfaces")




More information about the Erp5-report mailing list