Example #1
0
    def createJob(self):
        """
        Creating individual job information.
        This information will correspondent
        to single job information in Salesforce.
        """
        root, jobinfo = self.__set_headers()

        if self.operation is not None:
            jobinfo.appendChild(
                createxmlNode(self.OPERATION, str(self.operation).lower()))
        if self._object is not None:
            jobinfo.appendChild(createxmlNode(self.OBJECT, self._object))
        if self.externalfieldname is not None:
            jobinfo.appendChild(
                createxmlNode(self.EXTERNALIDFIELDNAME,
                              self.externalfieldname))
        if self.concurrencyMode is not None:
            jobinfo.appendChild(
                createxmlNode(self.CONCURRENCYMODE, self.concurrencyMode))
        if self.contentType is not None:
            jobinfo.appendChild(
                createxmlNode(self.CONTENTTYPE, self.contentType))

        return self.__return_xml(root, jobinfo)
Example #2
0
    def createJob(self):
        """
        Creating individual job information.
        This information will correspondent
        to single job information in Salesforce.
        """
        root, jobinfo = self.__set_headers()

        if self.operation is not None:
            jobinfo.appendChild(
                createxmlNode(self.OPERATION,
                              str(self.operation).lower()))
        if self._object is not None:
            jobinfo.appendChild(createxmlNode(self.OBJECT, self._object))
        if self.externalfieldname is not None:
            jobinfo.appendChild(
                createxmlNode(self.EXTERNALIDFIELDNAME,
                              self.externalfieldname))
        if self.concurrencyMode is not None:
            jobinfo.appendChild(
                createxmlNode(self.CONCURRENCYMODE, self.concurrencyMode))
        if self.contentType is not None:
            jobinfo.appendChild(
                createxmlNode(self.CONTENTTYPE, self.contentType))

        return self.__return_xml(root, jobinfo)
Example #3
0
    def closeJob(self):
        """
        Close the individual job information.
        """
        root, jobinfo = self.__set_headers()

        if self.state is not None:
            jobinfo.appendChild(createxmlNode('state', self.state))

        return self.__return_xml(root, jobinfo)
Example #4
0
    def closeJob(self):
        """
        Close the individual job information.
        """
        root, jobinfo = self.__set_headers()

        if self.state is not None:
            jobinfo.appendChild(createxmlNode('state', self.state))

        return self.__return_xml(root, jobinfo)