[Twisted-Python] grokking Cacheable

Bruce Mitchener bruce at cubik.org
Fri Oct 25 09:16:08 MDT 2002


Sean Riley wrote:
> This appears to be one the most common errors when programming with
> Cacheables as it occurs not only when you forget to designate a copier, but
> when an unexpected server object tried to get sent to the client because of
> a reference of assignment you werent aware of. This is a good security
> measure :)

That's why I tend to not use the default implementation of 
getStateToCacheAndObserveFor and now explicitly list out which 
attributes I want to transmit.  (Although in some cases, I'm also 
transforming the data into a different format for the client-side 
representation as well.)

  - Bruce





More information about the Twisted-Python mailing list