Commit 7f3f5115 authored by Ayush Tiwari's avatar Ayush Tiwari

interfaces/commit: Update interface for commit

parent c6c0bbae
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2009 Nexedi SARL and Contributors. All Rights Reserved.
# Copyright (c) 2017 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.amount
Products.ERP5.interfaces.commit
"""
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
"""
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