Re: [Zope3-Users] using filter in addMenuItem

2007-04-03 Thread Ivan Horvath
Dear Christophe, thank you for your answer, you're right, this way i get the container object. additionally permission needs to be added for this method. only one question remained unanswered. as i recognized zope3 collects always all addmenu items. this i assume, because the traversal exception

[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 of

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

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)