Re: Flickr tutorial under 0.9.7?
Previously Matt Feifarek wrote: On Wed, Dec 17, 2008 at 6:19 PM, Ben Bangert b...@groovie.org wrote: I've updated the front page in the codebase which will soon be up at http://beta.pylonshq.com/, to properly reflect what's in Pylons 0.9.7. Should be deployed there shortly. I'm also getting most of the links fixed up so the site can be ready for launch with 0.9.7 final rather soon. Wow, Ben, the new site looks GREAT! Well done. Indeed. And curious wants to know: is that a Pylons-powered CMS? It looks like one.. Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Flickr tutorial under 0.9.7?
On Wed, Dec 17, 2008 at 6:19 PM, Ben Bangert b...@groovie.org wrote: I've updated the front page in the codebase which will soon be up at http://beta.pylonshq.com/, to properly reflect what's in Pylons 0.9.7. Should be deployed there shortly. I'm also getting most of the links fixed up so the site can be ready for launch with 0.9.7 final rather soon. Wow, Ben, the new site looks GREAT! Well done. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Flickr tutorial under 0.9.7?
2008/12/16 Mike Orr sluggos...@gmail.com: By the way, Pylons homepage says: AJAX: Rails-style WebHelpers based on Prototype, or Mochikit, jQuery, Dojo, Ext more. I'm wondering what that means. I've been curious about that too, since the JavaScript helpers are implemented with Prototype. I think the intent, though, is just to indicate that it's easy to use any of those libraries with Pylons or to create your own helpers based on those libs. It indicates the website is out of date. :) OK it used to be true for Prototype, but what about the other ones? I'm a bit worried about newcomers getting exciting at reading this and then finding out that there isn't really such a thing in Pylons. Is it going to be possible to keep the current Rails-style WebHelpers while using newer versions of Pylons or will we definitely have to port our code? You'll have to make some adjustments at least. The easiest is to copy the old helper modules into your application and adjust the imports in helpers.py. You can do that any time in the next several months. Alternatively, you could hack Pylons' egg-info to not require the newer version, but that would be overwritten if you reinstall or upgrade Pylons. Thank you for the hint, copying the old module seems to be simpler indeed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Flickr tutorial under 0.9.7?
On Wed, Dec 17, 2008 at 3:32 AM, Alex Marandon alex.maran...@gmail.com wrote: 2008/12/16 Mike Orr sluggos...@gmail.com: By the way, Pylons homepage says: AJAX: Rails-style WebHelpers based on Prototype, or Mochikit, jQuery, Dojo, Ext more. I'm wondering what that means. I've been curious about that too, since the JavaScript helpers are implemented with Prototype. I think the intent, though, is just to indicate that it's easy to use any of those libraries with Pylons or to create your own helpers based on those libs. It indicates the website is out of date. :) OK it used to be true for Prototype, but what about the other ones? I'm a bit worried about newcomers getting exciting at reading this and then finding out that there isn't really such a thing in Pylons. Plays Well With Others Pylons is built on Paste and allows and encourages use of your favorite Python components and libraries: * Models: SQLAlchemy, SQLObject, plain old DB-API * Templating: Mako, Genshi, Jinja, Kid, Cheetah, or whatever you like - using Buffet * AJAX: Rails-style WebHelpers based on Prototype, or Mochikit, jQuery, Dojo, Ext more * Request Dispatching: Routes by default, or plug in your favorite This should really be reworded because it mixes things that are Pylons dependencies, vs things that are supported alternatives in the official docs, vs things that are possible but not actively supported. Models: (0.9.7 0.9.6) basic support for a SQLAlchemy configuration; SQLObject and DB-API unsupported. Templating: (0.9.7) Mako is built-in. Genshi Jinja are supported alternatives (though not all of Genshi's options are supported). Others are unsupported but simple to configure. Buffet is deprecated. (0.9.6) Buffet is standard. Buffet has some issues with Kid and Cheetah and, well, everything, but we've managed to tame it for Mako and at least part of Genshi. AJAX: (0.9.7) New helpers. No Javascript. (0.9.6) Rails helpers, Prototype, Scriptaculous. Neither version has specific support for MochiKit, JQuery, Dojo, ExtJS, etc. webhelpers.paginate did have some support for various AJAX libraries at one point, but you'd have to look in the source to see if it's still there. Request dispatching: (0.9.7) Routes 1.10 series is standard. 1.10 introduced some new syntax and changed some default options, but is basically backward compatible. (0.9.6) Routes 1.7.5 is standard. -- Mike Orr sluggos...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Flickr tutorial under 0.9.7?
That .6 vs .7 status list is very helpful, esp for a Pylons newbie struggling with documentation which is part .6 and part .7, thanks. Are there any docs or examples for the new .7 helpers? I want to work towards the Pylons 1.0 Factory approved usage for helpers and templating, but am challenged figuring out what that will be. Specifically, I'm trying to work through the tutorials without the deprecated helpers, and still take advantage of helpers that will be in the forward releases. But, I look in webhelpers-0.6.3-py2.6.egg/webhelpers/html/form_layout.py and I see Helpers for laying out forms (EXPERIMENTAL) **This module is experimental and subject to change or deletion!** If you want to use it in an application, please copy it to the application. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Flickr tutorial under 0.9.7?
On Dec 17, 2008, at 3:01 PM, Rod Morison wrote: That .6 vs .7 status list is very helpful, esp for a Pylons newbie struggling with documentation which is part .6 and part .7, thanks. Are there any docs or examples for the new .7 helpers? I want to work towards the Pylons 1.0 Factory approved usage for helpers and templating, but am challenged figuring out what that will be. Specifically, I'm trying to work through the tutorials without the deprecated helpers, and still take advantage of helpers that will be in the forward releases. But, I look in webhelpers-0.6.3-py2.6.egg/webhelpers/html/form_layout.py and I see I've updated the front page in the codebase which will soon be up at http://beta.pylonshq.com/ , to properly reflect what's in Pylons 0.9.7. Should be deployed there shortly. I'm also getting most of the links fixed up so the site can be ready for launch with 0.9.7 final rather soon. - Ben smime.p7s Description: S/MIME cryptographic signature
Re: Flickr tutorial under 0.9.7?
I didn't have the beta docs url, looks like there's enough to get me going with the intrinsic helpers. I like the Pylons platform a lot already, and have only done minor experiments. When everything is ironed out, it's really gonna rock. Great project! Rod --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Flickr tutorial under 0.9.7?
On Wed, Dec 17, 2008 at 3:01 PM, Rod Morison r...@morison.biz wrote: That .6 vs .7 status list is very helpful, esp for a Pylons newbie struggling with documentation which is part .6 and part .7, thanks. Are there any docs or examples for the new .7 helpers? The documentation is in the source code, and is now available under the modules section of beta.pylonshq.com. The section in the reference manual (Forms, Validation, and Helpers) is very minimal (and misses the HTML helpers entirely) because something needs to be configured in Sphinx, and I'm hoping Ben knows what it is. I want to work towards the Pylons 1.0 Factory approved usage for helpers and templating, but am challenged figuring out what that will be. Specifically, I'm trying to work through the tutorials without the deprecated helpers, and still take advantage of helpers that will be in the forward releases. But, I look in webhelpers-0.6.3-py2.6.egg/webhelpers/html/form_layout.py and I see Helpers for laying out forms (EXPERIMENTAL) **This module is experimental and subject to change or deletion!** If you want to use it in an application, please copy it to the application. The form_layout module has already been removed in WebHelpers 0.6.4. It was the only experimental helper that was released; everything else is either officially supported or deprecated. Pylons 1.0 will be close to 0.9.7. The main thing is to avoid anything marked deprecated. There are plans for a more modular @validate but it will be backward compatible. Routes 2 may actually appear someday, with a slightly incompatible syntax. However, the new optional syntax in Routes 1.10 was backported from Routes 2, as was pylons.url (which will gradually replace url_for). So these are forward compatibilities. Because Routes is only lightly coupled to the rest of Pylons, it should be feasable to use Routes 1 even if the default switches to Routes 2, though you may have to hack Pylons' egg-info to change the dependency or import Routes 1 via a different package name; we're not sure yet. Those are the upcoming changes I can think of, so you can see there's not many. -- Mike Orr sluggos...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Flickr tutorial under 0.9.7?
2008/12/15 Mike Orr sluggos...@gmail.com: 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. Is it going to be possible to keep the current Rails-style WebHelpers while using newer versions of Pylons or will we definitely have to port our code? By the way, Pylons homepage says: AJAX: Rails-style WebHelpers based on Prototype, or Mochikit, jQuery, Dojo, Ext more. I'm wondering what that means. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Flickr tutorial under 0.9.7?
On Dec 16, 10:06 am, Alex Marandon alex.maran...@gmail.com wrote: 2008/12/15 Mike Orr sluggos...@gmail.com: 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. Is it going to be possible to keep the current Rails-style WebHelpers while using newer versions of Pylons or will we definitely have to port our code? By the way, Pylons homepage says: AJAX: Rails-style WebHelpers based on Prototype, or Mochikit, jQuery, Dojo, Ext more. I'm wondering what that means. I've been curious about that too, since the JavaScript helpers are implemented with Prototype. I think the intent, though, is just to indicate that it's easy to use any of those libraries with Pylons or to create your own helpers based on those libs. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Flickr tutorial under 0.9.7?
On Tue, Dec 16, 2008 at 11:06 AM, Wyatt Baldwin wyatt.lee.bald...@gmail.com wrote: On Dec 16, 10:06 am, Alex Marandon alex.maran...@gmail.com wrote: 2008/12/15 Mike Orr sluggos...@gmail.com: 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. By the way, Pylons homepage says: AJAX: Rails-style WebHelpers based on Prototype, or Mochikit, jQuery, Dojo, Ext more. I'm wondering what that means. I've been curious about that too, since the JavaScript helpers are implemented with Prototype. I think the intent, though, is just to indicate that it's easy to use any of those libraries with Pylons or to create your own helpers based on those libs. It indicates the website is out of date. :) Is it going to be possible to keep the current Rails-style WebHelpers while using newer versions of Pylons or will we definitely have to port our code? You'll have to make some adjustments at least. The easiest is to copy the old helper modules into your application and adjust the imports in helpers.py. You can do that any time in the next several months. Alternatively, you could hack Pylons' egg-info to not require the newer version, but that would be overwritten if you reinstall or upgrade Pylons. If you're using Prototype/Scriptaculous, I'd definitely download the latest version as it may contain bugfixes compared to the one in WebHelpers. -- Mike Orr sluggos...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Flickr tutorial under 0.9.7?
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? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Flickr tutorial under 0.9.7?
I generally add my javascript files by hand to my base.mako template. Effects.js is from scriptaculous, which is a prototype (.js) effects framework. If you add these manually to your public folder, and add a script tag to the pages that use them, you can forgo the need to use javascripts middleware entirely. I also strongly suggest using Google's AJAX API http://code.google.com/apis/ajaxlibs/documentation/index.html to serve up prototype and scriptaculous since it is already on their CDN, and is already cached by many people's browsers. Tom Longson (nym) http://truefalsemaybe.com/ On Mon, Dec 15, 2008 at 1:07 PM, Rod Morison r...@morison.biz 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? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Flickr tutorial under 0.9.7?
Tom, thanks for google CDN tip. It looks like in 10.1 on http://code.google.com/apis/ajaxlibs/terms.html there are no restrictions on use for commercial applications. Is that your understanding? Rod Tom Longson (nym) wrote: I generally add my javascript files by hand to my base.mako template. Effects.js is from scriptaculous, which is a prototype (.js) effects framework. If you add these manually to your public folder, and add a script tag to the pages that use them, you can forgo the need to use javascripts middleware entirely. I also strongly suggest using Google's AJAX API http://code.google.com/apis/ajaxlibs/documentation/index.html to serve up prototype and scriptaculous since it is already on their CDN, and is already cached by many people's browsers. Tom Longson (nym) http://truefalsemaybe.com/ On Mon, Dec 15, 2008 at 1:07 PM, Rod Morison r...@morison.biz mailto:r...@morison.biz wrote: I'm going through the tutorials under 0.9.7. http://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? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Flickr tutorial under 0.9.7?
On Mon, Dec 15, 2008 at 1:07 PM, Rod Morison r...@morison.biz 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 sluggos...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Flickr tutorial under 0.9.7?
Yes Rod, that's my understanding. This comment from a Google employee seems to support that opinion: http://code.google.com/p/google-ajax-apis/issues/detail?id=50#c44 They purposely did not include the ext javascript library because of concern for commercial users. Tom Longson (nym) http://truefalsemaybe.com/ On Mon, Dec 15, 2008 at 1:47 PM, Rod Morison r...@morison.biz wrote: Tom, thanks for google CDN tip. It looks like in 10.1 on http://code.google.com/apis/ajaxlibs/terms.html there are no restrictions on use for commercial applications. Is that your understanding? Rod Tom Longson (nym) wrote: I generally add my javascript files by hand to my base.mako template. Effects.js is from scriptaculous, which is a prototype (.js) effects framework. If you add these manually to your public folder, and add a script tag to the pages that use them, you can forgo the need to use javascripts middleware entirely. I also strongly suggest using Google's AJAX API http://code.google.com/apis/ajaxlibs/documentation/index.html to serve up prototype and scriptaculous since it is already on their CDN, and is already cached by many people's browsers. Tom Longson (nym) http://truefalsemaybe.com/ On Mon, Dec 15, 2008 at 1:07 PM, Rod Morison r...@morison.biz mailto:r...@morison.biz wrote: I'm going through the tutorials under 0.9.7. http://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? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---