Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
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
Hide 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
from
Acquisition
import
Implicit
,
aq_base
,
aq_inner
,
aq_parent
from
Products.ERP5Type.XMLObject
import
XMLObject
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
Products.ERP5Type.Globals
import
Persistent
,
PersistentMapping
...
...
@@ -117,7 +117,12 @@ class BusinessPackage(XMLObject):
class
PathTemplatePackageItem
(
ObjectTemplateItem
):
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
()
self
.
_archive
.
clear
()
self
.
_path_archive
=
PersistentMapping
()
...
...
@@ -150,7 +155,6 @@ class PathTemplatePackageItem(ObjectTemplateItem):
return
path_list
def
build
(
self
,
context
,
**
kw
):
BaseTemplateItem
.
build
(
self
,
context
,
**
kw
)
p
=
context
.
getPortalObject
()
keys
=
self
.
_path_archive
.
keys
()
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