comments.converters module

class comments.converters.CommentDOILabelConverter[source]

Bases: object

regex = '^(10.21468/)?SciPost.Comment.[0-9]+'
to_python(value)[source]

Strip the DOI prefix if present; check if Comment exists.

to_url(value)[source]
class comments.converters.AuthorReplyDOILabelConverter[source]

Bases: comments.converters.CommentDOILabelConverter

regex = '^(10.21468/)?SciPost.AuthorReply.[0-9]+'