propogating locals in sub-includes
"Jason Persampieri" <[email protected]> Wed, 12 Dec 2007 13:47:37 -0500
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
--===============1332128383== Content-Type: multipart/alternative; boundary="----=_Part_7647_2187779.1197485257766" ------=_Part_7647_2187779.1197485257766 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Next question. I have a *spyce.include* inside a file that is itself *spyce-include*'d. I've accepted the necessity of using *include.vars* to access data in my included file (sadly... I wish they were just added to the included file's local namespace, but oh well), but it would be nice if *include.context* was automagically added to the context dict when including another file. Basically, if file A includes file B which includes file C, I'd like to access A.foo in C via *include.vars.foo*. Or am I missing something obvious (for the umpteenth time)? Jason Persampieri Programmer Boston College - Bioinformatics Dept. ------=_Part_7647_2187779.1197485257766 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Next question.<br><br>I have a <i>spyce.include</i> inside a file that is itself <i>spyce-include</i>'d. I've accepted the necessity of using <i>include.vars</i> to access data in my included file (sadly... I wish they were just added to the included file's local namespace, but oh well), but it would be nice if <i>include.context</i> was automagically added to the context dict when including another file. <br><br>Basically, if file A includes file B which includes file C, I'd like to access A.foo in C via <i>include.vars.foo </i>.<br><br>Or am I missing something obvious (for the umpteenth time)? <br><br>Jason Persampieri<br>Programmer<br>Boston College - Bioinformatics Dept.<br> ------=_Part_7647_2187779.1197485257766-- --===============1332128383== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace --===============1332128383== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Spyce-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spyce-users --===============1332128383==--