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
Hugo Ricateau
erp5
Commits
7f3f5115
Commit
7f3f5115
authored
Jan 15, 2018
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interfaces/commit: Update interface for commit
parent
c6c0bbae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
19 deletions
+13
-19
product/ERP5/interfaces/commit.py
product/ERP5/interfaces/commit.py
+13
-19
No files found.
product/ERP5/interfaces/commit.py
View file @
7f3f5115
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 20
09 Nexedi SARL
and Contributors. All Rights Reserved.
# Copyright (c) 20
17 Nexedi SA
and Contributors. All Rights Reserved.
# Ayush Tiwari<ayush.tiwari@nexedi.com>
#
# WARNING: This program as such is intended to be used by professional
...
...
@@ -27,13 +27,16 @@
#
##############################################################################
"""
Products.ERP5.interfaces.
amoun
t
Products.ERP5.interfaces.
commi
t
"""
from
zope.interface
import
Interface
class
ICommit
(
Interface
):
"""Commit interface specification
"""Commit interface specification for ERP5 objects
ICommitObject defines the set of function which helps in commiting any ERP5
object or its property to Business Commit.
"""
def
getLatestDraftBusinessCommit
():
...
...
@@ -42,14 +45,6 @@ class ICommit(Interface):
can be added
"""
class
ICommitObject
(
ICommit
):
"""Commit interface specification for ERP5 objects
ICommitObject defines the set of function which helps in commiting any ERP5
object to Business Commit. As it concerns with commiting an object, it'll
always be creating a Business Item in the Business Commit.
"""
def
createBusinessItem
(
layer
=
1
,
sign
=
1
):
"""
Creates a Business Item object with the path of the current object inside
...
...
@@ -62,16 +57,15 @@ class ICommitObject(ICommit):
properly add the Business Item in Business Commit
"""
class
ICommitObjectProperty
(
ICommit
):
"""Commit interface specification for properties of ERP5 objects
ICommitPropertyObject defines the set of function which helps in commiting any
ERP5 object property to latest Business Commit. It will always create a
Business Property Item in the Business Commit.
"""
def
createBusinessPropertyItem
(
layer
=
1
,
sign
=
1
):
"""
Creates a Business Property Item object with the path of the property for
the ERP5 object specified.
layer -- Priority of the Business Item
sign -- Sign of the Business Item
NOTE: It will still be needed to add the follow_up Business Template to
properly add the Business Item in Business Commit
"""
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