Skip to content

Need standard get methods for information #1

Description

@jimboca

Just a start to open the discussion...

Currently I am grabbing controller._nodes to re-add nodes on startup. Would be nice to have standard methods to grab this info so internal data structures can change, but the interface to nodeservers isn't affected.

Get existing nodes from db
return just those with given nodedef
controller.get_nodes('nodedef': 'myNodeDef')
or get all
controller.get_nodes()
or all for a given primary
controller.get_nodes('primary': 'myPrimaryAddress')

Would be nice if it returned objects, but if not then just a standard array or hash that doesn't ever change?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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