Commit c820b880 authored by Yusei Tahara's avatar Yusei Tahara

Add find support, you can search form and field in Find tab in ZMI.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18037 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 04f7282c
......@@ -927,6 +927,10 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
return [group for group in self.group_list
if self.get_fields_in_group(group, include_disabled=1)]
# Find support in ZMI. This is useful for development.
def PrincipiaSearchSource(self):
return str((self.pt, self.name, self.action, self.update_action,
self.encoding, self.stored_encoding, self.enctype))
# utility function
def get_field_meta_type_and_proxy_flag(field):
......
......@@ -1464,3 +1464,10 @@ def Field_render_dict(self, value=None, REQUEST=None, key=None, **kw):
"""
return self.widget.render_dict(self, value)
Field.render_dict = Field_render_dict
# Find support in ZMI. This is useful for development.
def Field_PrincipiaSearchSource(self):
return str((self.values.values(), self.tales.values(),
self.overrides.values()))
Field.PrincipiaSearchSource = Field_PrincipiaSearchSource
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