Re: Component based email without a context
Re: Component based email without a context
- Subject: Re: Component based email without a context
- From: Chuck Hill <email@hidden>
- Date: Sat, 29 Oct 2011 22:13:22 -0700
I use this in tests:
testContext = new WOContext(new WORequest("GET", "http://localhost/cgi-bin/WebObjects", "HTTP/1.1", null, null, null));
Not sure offhand what additional information might be needed to generate your email content.
Chuck
On 2011-10-29, at 10:09 PM, Paul Hoadley wrote:
> On 29/10/2011, at 10:42 PM, Ken Anderson wrote:
>
>> Thanks Paul. Unfortunately, currentContext() will return null, since this will not be running inside a request/response loop. I'm probably just going to create a context to useā¦
>
> Oh, sorry Ken. I obviously didn't read your original post closely enough. Can you just call WOContext's constructor, then? (And won't you need a WORequest to do that? Sorry, now I've got more questions than answers for you.)
>
>
> --
> Paul.
>
> http://logicsquad.net/
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden