On Mon, Dec 15, 2008 at 1:07 PM, Rod Morison <[email protected]> wrote:
>
> I'm going through the tutorials under 0.9.7. The Flickr tutorial says
> config/middleware.py should have
>
> javascripts_app = StaticJavascripts()
> ...
> app = Cascade([static_app, javascripts_app, app])
>
> and a /javascripts/effects.js file. Neither are there.
>
> I read the "What's new in Pylons 0.9.7?" at
> http://wiki.pylonshq.com/pages/viewpage.action?pageId=11174779 . I see
> there are changes in the javascript middleware, but it's not clear how
> to rework/get through this tutorial.
>
> What changed wrt to the Flickr tutorial and how does one get the
> tutorial to work?

The Flickr tutorial is out of date.  It will probably have to be
dropped from the docs unless somebody has time to update it.

You can add the Javascripts app to middleware.py and it will probably
work, but that part of WebHelpers is deprecated and will be gone by
Pylons 0.9.8.

The Javascrips app serves a virtual /javascripts/effects.js file whose
source is somewhere in WebHelpers.

In a real 0.9.7 application you'd use a third-party Javascript library
like JQuery or YUI, or write the Javascript yourself.  You can also
get the current versions of Prototype and Scriptaculous by googling
them.

-- 
Mike Orr <[email protected]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to