Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 2 and Version 3 of StartupHook


Ignore:
Timestamp:
03/04/08 19:17:27 (11 years ago)
Author:
Chris Arndt
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • StartupHook

    v2 v3  
    1 turbogears has a call_on_startup and call_on_shutdown facility in turbogears.startup 
     1{{{ 
    22 
    3 {{{ 
    4 from turbogears.startup import call_on_startup 
     3#!rst 
    54 
    6 def do_your_thing(): 
    7     ... 
    8  
    9 call_on_startup.append(do_your_thing) 
     5.. note:: This page has been migrated to http://docs.turbogears.org/1.0/StartupHook 
    106}}} 
    117 
    12 you can do_your_thing and insert filters into the cherrypy request phase or set up variables as needed. 
    13  
    14  
    15 FAQ: 
    16 Q- Where I put this code? In controller.py? In start-project.py? 
    17 A-