Other parameters to <parent>

Ryan Bowman <[email protected]>
Newsgroups gmane.comp.python.spyce.general
Message-ID <[email protected]>
The documentation for <parent> says
<parent [src=url] [other parameters] />
 ...Any extra parameters are also passed in the child dictionary...
and the file spyce-2.0.3/www/parent.spi has a comment that says
  # The child variable is automatically injected into a parent
template's context.
  # it contains the '_body' key which holds any text generated by the child,
  # as well as any other (string) keys passed as attributes to the
spy:parent tag.
  # These may be accessed as child['foo'] or child.foo.
which leads me to believe I can do the following.

In foo.spy
<spy:parent bodyId="someId"/>

In parent.spi
<body id="[[=child.bodyId]]">

which would yield <body id="someId"> but I really get

Spyce exception
File:	parent.spi
Message: 	
  KeyError: 'bodyId'
Stack:	c:/spyce-2.0.2\spyceUtil.py:95, in __getattr__:
     return self[name]
  parent.spi:20, in (main):
     =child.bodyId

So I either don't understand what's supposed to be happening or I did
something wrong (or even both!).


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.