コード例 #1
0
ファイル: formMailerAdapter.py プロジェクト: vwc/fv
    def initializeArchetype(self, **kwargs):
        """ Translate the adapter in the current langage
        """

        FormActionAdapter.initializeArchetype(self, **kwargs)

        self.setMsg_subject(zope.i18n.translate(_(u'pfg_formmaileradapter_msg_subject', u'Form Submission'), context=self.REQUEST))
コード例 #2
0
    def initializeArchetype(self, **kwargs):
        """ Translate the adapter in the current langage
        """

        FormActionAdapter.initializeArchetype(self, **kwargs)

        self.setMsg_subject(zope.i18n.translate(_(u'pfg_formmaileradapter_msg_subject', u'Form Submission'), context=self.REQUEST))
コード例 #3
0
ファイル: saveDataAdapter.py プロジェクト: dtgit/dtedu
    def initializeArchetype(self, **kwargs):
        """ the trick of using a textarea widget with a lines field
            is causing a bad interpretation of the default. (It's
            getting represented as a string.)
        """

        FormActionAdapter.initializeArchetype(self, **kwargs)
        
        self.SavedFormInput = []
コード例 #4
0
ファイル: salesforcepfgadapter.py プロジェクト: dtgit/dtedu
    def initializeArchetype(self, **kwargs):
        """Initialize Private instance variables
        """
        FormActionAdapter.initializeArchetype(self, **kwargs)

        # All Salesforce fields for the current Salesforce object type. Since
        # we need this for every row in our field mapping widget, it's better
        # to just set it on the object when we set the Salesforce object type.
        # This way we don't query Salesforce for every field on our form.
        self._fieldsForSFObjectType = {}
コード例 #5
0
    def __init__(self, oid, **kwargs):
        # initialize class

        FormActionAdapter.__init__(self, oid, **kwargs)

        # for the convenience of scripters operating
        # in a restricted python environment,
        # let's store a reference to FORM_ERROR_MARKER
        # on the object, so it'll be available
        # as an attribute of context.
        self.FORM_ERROR_MARKER = config.FORM_ERROR_MARKER
コード例 #6
0
    def __init__(self, oid, **kwargs):
        """ initialize class """

        FormActionAdapter.__init__(self, oid, **kwargs)
        
        # for the convenience of scripters operating
        # in a restricted python environment,
        # let's store a reference to FORM_ERROR_MARKER
        # on the object, so it'll be available
        # as an attribute of context.
        self.FORM_ERROR_MARKER = config.FORM_ERROR_MARKER
コード例 #7
0
ファイル: formMailerAdapter.py プロジェクト: dtgit/dtedu
    def initializeArchetype(self, **kwargs):
        """ Translate the adapter in the current langage
        """

        FormActionAdapter.initializeArchetype(self, **kwargs)

        if HAS_PLONE25:
            self.setMsg_subject(zope.i18n.translate(_(u'pfg_formmaileradapter_msg_subject', u'Form Submission'), context=self.REQUEST))
        else:
            self.setMsg_subject(self.translate(
                                  msgid='pfg_formmaileradapter_msg_subject',
                                  domain='ploneformgen',
                                  default='Form Submission'))
コード例 #8
0
ファイル: adapter.py プロジェクト: jean/collective.pfg.signup
 def __init__(self, oid, **kwargs):
     """Initialize class."""
     FormActionAdapter.__init__(self, oid, **kwargs)
     self.waiting_list = OOBTree()