[CPS-devel] Type maker error

lopez adrian seternal at gmail.com
Fri Apr 14 11:55:38 CEST 2006


Hello,
i create un type of document that include a "Rich Text Editor Widget".
When i create a document of this type i got this error:

 Error Type: KeyError  Error Value:

'base_url'

 Traceback:

Traceback (innermost last):



   -   Module ZPublisher.Publish, line 113, in publish

   -   Module ZPublisher.mapply, line 88, in mapply

   -   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 195, in _exec

   -   Module Products.CMFCore.FSPageTemplate, line 134, in pt_render

   -   Module Products.PageTemplates.PageTemplate, line 104, in pt_render

   *<FSPageTemplate at /cps/cpsdocument_edit_form used for
/cps/workspaces/repertoire-admin/lollololol>*

   -   Module TAL.TALInterpreter, line 238, in __call__

   -   Module TAL.TALInterpreter, line 281, in interpret

   -   Module TAL.TALInterpreter, line 507, 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.cpsdocument_edit_render(request=request)>*

   *Names:*

   {'container': <CPSDefaultSite at /cps>,
    'context': <ProxyDocument at /cps/workspaces/repertoire-admin/lollololol>,
    'default': <Products.PageTemplates.TALES.Default instance at 0x014C7CD8>,
    'here': <ProxyDocument at /cps/workspaces/repertoire-admin/lollololol>,
    'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x05E873A0>,
    'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x014BC288>,
    'nothing': None,
    'options': {'args': ()},
    'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0x05E873A0>,
    'request': <HTTPRequest,
URL=http://albator/cps/workspaces/repertoire-admin/lollololol/cpsdocument_edit_form>,
    'root': <Application at >,
    'template': <FSPageTemplate at /cps/cpsdocument_edit_form used for
/cps/workspaces/repertoire-admin/lollololol>,
    'traverse_subpath': [],
    'user': <User 'seternal'>}



   - Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__

   __traceback_info__: here.cpsdocument_edit_render(request=request)

   - Module Python expression "here.cpsdocument_edit_render(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 164, in _exec

   - Module None, line 13, in cpsdocument_edit_render

   *<FSPythonScript at /cps/cpsdocument_edit_render used for
   /cps/workspaces/repertoire-admin/lollololol>*

   *Line 13*

   - Module Products.CPSDocument.CPSDocument, line 68, in render

   - Module Products.CPSDocument.FlexibleTypeInformation, line 752, in
   renderObject

   - Module Products.CPSDocument.FlexibleTypeInformation, line 714, in
   _renderLayouts

   - Module Products.CPSSchemas.Layout, line 391, in
   renderLayoutStructure

   - Module Products.CPSSchemas.ExtendedWidgets, line 579, in render

   - Module Shared.DC.Scripts.Bindings, line 311, in __call__

   - Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec

   - Module Products.CMFCore.FSPageTemplate, line 195, in _exec

   - Module Products.CMFCore.FSPageTemplate, line 134, in pt_render

   - Module Products.PageTemplates.PageTemplate, line 104, in pt_render

   *<FSPageTemplate at /cps/widget_rte_render used for
   /cps/portal_layouts/simpletype_projet_1/w__ki>*

   - Module TAL.TALInterpreter, line 238, in __call__

   - Module TAL.TALInterpreter, line 281, in interpret

   - Module TAL.TALInterpreter, line 457, in do_optTag_tal

   - Module TAL.TALInterpreter, line 442, in do_optTag

   - Module TAL.TALInterpreter, line 437, in no_tag

   - Module TAL.TALInterpreter, line 281, in interpret

   - Module TAL.TALInterpreter, line 715, in do_condition

   - Module TAL.TALInterpreter, line 281, in interpret

   - Module TAL.TALInterpreter, line 457, in do_optTag_tal

   - Module TAL.TALInterpreter, line 442, in do_optTag

   - Module TAL.TALInterpreter, line 437, in no_tag

   - Module TAL.TALInterpreter, line 281, in interpret

   - Module TAL.TALInterpreter, line 339, in do_startTag

   - Module TAL.TALInterpreter, line 405, in attrAction_tal

   - Module Products.PageTemplates.TALES, line 227, in evaluateText

   - Module Products.PageTemplates.TALES, line 221, in evaluate

   *URL: file:CPSSchemas/skins/cps_schemas/widget_rte_render.pt*

   *Line 8, Column 4*

   *Expression: string:'${base_url}fckeditor.js'*

   *Names:*

   {'container': <CPSDefaultSite at /cps>,
    'context': <CPSRichTextEditorWidget at
/cps/portal_layouts/simpletype_projet_1/w__ki>,
    'default': <Products.PageTemplates.TALES.Default instance at 0x014C7CD8>,
    'here': <CPSRichTextEditorWidget at
/cps/portal_layouts/simpletype_projet_1/w__ki>,
    'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x062C32B0>,
    'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x014BC288>,
    'nothing': None,
    'options': {'args': (),
                'current_name': '-',
                'datastructure': {'Description_rformat': 'text',
'Sources_preview': None, 'Description': '', 'Technos': 'The Monitoring
& Control subsystem main objective is to provide the control center
operators with the services allowing them to verify the correct
functioning of the XXX on-board equipments, and to operate the XXX.
\r\n\r\nThis project consists in developing the components necessary
to fulfill these requirements, i.e. :\r\n\r\n&#8226;\tXXX monitoring
:\r\n&#61692;\tTelemetry processing (including derived
parameters)\r\n&#61692;\tOn-board monitoring\r\n&#61692;\tTelemetry
and monitoring data visualisation\r\n&#61692;\tData
analysis\r\n&#61692;\tData distribution to external
sub-systems\r\n\r\n&#8226;\tXXX control :\r\n&#61692;\tTelecommand
processing (TC definition and preparation, Onboard Mission Plans
preparation, TC stack management)\r\n&#61692;\tOperations
verification\r\n&#8226;\tReal time data flow
management\r\n&#8226;\tData management :\r\n&#61692;\tMission and
Operational Data Bases management\r\n&#61692;\tData storage and
archiving\r\n\r\n\r\nXXX is responsible for a pre-study phase aimed at
realising the system software specifications (in collaboration with
ASTRIUM), and for developing, testing and validating all the
components of the subsystem', 'Title': 'lollololol',
'Logo-projet_filename': 'collab.png', 'Descriptif': 'The mission of
the XXX  is to furnish different logistic services to the ISS
(International Space Station). The first launch of the XXX is planned
in 2004. In the framework of the XXX, the XXX is in charge of the
realisation and exploitation of the XXX control centre, inside which
the Monitoring & Control subsystem has a central functional role.\r\nA
particularity of this project is that it involves different
international partners (the Space Station Control Centre at Houston
and the Mission Control Centre at Moscow) and multiple interfaces for
the onboard-ground segment communications.', 'Logo-projet':
<ZPublisher.HTTPRequest.FileUpload instance at 0x05EAEDA0>,
'Logo-Client': <ZPublisher.HTTPRequest.FileUpload instance at
0x05EAE7D8>, 'Description_fileupload': None, 'Sources':
<ZPublisher.HTTPRequest.FileUpload instance at 0x05EAEFD0>,
'Sources_choice': '', 'Nom-projet': 'XXX-CC Monitoring & Control',
'Logo-projet_choice': '', 'Logo-Client_choice': '',
'Sources_filename': 'uk_-_XXX.doc', 'Description_rposition': 'normal',
'ki': '', 'Logo-Client_filename': 'collab.png'},
                'mode': 'edit'},
    'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0x062C32B0>,
    'request': <HTTPRequest,
URL=http://albator/cps/workspaces/repertoire-admin/lollololol/cpsdocument_edit_form>,
    'root': <Application at >,
    'template': <FSPageTemplate at /cps/widget_rte_render used for
/cps/portal_layouts/simpletype_projet_1/w__ki>,
    'traverse_subpath': [],
    'user': <User 'seternal'>}



   - Module Products.PageTemplates.Expressions, line 224, in __call__

   - Module Products.PageTemplates.Expressions, line 185, in __call__

   - Module Products.PageTemplates.Expressions, line 173, in _eval

   - Module Products.PageTemplates.Expressions, line 123, in _eval

   __traceback_info__: base_url


KeyError: 'base_url'


What the problem? he dont find the rich text editor?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nuxeo.com/pipermail/cps-devel/attachments/20060414/f3e9d959/attachment.htm


More information about the cps-devel mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider


This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.