Package papyon :: Module p2p :: Class MSNObject

Class MSNObject

source code

object --+
         |
        MSNObject

Represents an MSNObject.

Instance Methods
 
__init__(self, creator, size, type, location, friendly, shad=None, shac=None, data=None)
Initializer
source code
 
__ne__(self, other) source code
 
__eq__(self, other) source code
 
__hash__(self)
hash(x)
source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Static Methods
 
parse(client, xml_data) source code
Properties

Inherited from object: __class__

Method Details

__init__(self, creator, size, type, location, friendly, shad=None, shac=None, data=None)
(Constructor)

source code 

Initializer

Parameters:
  • creator (utf-8 encoded string representing the account) - the creator of this MSNObject
  • size (int) - the total size of the data represented by this MSNObject
  • type (MSNObjectType) - the type of the data
  • location (utf-8 encoded string) - a filename for the MSNObject
  • friendly (utf-8 encoded string) - a friendly name for the MSNObject
  • shad - sha1 digest of the data
  • shac - sha1 digest of the MSNObject itself
  • data (File) - file object to the data represented by this MSNObject
Overrides: object.__init__

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)