Package dopal :: Module obj_impl :: Class DopalObjectMixin
[show private | hide private]
[frames | no frames]

Class DopalObjectMixin

Known Subclasses:
DopalDiskManagerFileInfo, DopalDownload, DopalDownloadStats, DopalLoggerChannel, DopalObjectStatsMixin, DopalPeer, DopalPluginConfig, DopalPluginInterface, DopalTorrent

Method Summary
  __repr__(self)
  __str__(self)
Generates a string representation of this object - the value of this string will be the result returned by the __unicode__ method.
  __unicode__(self)
Generates a text representation of this object.
  full_description(self)
  short_description(self)
  _full_description(self)
  _short_description(self)

Method Details

__str__(self)
(Informal representation operator)

Generates a string representation of this object - the value of this string will be the result returned by the __unicode__ method.

Note - this method should return a string which is appropriate for the system's encoding (so UnicodeEncodeErrors should not occur), but it makes no guarantee how it will do this.

As of DOPAL 0.60, it encodes the string using the default system encoding, using 'replace' as the default way to handle encoding problems.

__unicode__(self)

Generates a text representation of this object. If the full_description returns a useful representation, then the string will have this format:
  RemoteTypeName: FullDescriptionString

Otherwise, it will resort to the superclass string representation.

Example:
  Download: The Subways - Staring at the Sun.mp3 [Stopped, 100.0%]

Generated by Epydoc 2.1 on Wed May 03 14:22:33 2006 http://epydoc.sf.net