Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • set_hutch(h, create=False)
    Set the default hutch to h.  If create is True, create any necessary DB entries.
  • add_alias(alias)
    Add a new alias to the default hutch.
  • add_device_config(cfg)
    Add a new device type collection named cfg.
  • get_hutches()
    Return a list of all defined hutches.
  • get_aliases(hutch=None)
    Return a list of all aliases for the specified hutch (or the default hutch if the parameter is None).
  • get_device_configs()
    Return a list of all device types.
  • get_key(alias, hutch=None)
    Return the highest version number for the alias in the specified hutch (or default hutch if None).
  • get_devices(key_or_alias, hutch=None)
    Return a list of devices in the specified hutch (or default hutch if None).  key_or_alias specifies the particular configuration to examine:  if it is a string, use the current configuration for this alias and if it is an integer, use the configuration with the specified version number.
  • modify_device(alias, value, hutch=None)
    Modify the current configuration for the specified alias in the specified hutch.  value is a typed JSON dictionary where the detName:RO field is the name of the device and detType:RO is the device type.  This raises an exception if there is an error and returns the newly written version number otherwise.
  • get_configuration(key_or_alias, device, hutch=None)
    Get the configuration for the specified device in the specified hutch (or the default if this is None).  key_or_alias specifies the particular configuration to examine:  if it is a string, use the current configuration for this alias and if it is an integer, use the configuration with the specified version number.
  • transfer_config(oldhutch, oldalias, olddevice, newalias, newdevice)
    Copy the current configuration for device olddevice with alias oldalias in hutch oldhutch to the current hutch configuration for with alias newalias device newdevice.
  • get_history(alias, device, plist, hutch=None)
    Retrieve a history for the list of flattened names in plist for the specified device, alias, and hutch.  The return value is a list of dictionaries, each one with datekey, and all of the plist elements as keys.