export bug?

Marc Petitmermet <[email protected]>
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
dear developers

isn't it possible anymore in silva-1.3 to export single documents  
as .xml? i have a silva publication and want to export a silva  
document within it. i go to the publish tab of this specific document  
and click on export. now silva seems to jump up one level and wants  
to export the whole silva publication. but that's not what i want...

the problem is this document: http://www.musizierkreis-see.ch/programm
(hosted by silva-1.3) i wanted to have a copy of this document on my  
powerbook. but copy-pasting its content into kupu gives me a terrible  
unicode error:

Exception Type      UnicodeDecodeError
Exception Value     'ascii' codec can't decode byte 0xc3 in position  
119: ordinal not in range(128)

i figured out that this has something to do with the bulleted list in  
the table. because without the formatting as bulleted list the error  
does not occur.

regards,
marc


Traceback (innermost last):
   Module ZPublisher.Publish, line 101, in publish
   Module ZPublisher.mapply, line 88, in mapply
   Module ZPublisher.Publish, line 39, in call_object
   Module Products.SilvaViews.ViewRegistry, line 156, in index_html
   Module Shared.DC.Scripts.Bindings, line 306, in __call__
   Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
   Module Products.FileSystemSite.FSPageTemplate, line 191, in _exec
   Module Products.FileSystemSite.FSPageTemplate, line 124, in pt_render
   Module Products.PageTemplates.PageTemplate, line 96, in pt_render
    - <FSPageTemplate at /silva/service_views/SilvaDocument/edit/ 
VersionedContent/Document/tab_edit>
   Module TAL.TALInterpreter, line 190, in __call__
   Module TAL.TALInterpreter, line 234, in interpret
   Module TAL.TALInterpreter, line 407, in do_optTag_tal
   Module TAL.TALInterpreter, line 389, in no_tag
   Module TAL.TALInterpreter, line 234, in interpret
   Module TAL.TALInterpreter, line 671, in do_useMacro
   Module TAL.TALInterpreter, line 234, in interpret
   Module TAL.TALInterpreter, line 409, in do_optTag_tal
   Module TAL.TALInterpreter, line 394, in do_optTag
   Module TAL.TALInterpreter, line 389, in no_tag
   Module TAL.TALInterpreter, line 234, in interpret
   Module TAL.TALInterpreter, line 671, in do_useMacro
   Module TAL.TALInterpreter, line 234, in interpret
   Module TAL.TALInterpreter, line 694, in do_defineSlot
   Module TAL.TALInterpreter, line 234, in interpret
   Module TAL.TALInterpreter, line 409, in do_optTag_tal
   Module TAL.TALInterpreter, line 394, in do_optTag
   Module TAL.TALInterpreter, line 389, in no_tag
   Module TAL.TALInterpreter, line 234, in interpret
   Module TAL.TALInterpreter, line 637, in do_condition
   Module TAL.TALInterpreter, line 234, in interpret
   Module TAL.TALInterpreter, line 409, in do_optTag_tal
   Module TAL.TALInterpreter, line 394, in do_optTag
   Module TAL.TALInterpreter, line 389, in no_tag
   Module TAL.TALInterpreter, line 234, in interpret
   Module TAL.TALInterpreter, line 694, in do_defineSlot
   Module TAL.TALInterpreter, line 234, in interpret
   Module TAL.TALInterpreter, line 409, in do_optTag_tal
   Module TAL.TALInterpreter, line 394, in do_optTag
   Module TAL.TALInterpreter, line 389, in no_tag
   Module TAL.TALInterpreter, line 234, in interpret
   Module TAL.TALInterpreter, line 637, in do_condition
   Module TAL.TALInterpreter, line 234, in interpret
   Module TAL.TALInterpreter, line 409, in do_optTag_tal
   Module TAL.TALInterpreter, line 394, in do_optTag
   Module TAL.TALInterpreter, line 389, in no_tag
   Module TAL.TALInterpreter, line 234, in interpret
   Module TAL.TALInterpreter, line 569, in do_insertStructure_tal
   Module Products.PageTemplates.TALES, line 221, in evaluate
    - Line 118, Column 2
    - Expression: standard:'view/edit'
    - Names:
       {'container': <DirectoryViewSurrogate instance at 40be4d0>,
        'context': <DirectoryViewSurrogate instance at 40be4d0>,
        'default': <Products.PageTemplates.TALES.Default instance at  
0x1622558>,
        'here': <DirectoryViewSurrogate instance at 40be4d0>,
        'loop': <SafeMapping instance at 3fe6850>,
        'modules':  
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance  
at 0x1615878>,
        'nothing': None,
        'options': {'args': ()},
        'repeat': <SafeMapping instance at 3fe6850>,
        'request': <HTTPRequest, URL=http://localhost:8080/silva/ 
mukreis/programm/edit/index_html>,
        'root': <Application instance at 2b11bc0>,
        'template': <FSPageTemplate at /silva/service_views/ 
SilvaDocument/edit/VersionedContent/Document/tab_edit>,
        'traverse_subpath': [],
        'user': admin}
   Module Products.PageTemplates.Expressions, line 172, in __call__
   Module Products.PageTemplates.Expressions, line 167, in _eval
   Module Products.PageTemplates.Expressions, line 66, in render
   Module Products.PageTemplates.ZRPythonExpr, line 73, in call_with_ns
   Module Products.FileSystemSite.FSPythonScript, line 99, in  
__render_with_namespace__
   Module Shared.DC.Scripts.Bindings, line 320, in  
__render_with_namespace__
   Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
   Module Products.FileSystemSite.FSPythonScript, line 160, in _exec
   Module None, line 18, in edit
    - <FSPythonScript at /silva/service_views/SilvaDocument/edit/ 
VersionedContent/Document/edit>
    - Line 18
   Module Products.XMLWidgets.EditorService, line 372, in render
    - __traceback_info__: ('service_widgets/top/doc/mode_normal',  
<DirectoryViewSurrogate instance at 4239680>)
   Module Shared.DC.Scripts.Bindings, line 306, in __call__
   Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
   Module Products.FileSystemSite.FSPageTemplate, line 191, in _exec
   Module Products.FileSystemSite.FSPageTemplate, line 124, in pt_render
   Module Products.PageTemplates.PageTemplate, line 96, in pt_render
    - <FSPageTemplate at /silva/service_widgets/top/doc/render used  
for /silva/service_widgets/top/doc/mode_normal>
   Module TAL.TALInterpreter, line 190, in __call__
   Module TAL.TALInterpreter, line 234, in interpret
   Module TAL.TALInterpreter, line 569, in do_insertStructure_tal
   Module Products.PageTemplates.TALES, line 221, in evaluate
    - Line 13, Column 0
    - Expression: <PythonExpr here.service_editor.renderElements 
(request.node)>
    - Names:
       {'container': <DirectoryViewSurrogate instance at 4239230>,
        'context': <DirectoryViewSurrogate instance at 4239680>,
        'default': <Products.PageTemplates.TALES.Default instance at  
0x1622558>,
        'here': <DirectoryViewSurrogate instance at 4239680>,
        'loop': <SafeMapping instance at 3fe6ab0>,
        'modules':  
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance  
at 0x1615878>,
        'nothing': None,
        'options': {'args': ()},
        'repeat': <SafeMapping instance at 3fe6ab0>,
        'request': <HTTPRequest, URL=http://localhost:8080/silva/ 
mukreis/programm/edit/index_html>,
        'root': <Application instance at 2b11bc0>,
        'template': <FSPageTemplate at /silva/service_widgets/top/doc/ 
render used for /silva/service_widgets/top/doc/mode_normal>,
        'traverse_subpath': [],
        'user': admin}
   Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
    - __traceback_info__: here.service_editor.renderElements 
(request.node)
   Module Python expression "here.service_editor.renderElements 
(request.node)", line 1, in <expression>
   Module Products.XMLWidgets.EditorService, line 395, in renderElements
   Module Products.XMLWidgets.EditorService, line 372, in render
    - __traceback_info__: ('service_widgets/element/doc_elements/ 
table/mode_normal', <DirectoryViewSurrogate instance at 423db30>)
   Module Shared.DC.Scripts.Bindings, line 306, in __call__
   Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
   Module Products.FileSystemSite.FSPageTemplate, line 191, in _exec
   Module Products.FileSystemSite.FSPageTemplate, line 124, in pt_render
   Module Products.PageTemplates.PageTemplate, line 96, in pt_render
    - <FSPageTemplate at /silva/service_widgets/element/doc_elements/ 
table/render used for /silva/service_widgets/element/doc_elements/ 
table/mode_normal>
   Module TAL.TALInterpreter, line 190, in __call__
   Module TAL.TALInterpreter, line 234, in interpret
   Module TAL.TALInterpreter, line 671, in do_useMacro
   Module TAL.TALInterpreter, line 234, in interpret
   Module TAL.TALInterpreter, line 407, in do_optTag_tal
   Module TAL.TALInterpreter, line 389, in no_tag
   Module TAL.TALInterpreter, line 234, in interpret
   Module TAL.TALInterpreter, line 694, in do_defineSlot
   Module TAL.TALInterpreter, line 234, in interpret
   Module TAL.TALInterpreter, line 407, in do_optTag_tal
   Module TAL.TALInterpreter, line 389, in no_tag
   Module TAL.TALInterpreter, line 234, in interpret
   Module TAL.TALInterpreter, line 569, in do_insertStructure_tal
   Module Products.PageTemplates.TALES, line 221, in evaluate
    - Line 3, Column 0
    - Expression: standard:'here/content'
    - Names:
       {'container': <DirectoryViewSurrogate instance at 423db00>,
        'context': <DirectoryViewSurrogate instance at 423db30>,
        'default': <Products.PageTemplates.TALES.Default instance at  
0x1622558>,
        'here': <DirectoryViewSurrogate instance at 423db30>,
        'loop': <SafeMapping instance at 3fe6ca0>,
        'modules':  
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance  
at 0x1615878>,
        'nothing': None,
        'options': {'args': ()},
        'repeat': <SafeMapping instance at 3fe6ca0>,
        'request': <HTTPRequest, URL=http://localhost:8080/silva/ 
mukreis/programm/edit/index_html>,
        'root': <Application instance at 2b11bc0>,
        'template': <FSPageTemplate at /silva/service_widgets/element/ 
doc_elements/table/render used for /silva/service_widgets/element/ 
doc_elements/table/mode_normal>,
        'traverse_subpath': [],
        'user': admin}
   Module Products.PageTemplates.Expressions, line 172, in __call__
   Module Products.PageTemplates.Expressions, line 167, in _eval
   Module Products.PageTemplates.Expressions, line 66, in render
   Module Products.PageTemplates.ZRPythonExpr, line 73, in call_with_ns
   Module Products.FileSystemSite.FSPythonScript, line 99, in  
__render_with_namespace__
   Module Shared.DC.Scripts.Bindings, line 320, in  
__render_with_namespace__
   Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
   Module Products.FileSystemSite.FSPythonScript, line 160, in _exec
   Module None, line 2, in content
    - <FSPythonScript at /silva/service_widgets/element/doc_elements/ 
table/content used for /silva/service_widgets/element/doc_elements/ 
table/mode_normal>
    - Line 2
   Module Products.XMLWidgets.EditorService, line 328, in renderView
   Module Products.FileSystemSite.FSPythonScript, line 104, in __call__
   Module Shared.DC.Scripts.Bindings, line 306, in __call__
   Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
   Module Products.FileSystemSite.FSPythonScript, line 160, in _exec
   Module None, line 47, in render
    - <FSPythonScript at /silva/service_widgets/top/table/mode_view/ 
render>
    - Line 47
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position  
119: ordinal not in range(128)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.