Skip to content

2017 API dlibrary.vectorworks.VectorworksSecurity

Dieter Geerts edited this page Sep 24, 2016 · 1 revision

dlibrary.vectorworks.VectorworksSecurity

Decorator to secure a function based on the user id and/or VW version running.

If used together with other decorators, all decorators below will not be executed if permission is denied. So keep that in mind when applying multiple decorators to your function, as some may not be executed!

Base classes

  • object The most base type

Constructor

__init__(self, version: str=None, user_ids: 'set[str]'=None, on_version_denied: '(str) -> None'=None, on_user_id_denied: '(str) -> None'=None)

:param user_ids: User id == last 6 digits of serial == dongle number!

Home

DLibrary for VW2017

PREVIOUS VERSIONS

Clone this wiki locally