Exemplo 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()
Exemplo n.º 2
0
def isSmartLink(oldObject, **kwargs):
    """Test if the object is a Smart Link"""
    return ISmartLink.providedBy(oldObject)
Exemplo 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)