On Wed, Feb 11, 2009 at 6:04 PM,  <svn-comm...@turbogears.org> wrote:

> --- docs/2.0/docs/main/movie_tutorial.rst       (original)
> +++ docs/2.0/docs/main/movie_tutorial.rst       Wed Feb 11 11:04:24 2009
> @@ -135,18 +135,18 @@
>  of a movie object after it's been created like this::
>
>   >>> entry = Movie()
> -  >>> entry.title = 'Dragula'
> +  >>> entry.title = 'Dracula'
>   >>> entry.year = '1931'
>   >>> entry.description = 'vampire movie'
>
>  But if the __init__ method we defined allows you to initialize the properties
>  at the same time you create the object::
>
> -  >>> entry = Movie(title='Drakula', year='1931', description='vampire 
> movie')
> +  >>> entry = Movie(title='Dracula', year='1931', description='vampire 
> movie')
>
>  or ::
>
> -  >>> entry = Movie('Drakula', '1931', 'vampire movie')
> +  >>> entry = Movie('Dracula', '1931', 'vampire movie')
>
>  Bootstrapping the application with CRUD
>  ========================================
>

Take car when proof reading the code... Maybe the original author
spell dracula differently in his two examples so that you don't get a
primary key constraint violation when actually typing the code in a
real python shell... (not sure, just a wild guess)

Florent.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to turbogears-trunk@googlegroups.com
To unsubscribe from this group, send email to 
turbogears-trunk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to