Commit d409eba6 authored by Łukasz Nowak's avatar Łukasz Nowak

Partially revert 'Implement site.zcml and include deadlockdebugger.'

z3c.deadlockdebugger is not able to show trace when Zope node is really
busy, so it is unusable do debug deadlocks.
parent 178584b3
...@@ -613,8 +613,7 @@ class Recipe(BaseSlapRecipe): ...@@ -613,8 +613,7 @@ class Recipe(BaseSlapRecipe):
return dict(host=ip, port=port) return dict(host=ip, port=port)
def installZope(self, ip, port, name, zodb_configuration_string, def installZope(self, ip, port, name, zodb_configuration_string,
with_timerservice=False, tidstorage_config=None, thread_amount=1, with_timerservice=False, tidstorage_config=None, thread_amount=1):
with_deadlockdebugger=True):
# Create zope configuration file # Create zope configuration file
zope_config = dict( zope_config = dict(
products=self.options['products'], products=self.options['products'],
...@@ -623,12 +622,6 @@ class Recipe(BaseSlapRecipe): ...@@ -623,12 +622,6 @@ class Recipe(BaseSlapRecipe):
# configure default Zope2 zcml # configure default Zope2 zcml
open(os.path.join(self.erp5_directory, 'etc', 'site.zcml'), 'w').write( open(os.path.join(self.erp5_directory, 'etc', 'site.zcml'), 'w').write(
pkg_resources.resource_string('Zope2', 'utilities/skel/etc/site.zcml')) pkg_resources.resource_string('Zope2', 'utilities/skel/etc/site.zcml'))
if with_deadlockdebugger:
open(os.path.join(self.erp5_directory, 'etc', 'package-includes',
'deadlockdebugger-configure.zcml'), 'w').write('''<configure>
<include package="zope.applicationcontrol"/>
<include package="z3c.deadlockdebugger"/>
</configure>''')
zope_config['zodb_configuration_string'] = zodb_configuration_string zope_config['zodb_configuration_string'] = zodb_configuration_string
zope_config['instance'] = self.erp5_directory zope_config['instance'] = self.erp5_directory
zope_config['event_log'] = os.path.join(self.log_directory, zope_config['event_log'] = os.path.join(self.log_directory,
......
...@@ -331,9 +331,6 @@ eggs = ...@@ -331,9 +331,6 @@ eggs =
# Products.PortalTransforms # Products.PortalTransforms
# Dependency for our fork of PortalTransforms # Dependency for our fork of PortalTransforms
StructuredText StructuredText
# replacement of DeadlockDebugger
zope.applicationcontrol
z3c.deadlockdebugger
# parameterizing the version of the generated python interpreter name by the # parameterizing the version of the generated python interpreter name by the
# python section version causes dependency between this egg section and the # python section version causes dependency between this egg section and the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment