Skip to content

context.events should use dot notation #42

Open
@timwis

Description

@timwis

Ideally we'd be able to do something like this:

          event_names = [event.action.name for event in events]
          if 'Approve Taxes' in event_names and 'Approve Parking' in event_names:
            change_state('Approved')

But currently we have to use:

          event_names = [event['action']['name'] for event in events]

Not a huge deal, just easier to write.
Related to #20

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions