[ZODB-Dev] [Enhancement Proposal] Garanteed lifetime for volatile variables

2006-09-29 Thread Dieter Maurer
I have put an enhancement proposal at

  http://www.zope.org/Wikis/ZODB/VolatileAttributeLifetimeGarantee

It allows applications to declare that they need for 
some (so called sticky) objects a garanteed lifetime for their
volatile attributes that extends until at least the next
transaction boundary.


This extension makes safe the use of volatile attributes for
the following cases:

  * the storage of database connections in Shared.DC.ZRDB.Connection

  * the former use of _v_skindata in Products.CMFCore.Skinnable
(now replaced by a much more complex, less efficient and not
completely correct solution)

  * the use of _v_is_cp  in Archetypes.BaseObject
(and other use of volatile attributes for control purposes).

This statement implies that the current use is unsafe.


Feedback is welcome -- either in the Wiki or here.

-- 
Dieter
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


[ZODB-Dev] HOWTO recover from Data.fs.tmp

2006-09-29 Thread Juan Pablo Giménez




Hi,

 I have,

Plone 2.1.2, 
Zope (Zope 2.8.6-final, python 2.3.5, linux2), 
Python 2.3.5 (#1, Apr 11 2006, 16:55:30) [GCC 3.3.5 (Debian 1:3.3.5-13)],


 For some reason zope stop writing at Data.fs about a week ago. Now i have a Data.fs with 1 week older data and a Data.fs.tmp with, I hope, the new data... 
 How can I mix those data files? I read somewhere about just do a cat Data.fs.tmp  Data.fs, but this doesn't work... after that fstest complains about time-stamp reduction
 Why zope keeps writing in .tmp file if he can't rebuild data file from there?


 Thanks...













Juan Pablo Gimnez
Rcom - Linux para empresas
Cordoba 1147 Piso 12 Of. 1
Rosario - Argentina
















signature.asc
Description: Esta parte del mensaje está firmada	digitalmente
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] [Enhancement Proposal] Garanteed lifetime for volatile variables

2006-09-29 Thread Sidnei da Silva
| Feedback is welcome -- either in the Wiki or here.

I've seen an informal version of this by Dieter on a mailing list
somewhere (might even have been this list) ages ago and even thought
that it was already implemented. I really like the proposal, +1 on it.

-- 
Sidnei da Silva
Enfold Systemshttp://enfoldsystems.com
Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] [Enhancement Proposal] Garanteed lifetime for volatile variables

2006-09-29 Thread Dieter Maurer
Sidnei da Silva wrote at 2006-9-29 22:13 -0300:
| Feedback is welcome -- either in the Wiki or here.

I've seen an informal version of this by Dieter on a mailing list
somewhere (might even have been this list) ages ago and even thought
that it was already implemented.

It is implemented in our (local) copy of Zope since about the beginning
of 2005. I have put patches into the collector -- but they never
made it into the core (and patches tend to break, when they are not
incorporated soon).

I am now a Zope committer and can directly work on the core --
thus patches are no longer needed.



-- 
Dieter
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev