Inheritance block/def problem

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

Inheritance block/def problem

by mobiledreamers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a method fotofooter in the base html that is not needed in a particular subclass.html


base html
#block fotolist
$fotofooter
#end block fotolist

inherited html subclass.html

#def fotolist

#end def fotolist


But the contents of fotofooter still appear in the subclass.html

How do I remove the fotofooter method from subclass.html

#block fotolist does not get over-ridden

--
Bidegg worlds best auction site
http://bidegg.com

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Cheetahtemplate-discuss mailing list
Cheetahtemplate-discuss@...
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss

Re: Inheritance block/def problem

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

Reply to Author | View Threaded | Show Only this Message


On Thu, 10 Sep 2009, mobiledreamers@... wrote:

> I have a method fotofooter in the base html that is not needed in a
> particular subclass.html

Without actual code, I don't expect we'll be able to offer much insight
here


>
>
> *base html*
>
> #block fotolist
> $fotofooter
> #end block fotolist
>
>
> *inherited html** subclass.html*
>
> #def fotolist
>
> #end def fotolist
>
>
> But the contents of fotofooter still appear in the subclass.html
>
> How do I remove the fotofooter method from subclass.html
>
> #block fotolist does not get over-ridden
>
> --
> Bidegg worlds best auction site
> http://bidegg.com

> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Cheetahtemplate-discuss mailing list
> Cheetahtemplate-discuss@...
> https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss

-R. Tyler Ballance
Slide, Inc.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Cheetahtemplate-discuss mailing list
Cheetahtemplate-discuss@...
https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss

attachment0 (204 bytes) Download Attachment

Re: Inheritance block/def problem

by mobiledreamers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tyler
thanks
moving the function fotofooter to base.html solved the problem
thanks


 
On Thu, Sep 10, 2009 at 4:25 PM, R. Tyler Ballance <tyler@...> wrote:

On Thu, 10 Sep 2009, mobiledreamers@... wrote:

> I have a method fotofooter in the base html that is not needed in a
> particular subclass.html

Without actual code, I don't expect we'll be able to offer much insight
here


>
>
> *base html*
>

> #block fotolist
> $fotofooter
> #end block fotolist
>
>
> *inherited html** subclass.html*
>
> #def fotolist
>
> #end def fotolist
>
>
> But the contents of fotofooter still appear in the subclass.html
>
> How do I remove the fotofooter method from subclass.html
>
> #block fotolist does not get over-ridden
>
> --
> Bidegg worlds best auction site
> http://bidegg.com

> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Cheetahtemplate-discuss mailing list
> Cheetahtemplate-discuss@...
> https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss

-R. Tyler Ballance
Slide, Inc.



--
Bidegg worlds best auction site
http://bidegg.com

------------------------------------------------------------------------------
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