[ditrack commit] r2455 - src/trunk/DITrack/Command

Vlad Skvortsov vss at 73rus.com
Tue Feb 19 17:18:11 PST 2008


gli at ditrack.org wrote:
> Author: gli
> Date: 2008-02-06 09:19:47 -0800 (Wed, 06 Feb 2008)
> New Revision: 2455
>
> Modified:
>    src/trunk/DITrack/Command/act.py
> Log:
> fixed error when you can not edit the header twice
>   

Can you elaborate on this a bit please? Perhaps add a test case? I 
glanced at this for a second and couldn't figure out what got fixed.

> Modified: src/trunk/DITrack/Command/act.py
> ===================================================================
> --- src/trunk/DITrack/Command/act.py	2008-02-03 19:03:28 UTC (rev 2454)
> +++ src/trunk/DITrack/Command/act.py	2008-02-06 17:19:47 UTC (rev 2455)
> @@ -464,7 +464,10 @@
>                      self._globals, info.as_string()
>                  )
>  
> -                self._issues[id].info = email.message_from_string(header)
> +                self._issues[id].info = {}
> +                new_info = email.message_from_string(header)
> +                for h in new_info.keys():
> +                    self._issues[id].info[h] = new_info[h]
>  
>              elif r == mi_edit_text:
>                  self.comment_text = DITrack.Edit.edit_text(self._globals,
>
> _______________________________________________
> Commit mailing list
> Commit at lists.ditrack.org
> http://lists.ditrack.org/mailman/listinfo/commit
>   


-- 
Vlad Skvortsov, vss at 73rus.com, http://vss.73rus.com



More information about the Dev mailing list