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