Commit f1b861a 1 parent cc04ea7 commit f1b861a Copy full SHA for f1b861a
File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 49
49
base: str
50
50
uri: xsd:token
51
51
settings:
52
- Title_Case: '((( ?<=\b)[^a-z\W]\w*?|[\W])+) '
52
+ Title_Case: '((?<=\b)[^a-z\W]\w*?|[\W])+'
53
53
UPPER_CASE: '[A-Z\W\d_]*'
54
54
lower_case: '[a-z\W\d_]*'
55
55
"""
@@ -182,6 +182,9 @@ def writeSchemaCore():
182
182
'description' : SCHEMA ["description" ],
183
183
'is_a' : 'dh_interface'
184
184
}
185
+ # ISSUE: Each class may have (meta) title and description fields translated
186
+ # but we don't have a SCHEMA_CLASSES table to handle translations in
187
+ # tabular_to_schema.py, so can't communicate them.
185
188
186
189
with open ("schema_core.yaml" , 'w' ) as output_handle :
187
190
yaml .dump (SCHEMA , output_handle , sort_keys = False );
@@ -201,7 +204,7 @@ def writeSlots():
201
204
slot ['name' ] = slot_name ;
202
205
slot ['title' ] = oca_labels [slot_name ];
203
206
slot ['range' ] = oca_attributes [slot_name ]; # ISSUE: Numeric
204
- slot ['pattern' ] = "^" + oca_formats [slot_name ] + "$" ;
207
+ slot ['pattern' ] = oca_formats [slot_name ];
205
208
slot ['description' ] = oca_informations [slot_name ];
206
209
207
210
# Range 2 gets any picklist for now.
You can’t perform that action at this time.
0 commit comments