Found where the defaults are entered, the method below in dBizobj.py.
def _onNew(self):
""" Populate the record with any default values.
User subclasses should leave this alone and instead override onNew().
"""
cursor = self._CurrentCursor
currKey = self.__currentCursorKey
if self.AutoPopulatePK:
# Provide a temporary PK so that any linked children can be properly
# identified until the record is saved and a permanent PK is obtained.
tmpKey = cursor.genTempAutoPK()
if currKey is None:
self.__currentCursorKey = tmpKey
del self.__cursors[currKey]
self.__cursors[tmpKey] = cursor
# Fill in the link to the parent record
if self.Parent and self.FillLinkFromParent and self.LinkField:
self.setParentFK()
cursor.setDefaults(self.DefaultValues)
cursor.setNewFlag()
Hope this helps,
--
Adrian Klaver
[EMAIL PROTECTED]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]