witten
/
luminotes
Archived
1
0
Fork 0

Schema evolution: Adding a trash member to those Notebooks that don't have it.

This commit is contained in:
Dan Helfman 2007-08-03 21:55:02 +00:00
parent 4e28620348
commit 1796ccca71
1 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,12 @@ class Notebook( Persistent ):
def __init__( self, note_id ):
ValueError.__init__( self, note_id )
def __setstate__( self, state ):
if "_Notebook__trash" not in state:
state[ "_Notebook__trash" ] = None
self.__dict__.update( state )
def __init__( self, id, name, trash = None ):
"""
Create a new note with the given id and name.