Opened 19 years ago

Closed 18 years ago

Last modified 18 years ago

#1724 closed defect (fixed)

[magic-removal] [patch] Some corrections to tutorial01.txt

Reported by: Malcolm Tredinnick <malcolm@…> Owned by: Adrian Holovaty
Component: contrib.admin Version: magic-removal
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Sorry about this Adrian, but my suggestion to move to using str everywhere has backfired slightly. The output of the first tutorial has changed significantly (the thing returned at the Python prompt is the repr() unless you explicitly convert to strings or print it).

The attached patch fixed the results shown in the tutorial to match what happens; I ran through it quickly on the command line to check these, so they should be correct.

I have also fixed up a blunder at the very top: we were saying we were creating a blog app, rather than a poll. Not quite sure how that survived until now.

Attachments (1)

tutorial01.txt.diff (3.6 KB ) - added by Malcolm Tredinnick <malcolm@…> 19 years ago.
Fix output in examples.

Download all attachments as: .zip

Change History (6)

by Malcolm Tredinnick <malcolm@…>, 19 years ago

Attachment: tutorial01.txt.diff added

Fix output in examples.

comment:1 by Malcolm Tredinnick <malcolm@…>, 19 years ago

By the way, the other tutorials are fine, because it is only in tutorial01.txt that the interactive prompt is shown.

comment:2 by Adrian Holovaty, 19 years ago

The "blog" mention at the top of the tutorial is no blunder. I'm rewriting it to be a blog app rather than a poll app.

comment:3 by Adrian Holovaty, 19 years ago

I think I'll change the default __repr__() to display the __str__() within <Poll object: "">. Thoughts?

comment:4 by Malcolm Tredinnick, 18 years ago

Resolution: fixed
Status: newclosed

(In [2937]) Fixed #1724 -- updated the output from the shell commands to match what we now
produce.

comment:5 by Adrian Holovaty, 18 years ago

milestone: Version 0.91

Milestone Version 0.91 deleted

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