Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Static Public Attributes | Static Private Attributes
MoinMoin.web.contexts.AuxilaryMixin Class Reference
Inheritance diagram for MoinMoin.web.contexts.AuxilaryMixin:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def uid_generator
def dicts
def groups
def reset
def getPragma
def setPragma

Public Attributes

 current_lang

Static Public Attributes

tuple parsePageLinks_running = EnvironProxy('parsePageLinks_running', lambda o: {})
tuple mode_getpagelinks = EnvironProxy('mode_getpagelinks', 0)
tuple pragma = EnvironProxy('pragma', lambda o: {})
tuple pages = EnvironProxy('pages', lambda o: {})
tuple uid_generator = EnvironProxy(uid_generator)
tuple dicts = EnvironProxy(dicts)
tuple groups = EnvironProxy(groups)

Static Private Attributes

tuple _fmt_hd_counters = EnvironProxy('_fmt_hd_counters')
tuple _login_messages = EnvironProxy('_login_messages', lambda o: [])
tuple _login_multistage = EnvironProxy('_login_multistage', None)
tuple _login_multistage_name = EnvironProxy('_login_multistage_name', None)
tuple _setuid_real_user = EnvironProxy('_setuid_real_user', None)

Detailed Description

Mixin for diverse attributes and methods that aren't clearly assignable
to a particular phase of the request.

Definition at line 347 of file contexts.py.


Member Function Documentation

Lazy initialize the dicts on the first access 

Definition at line 372 of file contexts.py.

00372 
00373     def dicts(self):
00374         """ Lazy initialize the dicts on the first access """
00375         dicts = self.cfg.dicts(self)
        return dicts
def MoinMoin.web.contexts.AuxilaryMixin.getPragma (   self,
  key,
  defval = None 
)
Query a pragma value (#pragma processing instruction)

    Keys are not case-sensitive.

Definition at line 391 of file contexts.py.

00391 
00392     def getPragma(self, key, defval=None):
00393         """ Query a pragma value (#pragma processing instruction)
00394 
00395             Keys are not case-sensitive.
00396         """
00397         return self.pragma.get(key.lower(), defval)

Lazy initialize the groups on the first access 

Definition at line 378 of file contexts.py.

00378 
00379     def groups(self):
00380         """ Lazy initialize the groups on the first access """
00381         groups = self.cfg.groups(self)
        return groups

Definition at line 384 of file contexts.py.

00384 
00385     def reset(self):
00386         self.current_lang = self.cfg.language_default
00387         if hasattr(self, '_fmt_hd_counters'):
00388             del self._fmt_hd_counters
00389         if hasattr(self, 'uid_generator'):
00390             del self.uid_generator

def MoinMoin.web.contexts.AuxilaryMixin.setPragma (   self,
  key,
  value 
)
Set a pragma value (#pragma processing instruction)

    Keys are not case-sensitive.

Definition at line 398 of file contexts.py.

00398 
00399     def setPragma(self, key, value):
00400         """ Set a pragma value (#pragma processing instruction)
00401 
00402             Keys are not case-sensitive.
00403         """
00404         self.pragma[key.lower()] = value

Definition at line 365 of file contexts.py.

00365 
00366     def uid_generator(self):
00367         pagename = None
00368         if hasattr(self, 'page') and hasattr(self.page, 'page_name'):
00369             pagename = self.page.page_name
        return UniqueIDGenerator(pagename=pagename)

Member Data Documentation

Definition at line 354 of file contexts.py.

Definition at line 359 of file contexts.py.

Definition at line 360 of file contexts.py.

Definition at line 361 of file contexts.py.

Definition at line 362 of file contexts.py.

Definition at line 385 of file contexts.py.

Definition at line 376 of file contexts.py.

Definition at line 382 of file contexts.py.

Definition at line 356 of file contexts.py.

Definition at line 363 of file contexts.py.

Definition at line 355 of file contexts.py.

Definition at line 358 of file contexts.py.

Definition at line 370 of file contexts.py.


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