Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
92980bc2
Commit
92980bc2
authored
May 15, 2013
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stay consistent with default getTitle.
Return empty string instead of None as default value.
parent
4fda45cc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
master/bt5/slapos_cloud/DocumentTemplateItem/Person.py
master/bt5/slapos_cloud/DocumentTemplateItem/Person.py
+1
-1
master/bt5/slapos_cloud/TestTemplateItem/testSlapOSCloudDocument.py
.../slapos_cloud/TestTemplateItem/testSlapOSCloudDocument.py
+1
-1
master/bt5/slapos_cloud/bt/revision
master/bt5/slapos_cloud/bt/revision
+1
-1
No files found.
master/bt5/slapos_cloud/DocumentTemplateItem/Person.py
View file @
92980bc2
...
...
@@ -48,6 +48,6 @@ class Person(ERP5Person):
title
=
ERP5Person
.
getTitle
(
self
,
**
kw
)
test_title
=
title
.
replace
(
' '
,
''
)
if
test_title
==
''
:
return
self
.
getDefaultEmailCoordinateText
()
return
self
.
getDefaultEmailCoordinateText
(
test_title
)
else
:
return
title
master/bt5/slapos_cloud/TestTemplateItem/testSlapOSCloudDocument.py
View file @
92980bc2
...
...
@@ -14,7 +14,7 @@ class TestSlapOSPersonDocument(testSlapOSMixin):
portal_type
=
"Person"
)
# Default title is empty
self
.
assertEquals
(
person
.
getTitle
(),
None
)
self
.
assertEquals
(
person
.
getTitle
(),
""
)
# If not title, the email is used
person
.
edit
(
default_email_coordinate_text
=
"foo@example.org"
)
...
...
master/bt5/slapos_cloud/bt/revision
View file @
92980bc2
283
\ No newline at end of file
284
\ 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