Thanks Florent for the reply,
I'll try CPS 3.4.0 later, because i need to upgrade python and zope. Mean while i'll stick with CPS 3.3.5 I just realize that ooo_to_html transformation is not working. Because the preview link is not showing, and when i click Export DocBook XML link its come up with zip files but the xml file inside it is empty, just None text inside the xml file.

What is the problem? how to make CPSOOo work? does anyone have a clue?
My CPS is installed on linux Debian Woody.

Best,
Adi

<http://10.1.16.16:8088/web/workspaces/huh-ooo/exportXmlDocbook>Florent Guillaume wrote:
Yes it's also fixed for CPS 3.4.0, you won't get that error even if some mime types are missing from the mimetypes tool.

Florent

On 22 Feb 2006, at 10:58, Adi Setyono wrote:

Its been fixed.
After trying more than two hours to find out what is missing and almost frustrated, i come back to ZMI and i have enlightenment when i click mimetypes_registry, i found there is error with message like "MimeTypeException: Malformed MIME type (<Products.PortalTransforms.mime_types..." then i check to portal_quickinstaller that i found MimetypesRegistry product was not installed. After MimetypesRegistry product is istalled the error is gone and i can create OOo DocBook Document content type.

Huh.....i must create a log for this kind of **error, in case its happen again in the future.

Sorry for this  inconvenience,


Adi Setyono wrote:
Hi,

I got this error when upload OOo file (*.sxw)

Traceback (innermost last)

   * Module ZPublisher.Publish, line 40, in call_object
   * Module Shared.DC.Scripts.Bindings, line 311, in __call__
   * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
   * Module Products.CMFCore.FSPageTemplate, line 188, in _exec
   * Module Products.CMFCore.FSPageTemplate, line 127, in pt_render
   * Module Products.PageTemplates.PageTemplate, line 102, in pt_render
     *<FSPageTemplate at /www/cpsdocument_edit_form used for
     /www/workspaces/temp/test-ooo>*
   * Module TAL.TALInterpreter, line 190, in __call__
   * Module TAL.TALInterpreter, line 234, in interpret
   * Module TAL.TALInterpreter, line 460, in do_setLocal_tal
   * Module Products.PageTemplates.TALES, line 221, in evaluate *URL:
     file:CPSDocument/skins/cps_document/cpsdocument_edit_form.pt*
     *Line 1, Column 0* *Expression: <PythonExpr
     here.editCPSDocument(REQUEST=request)>* *Names:*

{'container': <Products.CPSDefault.Portal.CPSDefaultSite object at 0x41925eac>,
      'context': <ProxyDocument at /www/workspaces/temp/test-ooo>,
'default': <Products.PageTemplates.TALES.Default instance at 0x4096aeac>,
      'here': <ProxyDocument at /www/workspaces/temp/test-ooo>,
'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x4283f78c>, 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x409700ec>,
      'nothing': None,
      'options': {'args': ()},
'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0x4283f78c>, 'request': <HTTPRequest, URL=http://portal.ict4pr.org/workspaces/temp/test-ooo/cpsdocument_edit_form>,
      'root': <OFS.Application.Application object at 0x41925e2c>,
'template': <FSPageTemplate at /www/cpsdocument_edit_form used for /www/workspaces/temp/test-ooo>,
      'traverse_subpath': [],
      'user': admin}

   * Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
     __traceback_info__: here.editCPSDocument(REQUEST=request)
   * Module Python expression "here.editCPSDocument(REQUEST=request)",
     line 1, in <expression>
   * Module Products.CMFCore.FSPythonScript, line 108, in __call__
   * Module Shared.DC.Scripts.Bindings, line 311, in __call__
   * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
   * Module Products.CMFCore.FSPythonScript, line 163, in _exec
   * Module None, line 24, in editCPSDocument *<FSPythonScript at
     /www/editCPSDocument used for /www/workspaces/temp/test-ooo>*
     *Line 24*
   * Module Products.CPSDocument.CPSDocument, line 83, in
     renderEditDetailed
   * Module Products.CPSDocument.FlexibleTypeInformation, line 921, in
     renderEditObjectDetailed
   * Module Products.CPSDocument.FlexibleTypeInformation, line 689, in
     _validateLayoutStructures
   * Module Products.CPSSchemas.Layout, line 334, in
     validateLayoutStructure
   * Module Products.CPSSchemas.ExtendedWidgets, line 481, in validate
   * Module OFS.Uninstalled, line 46, in __getattr__

AttributeError: normalized

======================================

This error was happen when i create OpenOffice.org DocBook Document conten type. I also try to upload the files using File content type, all ended with the same error message. There's no problem with MsWord and PDF file, the file is upload successfully and all the transformation is working well. The problem is only with OpenOffice.org files. I'm using CPS 3.3.5 with zope 2.8.0 and python 2.4. PyXML and wvWare also build dan installed.

do i missing something here?

thanks in advance,

adi




_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel





_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

--Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]







_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to