Draft: lowercase use_link option for arrays

Inside the class `_DraftLink` the `onDocumentRestored` function
tests for the existence of the old attribute `useLink`. If it is
present, it uses it to define the new variable name `use_link`.
This is done use Python naming conventions.
The old `useLink` is deleted so it is not longer saved
together with the object when the document is saved.
This commit is contained in:
vocx-fc
2020-01-31 13:09:43 -06:00
committed by Yorik van Havre
parent 99eca8bc6c
commit b25ca7194c
8 changed files with 50 additions and 30 deletions

View File

@@ -42,7 +42,7 @@ def make_ortho_array(obj,
obj = Draft.makeArray(obj,
arg1=v_x, arg2=v_y, arg3=v_z,
arg4=n_x, arg5=n_y, arg6=n_z,
useLink=use_link)
use_link=use_link)
return obj
@@ -56,5 +56,5 @@ def make_ortho_array2(obj,
obj = Draft.makeArray(obj,
arg1=v_x, arg2=v_y,
arg3=n_x, arg4=n_y,
useLink=use_link)
use_link=use_link)
return obj