parameters: (object, object_type)
return_statement: return href
docstring: Creates the URL for the details button used by all object types
docstring_summary: Creates the URL for the details button used by all object types
docstring_tokens: Creates the URL for the details button used by all object types
function: def getHREFLink(object, object_type):
      """
      Creates the URL for the details button used by all object types
      """
      #comment is a special case since the link takes you to the object the comment is on 
      if object_type == "Comment":
          object_type = object["obj_type"]
      #setting the first part of the url, rawdata is the only object type thats 
      #difference from its type
      href = "/"
      if object_type == "RawData":
          href += "raw_data/"
      elif object_type == "AnalysisResult":
          href += "services/analysis_results/"
      else:
          href += object_type.lower()+"s/"
      #settings the second part of the url, screenshots and targets are the only 
      #ones that are different from being 'details'
      if object_type == "Screenshot":
          href += "render/"
      elif object_type == "Target":
          href += "info/"
          #setting key here
          key = "email_address"
      else:
          href += "details/"
      #setting the key for the last section of the url since its different for 
      #every object type
      if "url_key" in object:
          key = "url_key"
      elif object_type == "Campaign":
          key = "name"
      elif object_type == "Certificate" or object_type == "PCAP" or object_type == "Sample":
          key = "md5"
      elif object_type == "Domain":
          key = "domain"
      elif object_type == "IP":
          key = "ip"
      elif not object_type == "Target" and "_id" in object:
          key = "_id"
      else:
          key = "id"
      #adding the last part of the url 
      if key in object:
          href += unicode(object[key]) + "/"
      return href
function_tokens: def getHREFLink ( object , object_type ) : #comment is a special case since the link takes you to the object the comment is on  if object_type == "Comment" : object_type = object [ "obj_type" ] #setting the first part of the url, rawdata is the only object type thats  #difference from its type href = "/" if object_type == "RawData" : href += "raw_data/" elif object_type == "AnalysisResult" : href += "services/analysis_results/" else : href += object_type . lower ( ) + "s/" #settings the second part of the url, screenshots and targets are the only  #ones that are different from being 'details' if object_type == "Screenshot" : href += "render/" elif object_type == "Target" : href += "info/" #setting key here key = "email_address" else : href += "details/" #setting the key for the last section of the url since its different for  #every object type if "url_key" in object : key = "url_key" elif object_type == "Campaign" : key = "name" elif object_type == "Certificate" or object_type == "PCAP" or object_type == "Sample" : key = "md5" elif object_type == "Domain" : key = "domain" elif object_type == "IP" : key = "ip" elif not object_type == "Target" and "_id" in object : key = "_id" else : key = "id" #adding the last part of the url  if key in object : href += unicode ( object [ key ] ) + "/" return href