|
Re: PrimaryFieldMarshaller doesn't work?: msg#00081web.zope.plone.archetypes.devel
On Wednesday 18 June à 23:25, ??????\(panjunyong\) wrote: > 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 :-( could you tell us more about your problem ? At which step does your problem occurs ? Some context information and a traceback may really help us finding the problem... -- Sylvain Thénault LOGILAB, Paris (France). http://www.logilab.com http://www.logilab.fr http://www.logilab.org ------------------------------------------------------- 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: | PrimaryFieldMarshaller doesn't work?: 00081, 潘俊勇\(panjunyong\) |
|---|---|
| Next by Date: | Re: PrimaryFieldMarshaller doesn't work?: 00081, 潘俊勇\(panjunyong\) |
| Previous by Thread: | PrimaryFieldMarshaller doesn't work?i: 00081, 潘俊勇\(panjunyong\) |
| Next by Thread: | Re: PrimaryFieldMarshaller doesn't work?: 00081, 潘俊勇\(panjunyong\) |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |