Back to index

enigmail  1.4.3
Public Member Functions | Static Public Attributes
xpidl.InterfaceAttributes Class Reference

List of all members.

Public Member Functions

def setuuid
def setscriptable
def setfunction
def setnoscript
def setbuiltinclass
def setdeprecated
def __init__
def __str__

Static Public Attributes

 uuid = None
 scriptable = False
 builtinclass = False
 function = False
 deprecated = False
 noscript = False
dictionary actions

Detailed Description

Definition at line 636 of file xpidl.py.


Constructor & Destructor Documentation

def xpidl.InterfaceAttributes.__init__ (   self,
  attlist,
  location 
)

Definition at line 672 of file xpidl.py.

00672 
00673     def __init__(self, attlist, location):
00674         def badattribute(self):
00675             raise IDLError("Unexpected interface attribute '%s'" % name, location)
00676 
00677         for name, val, aloc in attlist:
00678             hasval, action = self.actions.get(name, (False, badattribute))
00679             if hasval:
00680                 if val is None:
00681                     raise IDLError("Expected value for attribute '%s'" % name,
00682                                    aloc)
00683 
00684                 action(self, val)
00685             else:
00686                 if val is not None:
00687                     raise IDLError("Unexpected value for attribute '%s'" % name,
00688                                    aloc)
00689 
00690                 action(self)


Member Function Documentation

Definition at line 691 of file xpidl.py.

00691 
00692     def __str__(self):
00693         l = []
00694         if self.uuid:
00695             l.append("\tuuid: %s\n" % self.uuid)
00696         if self.scriptable:
00697             l.append("\tscriptable\n")
00698         if self.builtinclass:
00699             l.append("\tbuiltinclass\n")
00700         if self.function:
00701             l.append("\tfunction\n")
00702         return "".join(l)

Definition at line 656 of file xpidl.py.

00656 
00657     def setbuiltinclass(self):
00658         self.builtinclass = True

Definition at line 659 of file xpidl.py.

00659 
00660     def setdeprecated(self):
00661         self.deprecated = True

Definition at line 650 of file xpidl.py.

00650 
00651     def setfunction(self):
00652         self.function = True

Definition at line 653 of file xpidl.py.

00653 
00654     def setnoscript(self):
00655         self.noscript = True

Definition at line 647 of file xpidl.py.

00647 
00648     def setscriptable(self):
00649         self.scriptable = True

def xpidl.InterfaceAttributes.setuuid (   self,
  value 
)

Definition at line 644 of file xpidl.py.

00644 
00645     def setuuid(self, value):
00646         self.uuid = value.lower()


Member Data Documentation

dictionary xpidl.InterfaceAttributes.actions [static]
Initial value:
{
        'uuid':       (True, setuuid),
        'scriptable': (False, setscriptable),
        'builtinclass': (False, setbuiltinclass),
        'function':   (False, setfunction),
        'noscript':   (False, setnoscript),
        'deprecated': (False, setdeprecated),
        'object':     (False, lambda self: True),
        }

Definition at line 662 of file xpidl.py.

Definition at line 639 of file xpidl.py.

Definition at line 641 of file xpidl.py.

Definition at line 640 of file xpidl.py.

Definition at line 642 of file xpidl.py.

Definition at line 638 of file xpidl.py.

Definition at line 637 of file xpidl.py.


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