Skip to content

Access external records.Β #46

@gustavosr8

Description

@gustavosr8

As documented, the Record class allows access to record intances.

:class:`Record` Class
^^^^^^^^^^^^^^^^^^^^^
.. class:: Record
Allows access to a single record instance.
*Record* instances can be created for any record in
the process database. However, some features will only
function when the record has Python device support.
*Record* objects allow access to fields through the
:meth:`field` method and direct access to field
values through attributes.
Attribute access is currently limited to scalar fields.
>>> R = getRecord("my:record:name")
>>> F = R.field('VAL')
>>> F.getval()
42
>>> R.VAL
42
>>> R.VAL = 43
.. automethod:: name
.. automethod:: rtype
.. automethod:: field
.. automethod:: setSevr
.. automethod:: setTime
.. automethod:: scan
.. automethod:: asyncStart
.. automethod:: asyncFinish
.. automethod:: info
.. automethod:: infos

But, as far as I understand and tested, the record must be defined in the own IOC, and accessing an external record ins't possible. Is there a way to do this other than making a copy of the desired record in the IOC? If not, what part of the module's code should be worked to support this (considering that this feature is desired)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions