Opened 12 years ago

Closed 12 years ago

Last modified 12 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: UI/UX:


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@…> 12 years ago.
Fix output in examples.

Download all attachments as: .zip

Change History (6)

Changed 12 years ago by Malcolm Tredinnick <malcolm@…>

Attachment: tutorial01.txt.diff added

Fix output in examples.

comment:1 Changed 12 years ago by Malcolm Tredinnick <malcolm@…>

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

comment:2 Changed 12 years ago by Adrian Holovaty

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 Changed 12 years ago by Adrian Holovaty

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

comment:4 Changed 12 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

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

comment:5 Changed 12 years ago by Adrian Holovaty

milestone: Version 0.91

Milestone Version 0.91 deleted

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