Wow it's... just... beautifull... snif....   (minus the typo)

One other question. You remember my problem from two days ago? Because the relations of a mapper object are not standard lists, pyobjc wouldn't bind them. It turns out, that when I bind the NSArrayController to relation.data it works fine! And the objectstore stuff keeps working too! Is this a smart thing to do?

Example (the array controller is bound to orders[selection].orderproducts_list):

def fetchall_(self):
orders = list(self.order_mapper.select(limit=10))
for order in orders:
order.orderproducts_list = order.orderproducts.data
self.orders = orders



On 29-mrt-2006, at 1:24, Jonathan Ellis wrote:

Since you don't say what your error is, I will just show how to make your code more like Python and less like Java. :)

th = threading.Thread(target=objectsore.commit, name='updating database')
th.start()

That's it!

Reply via email to