On Mar 25, 2007, at 6:24 PM, johnf wrote:
> I have created a vcr class with the common first,prior,next and
> last buttons.
> However, it is not based on the PKID but on a field. If I click on
> my next
> or prior buttons in a normal manner all works. But I quickly click
> on either
> of the buttons at some random point a save dialog will pop up.
I don't know what could be causing this. Any chance you are
triggering a requery() somewhere?
> def afterRequery(self):
> if self.Parent <> None and self.RowCount==0:
> self.new() #add a new child it does not exist
Note: the use of '<>' has been deprecated in Python, and should
therefore not be used. Besides, with any object-type values, the 'is'
operator is preferred. The test in the above code should read:
if self.Parent is not None and self.RowCount == 0:
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev