One more niggle:

initializeDB.py won't work once the tutorial is complete...beucase
Page now requires parameters. Not terribly important since hopefully
by that time the reader will have enough familiarity to solve this him/
herself.



On Apr 14, 1:40 pm, Bill <[EMAIL PROTECTED]> wrote:
> I still get "header" not defined if I just use the wiki20 text for
> page.html.
>
> The Wiki-20 directions of course say to copy index.html to page.html
> and make certain changes....if you do that you will be ok as long as
> you accept the result will not look exactly like what the Wiki-20
> tutorial says it should look like.
>
> I'm still a TG newbie. Just the same, here are the things I
> encountered, for what they are worth (maybe this would have been
> better as a patch :-p )
>
> 1.) section 5:page.html - instructions are good, but displayed final
> content of page.html is wrong (missing includes of header and footer
> templates)
>
> 2.) header.html includes <span py:replace="page"/> - but the tutorial
> changed page to an object from a string....not a pretty result.
>
> There are a few ways to solve this. I added the following
> __str__method to Page:
>     def __str__(self):
>         return self.pagename
>
> 4.) Section 6 - edit page missing nice header/footer? (tg.url()
> issue?)
>
> ------
> header.html has:
>       <img src="../images/tg2_04.gif" alt="TG2!" height="40"
> width="84" />
> should it not be:
>       <img src="${tg.url('/images/tg2_04.gif')}" alt="TG2!"
> height="40" width="84" />
>
> -----
> Similarly for footer.html:
>           <img src="images/under_the_hood_blue.png" alt="TurboGears" />
> shouldn't it be:
>           <img src="${tg.url('/images/under_the_hood_blue.png')}"
> alt="TurboGears" />
>
> -----
> My edit page is missing the purty blue-shaded bar in the header too. I
> changed
>     <link rel="stylesheet" type="text/css" media="screen" href="css/
> style.css" />
> to
>     <link rel="stylesheet" type="text/css" media="screen" href="$
> {tg.url('/css/style.css')}" />
>
> -----
> In the same vein....shouldn't tg.url() be used pretty much everywhere
> to teach it as a good habbit? (unless I'm mistaken and it's not a good
> habbit o.O)
> Another exmample in root.py is the save() method uses
> "/"+pagename...it seems tg.url("/%s"%pagename) would be preferred, no?
> This shows up several other places too of course.
>
> tg.url() is mentioned in the Wiki-20 tutorial, so perhaps putting it
> everywhere is too much for the Wiki-20 purposes.
>
> It seems the header/footer at least should have it though, otherwise
> the pages don't render properly and maybe gives a more novice user a
> less than favorable impression.
>
> 5.) step 10:pagelist.html - instructions are good, the final page
> contents in the Wiki-20 tutorial are missing header/footer etc.
>
> All in all I still think this is a fantastic tutorial.
>
> On Apr 12, 4:01 pm, "Mark Ramm" <[EMAIL PROTECTED]> wrote:
>
> > I've update the TG2 code not to require the now variable to be in
> > every controller call, I've also updated the 20 min wiki code in SVN
> > with includes for the new header and footer templates.
>
> > Hopefully everything should "just work" again now.   I'm trying to get
> > the rest of the docs organized a bit, so if you run into anything
> > else, feel free to let me know.
>
> > --Mark Ramm
>
> > On Sat, Apr 12, 2008 at 2:50 PM, Mark Ramm <[EMAIL PROTECTED]> wrote:
> > > Thanks Bill.
>
> > >  This is due to a change in the TG2 quickstart app to break out headers
> > >  and footers and the like, which was made after the 20 min wiki was
> > >  finished.
>
> > >  I'm thinking seriously about removing some of that added complexity
> > >  from the quickstarted project, and making it so that the origonal 20
> > >  min wiki instructions just work again.
>
> > >  --mark ramm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to