I started playing with CPS to migrate my old Zope/DTML/Zclass site and finally
extend it.

A simple compound document is one of the first things I would need.
(content with several optional parts, and possibly rich editing)

TypeMaker seems to be ideal for this. However, when I try to add a type with
the Rich Text Editor Widget, I keep getting an error just selecting the type.

The ajaxy interface in the plain web document works fine, I suppose this is the 
same widget, as the FCKEditor is appearing in the traceback.

I am running pristine CPS 3.4 from apt-get on a fresh Ubuntu Dapper install.

I might be completely off track as the whole system is daunting to get a start
with.  I include the traceback, in case...

The missing key, base_url seems to suggest that the fix is simple, but I have 
no idea where to start.

Thanks,

 Gabor



Traceback (innermost last):
  Module ZPublisher.Publish, line 115, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 41, 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_create_form used for /cps/workspaces>
  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_create_form.pt
   - Line 1, Column 0
   - Expression: <PythonExpr here.cpsdocument_create_render(request=request,    
                                                     type_name=type_name)>
   - Names:
      {'container': <CPSDefaultSite at /cps>,
       'context': <ProxyFolder at /cps/workspaces>,
       'default': <Products.PageTemplates.TALES.Default instance at 0xb71cab0c>,
       'here': <ProxyFolder at /cps/workspaces>,
       'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xb356f12c>,
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter 
instance at 0xb71f80ac>,
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.TALES.SafeMapping object at 
0xb356f12c>,
       'request': <HTTPRequest, 
URL=http://xxx.xxx.xxx.xxx:8082/cps/workspaces/cpsdocument_create_form>,
       'root': <Application at >,
       'template': <FSPageTemplate at /cps/cpsdocument_create_form used for 
/cps/workspaces>,
       'traverse_subpath': [],
       'user': <CPSUser admin>}
  Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
   - __traceback_info__: here.cpsdocument_create_render(request=request,        
                                                 type_name=type_name)
  Module Python expression "here.cpsdocument_create_render(request=request,     
                                                    type_name=type_name)", 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 15, in cpsdocument_create_render
   - <FSPythonScript at /cps/cpsdocument_create_render used for /cps/workspaces>
   - Line 15
  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_szarez_1/w__fead>
  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_szarez_1/w__fead>,
       'default': <Products.PageTemplates.TALES.Default instance at 0xb71cab0c>,
       'here': <CPSRichTextEditorWidget at 
/cps/portal_layouts/simpletype_szarez_1/w__fead>,
       'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xb2685fec>,
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter 
instance at 0xb71f80ac>,
       'nothing': None,
       'options': {'args': (),
                   'current_name': '-',
                   'datastructure': {'Description_rformat': 'text', 
'Description': '', 'Title': '', 'fead': '', 'Description_fileupload': None, 
'Description_rposition': 'normal'},
                   'mode': 'edit'},
       'repeat': <Products.PageTemplates.TALES.SafeMapping object at 
0xb2685fec>,
       'request': <HTTPRequest, 
URL=http://be.chem.elte.hu:8082/cps/workspaces/cpsdocument_create_form>,
       'root': <Application at >,
       'template': <FSPageTemplate at /cps/widget_rte_render used for 
/cps/portal_layouts/simpletype_szarez_1/w__fead>,
       'traverse_subpath': [],
       'user': <CPSUser admin>}
  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'
_______________________________________________
cps-users mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/cps-users

Reply via email to