code: def store_initial_arguments(request, initial_arguments=None):
      'Store initial arguments, if any, and return a cache identifier'
  
      if initial_arguments is None:
          return None
  
      # Generate a cache id
      cache_id = "dpd-initial-args-%s" % str(uuid.uuid4()).replace('-', '')
  
      # Store args in json form in cache
      if initial_argument_location():
          cache.set(cache_id, initial_arguments, cache_timeout_initial_arguments())
      else:
          request.session[cache_id] = initial_arguments
  
      return cache_if store_initial_arguments(request, initial_arguments=None):
      'Store initial arguments, if any, and return a cache identifier'
  
      if initial_arguments is None:
          return None
  
      # Generate a cache id
      cache_id = "dpd-initial-args-%s" % str(uuid.uuid4()).replace('-', '')
  
      # Store args in json form in cache
      if initial_argument_location():
          cache.set(cache_id, initial_arguments, cache_timeout_initial_arguments())
      else:
          request.session[cache_id] = initial_arguments
  
      return cache_id
docs: Store initial arguments, if any, and return a cache identifier