|
PrimaryFieldMarshaller doesn't work?: msg#00080web.zope.plone.archetypes.devel
I tested PrimaryFieldMarshaller just now. And found it doesn't work with the new TransformsTool. I found following lines are commented in Marshall.py: #XXX no transform tool #else: # ## Use instance to get the transform tool # transformer = getToolByName(instance, 'transform_tool') # content_type = str(transformer.classify(data)) # length = len(data) And I tried to change it to: else: ## Use instance to get the transform tool from Products.CMFCore.utils import getToolByName transformer = getToolByName(instance, 'portal_transforms') content_type = str(transformer.classify(data)) length = len(data) It still doesn't work :-( Anyone tried this? ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | transforms tool: 00080, Sylvain Thénault |
|---|---|
| Next by Date: | Re: PrimaryFieldMarshaller doesn't work?: 00080, Sylvain Thénault |
| Previous by Thread: | transforms tooli: 00080, Sylvain Thénault |
| Next by Thread: | Re: PrimaryFieldMarshaller doesn't work?: 00080, Sylvain Thénault |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |