예제 #1
0
 def hash(self, row):
     return content_hash(row.Resource)
예제 #2
0
 def hash(self, row):
     return content_hash(row.Title, row.Description, row.Standard,
                         row.Origin)
예제 #3
0
 def hash(self, row):
     return content_hash(row.Modified, row.RemoteID, row.CachedUntil,
                         row.Expires, row.UserID)
예제 #4
0
 def hash(self, row):
     return content_hash(row.Login, row.Password, row.Name, row.FirstName,
                         row.Email, row.Administrator)
예제 #5
0
 def hash(self, row):
     return content_hash(row.Title, row.Description, row.UsageAgreement)
예제 #6
0
 def hash(self, row):
     return content_hash(row.Label, row.ShortView, row.MediumView,
                         row.LongView)
예제 #7
0
 def hash(self, row):
     return content_hash(row.ObjectID, row.UserID, row.GroupID,
                         row.GrantPriv, row.DenyPriv)
예제 #8
0
 def hash(self, row):
     return content_hash(row.Modified, row.RemoteID, row.CachedUntil, row.Expires, row.UserID)
예제 #9
0
 def hash(self, row):
     return content_hash(row.CollectionID, (row.Flags or 0) & IMAGE_SHARED)
예제 #10
0
 def hash(self, row):
     return content_hash(row.Title, row.Description, row.Standard, row.Origin)
예제 #11
0
 def hash(self, row):
     return content_hash(row.ItemValue)
예제 #12
0
 def hash(self, row):
     return content_hash(row.Title, row.ResourcePath)
예제 #13
0
 def hash(self, row):
     return content_hash(row.Title, row.Description, row.UsageAgreement)
예제 #14
0
 def hash(self, row):
     return content_hash(row.AttributeValue)
예제 #15
0
 def hash(self, row):
     return content_hash(row.Title)
예제 #16
0
 def hash(self, row):
     return content_hash(row.Resource)
예제 #17
0
 def hash(self, row):
     return content_hash(row.Label, row.Name, row.ControlledListID)
예제 #18
0
 def hash(self, row):
     return content_hash(row.Title, row.UserID, row.Description, row.ArchiveFlag, row.AccessPassword)
예제 #19
0
 def hash(self, row):
     return content_hash(row.Login, row.Password, row.Name, row.FirstName, row.Email, row.Administrator)
예제 #20
0
 def hash(self, row):
     return content_hash(row.Title)
예제 #21
0
 def hash(self, row):
     return content_hash(row.ObjectID, row.UserID, row.GroupID,
                         row.GrantPriv, row.DenyPriv, row.MediumImageHeight,
                         row.MediumImageWidth)
예제 #22
0
 def hash(self, row):
     return content_hash(row.DisplayOrder, row.Annotation, row.Scratch)
예제 #23
0
 def hash(self, row):
     return content_hash(row.AttributeValue)
예제 #24
0
 def hash(self, row):
     return content_hash(row.Label, row.Name, row.ControlledListID)
예제 #25
0
 def hash(self, row):
     return content_hash(row.Title, row.ResourcePath)
예제 #26
0
 def hash(self, row):
     return content_hash(row.DCElement, row.DCRefinement)
예제 #27
0
 def hash(self, row):
     return content_hash(row.ItemValue)
예제 #28
0
 def hash(self, row):
     return content_hash(row.Label, row.ShortView, row.MediumView, row.LongView)
예제 #29
0
 def hash(self, row):
     return content_hash(row.CollectionID, (row.Flags or 0) & IMAGE_SHARED)
예제 #30
0
 def hash(self, row):
     return content_hash(row.Label, row.FieldValue, row.DisplayOrder)
예제 #31
0
 def hash(self, row):
     return content_hash(row.Title, row.UserID, row.Description,
                         row.ArchiveFlag, row.AccessPassword)
예제 #32
0
 def hash(self, row):
     return content_hash(row.ObjectID, row.UserID, row.GroupID, row.GrantPriv, row.DenyPriv)
예제 #33
0
 def hash(self, row):
     return content_hash(row.DisplayOrder, row.Annotation, row.Scratch)
예제 #34
0
 def hash(self, row):
     return content_hash(row.ObjectID, row.UserID, row.GroupID, row.GrantPriv, row.DenyPriv, row.MediumImageHeight, row.MediumImageWidth)
예제 #35
0
 def hash(self, row):
     return content_hash(row.DCElement, row.DCRefinement)
예제 #36
0
    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,
예제 #37
0
 def hash(self, row):
     return content_hash(row.Label, row.FieldValue, row.DisplayOrder)
예제 #38
0
    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