
from __future__ import unicode_literals

from indico.core.settings.converters import DatetimeConverter
from indico.modules.events.settings import EventSettingsProxy

paper_reviewing_settings = EventSettingsProxy('paper_reviewing', {
    'start_dt': None,
    'end_dt': None,
    'content_reviewing_enabled': True,
    'layout_reviewing_enabled': False,
    'judge_deadline': None,
    'layout_reviewer_deadline': None,
    'content_reviewer_deadline': None,
}, converters={
    'start_dt': DatetimeConverter,
    'end_dt': DatetimeConverter,
    'judge_deadline': DatetimeConverter,
    'layout_reviewer_deadline': DatetimeConverter,
    'content_reviewer_deadline': DatetimeConverter,
})


from __future__ import unicode_literals

from indico.core.settings.converters import DatetimeConverter
from indico.modules.events.settings import EventSettingsProxy

paper_reviewing_settings = EventSettingsProxy('paper_reviewing', {
    'start_dt': None,
    'end_dt': None,
    'enforce_deadlines': False,
    'content_reviewing_enabled': True,
    'layout_reviewing_enabled': False,
    'judge_deadline': None,
    'layout_reviewer_deadline': None,
    'content_reviewer_deadline': None,
}, converters={
    'start_dt': DatetimeConverter,
    'end_dt': DatetimeConverter,
    'judge_deadline': DatetimeConverter,
    'layout_reviewer_deadline': DatetimeConverter,
    'content_reviewer_deadline': DatetimeConverter,
})

Add setting to optionally enforce PR deadlines
Add setting to optionally enforce PR deadlines

  
  from __future__ import unicode_literals
  
  from indico.core.settings.converters import DatetimeConverter
  from indico.modules.events.settings import EventSettingsProxy
  
  paper_reviewing_settings = EventSettingsProxy('paper_reviewing', {
      'start_dt': None,
      'end_dt': None,
+     'enforce_deadlines': False,
      'content_reviewing_enabled': True,
      'layout_reviewing_enabled': False,
      'judge_deadline': None,
      'layout_reviewer_deadline': None,
      'content_reviewer_deadline': None,
  }, converters={
      'start_dt': DatetimeConverter,
      'end_dt': DatetimeConverter,
      'judge_deadline': DatetimeConverter,
      'layout_reviewer_deadline': DatetimeConverter,
      'content_reviewer_deadline': DatetimeConverter,
  })
  
Add setting to optionally enforce PR deadlines
## Code Before:

from __future__ import unicode_literals

from indico.core.settings.converters import DatetimeConverter
from indico.modules.events.settings import EventSettingsProxy

paper_reviewing_settings = EventSettingsProxy('paper_reviewing', {
    'start_dt': None,
    'end_dt': None,
    'content_reviewing_enabled': True,
    'layout_reviewing_enabled': False,
    'judge_deadline': None,
    'layout_reviewer_deadline': None,
    'content_reviewer_deadline': None,
}, converters={
    'start_dt': DatetimeConverter,
    'end_dt': DatetimeConverter,
    'judge_deadline': DatetimeConverter,
    'layout_reviewer_deadline': DatetimeConverter,
    'content_reviewer_deadline': DatetimeConverter,
})

## Instruction:
Add setting to optionally enforce PR deadlines
## Code After:

from __future__ import unicode_literals

from indico.core.settings.converters import DatetimeConverter
from indico.modules.events.settings import EventSettingsProxy

paper_reviewing_settings = EventSettingsProxy('paper_reviewing', {
    'start_dt': None,
    'end_dt': None,
    'enforce_deadlines': False,
    'content_reviewing_enabled': True,
    'layout_reviewing_enabled': False,
    'judge_deadline': None,
    'layout_reviewer_deadline': None,
    'content_reviewer_deadline': None,
}, converters={
    'start_dt': DatetimeConverter,
    'end_dt': DatetimeConverter,
    'judge_deadline': DatetimeConverter,
    'layout_reviewer_deadline': DatetimeConverter,
    'content_reviewer_deadline': DatetimeConverter,
})
