[Zope-DB] Parent property in SQL Var
charlie at begeistert.org
Thu Oct 9 13:30:47 EDT 2003
On 2003-10-09 at 19:19:54 [+0200], Philip Kilner wrote:
> Hi List,
> Previously we have used a set property "FolderIssue", thus: -
> <dtml-sqlvar FolderIssue type="string">
> Now we are tidying things up such that the necessary string is the
> /title/ of the parent folder. I thought I could do:-
> <dtml-sqlvar aq_parent/title type="string">
> ...but I get an error indicating that "aq_parent/title" is invalid - what
> am I missing?
I don't think Path expressions work in <dtml var> and <dtml-sqlvar>. Check
the docs for this but you might want just try aq_parent.title although I
think a real expression is required.
> (For those who have tolerated my whingeing in the past - most of this is
> starting to work for me now...)
That's good to hear!
More information about the Zope-DB