[Zope] New Plone site error

Allen Schmidt aschmidt at fredericksburg.com
Wed Jul 14 20:54:07 EDT 2004


I added a new Plone site, went to view the Contents View and this is the traceback I get:
Any ideas?? Or just to take it over to the Plone group? (have not joined it yet)
Thanks




Traceback (innermost last):
  Module ZPublisher.Publish, line 100, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 40, in call_object
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.CMFCore.FSPageTemplate, line 191, in _exec
  Module Products.CMFCore.FSPageTemplate, line 124, in pt_render
  Module Products.PageTemplates.PageTemplate, line 96, in pt_render
   - <FSPageTemplate at /site/folder_contents>
  Module TAL.TALInterpreter, line 189, in __call__
  Module TAL.TALInterpreter, line 233, in interpret
  Module TAL.TALInterpreter, line 663, in do_useMacro
  Module TAL.TALInterpreter, line 233, in interpret
  Module TAL.TALInterpreter, line 408, in do_optTag_tal
  Module TAL.TALInterpreter, line 393, in do_optTag
  Module TAL.TALInterpreter, line 388, in no_tag
  Module TAL.TALInterpreter, line 233, in interpret
  Module TAL.TALInterpreter, line 686, in do_defineSlot
  Module TAL.TALInterpreter, line 233, in interpret
  Module TAL.TALInterpreter, line 642, in do_defineMacro
  Module TAL.TALInterpreter, line 233, in interpret
  Module TAL.TALInterpreter, line 408, in do_optTag_tal
  Module TAL.TALInterpreter, line 393, in do_optTag
  Module TAL.TALInterpreter, line 388, in no_tag
  Module TAL.TALInterpreter, line 233, in interpret
  Module TAL.TALInterpreter, line 629, in do_condition
  Module TAL.TALInterpreter, line 233, in interpret
  Module TAL.TALInterpreter, line 629, in do_condition
  Module TAL.TALInterpreter, line 233, in interpret
  Module TAL.TALInterpreter, line 262, in do_startEndTag
  Module TAL.TALInterpreter, line 290, in do_startTag
  Module TAL.TALInterpreter, line 356, in attrAction_tal
  Module Products.PageTemplates.TALES, line 226, in evaluateText
  Module Products.PageTemplates.TALES, line 220, in evaluate
   - Line 107, Column 12
   - Expression: <PythonExpr test( num_types == 1                                    , here.translate('Add New ${type}', {'type': types[0].Title()},'Add New '+types[0].Title() )                                    , 'Add New Item')>
   - Names:
      {'container': <PloneSite instance at 41146830>,
       'context': <PloneSite instance at 41146830>,
       'default': <Products.PageTemplates.TALES.Default instance at 0x40854aac>,
       'here': <PloneSite instance at 41146830>,
       'loop': <SafeMapping instance at 41e0fc30>,
       'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x4084abac>,
       'nothing': None,
       'options': {'args': ()},
       'repeat': <SafeMapping instance at 41e0fc30>,
       'request': <HTTPRequest, URL=http://www.xxxx.com/site/folder_contents>,
       'root': <Application instance at 41123e00>,
       'template': <FSPageTemplate at /site/folder_contents>,
       'traverse_subpath': [],
       'user': allen}
  Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
   - __traceback_info__: test( num_types == 1                                    , here.translate('Add New ${type}', {'type': types[0].Title()},'Add New '+types[0].Title() )                                    , 'Add New Item')
  Module Python expression "test( num_types == 1                                    , here.translate('Add New ${type}', {'type': types[0].Title()},'Add New '+types[0].Title() )                                    , 'Add New Item')", line 1, in <expression>
TypeError: translate() takes exactly 2 arguments (4 given)





More information about the Zope mailing list