2009/8/20 membrede <[email protected]>:
> 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


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/taskcoach-dev/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/taskcoach-dev/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to