Package trac :: Package versioncontrol :: Package web_ui :: Package tests :: Module log :: Class MockNode

Class MockNode

source code

object --+    
         |    
  api.Node --+
             |
            MockNode

Nested Classes

Inherited from api.Node: __metaclass__

Instance Methods
 
__init__(self, repos, path, rev, kind)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
get_history(self, limit=None)
Provide backward history for this Node.
source code
 
get_annotations(self, *args, **kwargs)
Return a stream for reading the content of the node.
source code
 
get_content(self, *args, **kwargs)
Return a stream for reading the content of the node.
source code
 
get_content_length(self, *args, **kwargs)
Return a stream for reading the content of the node.
source code
 
get_content_type(self, *args, **kwargs)
Return a stream for reading the content of the node.
source code
 
get_entries(self, *args, **kwargs)
Return a stream for reading the content of the node.
source code
 
get_last_modified(self, *args, **kwargs)
Return a stream for reading the content of the node.
source code
 
get_properties(self, *args, **kwargs)
Return a stream for reading the content of the node.
source code

Inherited from api.Node: __repr__, can_view, get_name, get_previous, get_processed_content, is_viewable

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

Class Variables
  __abstractmethods__ = frozenset([])

Inherited from api.Node: DIRECTORY, FILE, created_path, created_rev, realm

Properties

Inherited from api.Node: content_length, content_type, isdir, isfile, last_modified, name, resource

Inherited from object: __class__

Method Details

__init__(self, repos, path, rev, kind)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

get_history(self, limit=None)

source code 

Provide backward history for this Node.

Generator that yields (path, rev, chg) tuples, one for each revision in which the node was changed. This generator will follow copies and moves of a node (if the underlying version control system supports that), which will be indicated by the first element of the tuple (i.e. the path) changing. Starts with an entry for the current revision.

Parameters:
  • limit - if given, yield at most limit results.
Overrides: api.Node.get_history
(inherited documentation)

get_annotations(self, *args, **kwargs)

source code 

Return a stream for reading the content of the node.

This method will return None for directories. The returned object must support a read([len]) method.

Overrides: api.Node.get_annotations
(inherited documentation)

get_content(self, *args, **kwargs)

source code 

Return a stream for reading the content of the node.

This method will return None for directories. The returned object must support a read([len]) method.

Overrides: api.Node.get_content
(inherited documentation)

get_content_length(self, *args, **kwargs)

source code 

Return a stream for reading the content of the node.

This method will return None for directories. The returned object must support a read([len]) method.

Overrides: api.Node.get_content_length
(inherited documentation)

get_content_type(self, *args, **kwargs)

source code 

Return a stream for reading the content of the node.

This method will return None for directories. The returned object must support a read([len]) method.

Overrides: api.Node.get_content_type
(inherited documentation)

get_entries(self, *args, **kwargs)

source code 

Return a stream for reading the content of the node.

This method will return None for directories. The returned object must support a read([len]) method.

Overrides: api.Node.get_entries
(inherited documentation)

get_last_modified(self, *args, **kwargs)

source code 

Return a stream for reading the content of the node.

This method will return None for directories. The returned object must support a read([len]) method.

Overrides: api.Node.get_last_modified

get_properties(self, *args, **kwargs)

source code 

Return a stream for reading the content of the node.

This method will return None for directories. The returned object must support a read([len]) method.

Overrides: api.Node.get_properties
(inherited documentation)