Hi,

I'm using this add-on on a Plone3 project. I'm trying a migration to Plone4.

I'have already fix some broken imports. Now i'm stuck on a removed BBB on
Products.Archetypes: _guessPackage

I have not well understood what has to be done to replace this call. Can
someone help me ?

At the moment I have just removed the call (not commited):

--- Products.CompoundField/Products/CompoundField/EnhancedArrayWidget.py       
(révision 12601)
+++ Products.CompoundField/Products/CompoundField/EnhancedArrayWidget.py       
(copie de travail)
@@ -27,7 +27,7 @@
 from Products.CompoundField import config
 
 ##code-section module-header #fill in your manual code here
-from Products.Archetypes.ArchetypeTool import _guessPackage
+#from Products.Archetypes.ArchetypeTool import _guessPackage
 from Products.Archetypes.ArchetypeTool import WidgetWrapper
 from Products.CompoundField import config
 from Products.CompoundField.utils import *
@@ -78,7 +78,7 @@
         """
         # The following code is adapted from getWidgets in ArchetypeTool
         atool = getToolByName(context, 'archetype_tool')
-        package = _guessPackage(context.__module__)
+        package = None #_guessPackage(context.__module__)
         type = context.portal_type
 
         # create a false instance 

-----
Jean-Michel François aka toutpt
http://toutpt.wordpress.com
http://twitter.com/toutpt

-- 
View this message in context: 
http://plone.293351.n2.nabble.com/Archetypes-Products-CompoundField-broken-on-Plone4-tp5164033p5164033.html
Sent from the Product Developers mailing list archive at Nabble.com.
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to