<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <h1 class="pudge-member-page-heading"> <tt>ClassCreateSignal</tt> </h1> <h4 class="pudge-member-page-subheading"> Signal raised after class creation. The sender is the superclass (in case of multiple superclasses, the first superclass). The arguments are <tt class="docutils literal">(new_class_name, bases, new_attrs, post_funcs, early_funcs)</tt>. <tt class="docutils literal">new_attrs</tt> is a dictionary and may be modified (but <tt class="docutils literal">new_class_name</tt> and <tt class="docutils literal">bases</tt> are immutable). <tt class="docutils literal">post_funcs</tt> is an initially-empty list that can have callbacks appended to it. </h4> <p class="pudge-member-parent-link"> <small> The ClassCreateSignal class is accessible via the <a href="module-sqlobject.events.html"> <tt>sqlobject.events</tt> </a> module. </small> </p> <div id="pudge-section-nav"> <ul> <li> <span class="pudge-missing-section-link"> Attributes </span> </li><li> <a href="#methods" class="pudge-section-link"> Methods (4) </a> </li> <li> <a href="sqlobject/events.py.html?f=33&l=50#33" class="pudge-section-link"> Source </a> </li> </ul> </div> <div style="clear: left"></div> <div class="rst pudge-module-doc"> <p>Note: at the time this event is called, the new class has not yet been created. The functions in <tt class="docutils literal">post_funcs</tt> will be called after the class is created, with the single arguments of <tt class="docutils literal">(new_class)</tt>. Also, <tt class="docutils literal">early_funcs</tt> will be called at the soonest possible time after class creation (<tt class="docutils literal">post_funcs</tt> is called after the class's <tt class="docutils literal">__classinit__</tt>).</p> </div> <hr> <a name="methods"></a> <h2>Methods</h2> <div class="pudge-member routine alias"> <a name="__sizeof__"></a> <h4 class="pudge-member-name"><span class="prefix">f</span> <tt><a href="class-sqlobject.events.ClassCreateSignal.html#__sizeof__" class="pudge-obj-link">__sizeof__</a>(...)</tt> <a href="__builtin__.py.html" title="View Source">...</a> </h4> <div class="pudge-section rst"> <p class="pudge-member-blurb"> __sizeof__() -> int size of object in memory, in bytes </p> </div> </div><div class="pudge-member routine alias"> <a name="__format__"></a> <h4 class="pudge-member-name"><span class="prefix">f</span> <tt><a href="class-sqlobject.events.ClassCreateSignal.html#__format__" class="pudge-obj-link">__format__</a>(...)</tt> <a href="__builtin__.py.html" title="View Source">...</a> </h4> <div class="pudge-section rst"> <p class="pudge-member-blurb"> default object formatter </p> </div> </div><div class="pudge-member routine alias"> <a name="__subclasshook__"></a> <h4 class="pudge-member-name"><span class="prefix">f</span> <tt><a href="class-sqlobject.events.ClassCreateSignal.html#__subclasshook__" class="pudge-obj-link">__subclasshook__</a>(...)</tt> <a href="None.html" title="View Source">...</a> </h4> <div class="pudge-section rst"> <p class="pudge-member-blurb"> Abstract classes can override this to customize issubclass(). </p> <p>This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).</p> </div> </div><div class="pudge-member routine alias"> <a name="__init__"></a> <h4 class="pudge-member-name"><span class="prefix">f</span> <tt><a href="class-sqlobject.events.ClassCreateSignal.html#__init__" class="pudge-obj-link">__init__</a>(...)</tt> <a href="__builtin__.py.html" title="View Source">...</a> </h4> <div class="pudge-section rst"> <p class="pudge-member-blurb"> x.__init__(...) initializes x; see help(type(x)) for signature </p> </div> </div> <p> <small> See <a href="sqlobject/events.py.html?f=33&l=50#33" title="sqlobject/events.py:33">the source</a> for more information. </small> </p>