Re: Setting componentCommentLevel within a document
Jacob Smullyan <[email protected]> Mon, 12 Sep 2005 22:29:45 -0400
| Newsgroups | gmane.comp.web.skunkweb |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Sep 12, 2005 at 05:09:00PM -0700, Gregory Brauer wrote:
>
> Is there any way to set the server componentCommentLevel from
> within a document / STML code so that it only affects that
> perticular page?
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().
j
--
Jacob Smullyan
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf