cdd-dev team mailing list archive
-
cdd-dev team
-
Mailing list archive
-
Message #00355
Re: [Branch ~cdd-dev/cdd/trunk] Rev 200: Corrected date in the generated cdd.
I'm not so sure this is the correct way to fix this. Dates are
normally date objects, not numerics.
Is the datepicker returning something else?
I have to go right now but I'll do some testing on this later.
Cheers,
Tim
On Sat, Jul 28, 2012 at 7:40 AM, <noreply@xxxxxxxxxxxxx> wrote:
> ------------------------------------------------------------
> revno: 200
> fixes bug: https://launchpad.net/bugs/1030253
> committer: Eduardo C. P. Ribeiro <eduardo.cesar@xxxxxxx>
> branch nick: cdd
> timestamp: Sat 2012-07-28 07:38:29 -0300
> message:
> Corrected date in the generated cdd.
> modified:
> src/cdg_main.py
>
>
> --
> lp:cdd
> https://code.launchpad.net/~cdd-dev/cdd/trunk
>
> Your team CDD Developers is subscribed to branch lp:cdd.
> To unsubscribe from this branch go to https://code.launchpad.net/~cdd-dev/cdd/trunk/+edit-subscription
>
> === modified file 'src/cdg_main.py'
> --- src/cdg_main.py 2012-07-27 23:27:36 +0000
> +++ src/cdg_main.py 2012-07-28 10:38:29 +0000
> @@ -490,7 +490,7 @@
> language = panel.choice_lang.GetStringSelection()
>
> tempo = panel.datepicker_ctrl_date.GetValue()
> - date = '{Y}-{M}-{D:02}'.format(Y=tempo.GetYear(), M=tempo.GetMonth(), D=tempo.GetDay())
> + date = '{Y}-{M}-{D:02}'.format(Y=tempo.GetYear(), M=tempo.GetMonth()+1, D=tempo.GetDay())
>
> self.get_info(title, description, date, creator, creator_email, contributor, language, publisher, subject, source, rights, relation, coverage)
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~cdd-dev
> Post to : cdd-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~cdd-dev
> More help : https://help.launchpad.net/ListHelp
>
--
============================================
Timothy Cook, MSc +55 21 94711995
MLHIM http://www.mlhim.org
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
Skype ID == timothy.cook
Academic.Edu Profile: http://uff.academia.edu/TimothyCook
References