Mercurial > p > roundup > code
diff doc/admin_guide.txt @ 8352:6ea309c6d17c
docs: fix registerutilMethod docs, format for highlights.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 03 Jul 2025 12:30:21 -0400 |
| parents | 03513f5066f3 |
| children | 0663a7bcef6c |
line wrap: on
line diff
--- a/doc/admin_guide.txt Wed Jul 02 12:26:21 2025 -0400 +++ b/doc/admin_guide.txt Thu Jul 03 12:30:21 2025 -0400 @@ -493,6 +493,10 @@ Header values will be formatted with a dictionary including a nonce. Use to set a nonce for inline scripts. + + self is an instance of the TemplatingUtilities class, so + you have access to self.client as well as any functions added + using registerUtil. ''' try: if self.client.client_nonce is None: @@ -545,7 +549,6 @@ ``instance.registerUtil``. For example:: def init(instance): - # Note the use of the new (in version 2.5) registerUtilMethod instance.registerUtil('AddHtmlHeaders', AddHtmlHeaders) The AddHtmlHeaders function needs to be changed so that ``self.client``
