logo       

PrimaryFieldMarshaller doesn't work?: msg#00080

web.zope.plone.archetypes.devel

Subject: PrimaryFieldMarshaller doesn't work?

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>
Google Custom Search

News | FAQ | advertise