Re: trying to figure out the exact changes in the controlers and views for 1.0

2010-06-13 Thread Krishnakant Mane
On Wednesday 02 June 2010 04:04 AM, Shailesh Kochhar wrote: I had to figure this out too and it keeps coming up as a question. The short answer is: 1. In controllers, add: "from pylons import url" and then use url(). You can add this to a central place and use it in all your controllers. 2.

Re: trying to figure out the exact changes in the controlers and views for 1.0

2010-06-01 Thread Shailesh Kochhar
I had to figure this out too and it keeps coming up as a question. The short answer is: 1. In controllers, add: "from pylons import url" and then use url(). You can add this to a central place and use it in all your controllers. 2. In templates, just use url(), it's available and works. Hope

Re: trying to figure out the exact changes in the controlers and views for 1.0

2010-05-30 Thread Mike Orr
On Sun, May 30, 2010 at 10:38 PM, Krishnakant Mane wrote: > On Monday 31 May 2010 02:30 AM, Ben Bangert wrote: >> >> On May 30, 2010, at 12:09 PM, Wyatt Baldwin wrote: >> >> >>> >>> Pylons injects a few things into the template context for you along >>> with `h`, including (off the top of my head)

Re: trying to figure out the exact changes in the controlers and views for 1.0

2010-05-30 Thread Krishnakant Mane
On Monday 31 May 2010 02:30 AM, Ben Bangert wrote: On May 30, 2010, at 12:09 PM, Wyatt Baldwin wrote: Pylons injects a few things into the template context for you along with `h`, including (off the top of my head) `url`, `config`, `request`, and `response`. You don't need to prefix any of

Re: trying to figure out the exact changes in the controlers and views for 1.0

2010-05-30 Thread Ben Bangert
On May 30, 2010, at 12:09 PM, Wyatt Baldwin wrote: > Pylons injects a few things into the template context for you along > with `h`, including (off the top of my head) `url`, `config`, > `request`, and `response`. You don't need to prefix any of those with > `h.`. > > The full list of default tem

Re: trying to figure out the exact changes in the controlers and views for 1.0

2010-05-30 Thread Wyatt Baldwin
On May 30, 11:09 am, Krishnakant Mane wrote: > On Sunday 30 May 2010 10:47 PM, Alexandre Conrad wrote: > > > Hello Krishnakant, > > > you will find answers to your questions by following the 1.0 upgrading > > instructions: > > >http://pylonshq.com/docs/en/1.0/upgrading/ > > Thanks alexandre. > Thi

Re: trying to figure out the exact changes in the controlers and views for 1.0

2010-05-30 Thread Krishnakant Mane
On Sunday 30 May 2010 10:47 PM, Alexandre Conrad wrote: Hello Krishnakant, you will find answers to your questions by following the 1.0 upgrading instructions: http://pylonshq.com/docs/en/1.0/upgrading/ Thanks alexandre. This really clears all things. I just wanted to confirm one thin. I

Re: trying to figure out the exact changes in the controlers and views for 1.0

2010-05-30 Thread Alexandre Conrad
Hello Krishnakant, you will find answers to your questions by following the 1.0 upgrading instructions: http://pylonshq.com/docs/en/1.0/upgrading/ 2010/5/30 Krishnakant Mane : > for example now what is the syntax for h.url_for() e.g., the link above says "Change all instances of url_for to url.

Re: trying to figure out the exact changes in the controlers and views for 1.0

2010-05-30 Thread Krishnakant Mane
Thanks for the lot, I had seen it before. But things are still not clear to me. for example now what is the syntax for h.url_for() and if tmpl_context is not used as c then what is it refered to as? similarly how do I use the app_globals? is there any change for that? Any other change which I shou

Re: trying to figure out the exact changes in the controlers and views for 1.0

2010-05-30 Thread cd34
The changelog: http://bitbucket.org/bbangert/pylons/src/tip/CHANGELOG The relevant section: 1.0 (May 27, 2010) * Minor tweak to allow proper importing of pylons. 1.0RC1 (March 1, 2010) * Switched to using Routes 1.12 with support for no longer using the odd routes singleton. * Removed pylons.

trying to figure out the exact changes in the controlers and views for 1.0

2010-05-30 Thread Krishnakant Mane
hello all. I am reading the docs for pylons 1.0 and overall it is pritty similar to 0.9.7 and rightly so. However many people like me would like a section on exactly how different is the overall structure of the project if at all and places where function calls or imports change. For example