mt_metadata icon indicating copy to clipboard operation
mt_metadata copied to clipboard

Comments should have attributes

Open kujaku11 opened this issue 4 years ago • 0 comments

Currently comments are free form strings, but to be more explicit a there should be Comments class. It should be a list of Comment objects. A Comment would have attributes:

  • comment --> a string comment
  • date --> date the comment was added
  • author --> Person object that has name and contact info
Comments()

{'comments':
  [
    {
       'comment' : "this is a comment",
       'date': "2020-01-01T12:00:00+00:00",
       'author: 
        {
           'name': "author name",
           'email': "[email protected]",
           'organization': "author organization",
        },
        {
       'comment' : "this is a second comment",
       'date': "2020-01-02T12:00:00+00:00",
       'author: 
        {
           'name': "author name",
           'email': "[email protected]",
           'organization': "author organization",
        },
    ]
}


      

kujaku11 avatar Nov 04 '21 18:11 kujaku11