Acquire or refresh a floating license from the Enterprise server. .. note:: You must authenticate with the Enterprise server before calling this. :param int duration: Desired length of license checkout, in seconds. :param bool _cache: Deprecated but left in for compatibility
(duration, _cache=True)
| 245 | |
| 246 | |
| 247 | def update_license(duration, _cache=True): |
| 248 | """ |
| 249 | Acquire or refresh a floating license from the Enterprise server. |
| 250 | |
| 251 | .. note:: You must authenticate with the Enterprise server before calling this. |
| 252 | |
| 253 | :param int duration: Desired length of license checkout, in seconds. |
| 254 | :param bool _cache: Deprecated but left in for compatibility |
| 255 | """ |
| 256 | if not core.BNUpdateEnterpriseServerLicense(duration): |
| 257 | raise RuntimeError(last_error()) |
| 258 | |
| 259 | |
| 260 | def release_license(): |