changeset 4862:c098b029cf60

Groups2009: Configuration snippets were updated.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Sat, 18 Jul 2009 18:14:45 +0200
parents c809d085a605
children 69073f6b028a
files wiki/config/more_samples/dicts_wikiconfig_snippet wiki/config/more_samples/groups_wikiconfig_snippet
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/wiki/config/more_samples/dicts_wikiconfig_snippet	Sat Jul 18 18:09:28 2009 +0200
+++ b/wiki/config/more_samples/dicts_wikiconfig_snippet	Sat Jul 18 18:14:45 2009 +0200
@@ -2,12 +2,12 @@
     # See HelpOnConfiguration for more info.
 
     # The wiki_dicts backend is used by default.
-    def dict_manager_init(self, request):
+    def dicts(self, request):
         from MoinMoin.datastruct import WikiDicts
         return WikiDicts(request)
 
     # Use only dicts defined in the configuration file.
-    def dict_manager_init(self, request):
+    def dicts(self, request):
         from MoinMoin.datastruct import ConfigDicts
         dicts = {u'OneDict': {u'first_key': u'first item',
                               u'second_key': u'second item'},
@@ -16,7 +16,7 @@
         return ConfigDicts(request, dicts)
 
     # Use both config_dicts and wiki_dicts backends.
-    def dict_manager_init(self, request):
+    def dicts(self, request):
         from MoinMoin.datastruct import ConfigDicts, WikiDicts, CompositeDicts
         dicts = {u'OneDict': {u'first_key': u'first item',
                               u'second_key': u'second item'},
--- a/wiki/config/more_samples/groups_wikiconfig_snippet	Sat Jul 18 18:09:28 2009 +0200
+++ b/wiki/config/more_samples/groups_wikiconfig_snippet	Sat Jul 18 18:14:45 2009 +0200
@@ -2,12 +2,12 @@
     # See HelpOnConfiguration for more info.
 
     # The wiki_groups backend is used by default.
-    def group_manager_init(self, request):
+    def groups(self, request):
         from MoinMoin.datastruct import WikiGroups
         return WikiGroups(request)
 
     # Use only groups defined in the configuration file.
-    def group_manager_init(self, request):
+    def groups(self, request):
         from MoinMoin.datastruct import ConfigGroups
         # Groups are defined here.
         groups = {u'EditorGroup': [u'AdminGroup', u'John', u'JoeDoe', u'Editor1'],
@@ -15,7 +15,7 @@
         return ConfigGroups(request, groups)
 
     # Use both config_groups and wiki_groups backends.
-    def group_manager_init(self, request):
+    def groups(self, request):
         from MoinMoin.datastruct import ConfigGroups, WikiGroups, CompositeGroups
         groups = {u'EditorGroup': [u'AdminGroup', u'John', u'JoeDoe', u'Editor1'],
                   u'AdminGroup': [u'Admin1', u'Admin2', u'John']}