--- In [email protected], Frank Niessink <fr...@...> wrote:
>
> 2009/8/20 membrede <damien.teyss...@...>:
> > Hello
> >
> > I'm working on a way to open any task's attachment through the 
> > TaskPopupMenu.
> >
> > To do so I have created a new class of dynamic menu (please see below). My 
> > main problem at the moment is to identify the task selected.
> > In the class definition when I use the following instruction:
> >
> > self.viewer.curselection()           #viewer is a TaskViewer taken from the 
> > TaskPopupMenu
> >
> > I get the following error:
> >
> > AttributeError: `TaskViewer' object has no attribute `widget'
> >
> > For info I want to use this instruction in the "getUICommands" (see below) 
> > in the following loop:
> >
> >        for task in self.viewer.curselection():
> >            for attachment in task.attachments():
> >                ….
> >
> > Do you have any idea about this error?
> 
> No immediate idea. Can you create a patch so we can see all changes?
> 
> Thanks, Frank
>

Hello,

I've just finish the mod. It works very well within a task viewer. but with a 
note or a category viewer I still have this problem of
"Object has no attribute 'widget'" when I want to use curselection() or 
isselected().

I don't know how to do a Patch so I will try to attach menu.py and uicommand.py

Cheers,

Damien


Reply via email to