Skip to content

Commit ecf7e05

Browse files
committed
add default schematas list
1 parent 79cde24 commit ecf7e05

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

backend/src/ploneorg/src/ploneorg/content/serviceprovider.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from ploneorg.content.foundationsponsor import isEmail
1111
from ploneorg.content.foundationsponsor import isHTTP
1212
from ploneorg.vocabularies import org_size_vocabulary
13-
from ploneorg.vocabularies.countries import countries_vocabulary
1413
from zope import schema
1514
from zope.interface import alsoProvides
1615
from zope.interface import implementer
@@ -122,7 +121,7 @@ class IServiceProvider(Schema):
122121
country = schema.Choice(
123122
title=_("Country"),
124123
description=_("Select the primary country of operation."),
125-
vocabulary=countries_vocabulary,
124+
vocabulary="ploneorg.vocabulary.countries",
126125
required=False,
127126
)
128127

@@ -363,7 +362,7 @@ def remoteUrl(self, value):
363362

364363
def toXML(self, schematas=None):
365364
if schematas is None:
366-
schematas = ["Contacts", "ContactPerson", "Social"]
365+
schematas = ["Location", "ContactPerson", "Services", "Social", "Photos"]
367366
out = f'<serviceprovider id="{self.getId()}">'
368367
for name in schematas:
369368
value = getattr(self, name, None)

0 commit comments

Comments
 (0)