ValueError month must be in 1..12 in add_calendarevent.html

Bug #1008934 reported by Paul Everitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Fix Released
Low
Balazs Ree

Bug Description

I think this is ux1, slotting for after this week.

Exception when processing https://karl.soros.org/communities/nepal/calendar/add_calendarevent.html
Referer: https://karl.soros.org/communities/nepal/calendar/add_calendarevent.html

Traceback (most recent call last):
  File "/srv/osfkarl/deploy/2/eggs/pyramid-1.2.1-py2.6.egg/pyramid/tweens.py", line 17, in excview_tween
    response = handler(request)
  File "/srv/osfkarl/deploy/2/eggs/pyramid-1.2.1-py2.6.egg/pyramid/router.py", line 153, in handle_request
    response = view_callable(context, request)
  File "/srv/osfkarl/deploy/2/eggs/pyramid-1.2.1-py2.6.egg/pyramid/config/views.py", line 523, in __call__
    return view(context, request)
  File "/srv/osfkarl/deploy/2/eggs/pyramid-1.2.1-py2.6.egg/pyramid/config/views.py", line 266, in attr_view
    return view(context, request)
  File "/srv/osfkarl/deploy/2/eggs/pyramid-1.2.1-py2.6.egg/pyramid/config/views.py", line 239, in predicate_wrapper
    return view(context, request)
  File "/srv/osfkarl/deploy/2/eggs/pyramid-1.2.1-py2.6.egg/pyramid/config/views.py", line 186, in _secured_view
    return view(context, request)
  File "/srv/osfkarl/deploy/2/eggs/pyramid-1.2.1-py2.6.egg/pyramid/config/views.py", line 292, in rendered_view
    result = view(context, request)
  File "/srv/osfkarl/deploy/2/eggs/pyramid_formish-0.2a1-py2.6.egg/pyramid_formish/zcml.py", line 171, in __call__
    return submitted(request, form, controller, self.action, controller)
  File "/srv/osfkarl/deploy/2/eggs/pyramid_formish-0.2a1-py2.6.egg/pyramid_formish/zcml.py", line 206, in submitted
    converted = form.validate(request, check_form_name=False)
  File "/srv/osfkarl/deploy/2/eggs/formish-0.8.5.3agendaless-py2.6.egg/formish/forms.py", line 1019, in validate
    data = self._validate(request, skip_read_only_defaults=skip_read_only_defaults)
  File "/srv/osfkarl/deploy/2/eggs/formish-0.8.5.3agendaless-py2.6.egg/formish/forms.py", line 1037, in _validate
    data = self.get_unvalidated_data(self._request_data, raise_exceptions=False, skip_read_only_defaults=skip_read_only_defaults)
  File "/srv/osfkarl/deploy/2/eggs/formish-0.8.5.3agendaless-py2.6.egg/formish/forms.py", line 919, in get_unvalidated_data
    data = self.widget.from_request_data(self.structure, request_data, skip_read_only_defaults=skip_read_only_defaults)
  File "/srv/osfkarl/deploy/2/eggs/formish-0.8.5.3agendaless-py2.6.egg/formish/widgets.py", line 470, in from_request_data
    data[f.nodename] = f.widget.from_request_data(f, request_data.get(f.nodename))
  File "/srv/osfkarl/deploy/2/eggs/formish-0.8.5.3agendaless-py2.6.egg/formish/widgets.py", line 92, in from_request_data
    return string_converter(field.attr).to_type(string_data, converter_options=self.converter_options)
  File "/srv/osfkarl/deploy/2/eggs/karl-3.87-py2.6.egg/karl/views/forms/convert.py", line 24, in to_type
    return datetime(year, month, day, hour, minute)
ValueError: month must be in 1..12

Revision history for this message
Balazs Ree (ree) wrote :

Quick look does not trigger the problem for me. I might need a screen sharing to help reproduce this.

Changed in karl3:
status: New → Incomplete
Revision history for this message
Balazs Ree (ree) wrote :

... I am using "Incomplete" state to mark that I will need more input here.

Revision history for this message
Balazs Ree (ree) wrote :

... cancel my previous comments. I can reproduce it now safely.

Changed in karl3:
status: Incomplete → Confirmed
Balazs Ree (ree)
Changed in karl3:
status: Confirmed → Fix Committed
Revision history for this message
JimPGlenn (jpglenn09) wrote :

I could not get this error..looks good

tags: added: tested
JimPGlenn (jpglenn09)
tags: added: r3.89
JimPGlenn (jpglenn09)
Changed in karl3:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.