> Is there a way to do this? Basically, they've written a context > processor that inspects the request to see if there is a > ref=somestring entry in the query string. If so, they sort that > string in the session and when the enduser finishes checking out, they > want to stick the ref number into the order object. however, you > appear not to have access to the request.session stuff at that point > in time. >
For better or worse, Satchmo uses the threaded-multihost package. That means you can write code like: from threaded_multihost import threadlocals request = threadlocals.get_current_request() print request.session Just be aware that this allows 'webbiness' to leak through the abstraction layers; if your code was ever run from a batch job, there wouldn't be a request or a session available. If that's OK, I still suggest you add a big warning comment to your code :) Cheers, Dan -- Dan Fairs | [email protected] | www.fezconsulting.com -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.
