2010-05-25 09:36:13 |
Julian Edwards |
description |
Sometimes submitting the Builder:+edit page mysteriously times out with no OOPS generated. It turns out that when submitting the form, the code at LaunchpadEditFormView.updateContextFromData() tries to make a snapshot of the object by iterating over all of its properties, so that it can tell event listeners which fields got changed.
One of those properties, is_available, makes a call to a slave to get its status. This is obviously Not Good when done in a webapp request as there are some firewalls in the way.
There's a couple of options to fix it:
1. use the doNotSnapshot() method in the interface for the property
2. pass notify_modified=True to updateContextFromData() |
Sometimes submitting the Builder:+edit page mysteriously times out with no OOPS generated. It turns out that when submitting the form, the code at LaunchpadEditFormView.updateContextFromData() tries to make a snapshot of the object by iterating over all of its properties, so that it can tell event listeners which fields got changed.
One of those properties, is_available, makes a call to a slave to get its status. This is obviously Not Good when done in a webapp request as there are some firewalls in the way.
There's a couple of options to fix it:
1. use the doNotSnapshot() method in the interface for the property
2. pass notify_modified=False to updateContextFromData()
|
|