Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
ecd72dc8
Commit
ecd72dc8
authored
Nov 05, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build locally with system user
parent
de424156
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
product/ERP5/Document/Delivery.py
product/ERP5/Document/Delivery.py
+11
-2
No files found.
product/ERP5/Document/Delivery.py
View file @
ecd72dc8
...
@@ -31,6 +31,9 @@
...
@@ -31,6 +31,9 @@
import
zope.interface
import
zope.interface
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
AccessControl.SecurityManagement
import
getSecurityManager
,
\
setSecurityManager
,
newSecurityManager
from
AccessControl.User
import
nobody
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
Products.ERP5Type.Accessor.Constant
import
PropertyGetter
as
ConstantGetter
from
Products.ERP5Type.Accessor.Constant
import
PropertyGetter
as
ConstantGetter
from
Products.ERP5Type.XMLObject
import
XMLObject
from
Products.ERP5Type.XMLObject
import
XMLObject
...
@@ -38,7 +41,8 @@ from Products.ERP5.Document.ImmobilisationDelivery import ImmobilisationDelivery
...
@@ -38,7 +41,8 @@ from Products.ERP5.Document.ImmobilisationDelivery import ImmobilisationDelivery
from
Products.ERP5.mixin.amount_generator
import
AmountGeneratorMixin
from
Products.ERP5.mixin.amount_generator
import
AmountGeneratorMixin
from
Products.ERP5.mixin.composition
import
CompositionMixin
from
Products.ERP5.mixin.composition
import
CompositionMixin
from
Products.ERP5.mixin.rule
import
SimulableMixin
from
Products.ERP5.mixin.rule
import
SimulableMixin
from
Products.ERP5Type.UnrestrictedMethod
import
UnrestrictedMethod
from
Products.ERP5Type.UnrestrictedMethod
import
UnrestrictedMethod
,
\
unrestricted_apply
from
zLOG
import
LOG
,
PROBLEM
from
zLOG
import
LOG
,
PROBLEM
class
Delivery
(
XMLObject
,
ImmobilisationDelivery
,
SimulableMixin
,
class
Delivery
(
XMLObject
,
ImmobilisationDelivery
,
SimulableMixin
,
...
@@ -710,7 +714,12 @@ class Delivery(XMLObject, ImmobilisationDelivery, SimulableMixin,
...
@@ -710,7 +714,12 @@ class Delivery(XMLObject, ImmobilisationDelivery, SimulableMixin,
else
:
else
:
after_tag
=
list
(
after_tag
)
if
after_tag
else
[]
after_tag
=
list
(
after_tag
)
if
after_tag
else
[]
after_tag
.
append
(
'expand:'
+
self
.
getPath
())
after_tag
.
append
(
'expand:'
+
self
.
getPath
())
self
.
activate
(
after_tag
=
after_tag
,
**
kw
).
_localBuild
()
sm
=
getSecurityManager
()
newSecurityManager
(
None
,
nobody
)
try
:
unrestricted_apply
(
self
.
activate
(
after_tag
=
after_tag
,
**
kw
).
_localBuild
)
finally
:
setSecurityManager
(
sm
)
def
_localBuild
(
self
):
def
_localBuild
(
self
):
"""Do an immediate local build for this delivery"""
"""Do an immediate local build for this delivery"""
...
...
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