[Twisted-Python] Woven using wrong model adapter
radix at twistedmatrix.com
Mon May 26 21:37:07 EDT 2003
On 2003.05.26 21:13, Kevin Turner wrote:
> I have:
> class Page(page.Page):
> def wmfactory_report(self, request):
> if sometimes:
> return deferredInterestChangeReport()
> return ''
> So why does woven persist in using the StringModel adapter in this case,
> and how can I get it to stop?
IIRC, A workaround is to 1) put the conditional in a special wvfactory rather
than/in addition to your wmfactory, or 2) call self.invalidateCache() every
time the result of the conditional changes (or just on every request, if you
> Don't know if this is related or not, but the log shows messages like:
> "Warning: There was no parent for node [...]; node not mutated." Is
> that something I should be concerned about?
Twisted | Christopher Armstrong: International Man of Twistery
Radix | Release Manager, Twisted Project
More information about the Twisted-Python