Skip to content

Commit

Permalink
removing author and licensor roles from moduleoptionalroles table
Browse files Browse the repository at this point in the history
  • Loading branch information
rich-hart committed Feb 5, 2015
1 parent 631e133 commit 70fc4c2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
8 changes: 0 additions & 8 deletions cnxpublishing/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,6 @@
RETURNING
module_ident,
uuid||'@'||concat_ws('.',major_version,minor_version) AS ident_hash),
author_roles AS (
INSERT INTO moduleoptionalroles (module_ident, roleid, personids)
VALUES ((SELECT module_ident FROM module_insertion), 1, %(authors)s)),
licensor_roles AS (
INSERT INTO moduleoptionalroles
(module_ident, roleid, personids)
VALUES
((SELECT module_ident FROM module_insertion), 2, %(copyright_holders)s)),
translator_roles AS (
INSERT INTO moduleoptionalroles
(module_ident, roleid, personids)
Expand Down
4 changes: 0 additions & 4 deletions cnxpublishing/tests/test_publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,6 @@ def test_document_insertion_wo_id_n_version(self):
keywords = [x[0] for x in cursor.fetchall()]

# Check the roles...
self.assertEqual(roles['authors'],
[x['id'] for x in metadata['authors']])
self.assertEqual(roles['licensors'],
[x['id'] for x in metadata['copyright_holders']])
self.assertEqual(roles['translators'],
[x['id'] for x in metadata['translators']])
# Check the subjects...
Expand Down

0 comments on commit 70fc4c2

Please sign in to comment.