Back to index

python3.2  3.2.2
Public Member Functions | Static Public Attributes
plistlib.Plist Class Reference
Inheritance diagram for plistlib.Plist:
Inheritance graph
[legend]
Collaboration diagram for plistlib.Plist:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def fromFile
def write
def __getattr__
def __setattr__
def __delattr__

Static Public Attributes

tuple fromFile = classmethod(fromFile)

Detailed Description

This class has been deprecated. Use readPlist() and writePlist()
functions instead, together with regular dict objects.

Definition at line 296 of file plistlib.py.


Constructor & Destructor Documentation

def plistlib.Plist.__init__ (   self,
  kwargs 
)

Definition at line 302 of file plistlib.py.

00302 
00303     def __init__(self, **kwargs):
00304         from warnings import warn
00305         warn("The Plist class is deprecated, use the readPlist() and "
00306              "writePlist() functions instead", PendingDeprecationWarning, 2)
00307         super().__init__(**kwargs)

Here is the caller graph for this function:


Member Function Documentation

def plistlib._InternalDict.__delattr__ (   self,
  attr 
) [inherited]

Definition at line 278 of file plistlib.py.

00278 
00279     def __delattr__(self, attr):
00280         try:
00281             del self[attr]
00282         except KeyError:
00283             raise AttributeError(attr)
00284         from warnings import warn
00285         warn("Attribute access from plist dicts is deprecated, use d[key] "
00286              "notation instead", PendingDeprecationWarning, 2)

def plistlib._InternalDict.__getattr__ (   self,
  attr 
) [inherited]

Definition at line 262 of file plistlib.py.

00262 
00263     def __getattr__(self, attr):
00264         try:
00265             value = self[attr]
00266         except KeyError:
00267             raise AttributeError(attr)
00268         from warnings import warn
00269         warn("Attribute access from plist dicts is deprecated, use d[key] "
00270              "notation instead", PendingDeprecationWarning, 2)
00271         return value

def plistlib._InternalDict.__setattr__ (   self,
  attr,
  value 
) [inherited]

Definition at line 272 of file plistlib.py.

00272 
00273     def __setattr__(self, attr, value):
00274         from warnings import warn
00275         warn("Attribute access from plist dicts is deprecated, use d[key] "
00276              "notation instead", PendingDeprecationWarning, 2)
00277         self[attr] = value

def plistlib.Plist.fromFile (   cls,
  pathOrFile 
)
Deprecated. Use the readPlist() function instead.

Definition at line 308 of file plistlib.py.

00308 
00309     def fromFile(cls, pathOrFile):
00310         """Deprecated. Use the readPlist() function instead."""
00311         rootObject = readPlist(pathOrFile)
00312         plist = cls()
00313         plist.update(rootObject)
        return plist

Here is the call graph for this function:

def plistlib.Plist.write (   self,
  pathOrFile 
)
Deprecated. Use the writePlist() function instead.

Definition at line 316 of file plistlib.py.

00316 
00317     def write(self, pathOrFile):
00318         """Deprecated. Use the writePlist() function instead."""
00319         writePlist(self, pathOrFile)
00320 

Here is the call graph for this function:


Member Data Documentation

Definition at line 314 of file plistlib.py.


The documentation for this class was generated from the following file: