Code

Opened 8 years ago

Closed 8 years ago

Last modified 7 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:

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

Download all attachments as: .zip

Change History (6)

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

Fix output in examples.

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

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

comment:4 Changed 8 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
produce.

comment:5 Changed 7 years ago by adrian

  • milestone Version 0.91 deleted

Milestone Version 0.91 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.