Skip to content

Commit

Permalink
using functions for looking up and choosing local-site-manager when r…
Browse files Browse the repository at this point in the history
…egistring components
  • Loading branch information
goschtl committed Apr 29, 2012
1 parent f18f3fa commit 9120d6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/grokcore/site/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def execute(self, factory, config, infos, **kw):

config.action(
discriminator=None,
callable=component.provideHandler,
callable=grokcore.component.util.provideHandler,
args=(localUtilityRegistrationSubscriber, adapts),
)
return True
Expand Down Expand Up @@ -125,7 +125,7 @@ def grok(self, name, factory, module_info, config, **kw):
name = '%s.%s' % (module_info.dotted_name, name)
config.action(
discriminator=('utility', provides, name),
callable=component.provideUtility,
callable=grokcore.component.util.provideUtility,
args=(factory, provides, name),
)
return True

0 comments on commit 9120d6b

Please sign in to comment.