Re: Setting componentCommentLevel within a document

Gregory Brauer <[email protected]> Wed, 14 Sep 2005 16:50:48 -0700
Newsgroups gmane.comp.web.skunkweb
Message-ID <[email protected]>
Jacob Smullyan wrote:
> One way:
> 
>   import SkunkWeb.Configuration as C
>   oldLevel=C.componentCommentLevel
>   C.componentCommentLevel=newLevel
>   # do whatever ....
>   try:
>      doWhatever()
>   finally:
>      C.componentCommentLevel=oldLevel
> 
> 
> Note that this will affect any components called by doWhatever().

Ok, thanks.

If I fail to set C.componentCommentLevel back to oldLevel, will all
future pages served end up with newLevel?

Greg


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php