Ticket #511 (new defect)

Opened 15 years ago

Last modified 14 years ago

Expression namespaces need a 'here'

Reported by: fguillaume Owned by: fguillaume
Priority: P2 Milestone: CPS 3.5.7
Component: CPSSchemas Version: unspecified
Severity: normal Keywords:
Cc:

Description (last modified by fguillaume) (diff)

Expression namespaces need a 'here' Not really specific to CPSSchemas either.

Otherwise as soon as you try to call some restricted python through a path expression you get something like:

Module Products.CPSDirectory.BaseDirectory?, line 524, in renderCreateEntryDetailed Module Products.CPSDirectory.BaseDirectory?, line 688, in _getDataModel Module Products.CPSSchemas.DataModel?, line 250, in _fetch Module Products.CPSSchemas.Field, line 149, in getDefault Module Products.CMFCore.Expression, line 44, in call Module Products.PageTemplates.Expressions, line 201, in call Module Products.PageTemplates.Expressions, line 196, in _eval Module Products.PageTemplates.Expressions, line 95, in render Module Products.PageTemplates.ZRPythonExpr, line 65, in call_with_ns KeyError?: 'here'

So a default expression with

python:portal.someSkin()

works, but this doesn't:

portal/someSkin

Change History

comment:1 Changed 14 years ago by fguillaume

  • Description modified (diff)
  • Milestone changed from unspecified to CPS 3.5.0
Note: See TracTickets for help on using tickets.