--- a/src/pyams_content/features/share/interfaces.py Wed Jan 16 15:55:23 2019 +0100
+++ b/src/pyams_content/features/share/interfaces.py Wed Jan 16 19:10:46 2019 +0100
@@ -14,16 +14,31 @@
from zope.container.constraints import containers, contains
from zope.interface import Attribute, Interface
-from zope.schema import Bool, Choice
+from zope.schema import Bool, Choice, TextLine
+from pyams_content import _
from pyams_content.interfaces.container import IOrderedContainer
from pyams_content.reference.pictograms.interfaces import SELECTED_PICTOGRAM_VOCABULARY
from pyams_i18n.schema import I18nTextLineField
-from pyams_content import _
+
+SOCIAL_SHARE_INFO_KEY = 'pyams_content.social_share.info'
+SOCIAL_SHARE_MANAGER_KEY = 'pyams_content.social_share'
-SOCIAL_SHARE_MANAGER_KEY = 'pyams_content.social_share'
+class ISocialShareInfo(Interface):
+ """General social share information interface"""
+
+ twitter_account = TextLine(title=_("Twitter account"),
+ description=_("Name of Twitter account (including leading '@') to use for website "
+ "attribution"),
+ required=False)
+
+ twitter_creator_account = TextLine(title=_("Contents creator account"),
+ description=_("You can use another Twitter account (including leading '@') "
+ "for contents attribution; if empty, general Twitter account "
+ "will be used"),
+ required=False)
class ISocialShareItem(Interface):