[ZDP] FAQ Entry (was: RE: [Zope-dev] New Counter Product)

John Eikenberry John Eikenberry <jae@kavi.com>
Thu, 25 Mar 1999 11:04:03 -0800 (PST)

Shaw, Howard asked...

- How can I create a variable within a Product that will not be
  persistent (i.e. will not be written to disk)?

	(Michel Pelletier)
	Prefix your variable name with _v_.  If you don't want the
	attribute foo to be persistent, call it _v_foo.


	(Pavlos Christoforou)
	ZODB cannot detect changes to mutable objects that are not treated
	as immutable. So I suppose that if your object includes a list, a
	dictionary or a non persistence instance then any changes to these
	objects will go undetected by ZODB.


John Eikenberry
[jae@kavi.com - http://taos.kavi.com/~jae/] 
"A society that will trade a little liberty for a little order
 will deserve neither and lose both."
                                         --B. Franklin