Skip to content

Commit

Permalink
Merge pull request #74 from laws-africa/debate
Browse files Browse the repository at this point in the history
Debate
  • Loading branch information
longhotsummer authored Nov 8, 2022
2 parents 2683b25 + 991f6b6 commit e68e0da
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
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")

0 comments on commit e68e0da

Please sign in to comment.