Użytkownik Carey Gagnon napisał:
>> Frameworks fails to restore RowMumber in saveAll() method
>> because one of your children doesn't have requery parameter set.
>>
>>
> Thanks Jacek. You pointed me in the right direction with your replay:
>
> I changed:
>
> ## *!* ## Dabo Code ID: dDropdownList-dPanel
> def afterInit(self):
> biz = self.Form.getBizobj("builders")
> names, pks = biz.getBuilders()
> self.Choices = names
> self.Keys = pks
> self.ValueMode = "Key"
>
>
> to:
>
> ## *!* ## Dabo Code ID: dDropdownList-dPanel
> def afterInit(self):
> biz = self.Form.getBizobj("builders")
> names, pks = biz.getBuilders()
> self.Choices = names
> self.Keys = pks
> self.ValueMode = "Key"
> self.Form.requery()<<<<<<<<<----------------------------------------
> Added This line
>
> and the error message is gone.
>
> How do you set up database logging?
>
I use something like http://dabo.codepad.org/f7iV1sqB
to log messages in not frozen applications, you can put
this code in the startup script.
If you don't need file logging, just add:
dbLogConsoleLevel = logging.DEBUG
to your settings_override.py file.
Although you make your application working again,
we should locate the problem and fix it.
--
Regards
Jacek Kałucki
_______________________________________________
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/[email protected]