Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#1724 closed defect (fixed)

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

Reported by: Malcolm Tredinnick <malcolm@…> Owned by: adrian
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@…> 10 years ago.
Fix output in examples.

Download all attachments as: .zip

Change History (6)

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

Fix output in examples.

comment:1 Changed 10 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 10 years ago by adrian

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 10 years ago by adrian

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

comment:4 Changed 10 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:5 Changed 10 years ago by adrian

  • milestone Version 0.91 deleted

Milestone Version 0.91 deleted

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