Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Private Member Functions
MoinMoin.datastruct.backends.BaseDictsBackend Class Reference
Inheritance diagram for MoinMoin.datastruct.backends.BaseDictsBackend:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def is_dict_name
def __contains__
def __getitem__
def get

Public Attributes

 request
 page_dict_regex

Private Member Functions

def _retrieve_items

Detailed Description

Definition at line 305 of file __init__.py.


Constructor & Destructor Documentation

Definition at line 307 of file __init__.py.

00307 
00308     def __init__(self, request):
00309         self.request = request
00310         self.page_dict_regex = request.cfg.cache.page_dict_regexact


Member Function Documentation

Check if a dict called <dict_name> is available in this backend.

Reimplemented in MoinMoin.datastruct.backends.wiki_dicts.WikiDicts, MoinMoin.datastruct.backends.composite_dicts.CompositeDicts, and MoinMoin.datastruct.backends.config_dicts.ConfigDicts.

Definition at line 314 of file __init__.py.

00314 
00315     def __contains__(self, dict_name):
00316         """
00317         Check if a dict called <dict_name> is available in this backend.
00318         """
00319         raise NotImplementedError()

Get a dict by its moin dict name.

Reimplemented in MoinMoin.datastruct.backends.wiki_dicts.WikiDicts, MoinMoin.datastruct.backends.config_dicts.ConfigDicts, and MoinMoin.datastruct.backends.composite_dicts.CompositeDicts.

Definition at line 320 of file __init__.py.

00320 
00321     def __getitem__(self, dict_name):
00322         """
00323         Get a dict by its moin dict name.
00324         """
00325         raise NotImplementedError()

Here is the caller graph for this function:

def MoinMoin.datastruct.backends.BaseDictsBackend._retrieve_items (   self,
  dict_name 
) [private]

Reimplemented in MoinMoin.datastruct.backends.wiki_dicts.WikiDicts, and MoinMoin.datastruct.backends.config_dicts.ConfigDicts.

Definition at line 326 of file __init__.py.

00326 
00327     def _retrieve_items(self, dict_name):
00328         raise NotImplementedError()

def MoinMoin.datastruct.backends.BaseDictsBackend.get (   self,
  key,
  default = None 
)
Return the dictionary named <key> if key is in the backend,
else default. If default is not given, it defaults to None, so
that this method never raises a DictDoesNotExistError.

Definition at line 329 of file __init__.py.

00329 
00330     def get(self, key, default=None):
00331         """
00332         Return the dictionary named <key> if key is in the backend,
00333         else default. If default is not given, it defaults to None, so
00334         that this method never raises a DictDoesNotExistError.
00335         """
00336         try:
00337             return self[key]
00338         except DictDoesNotExistError:
00339             return default
00340 

Here is the caller graph for this function:

Definition at line 311 of file __init__.py.

00311 
00312     def is_dict_name(self, name):
00313         return self.page_dict_regex.match(name)

Here is the caller graph for this function:


Member Data Documentation

Definition at line 309 of file __init__.py.

Definition at line 308 of file __init__.py.


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