Cheetah 1.0 vs Cheetah 2.2

View: New views
5 Messages — Rating Filter:   Alert me  

Cheetah 1.0 vs Cheetah 2.2

by Hansen, Mike :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have an app running on Python 2.3 that uses Cheetah 1.0. If I upgraded Python to 2.6 and Cheetah 2.2 would there be any issues? Did the API change from Cheetah 1.0 to 2.2? I used compiled templates. Would I just have to recompile the templates to use 2.2?

Thanks,

Mike

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Cheetahtemplate-discuss mailing list
Cheetahtemplate-discuss@...
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss

Re: Cheetah 1.0 vs Cheetah 2.2

by R. Tyler Ballance-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Tue, 29 Sep 2009, Hansen, Mike wrote:

> Hi,
>
> I have an app running on Python 2.3 that uses Cheetah 1.0. If I upgraded Python to 2.6 and Cheetah 2.2 would there be any issues? Did the API change from Cheetah 1.0 to 2.2? I used compiled templates. Would I just have to recompile the templates to use 2.2?

As of Cheetah 2.0rc6 you will need to recompile all your templates that
you use for the newer versions of Cheetah.

It is also worth noting that as of v2.2.2 we still maintain backwards
compatibility with Python 2.3 :)


Let us know if you have any more specific questions we can help with :)


Cheers
-R. Tyler Ballance
Slide, Inc.


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Cheetahtemplate-discuss mailing list
Cheetahtemplate-discuss@...
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss

attachment0 (204 bytes) Download Attachment

Re: Cheetah 1.0 vs Cheetah 2.2

by Bogdano Arendartchuk-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/9/29 Hansen, Mike <Mike.Hansen@...>:
> Hi,
>
> I have an app running on Python 2.3 that uses Cheetah 1.0. If I upgraded Python to 2.6 and Cheetah 2.2 would there be any issues? Did the API change from Cheetah 1.0 to 2.2? I used compiled templates. Would I just have to recompile the templates to use 2.2?
>

The only problem I had was with the handing of empty blocks. For example:

  #if $foo
  ## Something was commented out
  #end if

Which results in IndentationError.

--
Bogdano Arendartchuk

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Cheetahtemplate-discuss mailing list
Cheetahtemplate-discuss@...
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss

Re: Cheetah 1.0 vs Cheetah 2.2

by R. Tyler Ballance-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Tue, 29 Sep 2009, Bogdano Arendartchuk wrote:

> 2009/9/29 Hansen, Mike <Mike.Hansen@...>:
> > Hi,
> >
> > I have an app running on Python 2.3 that uses Cheetah 1.0. If I upgraded Python to 2.6 and Cheetah 2.2 would there be any issues? Did the API change from Cheetah 1.0 to 2.2? I used compiled templates. Would I just have to recompile the templates to use 2.2?
> >
>
> The only problem I had was with the handing of empty blocks. For example:
>
>   #if $foo
>   ## Something was commented out
>   #end if
>
> Which results in IndentationError.
Ah yes, we had this issue moving from 1.0 to 2.0 as well (mostly with
old code), Cheetah does support the "#pass" directive, so you can use
that to fill in those blocks:

        #if $foo
                #pass
        #end if


Cheers

-R. Tyler Ballance
Slide, Inc.


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Cheetahtemplate-discuss mailing list
Cheetahtemplate-discuss@...
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss

attachment0 (204 bytes) Download Attachment

Re: Cheetah 1.0 vs Cheetah 2.2

by Hansen, Mike :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 

> -----Original Message-----
> From: R. Tyler Ballance [mailto:tyler@...]
> Sent: Tuesday, September 29, 2009 11:08 AM
> To: Bogdano Arendartchuk
> Cc: Hansen, Mike; cheetahtemplate-discuss@...
> Subject: Re: [Cheetahtemplate-discuss] Cheetah 1.0 vs Cheetah 2.2
>
>
> On Tue, 29 Sep 2009, Bogdano Arendartchuk wrote:
>
> > 2009/9/29 Hansen, Mike <Mike.Hansen@...>:
> > > Hi,
> > >
> > > I have an app running on Python 2.3 that uses Cheetah
> 1.0. If I upgraded Python to 2.6 and Cheetah 2.2 would there
> be any issues? Did the API change from Cheetah 1.0 to 2.2? I
> used compiled templates. Would I just have to recompile the
> templates to use 2.2?
> > >
> >
> > The only problem I had was with the handing of empty
> blocks. For example:
> >
> >   #if $foo
> >   ## Something was commented out
> >   #end if
> >
> > Which results in IndentationError.
>
> Ah yes, we had this issue moving from 1.0 to 2.0 as well (mostly with
> old code), Cheetah does support the "#pass" directive, so you can use
> that to fill in those blocks:
>
> #if $foo
> #pass
> #end if
>
>
> Cheers
>
> -R. Tyler Ballance
> Slide, Inc.
>

Thanks everyone. It doesn't sound too hard to upgrade.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Cheetahtemplate-discuss mailing list
Cheetahtemplate-discuss@...
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss