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
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
Ophélie Gagnard
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):
...
@@ -48,6 +48,6 @@ class Person(ERP5Person):
title
=
ERP5Person
.
getTitle
(
self
,
**
kw
)
title
=
ERP5Person
.
getTitle
(
self
,
**
kw
)
test_title
=
title
.
replace
(
' '
,
''
)
test_title
=
title
.
replace
(
' '
,
''
)
if
test_title
==
''
:
if
test_title
==
''
:
return
self
.
getDefaultEmailCoordinateText
()
return
self
.
getDefaultEmailCoordinateText
(
test_title
)
else
:
else
:
return
title
return
title
master/bt5/slapos_cloud/TestTemplateItem/testSlapOSCloudDocument.py
View file @
92980bc2
...
@@ -14,7 +14,7 @@ class TestSlapOSPersonDocument(testSlapOSMixin):
...
@@ -14,7 +14,7 @@ class TestSlapOSPersonDocument(testSlapOSMixin):
portal_type
=
"Person"
)
portal_type
=
"Person"
)
# Default title is empty
# Default title is empty
self
.
assertEquals
(
person
.
getTitle
(),
None
)
self
.
assertEquals
(
person
.
getTitle
(),
""
)
# If not title, the email is used
# If not title, the email is used
person
.
edit
(
default_email_coordinate_text
=
"foo@example.org"
)
person
.
edit
(
default_email_coordinate_text
=
"foo@example.org"
)
...
...
master/bt5/slapos_cloud/bt/revision
View file @
92980bc2
283
284
\ 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