| 1266 | | if self.IsAdding and self.AutoPopulatePK: |
|---|
| 1267 | | pk = None |
|---|
| 1268 | | else: |
|---|
| 1269 | | try: |
|---|
| 1270 | | pk = self.getPK() |
|---|
| 1271 | | except dException.NoRecordsException: |
|---|
| 1272 | | # There aren't any records, all children should requery to 0 records. |
|---|
| 1273 | | # We can't set the pk to None, because None has special meaning |
|---|
| 1274 | | # elsewhere (self.__currentCursorKey). |
|---|
| 1275 | | pk = NO_RECORDS_PK |
|---|
| | 1266 | newAutopop = (self.IsAdding and self.AutoPopulatePK) |
|---|
| | 1267 | try: |
|---|
| | 1268 | pk = self.getPK() |
|---|
| | 1269 | except dException.NoRecordsException: |
|---|
| | 1270 | # There aren't any records, all children should requery to 0 records. |
|---|
| | 1271 | # We can't set the pk to None, because None has special meaning |
|---|
| | 1272 | # elsewhere (self.__currentCursorKey). |
|---|
| | 1273 | pk = NO_RECORDS_PK |
|---|