Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debate #74

Merged
merged 2 commits into from
Nov 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.1.0
7.0.0
4 changes: 2 additions & 2 deletions cobalt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from .akn import AkomaNtosoDocument, StructuredDocument, datestring
from .amendment import AmendmentStructure, Amendment, AmendmentList
from .collection import CollectionStructure, Collection, OfficialGazette
from .debate import DebateStructure, DebateRecord
from .debate import DebateStructure, Debate
from .hierarchical import HierarchicalStructure, Act, AmendmentEvent, RepealEvent, Bill
from .judgment import JudgmentStructure, Judgment
from .openstructure import OpenStructure, DebateReport, Document, Statement
Expand All @@ -12,7 +12,7 @@
'Act', 'AkomaNtosoDocument', 'Amendment', 'AmendmentEvent', 'AmendmentList', 'AmendmentStructure',
'Bill',
'Collection', 'CollectionStructure',
'DebateRecord', 'DebateReport', 'DebateStructure', 'Document', 'datestring',
'Debate', 'DebateReport', 'DebateStructure', 'Document', 'datestring',
'FrbrUri',
'HierarchicalStructure',
'Judgment', 'JudgmentStructure',
Expand Down
8 changes: 7 additions & 1 deletion cobalt/debate.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,11 @@ class DebateStructure(StructuredDocument):
main_content_tag = "debateBody"


class DebateRecord(DebateStructure):
class Debate(DebateStructure):
document_type = "debate"

@classmethod
def empty_document_content(cls, E):
return E('debateBody',
E('debateSection',
E('p', eId="dbsect_nn_1__p_1")), eId="dbsect_nn_1")