The PEAK Developers' Center   Diff for "TrellisSTM" UserPreferences
 
HelpContents Search Diffs Info Edit Subscribe XML Print View
Ignore changes in the amount of whitespace

Differences between version dated 2008-01-07 17:38:30 and 2008-05-23 12:49:27 (spanning 3 versions)

Deletions are marked like this.
Additions are marked like this.

Commit Callbacks
----------------
 
If you want to defer an action until the overal operation is ready to commit,
If you want to defer an action until the overall operation is ready to commit,
you can use the ``on_commit(func, *args)`` method::
 
    >>> def do_something(msg):

    caught exception
 
And of course, commit actions are not run if an error occurs before they have
a chance to run:
a chance to run::
 
    >>> def do_no_commit():
    ... hist.on_commit(do_something, "should not happen")

 
TODO: write up AbstractCell, ConstantMixin, value/get_value/set_value, etc.
 
 

PythonPowered
ShowText of this page
EditText of this page
FindPage by browsing, title search , text search or an index
Or try one of these actions: AttachFile, DeletePage, LikePages, LocalSiteMap, SpellCheck