Home | Trees | Index | Help |
---|
Package vobject :: Module vobject :: Class ContentLine |
|
object
--+ |VBase
--+ | ContentLine
Holds one content line for formats like vCard and vCalendar.
For example:<SUMMARY{u'param1' : [u'val1'], u'param2' : [u'val2']}Bastille Day Party>
Method Summary | |
---|---|
Take output from parseLine, convert params list to dictionary. | |
__eq__(self,
other)
| |
__repr__(self)
| |
__str__(self)
| |
prettyPrint(self,
level,
tabwidth)
| |
Inherited from VBase | |
Set behavior if name is in self.parentBehavior.knownChildren. | |
Set behavior to None. | |
Return an iterable containing the contents of the object. | |
Serialize to buf if it exists, otherwise return a string. | |
Set behavior. | |
Recursively transform native children to vanilla representations. | |
Recursively replace children with their native representation. | |
Return self transformed into a ContentLine or Component if needed. | |
Transform this object into a custom VBase subclass. | |
Call the behavior's validate method, or return True. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value |
Instance Variable Summary | |
---|---|
encoded : A boolean describing whether the data in the content line is
encoded. | |
lineNumber : An optional line number associated with the contentline. | |
name : The uppercased name of the contentline. | |
params : A dictionary of parameters and associated lists of values (the list
may be empty for empty parameters). | |
singletonparams : A list of parameters for which it's unclear if the string represents
the parameter name or the parameter value. | |
value : The value of the contentline. | |
Inherited from VBase | |
behavior : The Behavior class associated with this object, which controls
validation, transformations, and encoding. | |
group : An optional group prefix, should be used only to indicate sort order
in vCards, according to RFC2426 | |
isNative : Boolean describing whether this component is a Native instance. | |
parentBehavior : The object's parent's behavior, or None if no behaviored parent
exists. |
Method Details |
---|
__init__(self,
name,
params,
value,
group=None,
encoded=False,
isNative=False,
lineNumber=None,
*args,
**kwds)
Take output from parseLine, convert params list to dictionary.
|
Instance Variable Details |
---|
lineNumberAn optional line number associated with the contentline. |
nameThe uppercased name of the contentline. |
paramsA dictionary of parameters and associated lists of values (the list may be empty for empty parameters). |
valueThe value of the contentline. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Fri Dec 14 17:25:14 2007 | http://epydoc.sf.net |