Esempio n. 1
0
 def last_migrate_externalLink(self):
     if self.old.getRemoteUrl() and ISmartLink.providedBy(self.new):
         self.new.setExternalLink(self.old.getRemoteUrl())
         self.new.reindexObject()
Esempio n. 2
0
def isSmartLink(oldObject, **kwargs):
    """Test if the object is a Smart Link"""
    return ISmartLink.providedBy(oldObject)
Esempio n. 3
0
def isATLink(oldObject, **kwargs):
    """Test if the object is a simple ATLink (i.e: is not a Smart Link)"""
    return not ISmartLink.providedBy(oldObject)
 def last_migrate_externalLink(self):
     if self.old.getRemoteUrl() and ISmartLink.providedBy(self.new):
         self.new.setExternalLink(self.old.getRemoteUrl())
         self.new.reindexObject()
def isSmartLink(oldObject, **kwargs):
    """Test if the object is a Smart Link"""
    return ISmartLink.providedBy(oldObject)
def isATLink(oldObject, **kwargs):
    """Test if the object is a simple ATLink (i.e: is not a Smart Link)"""
    return not ISmartLink.providedBy(oldObject)