Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Eteri
erp5_fork
Commits
e23637e9
Commit
e23637e9
authored
Jul 08, 2011
by
Lucas Carvalho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure that the user can have assignment for shacache and other of shadir.
parent
de1a71eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
bt5/networkcache_erp5/TestTemplateItem/ShaSecurityMixin.py
bt5/networkcache_erp5/TestTemplateItem/ShaSecurityMixin.py
+14
-2
bt5/networkcache_erp5/bt/revision
bt5/networkcache_erp5/bt/revision
+1
-1
No files found.
bt5/networkcache_erp5/TestTemplateItem/ShaSecurityMixin.py
View file @
e23637e9
...
@@ -58,9 +58,21 @@ class ShaSecurityMixin(object):
...
@@ -58,9 +58,21 @@ class ShaSecurityMixin(object):
reference
=
reference
,
reference
=
reference
,
password
=
password
)
password
=
password
)
self
.
stepTic
()
self
.
stepTic
()
create
=
True
start_date
=
'10/10/2000'
stop_date
=
'10/10/2100'
group
=
self
.
group
for
assignment
in
person
.
contentValues
(
portal_type
=
"Assignment"
):
if
assignment
.
getStartDate
()
==
start_date
and
\
assignment
.
getStopDate
()
==
stop_date
and
\
assignment
.
getGroup
()
==
self
.
group
:
create
=
False
if
create
:
assignment
=
person
.
newContent
(
portal_type
=
'Assignment'
)
assignment
=
person
.
newContent
(
portal_type
=
'Assignment'
)
assignment
.
edit
(
start_date
=
'10/10/2000'
,
assignment
.
edit
(
start_date
=
start_date
,
stop_date
=
'10/10/2100'
,
stop_date
=
stop_date
,
group
=
self
.
group
)
group
=
self
.
group
)
assignment
.
open
()
assignment
.
open
()
self
.
stepTic
()
self
.
stepTic
()
...
...
bt5/networkcache_erp5/bt/revision
View file @
e23637e9
18
19
\ No newline at end of file
\ No newline at end of file
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