On Mon, Mar 1, 2010 at 11:47 AM,  <span dir="ltr">&lt;<a href="mailto:markscottwright@gmail.com">markscottwright@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I&#39;ve got some global state and configuration information.  It seems to me that they ought to be members of my Site, but I don&#39;t see any obvious way in a Resource.render_* to get the current Site.  Neither Request nor Resource have a instance or method that returns its Site that I can find.  Am I missing something, or am I confused about the Twisted way of doing things?<br>

<br></blockquote></div><br>I think you are missing something - request has attribute `site&#39; set on it which will give you the Site object.<div><br></div><div>-Drew</div>