Commit ef4a0ee9 authored by Vincent Pelletier's avatar Vincent Pelletier

Prevent Formulator (and incidentaly ERP5Form) from bloating the ZODB at each...

Prevent Formulator (and incidentaly ERP5Form) from bloating the ZODB at each zope restart. This also cures conflict error occuring when restarting 2 zopes concurently on the same zeo server.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15568 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b7ba91c3
......@@ -24,11 +24,19 @@
from Products.Formulator.Field import Field
from Products.Formulator.Widget import Widget
from Products.Formulator.Widget import render_element
from Products.Formulator.FieldRegistry import FieldRegistry
from AccessControl import ClassSecurityInfo
from cgi import escape
import types
from zLOG import LOG
def noop(*args, **kw):
pass
# XXX: this is a quick fix to avoid bloating the ZODB.
# Proper fix should only add FieldHelp when it's missing.
FieldRegistry.registerFieldHelp = noop
def Field_generate_field_key(self, validation=0, key=None):
"""Generate the key Silva uses to render the field in the form.
"""
......
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