[Zope3-Users] lovely.remotetask question

2007-04-03 Thread Maciej Wisniowski
Hi I want to use lovely.remotetask in Z3 application. Use case is very simple: User views page, this causes long running function to be started and Ajax calls from the page check every second if there is a result. I have: 1. content object (Folderish) with instance of remotetask.TaskService()

[Zope3-Users] boolean value of adapted objects

2007-04-03 Thread Thierry Florac
Hi, I have a little question about boolean values of adapted objects. For example, I had the following code : info = ISharedDataInfo(context, None) or \ IPrivateDataInfo(context, None) if info is not None: return context return None Even if

[Zope3-Users] Re: lovely.remotetask question

2007-04-03 Thread Jürgen Kartnaller
Maciej Wisniowski wrote: Hi I want to use lovely.remotetask in Z3 application. Use case is very simple: User views page, this causes long running function to be started and Ajax calls from the page check every second if there is a result. I have: 1. content object (Folderish) with instance

Re: [Zope3-Users] boolean value of adapted objects

2007-04-03 Thread Marius Gedminas
On Tue, Apr 03, 2007 at 12:46:25PM +0200, Thierry Florac wrote: I have a little question about boolean values of adapted objects. For example, I had the following code : info = ISharedDataInfo(context, None) or \ IPrivateDataInfo(context, None) if info is not None:

Re: [Zope3-Users] Re: lovely.remotetask question

2007-04-03 Thread Maciej Wisniowski
For startup do this : @component.adapter(IDatabaseOpenedEvent) def startRemoteTask(event): Start the amazon remotetask on startup. db = event.database connection = db.open() root = connection.root() root_folder = root.get(ZopePublication.root_name, None) for site