1 from couchdbkit
.ext
.django
.schema
import *
4 class OldIdMixin(DocumentSchema
):
5 """ Objects that have an Old-Id from the old MySQL backend """
7 oldid
= IntegerProperty()
8 merged_oldids
= ListProperty()
11 def set_oldid(self
, oldid
):
13 self
.add_merged_oldid(self
.oldid
)
17 def add_merged_oldid(self
, oldid
):
18 if oldid
not in self
.merged_oldids
:
19 self
.merged_oldids
.append(oldid
)