Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
seda
Commits
5cda167cef43
Commit
476e45fd
authored
Jun 01, 2017
by
Sylvain Thénault
Browse files
[seda] Don't consider agency may be None in agency_id/name methods
since this is handled by the caller.
parent
67558c0fc5ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
cubicweb_seda/entities/profile_generation.py
View file @
5cda167c
...
...
@@ -1103,10 +1103,10 @@ class SEDA1XSDExport(SEDA2ExportAdapter):
return
seq
.
title
def
agency_name
(
self
,
agency
):
return
agency
.
agency
.
dc_title
()
if
agency
and
agency
.
agency
else
None
return
agency
.
agency
.
dc_title
()
if
agency
.
agency
is
not
None
else
None
def
agency_id
(
self
,
agency
):
return
text_type
(
agency
.
agency
.
eid
)
if
agency
and
agency
.
agency
else
None
return
text_type
(
agency
.
agency
.
eid
)
if
agency
.
agency
is
not
None
else
None
def
archive_unit_content
(
self
,
archive_unit
):
return
archive_unit
.
first_level_choice
.
content_sequence
...
...
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