Reputation: 1201
I've a plone4 website with Linguaplone 4.1.3 installed. I've write some simple AT content types to manage a "structure" of an organization. The site is in production since 2013, with 4 languages.
This is the definition of a field in the custom AT "Structure" (called "struttura" in italian):
atapi.StringField('sitostruttura',
languageIndependent=True,
required=False,
validators = ('isURL',),
widget = atapi.StringWidget(
label = _(u'label_struttura_sito', default=u'Sito web'),
)),
It works well with all the fileds but not with this one (the only LanguageIndipendent = true). If I update the valued in this field is affected only the "original version" and not the versions in the other languages.
I've also tested creating a brand new content. I've no errors, no warnings.
Upvotes: 2
Views: 58
Reputation: 1201
Solved. The import to make is
try:
from Products.LinguaPlone import public as atapi
except ImportError:
# No multilingual support
from Products.Archetypes import atapi
Upvotes: 0