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.
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
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)
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
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
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
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
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.
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
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.
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
11 matches
Mail list logo