Opened 11 years ago

Closed 11 years ago

#4325 closed (invalid)

auto_id example contains an error

Reported by: fabbe@… Owned by: Jacob
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


The auto_id example says:

  For example, for a format string 'field_%s', a field named subject will get the id value 'field_subject'.

But the example code says:

>>> f = ContactForm(auto_id='id_for_%s')
>>> print f.as_table()
<tr><th><label for="id_for_subject">Subject:</label></th><td><input id="id_for_subject" type="text" name="subject" maxlength="100" /></td></tr>

That should be ... for="field_subject" ...

Change History (1)

comment:1 Changed 11 years ago by Chris Beaven

Resolution: invalid
Status: newclosed

It says "for example", not "in the following example".

The code clearly starts with the auto_id string set to 'id_for_%s' so I don't see the error.

Note: See TracTickets for help on using tickets.
Back to Top