[Checkins]
SVN: zc.resourcelibrary/trunk/src/zc/resourcelibrary/zcml.py
Take away all deprecations (except i18n:translate, where pertinent).
Gary Poster
gary at zope.com
Fri Apr 28 20:26:55 EDT 2006
Log message for revision 67743:
Take away all deprecations (except i18n:translate, where pertinent).
Changed:
U zc.resourcelibrary/trunk/src/zc/resourcelibrary/zcml.py
-=-
Modified: zc.resourcelibrary/trunk/src/zc/resourcelibrary/zcml.py
===================================================================
--- zc.resourcelibrary/trunk/src/zc/resourcelibrary/zcml.py 2006-04-29 00:25:23 UTC (rev 67742)
+++ zc.resourcelibrary/trunk/src/zc/resourcelibrary/zcml.py 2006-04-29 00:26:53 UTC (rev 67743)
@@ -52,17 +52,17 @@
)
-def handler(name, dependencies, *provideAdapterArgs):
+def handler(name, dependencies, required, provided, adapter_name, factory, info=''):
if dependencies:
for dep in dependencies:
if dep not in library_info:
raise ConfigurationError(
'Resource library "%s" has unsatisfied dependency on "%s".'
% (name, dep))
+ zapi.getGlobalSiteManager().registerAdapter(
+ factory, required, provided, adapter_name, info)
- zapi.getGlobalSiteManager().provideAdapter(*provideAdapterArgs)
-
INCLUDABLE_EXTENTIONS = ('.js', '.css')
class ResourceLibrary(object):
More information about the Checkins
mailing list