Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roque
erp5
Commits
fc970047
Commit
fc970047
authored
Feb 24, 2014
by
Romain Courteaud
Committed by
Sebastien Robin
Aug 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Form is now indexable.
parent
8947a112
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
product/ERP5Form/Form.py
product/ERP5Form/Form.py
+12
-2
No files found.
product/ERP5Form/Form.py
View file @
fc970047
...
...
@@ -47,6 +47,7 @@ from Acquisition import aq_base
from
Products.PageTemplates.Expressions
import
SecureModuleImporter
from
Products.ERP5Type.PsycoWrapper
import
psyco
from
Products.ERP5Type.Base
import
Base
import
sys
class
FieldValueCacheDict
(
dict
):
...
...
@@ -563,12 +564,13 @@ def create_settings_form():
from
OFS.Cache
import
filterCacheTab
class
ERP5Form
(
ZMIForm
,
ZopePageTemplate
):
class
ERP5Form
(
Base
,
ZMIForm
,
ZopePageTemplate
):
"""
A Formulator form with a built-in rendering parameter based
on page templates or DTML.
"""
meta_type
=
"ERP5 Form"
portal_type
=
"Form"
icon
=
"www/Form.png"
# Declarative Security
...
...
@@ -589,7 +591,10 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
# Declarative properties
property_sheets
=
(
PropertySheet
.
Base
,
PropertySheet
.
SimpleItem
)
,
PropertySheet
.
SimpleItem
,
PropertySheet
.
Folder
,
PropertySheet
.
CategoryCore
)
# Constructors
constructors
=
(
manage_addForm
,
addERP5Form
)
...
...
@@ -621,6 +626,11 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
# Special Settings
settings_form
=
create_settings_form
()
manage_main
=
ZMIForm
.
manage_main
objectIds
=
ZMIForm
.
objectIds
objectItems
=
ZMIForm
.
objectItems
objectValues
=
ZMIForm
.
objectValues
def
__init__
(
self
,
id
,
title
,
unicode_mode
=
0
,
encoding
=
'UTF-8'
,
stored_encoding
=
'UTF-8'
):
"""Initialize form.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment