
Aug. 9, 2003
5:05 a.m.
On Sat, Aug 09, 2003, Mary wrote:
In my blog model, obviously there are authors that don't exist. So /author/Mary/ would be represented by a ChildPage Resource, but /author/Donovan/ should 404. Is that possible in a code structure like this, or is it too late to produce the appropriate error at the: <span model="." view="Text"> ncxnz</span> stage, which is the first time Twisted Web needs to wait on our Deferred main model?
OK, as per discussion on IRC, I used a DeferredResource instead, and return a ChildPage if the database query finds an author and an ErrorPage otherwise. -Mary