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
0
Issues
0
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
Titouan Soulard
erp5
Commits
6a8987fb
Commit
6a8987fb
authored
Oct 07, 2014
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add erp5_sql_active_process business template.
parent
62d10412
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
595 additions
and
2 deletions
+595
-2
bt5/erp5_sql_active_process/ActionTemplateItem/portal_types/SQL%20Active%20Process/view.xml
...TemplateItem/portal_types/SQL%20Active%20Process/view.xml
+85
-0
bt5/erp5_sql_active_process/DocumentTemplateItem/portal_components/document.erp5.SQLActiveProcess.py
...eItem/portal_components/document.erp5.SQLActiveProcess.py
+86
-0
bt5/erp5_sql_active_process/DocumentTemplateItem/portal_components/document.erp5.SQLActiveProcess.xml
...Item/portal_components/document.erp5.SQLActiveProcess.xml
+126
-0
bt5/erp5_sql_active_process/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
...eAllowedContentTypeTemplateItem/allowed_content_types.xml
+5
-0
bt5/erp5_sql_active_process/PortalTypeTemplateItem/portal_types/SQL%20Active%20Process.xml
...lTypeTemplateItem/portal_types/SQL%20Active%20Process.xml
+66
-0
bt5/erp5_sql_active_process/SkinTemplateItem/portal_skins/erp5_sql_active_process.xml
...SkinTemplateItem/portal_skins/erp5_sql_active_process.xml
+26
-0
bt5/erp5_sql_active_process/SkinTemplateItem/portal_skins/erp5_sql_active_process/Base_zCreateActiveResultTable.xml
...erp5_sql_active_process/Base_zCreateActiveResultTable.xml
+42
-0
bt5/erp5_sql_active_process/SkinTemplateItem/portal_skins/erp5_sql_active_process/Base_zDeleteResultListFromActiveResultTable.xml
...e_process/Base_zDeleteResultListFromActiveResultTable.xml
+36
-0
bt5/erp5_sql_active_process/SkinTemplateItem/portal_skins/erp5_sql_active_process/Base_zGetResultFromActiveResultTable.xml
...l_active_process/Base_zGetResultFromActiveResultTable.xml
+66
-0
bt5/erp5_sql_active_process/SkinTemplateItem/portal_skins/erp5_sql_active_process/Base_zInsertIntoActiveResultTable.xml
..._sql_active_process/Base_zInsertIntoActiveResultTable.xml
+44
-0
bt5/erp5_sql_active_process/bt/change_log
bt5/erp5_sql_active_process/bt/change_log
+2
-0
bt5/erp5_sql_active_process/bt/copyright_list
bt5/erp5_sql_active_process/bt/copyright_list
+1
-0
bt5/erp5_sql_active_process/bt/license
bt5/erp5_sql_active_process/bt/license
+1
-0
bt5/erp5_sql_active_process/bt/template_action_path_list
bt5/erp5_sql_active_process/bt/template_action_path_list
+1
-0
bt5/erp5_sql_active_process/bt/template_document_id_list
bt5/erp5_sql_active_process/bt/template_document_id_list
+1
-0
bt5/erp5_sql_active_process/bt/template_format_version
bt5/erp5_sql_active_process/bt/template_format_version
+1
-0
bt5/erp5_sql_active_process/bt/template_portal_type_allowed_content_type_list
...process/bt/template_portal_type_allowed_content_type_list
+1
-0
bt5/erp5_sql_active_process/bt/template_portal_type_id_list
bt5/erp5_sql_active_process/bt/template_portal_type_id_list
+1
-0
bt5/erp5_sql_active_process/bt/template_skin_id_list
bt5/erp5_sql_active_process/bt/template_skin_id_list
+1
-0
bt5/erp5_sql_active_process/bt/title
bt5/erp5_sql_active_process/bt/title
+1
-0
product/CMFActivity/ActivityTool.py
product/CMFActivity/ActivityTool.py
+2
-2
No files found.
bt5/erp5_sql_active_process/ActionTemplateItem/portal_types/SQL%20Active%20Process/view.xml
0 → 100644
View file @
6a8987fb
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ActionInformation"
module=
"Products.CMFCore.ActionInformation"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_view
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_view
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
icon
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
view
</string>
</value>
</item>
<item>
<key>
<string>
permissions
</string>
</key>
<value>
<tuple>
<string>
View
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Action Information
</string>
</value>
</item>
<item>
<key>
<string>
priority
</string>
</key>
<value>
<float>
1.0
</float>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
View
</string>
</value>
</item>
<item>
<key>
<string>
visible
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Expression"
module=
"Products.CMFCore.Expression"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
text
</string>
</key>
<value>
<string>
string:${object_url}/ActiveProcess_view
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_sql_active_process/DocumentTemplateItem/portal_components/document.erp5.SQLActiveProcess.py
0 → 100644
View file @
6a8987fb
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2014 Nexedi SA and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# guarantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
##############################################################################
from
cPickle
import
dumps
,
loads
from
AccessControl
import
ClassSecurityInfo
from
MySQLdb
import
ProgrammingError
from
Products.CMFActivity.ActiveProcess
import
ActiveProcess
from
Products.CMFCore
import
permissions
as
CMFCorePermissions
from
Products.ERP5Type.Base
import
Base
from
Products.ERP5Type.Globals
import
InitializeClass
class
SQLActiveProcess
(
ActiveProcess
):
"""
Yet another Active Process class that stores Active Results in SQL database.
"""
meta_type
=
'CMF SQL Active Process'
portal_type
=
'SQL Active Process'
# Declarative security
security
=
ClassSecurityInfo
()
security
.
declareProtected
(
CMFCorePermissions
.
ManagePortal
,
'manage_editProperties'
,
'manage_changeProperties'
,
'manage_propertiesForm'
,
)
def
__init__
(
self
,
*
args
,
**
kw
):
# No need to generate self.result_list.
Base
.
__init__
(
self
,
*
args
,
**
kw
)
security
.
declareProtected
(
CMFCorePermissions
.
ManagePortal
,
'postResult'
)
def
postResult
(
self
,
result
):
zPostResult
=
getattr
(
self
,
'Base_zInsertIntoActiveResultTable'
)
for
_
in
range
(
2
):
try
:
zPostResult
(
active_process_uid
=
self
.
getUid
(),
value
=
dumps
(
result
)
)
break
except
ProgrammingError
,
error_value
:
if
error_value
[
0
]
==
1146
:
# Table doesn't exist.
getattr
(
self
,
'Base_zCreateActiveResultTable'
)()
else
:
raise
error_value
security
.
declareProtected
(
CMFCorePermissions
.
ManagePortal
,
'getResultList'
)
def
getResultList
(
self
,
**
kw
):
"""
Returns the list of results
"""
zGetResultList
=
getattr
(
self
,
'Base_zGetResultFromActiveResultTable'
)
return
[
loads
(
e
.
value
)
for
e
in
zGetResultList
(
active_process_uid
=
self
.
getUid
())]
security
.
declarePrivate
(
'manage_beforeDelete'
)
def
manage_beforeDelete
(
self
,
item
,
container
):
zDeleteResultList
=
getattr
(
self
,
'Base_zDeleteResultListFromActiveResultTable'
)
zDeleteResultList
(
active_process_uid
=
self
.
getUid
())
InitializeClass
(
SQLActiveProcess
)
bt5/erp5_sql_active_process/DocumentTemplateItem/portal_components/document.erp5.SQLActiveProcess.xml
0 → 100644
View file @
6a8987fb
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Document Component"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_recorded_property_dict
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
SQLActiveProcess
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document.erp5.SQLActiveProcess
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Document Component
</string>
</value>
</item>
<item>
<key>
<string>
sid
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
text_content_error_message
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple>
<string>
W: 55, 4: __init__ method from a non direct base class \'Base\' is called (non-parent-init-called)
</string>
<string>
W: 53, 2: __init__ method from base class \'ActiveProcess\' is not called (super-init-not-called)
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
erp5
</string>
</value>
</item>
<item>
<key>
<string>
workflow_history
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"PersistentMapping"
module=
"Persistence.mapping"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
data
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
component_validation_workflow
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAQ=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
validate
</string>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
validated
</string>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
bt5/erp5_sql_active_process/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
0 → 100644
View file @
6a8987fb
<allowed_content_type_list>
<portal_type
id=
"Activity Tool"
>
<item>
SQL Active Process
</item>
</portal_type>
</allowed_content_type_list>
\ No newline at end of file
bt5/erp5_sql_active_process/PortalTypeTemplateItem/portal_types/SQL%20Active%20Process.xml
0 → 100644
View file @
6a8987fb
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Base Type"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
content_icon
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
SQL Active Process
</string>
</value>
</item>
<item>
<key>
<string>
init_script
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
permission
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Base Type
</string>
</value>
</item>
<item>
<key>
<string>
searchable_text_property_id
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
type_class
</string>
</key>
<value>
<string>
SQLActiveProcess
</string>
</value>
</item>
<item>
<key>
<string>
type_interface
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
type_mixin
</string>
</key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_sql_active_process/SkinTemplateItem/portal_skins/erp5_sql_active_process.xml
0 → 100644
View file @
6a8987fb
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Folder"
module=
"OFS.Folder"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
erp5_sql_active_process
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_sql_active_process/SkinTemplateItem/portal_skins/erp5_sql_active_process/Base_zCreateActiveResultTable.xml
0 → 100644
View file @
6a8987fb
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL"
module=
"Products.ZSQLMethods.SQL"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
connection_id
</string>
</key>
<value>
<string>
cmf_activity_sql_connection
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Base_zCreateActiveResultTable
</string>
</value>
</item>
<item>
<key>
<string>
src
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
DROP TABLE IF EXISTS active_result\n
<dtml-var sql_delimiter>
\n
CREATE TABLE `active_result` (\n
`active_process_uid` INT UNSIGNED NOT NULL,\n
`value` longblob NOT NULL,\n
KEY `active_process_uid` (`active_process_uid`)\n
) ENGINE=InnoDB
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_sql_active_process/SkinTemplateItem/portal_skins/erp5_sql_active_process/Base_zDeleteResultListFromActiveResultTable.xml
0 → 100644
View file @
6a8987fb
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL"
module=
"Products.ZSQLMethods.SQL"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string>
active_process_uid
</string>
</value>
</item>
<item>
<key>
<string>
connection_id
</string>
</key>
<value>
<string>
cmf_activity_sql_connection
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Base_zDeleteResultListFromActiveResultTable
</string>
</value>
</item>
<item>
<key>
<string>
src
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
DELETE FROM `active_result` WHERE <dtml-sqltest active_process_uid op=eq type=int>
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_sql_active_process/SkinTemplateItem/portal_skins/erp5_sql_active_process/Base_zGetResultFromActiveResultTable.xml
0 → 100644
View file @
6a8987fb
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL"
module=
"Products.ZSQLMethods.SQL"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
allow_simple_one_argument_traversal
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string>
active_process_uid
</string>
</value>
</item>
<item>
<key>
<string>
cache_time_
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
class_file_
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
class_name_
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
connection_hook
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
connection_id
</string>
</key>
<value>
<string>
cmf_activity_sql_connection
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Base_zGetResultFromActiveResultTable
</string>
</value>
</item>
<item>
<key>
<string>
max_cache_
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
max_rows_
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
src
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
SELECT `value` FROM `active_result` WHERE <dtml-sqltest active_process_uid op=eq type=int>
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_sql_active_process/SkinTemplateItem/portal_skins/erp5_sql_active_process/Base_zInsertIntoActiveResultTable.xml
0 → 100644
View file @
6a8987fb
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL"
module=
"Products.ZSQLMethods.SQL"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string>
active_process_uid\r\n
value
</string>
</value>
</item>
<item>
<key>
<string>
connection_id
</string>
</key>
<value>
<string>
cmf_activity_sql_connection
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Base_zInsertIntoActiveResultTable
</string>
</value>
</item>
<item>
<key>
<string>
src
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
INSERT INTO\n
`active_result`\n
(`active_process_uid`, `value`)\n
VALUES\n
(\n
<dtml-sqlvar expr="active_process_uid" type="int">
,\n
<dtml-sqlvar
expr=
"value"
type=
"string"
>
\n
)
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_sql_active_process/bt/change_log
0 → 100644
View file @
6a8987fb
2014-10-07 Kazuhiko Shiozaki
* initial release
\ No newline at end of file
bt5/erp5_sql_active_process/bt/copyright_list
0 → 100644
View file @
6a8987fb
Copyright © 2014 Nexedi SA
\ No newline at end of file
bt5/erp5_sql_active_process/bt/license
0 → 100644
View file @
6a8987fb
GPL
\ No newline at end of file
bt5/erp5_sql_active_process/bt/template_action_path_list
0 → 100644
View file @
6a8987fb
SQL Active Process | view
\ No newline at end of file
bt5/erp5_sql_active_process/bt/template_document_id_list
0 → 100644
View file @
6a8987fb
document.erp5.SQLActiveProcess
\ No newline at end of file
bt5/erp5_sql_active_process/bt/template_format_version
0 → 100644
View file @
6a8987fb
1
\ No newline at end of file
bt5/erp5_sql_active_process/bt/template_portal_type_allowed_content_type_list
0 → 100644
View file @
6a8987fb
Activity Tool | SQL Active Process
\ No newline at end of file
bt5/erp5_sql_active_process/bt/template_portal_type_id_list
0 → 100644
View file @
6a8987fb
SQL Active Process
\ No newline at end of file
bt5/erp5_sql_active_process/bt/template_skin_id_list
0 → 100644
View file @
6a8987fb
erp5_sql_active_process
\ No newline at end of file
bt5/erp5_sql_active_process/bt/title
0 → 100644
View file @
6a8987fb
erp5_sql_active_process
\ No newline at end of file
product/CMFActivity/ActivityTool.py
View file @
6a8987fb
...
...
@@ -1550,10 +1550,10 @@ class ActivityTool (Folder, UniqueObject):
return
message_count
security
.
declareProtected
(
CMFCorePermissions
.
ManagePortal
,
'newActiveProcess'
)
def
newActiveProcess
(
self
,
REQUEST
=
None
,
**
kw
):
def
newActiveProcess
(
self
,
REQUEST
=
None
,
portal_type
=
'Active Process'
,
**
kw
):
# note: if one wants to create an Actice Process without ERP5 products,
# she can call ActiveProcess.addActiveProcess
obj
=
self
.
newContent
(
portal_type
=
"Active Process"
,
**
kw
)
obj
=
self
.
newContent
(
portal_type
=
portal_type
,
**
kw
)
if
REQUEST
is
not
None
:
REQUEST
[
'RESPONSE'
].
redirect
(
'manage_main'
)
return
obj
...
...
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