-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.master.yml
86 lines (81 loc) · 2.01 KB
/
manifest.master.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
plugin:
name: fylr-plugin-sequence
version: 1
displayname:
de-DE: "Sequence Plugin"
en-US: "Sequence Plugin"
l10n: l10n/fylr-plugin-sequence.csv
webfrontend:
url: fylr-plugin-sequence.js
base_url_prefix: "webfrontend"
# callback registration in fylr
callbacks:
db_pre_save:
steps:
- name: "automatic filling of emtpy fields with sequential numbers"
callback: insert_sequence
callbacks:
insert_sequence:
exec:
service: python3
commands:
- prog: python3
stdin:
type: body
stderr:
type: body
stdout:
type: body
args:
- type: value
value: "%_exec.pluginDir%/server/main.py"
base_config:
- name: sequence
parameters:
objecttype:
type: text
plugin_type: sequence_objecttype
position: 0
ref_field:
type: text
plugin_type: sequence_ref_field
position: 1
num_field:
type: text
plugin_type: sequence_num_field
position: 2
- name: objecttypes
parameters:
sequence_settings:
type: table
fields:
- name: enabled
type: bool
default: true
position: 0
- name: update_objecttype
type: text
plugin_type: update_objecttype
position: 1
- name: update_column
type: text
plugin_type: update_column
position: 2
- name: template
type: text
position: 3
- name: obj_field
type: text
plugin_type: obj_field
position: 4
- name: no_sequence_if_empty_field
type: bool
position: 5
- name: start_offset
default: 0
type: int
position: 6
- name: only_insert
type: bool
position: 7
position: 0