Renamed _attachments_embedded_schema to attachments_embedded_schema
It's used in multiple files, and thus shouldn't be marked as 'private'.
This commit is contained in:
@@ -9,7 +9,7 @@ _file_embedded_schema = {
|
||||
|
||||
ATTACHMENT_SLUG_REGEX = '[a-zA-Z0-9_ ]+'
|
||||
|
||||
_attachments_embedded_schema = {
|
||||
attachments_embedded_schema = {
|
||||
'type': 'dict',
|
||||
# TODO: will be renamed to 'keyschema' in Cerberus 1.0
|
||||
'propertyschema': {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
from pillar.api.node_types import _file_embedded_schema, _attachments_embedded_schema
|
||||
from pillar.api.node_types import _file_embedded_schema, attachments_embedded_schema
|
||||
|
||||
node_type_asset = {
|
||||
'name': 'asset',
|
||||
@@ -27,7 +27,7 @@ node_type_asset = {
|
||||
# We point to the original file (and use it to extract any relevant
|
||||
# variation useful for our scope).
|
||||
'file': _file_embedded_schema,
|
||||
'attachments': _attachments_embedded_schema,
|
||||
'attachments': attachments_embedded_schema,
|
||||
# Tags for search
|
||||
'tags': {
|
||||
'type': 'list',
|
||||
|
@@ -1,4 +1,4 @@
|
||||
from pillar.api.node_types import _attachments_embedded_schema
|
||||
from pillar.api.node_types import attachments_embedded_schema
|
||||
|
||||
node_type_page = {
|
||||
'name': 'page',
|
||||
@@ -15,7 +15,7 @@ node_type_page = {
|
||||
'url': {
|
||||
'type': 'string'
|
||||
},
|
||||
'attachments': _attachments_embedded_schema,
|
||||
'attachments': attachments_embedded_schema,
|
||||
},
|
||||
'form_schema': {
|
||||
'attachments': {'visible': False},
|
||||
|
@@ -1,4 +1,4 @@
|
||||
from pillar.api.node_types import _attachments_embedded_schema
|
||||
from pillar.api.node_types import attachments_embedded_schema
|
||||
|
||||
node_type_post = {
|
||||
'name': 'post',
|
||||
@@ -26,7 +26,7 @@ node_type_post = {
|
||||
'url': {
|
||||
'type': 'string'
|
||||
},
|
||||
'attachments': _attachments_embedded_schema,
|
||||
'attachments': attachments_embedded_schema,
|
||||
},
|
||||
'form_schema': {
|
||||
'attachments': {'visible': False},
|
||||
|
Reference in New Issue
Block a user