Logo Search packages:      
Sourcecode: zope-attachmentfield version File versions  Download package

def AttachmentField::AttachmentHandler::AbstractHandler::_convert (   self,
  field,
  instance,
  program,
  arguments,
  encoding 
) [private]

_convert(self, field, instance, program, arguments, encoding) => call a converter with arguments. Return an unicode string.

Won't convert if 'None' is provided as the converter or argument parameter -> This is the way for
a plugin to inhibit conversion.

Definition at line 271 of file AttachmentHandler.py.

00271                                                                      :
        """
        _convert(self, field, instance, program, arguments, encoding) => call a converter with arguments. Return an unicode string.

        Won't convert if 'None' is provided as the converter or argument parameter -> This is the way for
        a plugin to inhibit conversion.
        """
        # Perform conversion
        uustring = self._convertString(
            str(field.get(instance)),
            field.getFilename(instance),
            program,
            arguments,
            encoding,
            )

        # Return an encoded string
        return Field.encode(uustring, instance)


    def unicode2string(self, str, instance):


Generated by  Doxygen 1.6.0   Back to index