Index: openacs-4/packages/xowiki/tcl/xowiki-mode-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-mode-procs.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/xowiki/tcl/xowiki-mode-procs.tcl 7 Jul 2018 10:58:20 -0000 1.3 +++ openacs-4/packages/xowiki/tcl/xowiki-mode-procs.tcl 3 Sep 2024 15:37:55 -0000 1.4 @@ -41,14 +41,14 @@ return [ad_get_client_property -cache_only t xowiki $mode_name] } - :public method toggle {} { + :public method toggle {} { # # Switch state of the toggle # set oldState [:get] :set [expr {!$oldState}] } - + :public method set {value:boolean} { # # Set the mode to the specified value @@ -65,11 +65,14 @@ ::xowiki::Mode create ::xowiki::mode::admin { :public object method default {} { # Admins are per default in admin-mode - return [::xo::cc permission -object_id [xo::cc package_id] -privilege admin -party_id [xo::cc user_id]] + return [::xo::cc permission \ + -object_id [xo::cc package_id] \ + -privilege admin \ + -party_id [xo::cc user_id]] } } # - # one might create more such mode handler e.g. in an -init.tcl file. + # one might create more such mode handler e.g. in a *-init.tcl file. # }