Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 2.28 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. - - - merge_base_edit.cpt - - -
  2.  
  3. <metal:block metal:fill-slot="widgets">
  4.                                                
  5.         <tal:oldcontent tal:define="objectid request/object;
  6.                         brain python:context.portal_catalog(id=objectid)[0];
  7.                                                                 object python:brain.getObject();
  8.                                                                 schema python:object.Schema();">                                       
  9.                                    
  10.                 <tal:fields define="fields python:schema.fields();">
  11.                     <tal:listing repeat="f fields">
  12.                             <span tal:define="global names python:f.getName();" tal:content="names"> Name </span>
  13.                                 <span tal:content="python:f.get(names)"> </span>
  14.                     </tal:listing>                                                             
  15.                 </tal:fields>
  16.         </tal:oldcontent>
  17.                                                
  18.                         <tal:newcontent tal:condition="allow_tabbing | nothing">
  19.                                 <tal:fields repeat="field python:schematas[fieldset].editableFields(here, visible_only=True)">
  20.                         <metal:fieldMacro use-macro="python:here.widget(field.getName(), mode='edit')" />
  21.         </tal:fields>
  22.         </tal:newcontent>      
  23. </metal:block>
  24.  
  25. - - - Error Message -  - -
  26.  
  27.    - URL: file:/usr/oracle/zope/dbis/products/I5/skins/I5/merge_base_edit.cpt
  28.    - Line 106, Column 9
  29.    - Expression: <PythonExpr f.get(names)>
  30.    - Names:
  31.       {'container': <PloneSite at /wwwI5>,
  32.        'context': <BookArticle at /wwwI5/publications/BookArticle.1281372218422>,
  33.        'default': <object object at 0x1ad528>,
  34.        'here': <BookArticle at /wwwI5/publications/BookArticle.1281372218422>,
  35.        'loop': {u'f': <Products.PageTemplates.Expressions.PathIterator object at 0x677fad0>},
  36.        'nothing': None,
  37.        'options': {'args': (),
  38.                    'state': <Products.CMFFormController.ControllerState.ControllerState object at 0x74d4b90>},
  39.        'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x6185620>,
  40.        'request': <HTTPRequest, URL=http://......../wwwI5/publications/BookArticle.1281372218422/merge_base_edit>,
  41.        'root': <Application at >,
  42.        'template': <FSControllerPageTemplate at /wwwI5/merge_base_edit used for /wwwI5/publications/BookArticle.1281372218422>,
  43.        'traverse_subpath': [],
  44.        'user': <PropertiedUser 'admin'>}
  45.   Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__
  46.    - __traceback_info__: f.get(names)
  47.   Module PythonExpr, line 1, in <expression>
  48. Unauthorized: You are not allowed to access 'get' in this context