Hi Jerome,
This is strange, I just received an old commit message (March 24). Did
you check in anything with the CVS repository?
Cheers, Frank
2008/3/24 Jérome Laheurte <[EMAIL PROTECTED]>:
> Update of /cvsroot/taskcoach/taskcoach/taskcoachlib/gui
> In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv11637/taskcoachlib/gui
>
> Modified Files:
> uicommand.py viewer.py
> Log Message:
> Path to file attachments may be relative
>
> Index: uicommand.py
> ===================================================================
> RCS file: /cvsroot/taskcoach/taskcoach/taskcoachlib/gui/uicommand.py,v
> retrieving revision 1.142
> retrieving revision 1.143
> diff -C2 -d -r1.142 -r1.143
> *** uicommand.py 13 Mar 2008 20:59:56 -0000 1.142
> --- uicommand.py 24 Mar 2008 11:51:56 -0000 1.143
> ***************
> *** 1319,1323 ****
>
>
> ! class TaskAddAttachment(NeedsSelectedTasks, TaskListCommand, ViewerCommand):
> def __init__(self, *args, **kwargs):
> super(TaskAddAttachment, self).__init__(menuText=_('&Add
> attachment'),
> --- 1319,1323 ----
>
>
> ! class TaskAddAttachment(NeedsSelectedTasks, TaskListCommand, ViewerCommand,
> SettingsCommand):
> def __init__(self, *args, **kwargs):
> super(TaskAddAttachment, self).__init__(menuText=_('&Add
> attachment'),
> ***************
> *** 1328,1331 ****
> --- 1328,1335 ----
> filename = widgets.AttachmentSelector()
> if filename:
> + base = self.settings.get('file', 'attachmentbase')
> + if base:
> + filename = attachment.getRelativePath(filename, base)
> +
> addAttachmentCommand = command.AddAttachmentToTaskCommand( \
> self.taskList, self.viewer.curselection(),
> ***************
> *** 1334,1338 ****
>
>
> ! class TaskOpenAllAttachments(NeedsSelectedTasksWithAttachments,
> ViewerCommand):
> def __init__(self, *args, **kwargs):
> super(TaskOpenAllAttachments, self).__init__(menuText=_('&Open all
> attachments'),
> --- 1338,1342 ----
>
>
> ! class TaskOpenAllAttachments(NeedsSelectedTasksWithAttachments,
> ViewerCommand, SettingsCommand):
> def __init__(self, *args, **kwargs):
> super(TaskOpenAllAttachments, self).__init__(menuText=_('&Open all
> attachments'),
> ***************
> *** 1341,1348 ****
>
> def doCommand(self, event):
> for task in self.viewer.curselection():
> for attachment in task.attachments():
> try:
> ! attachment.open()
> except Exception, instance:
> showerror(str(instance),
> --- 1345,1353 ----
>
> def doCommand(self, event):
> + base = self.settings.get('file', 'attachmentbase')
> for task in self.viewer.curselection():
> for attachment in task.attachments():
> try:
> ! attachment.open(base)
> except Exception, instance:
> showerror(str(instance),
> ***************
> *** 1899,1904 ****
> bitmap='email')
> self['addattachmenttotask'] = TaskAddAttachment(taskList=taskList,
> ! viewer=viewer)
> ! self['openalltaskattachments'] =
> TaskOpenAllAttachments(viewer=viewer)
> self['incpriority'] = TaskIncPriority(taskList=taskList,
> viewer=viewer)
> self['decpriority'] = TaskDecPriority(taskList=taskList,
> viewer=viewer)
> --- 1904,1910 ----
> bitmap='email')
> self['addattachmenttotask'] = TaskAddAttachment(taskList=taskList,
> ! viewer=viewer,
> ! settings=settings)
> ! self['openalltaskattachments'] =
> TaskOpenAllAttachments(viewer=viewer, settings=settings)
> self['incpriority'] = TaskIncPriority(taskList=taskList,
> viewer=viewer)
> self['decpriority'] = TaskDecPriority(taskList=taskList,
> viewer=viewer)
>
> Index: viewer.py
> ===================================================================
> RCS file: /cvsroot/taskcoach/taskcoach/taskcoachlib/gui/viewer.py,v
> retrieving revision 1.139
> retrieving revision 1.140
> diff -C2 -d -r1.139 -r1.140
> *** viewer.py 2 Mar 2008 13:28:54 -0000 1.139
> --- viewer.py 24 Mar 2008 11:51:56 -0000 1.140
> ***************
> *** 906,910 ****
> ''' This method is called by the widget when one or more files
> are dropped on a task. '''
> ! attachments = [attachment.FileAttachment(name) for name in
> filenames]
> if index is None:
> newTaskDialog = self.newItemDialog(bitmap='new',
> --- 906,915 ----
> ''' This method is called by the widget when one or more files
> are dropped on a task. '''
> ! base = self.settings.get('file', 'attachmentbase')
> ! if base:
> ! func = lambda x: attachment.getRelativePath(x, base)
> ! else:
> ! func = lambda x: x
> ! attachments = [attachment.FileAttachment(func(name)) for name in
> filenames]
> if index is None:
> newTaskDialog = self.newItemDialog(bitmap='new',
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Taskcoach-commits mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/taskcoach-commits
>