xotcl.wu-wien.ac.at
Begin main content
Search · Index
No registered users in community s5-xowiki-tutorial
in last 10 minutes

Per request initialization

namepsace eval ::myapp {
  ...
  ::myapp::Package instproc initialize {} {
    # Per application type initialization.
    #
    # One can register here e.g. mixins extending/replacing
    # xowiki behavior. For example
    #     ::xowiki::Page instmixin add ::myapp::Page
    #
    next
  }
  ::myapp::Package instproc destroy {} {
    # remove the behavior added by initialize
    #     ::xowiki::Page instmixin delete ::myapp::Page
    next
  }
  ...
}