Skip to content

Enable FuncDateRule and FuncTimeRule in Python #7990

Closed
@AlexCatarino

Description

@AlexCatarino

Expected Behavior

We can define a function to trigger date and time rules in Python:

date_rule = FuncDateRule('Custom', self.CustomDateRule)

def CustomDateRule(self, start, end):
    return []

Actual Behavior

Only supported in C#

Potential Solution

Add a PyOvject overload to uncDateRule and FuncTimeRule.

See:

#7988

Checklist

  • I have completely filled out this template
  • I have confirmed that this issue exists on the current master branch
  • I have confirmed that this is not a duplicate issue by searching issues
  • I have provided detailed steps to reproduce the issue

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions