dabo Commit
Revision 3636
Date: 2007-11-07 13:59:19 -0800 (Wed, 07 Nov 2007)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/3636
Changed:
U trunk/dabo/biz/dBizobj.py
Log:
Added docstring for biz.beforeNew(). Are you a lurker looking for something to
contribute? Well, open up dBizobj.py and follow our lead with the beforeNew()
and afterNew() methods to fill in the rest of the pre-hook and post-hook
docstrings.
See ticket #1017
Diff:
Modified: trunk/dabo/biz/dBizobj.py
===================================================================
--- trunk/dabo/biz/dBizobj.py 2007-11-07 02:06:01 UTC (rev 3635)
+++ trunk/dabo/biz/dBizobj.py 2007-11-07 21:59:19 UTC (rev 3636)
@@ -1482,7 +1482,15 @@
########## Pre-hook interface section ##############
- def beforeNew(self): return ""
+ def beforeNew(self):
+ """Called before a new record is added.
+
+ Subclasses can put in additional code to run, and/or return a
non-empty
+ string to signify that the new record should not be added. The
contents
+ of the string will be displayed to the user.
+ """
+ return ""
+
def beforeDelete(self): return ""
def beforeDeleteAllChildren(self): return ""
def beforeFirst(self): return ""
@@ -1506,6 +1514,7 @@
instead.
"""
pass
+
def afterDelete(self): pass
def afterDeleteAllChildren(self): return ""
def afterFirst(self): pass
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]