def hash(self, row): return content_hash(row.Resource)
def hash(self, row): return content_hash(row.Title, row.Description, row.Standard, row.Origin)
def hash(self, row): return content_hash(row.Modified, row.RemoteID, row.CachedUntil, row.Expires, row.UserID)
def hash(self, row): return content_hash(row.Login, row.Password, row.Name, row.FirstName, row.Email, row.Administrator)
def hash(self, row): return content_hash(row.Title, row.Description, row.UsageAgreement)
def hash(self, row): return content_hash(row.Label, row.ShortView, row.MediumView, row.LongView)
def hash(self, row): return content_hash(row.ObjectID, row.UserID, row.GroupID, row.GrantPriv, row.DenyPriv)
def hash(self, row): return content_hash(row.CollectionID, (row.Flags or 0) & IMAGE_SHARED)
def hash(self, row): return content_hash(row.ItemValue)
def hash(self, row): return content_hash(row.Title, row.ResourcePath)
def hash(self, row): return content_hash(row.AttributeValue)
def hash(self, row): return content_hash(row.Title)
def hash(self, row): return content_hash(row.Label, row.Name, row.ControlledListID)
def hash(self, row): return content_hash(row.Title, row.UserID, row.Description, row.ArchiveFlag, row.AccessPassword)
def hash(self, row): return content_hash(row.ObjectID, row.UserID, row.GroupID, row.GrantPriv, row.DenyPriv, row.MediumImageHeight, row.MediumImageWidth)
def hash(self, row): return content_hash(row.DisplayOrder, row.Annotation, row.Scratch)
def hash(self, row): return content_hash(row.DCElement, row.DCRefinement)
def hash(self, row): return content_hash(row.Label, row.FieldValue, row.DisplayOrder)
ResetPassword=1 << 18, ManageAnnouncements=1 << 21, ManageControlledLists=1 << 23, ManageCollectionGroups=1 << 25, UserOptions=1 << 26, PersonalImages=1 << 27, ShareImages=1 << 28, SuggestImages=1 << 29, Unknown=1 << 31, ) IMAGE_SHARED = 1 IMAGE_SUGGESTED = 2 IMAGE_REJECTED = 4 STATIC_CONTENT_HASH = content_hash('static') class MergeObjectsException(Exception): def __init__(self, instance): super(MergeObjectsException, self).__init__() self.instance = instance class MigrateModel(object): instance_maps = dict() def __init__(self, cursor, model,
ManageAnnouncements = 1 << 21, ManageControlledLists = 1 << 23, ManageCollectionGroups = 1 << 25, UserOptions = 1 << 26, PersonalImages = 1 << 27, ShareImages = 1 << 28, SuggestImages = 1 << 29, Unknown = 1 << 31, ) IMAGE_SHARED = 1 IMAGE_SUGGESTED = 2 IMAGE_REJECTED = 4 STATIC_CONTENT_HASH = content_hash('static') class MergeObjectsException(Exception): def __init__(self, instance): super(MergeObjectsException, self).__init__() self.instance = instance class MigrateModel(object): instance_maps = dict() def __init__(self, cursor, model, query, label=None, m2m_model=None, type=None): self.model = model