Ticket #1523 (new defect)

Opened 3 years ago

Last modified 2 years ago

Minor CPSCollector bugs

Reported by: stevem@manitacc.com Assigned to: trac
Priority: P1 Milestone:
Component: CPSCollector Version: TRUNK
Severity: normal Keywords: cpscollector
Cc:

Description

Hi,

I am using a svn trunk checkout from Mar 4 (today) with Zope 2.9.1

I have identified several minor issues with CPSCollector

1. Very minor issue with One form per user only

When One form per user only is set, a user can complete as many forms as they want to. The Collector accepts the input each time. There is no message displayed.

Nothing is displayed after form submission (the first time or subsequently) except the form title, description and the Message to display after submission (if set).

The restriction to a single form is honoured, as the previous data entered is silently discarded.

2. Default values not working

With the Radio button, Radio button (vert layout), the Checkbox and the Selection list any default value entered is ignored.

3. Date Format

The date field does not honour the date format set in the Localizer field collector_date_%m/%d/%Y %H:%M. I changed this translation to %d/%m/%Y %H:%M.

This is only a problem if you use English and something other than m/d/y dates, or French with something other than d/m/y. In Australia we use d/m/y format dates.

The problem comes from the Form.py file (about line 524) where there are a couple of regular expressions that check the date format for French and English.

            if locale == 'en':
                if not match(r'^((0?[1-9])|(1[0-2]))/((0?[1-9])|([12][0-9])|(3[01]))/[0-9]{4,4}$', v):
                    err = 'collector_field_date_invalid'
            elif locale == 'fr':

This is not a new issue, or a major one for me. I have been modifying this file since I have been using CPSCollector, but I think somebody else must be (or will be) effected by this as well as me.

Regards

Steve Meaker

Change History

08/08/06 14:36:43 changed by root

  • milestone deleted.

Milestone CPS 3.2.5 deleted