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
Nikola Balog
erp5
Commits
1a2eca21
Commit
1a2eca21
authored
Jan 05, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_prototype: Remove dependency on BaseTemplateItem
parent
f1170797
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
product/ERP5/Document/BusinessPackage.py
product/ERP5/Document/BusinessPackage.py
+7
-3
No files found.
product/ERP5/Document/BusinessPackage.py
View file @
1a2eca21
...
@@ -34,7 +34,7 @@ from collections import defaultdict
...
@@ -34,7 +34,7 @@ from collections import defaultdict
from
Acquisition
import
Implicit
,
aq_base
,
aq_inner
,
aq_parent
from
Acquisition
import
Implicit
,
aq_base
,
aq_inner
,
aq_parent
from
Products.ERP5Type.XMLObject
import
XMLObject
from
Products.ERP5Type.XMLObject
import
XMLObject
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
Products.ERP5.Document.BusinessTemplate
import
ObjectTemplateItem
,
BaseTemplateItem
from
Products.ERP5.Document.BusinessTemplate
import
ObjectTemplateItem
from
AccessControl
import
ClassSecurityInfo
,
Unauthorized
,
getSecurityManager
from
AccessControl
import
ClassSecurityInfo
,
Unauthorized
,
getSecurityManager
from
Products.ERP5Type.Globals
import
Persistent
,
PersistentMapping
from
Products.ERP5Type.Globals
import
Persistent
,
PersistentMapping
...
@@ -117,7 +117,12 @@ class BusinessPackage(XMLObject):
...
@@ -117,7 +117,12 @@ class BusinessPackage(XMLObject):
class
PathTemplatePackageItem
(
ObjectTemplateItem
):
class
PathTemplatePackageItem
(
ObjectTemplateItem
):
def
__init__
(
self
,
id_list
,
tool_id
=
None
,
**
kw
):
def
__init__
(
self
,
id_list
,
tool_id
=
None
,
**
kw
):
BaseTemplateItem
.
__init__
(
self
,
id_list
,
tool_id
=
tool_id
,
**
kw
)
self
.
__dict__
.
update
(
kw
)
self
.
_archive
=
PersistentMapping
()
self
.
_objects
=
PersistentMapping
()
for
id
in
id_list
:
if
id
is
not
None
and
id
!=
''
:
self
.
_archive
[
id
]
=
None
id_list
=
self
.
_archive
.
keys
()
id_list
=
self
.
_archive
.
keys
()
self
.
_archive
.
clear
()
self
.
_archive
.
clear
()
self
.
_path_archive
=
PersistentMapping
()
self
.
_path_archive
=
PersistentMapping
()
...
@@ -150,7 +155,6 @@ class PathTemplatePackageItem(ObjectTemplateItem):
...
@@ -150,7 +155,6 @@ class PathTemplatePackageItem(ObjectTemplateItem):
return
path_list
return
path_list
def
build
(
self
,
context
,
**
kw
):
def
build
(
self
,
context
,
**
kw
):
BaseTemplateItem
.
build
(
self
,
context
,
**
kw
)
p
=
context
.
getPortalObject
()
p
=
context
.
getPortalObject
()
keys
=
self
.
_path_archive
.
keys
()
keys
=
self
.
_path_archive
.
keys
()
keys
.
sort
()
keys
.
sort
()
...
...
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