Home | Trees | Index | Help |
|
---|
Package ldaptor :: Module inmemory :: Class InMemoryLDIFProtocol |
|
BaseProtocol
--+ |Protocol
--+ |LineReceiver
--+ |object
--+ |LDIF
--+ | InMemoryLDIFProtocol
Receive LDIF data and gather results into an ReadOnlyInMemoryLDAPEntry.
You can override lookupFailed and addFailed to provide smarter error handling. They are called as Deferred errbacks; returning the reason causes error to pass onward and abort the whole operation. Returning None from lookupFailed skips that entry, but continues loading.
When the full LDIF data has been read, the completed Deferred will trigger.Method Summary | |
---|---|
__init__(self)
| |
addFailed(self,
reason,
entry)
| |
connectionLost(self,
reason)
| |
gotEntry(self,
entry)
| |
lookupFailed(self,
reason,
entry)
| |
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.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
Inherited from LineReceiver | |
Clear buffered data. | |
Protocol.dataReceived. | |
Called when the maximum line length has been reached. | |
Override this for when raw data is received. | |
Sends a line to the other end of the connection. | |
Sets the line-mode of this receiver. | |
Sets the raw mode of this receiver. | |
Inherited from Protocol | |
(Deprecated) |
Class Variable Summary | |
---|---|
Inherited from LineReceiver | |
int |
line_mode = 1 |
int |
MAX_LENGTH : The maximum length of a line to allow (If a sent line is longer than
this, the connection is dropped). |
Inherited from Protocol | |
tuple |
__implements__ = (<class 'twisted.internet.interfaces.IP...
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Tue Aug 17 17:08:21 2004 | http://epydoc.sf.net |