Commit 5c88edaf authored by Nicolas Dumazet's avatar Nicolas Dumazet

naming convention: dynamic instead of Dynamic for module


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39426 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f48536a1
...@@ -29,7 +29,7 @@ from Products.ERP5Type.ERP5Type import ERP5TypeInformation ...@@ -29,7 +29,7 @@ from Products.ERP5Type.ERP5Type import ERP5TypeInformation
from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod
from zLOG import LOG, WARNING, PANIC from zLOG import LOG, WARNING, PANIC
from Products.ERP5Type.interfaces import ITypeProvider, ITypesTool from Products.ERP5Type.interfaces import ITypeProvider, ITypesTool
from Products.ERP5Type.Dynamic.portaltypeclass import synchronizeDynamicModules from Products.ERP5Type.dynamic.portaltypeclass import synchronizeDynamicModules
class ComposedObjectIds(object): class ComposedObjectIds(object):
......
...@@ -967,7 +967,7 @@ def importLocalDocument(class_id, document_path = None): ...@@ -967,7 +967,7 @@ def importLocalDocument(class_id, document_path = None):
return MigrateMe return MigrateMe
else: else:
return klass return klass
from Dynamic.dynamicmodule import newDynamicModule from dynamic.dynamicmodule import newDynamicModule
document_module = newDynamicModule(module_name, migrate_me_document_loader) document_module = newDynamicModule(module_name, migrate_me_document_loader)
setattr(Products.ERP5Type.Document, class_id, document_module) setattr(Products.ERP5Type.Document, class_id, document_module)
......
...@@ -99,7 +99,7 @@ def initialize( context ): ...@@ -99,7 +99,7 @@ def initialize( context ):
content_constructors = content_constructors, content_constructors = content_constructors,
content_classes = content_classes) content_classes = content_classes)
from Dynamic import portaltypeclass from dynamic import portaltypeclass
portaltypeclass.initializeDynamicModules() portaltypeclass.initializeDynamicModules()
# Register our Workflow factories directly (if on CMF 2) # Register our Workflow factories directly (if on CMF 2)
......
...@@ -80,7 +80,7 @@ def _fillAccessorHolderList(accessor_holder_list, ...@@ -80,7 +80,7 @@ def _fillAccessorHolderList(accessor_holder_list,
except AttributeError: except AttributeError:
# Not too critical # Not too critical
LOG("ERP5Type.Dynamic", ERROR, LOG("ERP5Type.dynamic", ERROR,
"Ignoring missing Property Sheet " + property_sheet_name) "Ignoring missing Property Sheet " + property_sheet_name)
else: else:
...@@ -89,7 +89,7 @@ def _fillAccessorHolderList(accessor_holder_list, ...@@ -89,7 +89,7 @@ def _fillAccessorHolderList(accessor_holder_list,
accessor_holder_list.append(accessor_holder_class) accessor_holder_list.append(accessor_holder_class)
LOG("ERP5Type.Dynamic", INFO, LOG("ERP5Type.dynamic", INFO,
"Created accessor holder for %s in %s" % (property_sheet_name, "Created accessor holder for %s in %s" % (property_sheet_name,
accessor_holder_module)) accessor_holder_module))
...@@ -100,7 +100,7 @@ def portalTypeFactory(portal_type_name): ...@@ -100,7 +100,7 @@ def portalTypeFactory(portal_type_name):
and computes __bases__ and __dict__ for the class that will and computes __bases__ and __dict__ for the class that will
be created to represent this portal type be created to represent this portal type
""" """
#LOG("ERP5Type.Dynamic", 0, "Loading portal type %s..." % portal_type_name) #LOG("ERP5Type.dynamic", 0, "Loading portal type %s..." % portal_type_name)
mixin_list = [] mixin_list = []
interface_list = [] interface_list = []
...@@ -128,7 +128,7 @@ def portalTypeFactory(portal_type_name): ...@@ -128,7 +128,7 @@ def portalTypeFactory(portal_type_name):
interface_list = portal_type.getTypeInterfaceList() interface_list = portal_type.getTypeInterfaceList()
except StandardError: except StandardError:
# log loudly the error, but it's not _critical_ # log loudly the error, but it's not _critical_
LOG("ERP5Type.Dynamic", ERROR, LOG("ERP5Type.dynamic", ERROR,
"Could not load interfaces or Mixins for portal type %s" \ "Could not load interfaces or Mixins for portal type %s" \
% portal_type_name) % portal_type_name)
...@@ -173,7 +173,7 @@ def portalTypeFactory(portal_type_name): ...@@ -173,7 +173,7 @@ def portalTypeFactory(portal_type_name):
# erp5.filesystem_accessor_holder, # erp5.filesystem_accessor_holder,
# FilesystemPropertySheet) # FilesystemPropertySheet)
# LOG("ERP5Type.Dynamic", INFO, # LOG("ERP5Type.dynamic", INFO,
# "%s: accessor_holder_list: %s" % (portal_type_name, # "%s: accessor_holder_list: %s" % (portal_type_name,
# accessor_holder_list)) # accessor_holder_list))
...@@ -184,7 +184,7 @@ def portalTypeFactory(portal_type_name): ...@@ -184,7 +184,7 @@ def portalTypeFactory(portal_type_name):
baseclasses = [klass] + accessor_holder_list + mixin_class_list baseclasses = [klass] + accessor_holder_list + mixin_class_list
#LOG("ERP5Type.Dynamic", INFO, #LOG("ERP5Type.dynamic", INFO,
# "Portal type %s loaded with bases %s" \ # "Portal type %s loaded with bases %s" \
# % (portal_type_name, repr(baseclasses))) # % (portal_type_name, repr(baseclasses)))
...@@ -303,7 +303,7 @@ def synchronizeDynamicModules(context, force=False): ...@@ -303,7 +303,7 @@ def synchronizeDynamicModules(context, force=False):
return return
last_sync = cookie last_sync = cookie
LOG("ERP5Type.Dynamic", 0, "Resetting dynamic classes") LOG("ERP5Type.dynamic", 0, "Resetting dynamic classes")
import erp5 import erp5
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment