(self, name)
A server specific URL for remote clients to access case attachment resources async.
A server specific URL for remote clients to access case attachment resources async.
A server specific URL for remote clients to access case attachment resources async .
def get_attachment_server_url(self, name):
        """
        A server specific URL for remote clients to access case attachment resources async.
        """
        if name in self.case_attachments:
            from dimagi.utils import web
            from django.urls import reverse
            return "%s%s" % (web.get_url_base(),
                 reverse("api_case_attachment", kwargs={
                     "domain": self.domain,
                     "case_id": self.case_id,
                     "attachment_id": name,
                 })
            )
        else:
            return None
def get_attachment_server_url ( self , name ) : if name in self . case_attachments : from dimagi . utils import web from django . urls import reverse return "%s%s" % ( web . get_url_base ( ) , reverse ( "api_case_attachment" , kwargs = { "domain" : self . domain , "case_id" : self . case_id , "attachment_id" : name , } ) ) else : return None