(self, action, obj=None, domain=True)
return url
Returns an RFC3987 IRI for a HTML representation of the given object, action.
        If domain is true, the current site's domain will be added.
Returns an RFC3987 IRI for a HTML representation of the given object, action.
        If domain is true, the current site's domain will be added.
Returns an RFC3987 IRI for a HTML representation of the given object action . If domain is true the current site s domain will be added .
def get_url(self, action, obj=None, domain=True):
        """
        Returns an RFC3987 IRI for a HTML representation of the given object, action.
        If domain is true, the current site's domain will be added.
        """
        if not obj:
            url = reverse('actstream_detail', None, (action.pk,))
        elif hasattr(obj, 'get_absolute_url'):
            url = obj.get_absolute_url()
        else:
            ctype = ContentType.objects.get_for_model(obj)
            url = reverse('actstream_actor', None, (ctype.pk, obj.pk))
        if domain:
            return add_domain(Site.objects.get_current().domain, url)
        return url
def get_url ( self , action , obj = None , domain = True ) : if not obj : url = reverse ( 'actstream_detail' , None , ( action . pk , ) ) elif hasattr ( obj , 'get_absolute_url' ) : url = obj . get_absolute_url ( ) else : ctype = ContentType . objects . get_for_model ( obj ) url = reverse ( 'actstream_actor' , None , ( ctype . pk , obj . pk ) ) if domain : return add_domain ( Site . objects . get_current ( ) . domain , url ) return url