Back to index

moin  1.9.0~rc2
Public Member Functions | Static Public Attributes
MoinMoin.datastruct.backends._tests.test_lazy_config_groups.TestCompositeAndLazyConfigGroups.Config Class Reference
Inheritance diagram for MoinMoin.datastruct.backends._tests.test_lazy_config_groups.TestCompositeAndLazyConfigGroups.Config:
Inheritance graph
Collaboration diagram for MoinMoin.datastruct.backends._tests.test_lazy_config_groups.TestCompositeAndLazyConfigGroups.Config:
Collaboration graph

List of all members.

Public Member Functions

def groups

Static Public Attributes

tuple wikiconfig_dir = os.path.abspath(os.path.dirname(__file__))
 instance_dir = wikiconfig_dir
tuple data_dir = os.path.join(instance_dir, 'data', '')
tuple data_underlay_dir = os.path.join(instance_dir, 'underlay', '')
string sitename = u'Untitled Wiki'
string logo_string = u'<img src="%s/common/moinmoin.png" alt="MoinMoin Logo">'
list navi_bar
string theme_default = 'modern'
string language_default = 'en'
string page_category_regex = ur'(?P<all>Category(?P<key>(?!Template)\S+))'
string page_dict_regex = ur'(?P<all>(?P<key>\S+)Dict)'
string page_group_regex = ur'(?P<all>(?P<key>\S+)Group)'
string page_template_regex = ur'(?P<all>(?P<key>\S+)Template)'
int show_hosts = 1

Detailed Description

Definition at line 40 of file

Member Function Documentation

Definition at line 42 of file

00043         def groups(self, request):
00044             config_groups = {u'EditorGroup': [u'AdminGroup', u'John', u'JoeDoe', u'Editor1', u'John'],
00045                              u'RecursiveGroup': [u'Something', u'OtherRecursiveGroup'],
00046                              u'OtherRecursiveGroup': [u'RecursiveGroup', u'Anything', u'NotExistingGroup'],
00047                              u'ThirdRecursiveGroup': [u'ThirdRecursiveGroup', u'Banana'],
00048                              u'CheckNotExistingGroup': [u'NotExistingGroup']}
00050             lazy_groups = {u'AdminGroup': [u'Admin1', u'Admin2', u'John'],
00051                            u'OtherGroup': [u'SomethingOther'],
00052                            u'EmptyGroup': []}
00054             return CompositeGroups(request,
00055                                    ConfigGroups(request, config_groups),
00056                                    ConfigLazyGroups(request, lazy_groups))

Member Data Documentation

tuple wikiconfig.Config.data_dir = os.path.join(instance_dir, 'data', '') [static, inherited]

Definition at line 51 of file

tuple wikiconfig.Config.data_underlay_dir = os.path.join(instance_dir, 'underlay', '') [static, inherited]

Definition at line 54 of file

Definition at line 48 of file

string wikiconfig.Config.language_default = 'en' [static, inherited]

Definition at line 152 of file

string wikiconfig.Config.logo_string = u'<img src="%s/common/moinmoin.png" alt="MoinMoin Logo">' [static, inherited]

Definition at line 73 of file

list wikiconfig.Config.navi_bar [static, inherited]
Initial value:
        # If you want to show your page_front_page here:

Definition at line 134 of file

string wikiconfig.Config.page_category_regex = ur'(?P<all>Category(?P<key>(?!Template)\S+))' [static, inherited]

Definition at line 159 of file

string wikiconfig.Config.page_dict_regex = ur'(?P<all>(?P<key>\S+)Dict)' [static, inherited]

Definition at line 160 of file

string wikiconfig.Config.page_group_regex = ur'(?P<all>(?P<key>\S+)Group)' [static, inherited]

Definition at line 161 of file

string wikiconfig.Config.page_template_regex = ur'(?P<all>(?P<key>\S+)Template)' [static, inherited]

Definition at line 162 of file

int wikiconfig.Config.show_hosts = 1 [static, inherited]

Definition at line 167 of file

string wikiconfig.Config.sitename = u'Untitled Wiki' [static, inherited]

Definition at line 68 of file

string wikiconfig.Config.theme_default = 'modern' [static, inherited]

Definition at line 143 of file

tuple wikiconfig.Config.wikiconfig_dir = os.path.abspath(os.path.dirname(__file__)) [static, inherited]

Definition at line 38 of file

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