コード例 #1
0
ファイル: attrsstorage.py プロジェクト: kcleong/w20e.forms
    def __init__(self, **props):

        """ AttrsStorage uses simple attribute storage to store the
        separate fields onto the context.
        """

        SubmissionBase.__init__(self, **props)
コード例 #2
0
    def __init__(self, **props):
        """ PyramidSessionStorage stores the data container in the session
        """

        SubmissionBase.__init__(self, **props)

        self.attr_name = props.get("attr_name", DATA_ATTR_NAME)
コード例 #3
0
    def __init__(self, **props):

        """ Email submission does... well, you get the idea... """

        self.subject = self.reply_to = self.send_from = self.send_to = ""

        SubmissionBase.__init__(self, **props)
コード例 #4
0
    def __init__(self, **props):

        """ PyramidSessionStorage stores the data container in the session
        """

        SubmissionBase.__init__(self, **props)

        self.attr_name = props.get("attr_name", DATA_ATTR_NAME)
コード例 #5
0
ファイル: attrstorage.py プロジェクト: kcleong/w20e.forms
    def __init__(self, **props):
        """ AttrStorage uses simple attribute storage to store the
        whole data container on the context.
        """

        SubmissionBase.__init__(self, **props)

        self.attr_name = props.get("attr_name", DATA_ATTR_NAME)
        self.use_blobstorage = props.get("use_blobstorage", False)
コード例 #6
0
ファイル: attrstorage.py プロジェクト: kcleong/w20e.forms
    def __init__(self, **props):

        """ AttrStorage uses simple attribute storage to store the
        whole data container on the context.
        """

        SubmissionBase.__init__(self, **props)

        self.attr_name = props.get("attr_name", DATA_ATTR_NAME)
        self.use_blobstorage = props.get("use_blobstorage", False)
コード例 #7
0
ファイル: methodcall.py プロジェクト: kcleong/w20e.forms
    def __init__(self, **props):
        """ Method call submission enables calling a method of the
        form context, or attributes thereof. To call methods on
        subparts, do something like 'subattribute.method'.
        """

        SubmissionBase.__init__(self, **props)

        self.submit_method = props.get("submit_method", None)
        self.retrieve_method = props.get("retrieve_method", None)
コード例 #8
0
ファイル: methodcall.py プロジェクト: kcleong/w20e.forms
    def __init__(self, **props):

        """ Method call submission enables calling a method of the
        form context, or attributes thereof. To call methods on
        subparts, do something like 'subattribute.method'.
        """

        SubmissionBase.__init__(self, **props)

        self.submit_method = props.get("submit_method", None)
        self.retrieve_method = props.get("retrieve_method", None)
コード例 #9
0
    def __init__(self, **props):
        """ AttrStorage uses simple attribute storage to store the
        whole data container on the context.
        """

        SubmissionBase.__init__(self, **props)

        self.attr_name = props.get("attr_name", DATA_ATTR_NAME)
        self.use_blobstorage = props.get("use_blobstorage", False)
        ucf = props.get("use_compression_for", None)
        ucf = ucf and ucf.split(",") or []
        self._use_compression_for = ucf
コード例 #10
0
    def __init__(self, **props):

        """ AttrStorage uses simple attribute storage to store the
        whole data container on the context.
        """

        SubmissionBase.__init__(self, **props)

        self.attr_name = props.get("attr_name", DATA_ATTR_NAME)
        self.use_blobstorage = props.get("use_blobstorage", False)
        ucf = props.get("use_compression_for", None)
        ucf = ucf and ucf.split(",") or []
        self._use_compression_for = ucf
コード例 #11
0
    def __init__(self, **props):

        SubmissionBase.__init__(self, **props)
        self.type = "none"
コード例 #12
0
ファイル: emailsubmission.py プロジェクト: kcleong/w20e.forms
    def __init__(self, **props):

        """ Email submission does... well, you get the idea... """

        SubmissionBase.__init__(self, **props)
コード例 #13
0
    def __init__(self, **props):
        """ Email submission does... well, you get the idea... """

        self.subject = self.reply_to = self.send_from = self.send_to = ""

        SubmissionBase.__init__(self, **props)
コード例 #14
0
    def __init__(self, **props):
        """ AttrsStorage uses simple attribute storage to store the
        separate fields onto the context.
        """

        SubmissionBase.__init__(self, **props)