submissions.converters module

class submissions.converters.IdentifierWithoutVersionNumberConverter[source]

Bases: django.urls.converters.StringConverter

regex = 'scipost_[0-9]{4,}_[0-9]{4,}|[0-9]{4,}.[0-9]{4,}|chemrxiv_[0-9]+|techrxiv_[0-9]+|advance_[0-9]+'
class submissions.converters.IdentifierConverter[source]

Bases: django.urls.converters.StringConverter

regex = 'scipost_[0-9]{4,}_[0-9]{4,}v[0-9]{1,2}|[0-9]{4,}.[0-9]{4,}v[0-9]{1,2}|chemrxiv_[0-9]+.v[0-9]{1,2}|10.[0-9]{4,5}/chemrxiv([.-][0-9]{4,})?[.-][\\w]+([.-]v[0-9]+)?|techrxiv_[0-9]+.v[0-9]{1,2}|advance_[0-9]+.v[0-9]{1,2}|socarxiv_[a-z0-9]+'
class submissions.converters.ReportDOILabelConverter[source]

Bases: object

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

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

to_url(value)[source]