On Thu, Dec 9, 2010 at 2:10 AM, David REVOY <[email protected]> wrote:
> Hi,
>
> thanks for the reply ;)
>
> would not be good for my workflow.
>
>
> That's cool, because I'm not proposing it:)
>
> (it's a patch I have in my local git repository, among others that add
> a Lojban translation and make zoom always pixelate.)
>
>
> Oups, sorry I didn't understood it at first :)
>
> (PS: I would just like the save as scrap could insert auto YYYYMMDD
> (year/month/day) label prefix in the name of scrap )
>
>
> Such a patch is trivial.
>
> in gui/filehandling.py:
>
> * add a line 'from time import strftime' at the start of save_scrap_cb()
>
> * replace
>     filename = '%s%s_%c' % (prefix, number, char)
>   with
>     filename = '%s%s-%s_%c' % (prefix, strftime('%Y%m%d'), number, char)
>
> * replace
>     filename = '%s%03d_a' % (prefix, maximum+1)
>   with
>     filename =  '%s%s-%03d_a' % (prefix, strftime('%Y%m%d'), maximum+1)
>
> (these are near line 400)
>
> * That's it!
>
>
> Woao ! Thanks for this ; I tried it but I have a bug here , and my coding
> level is not good enough to solve it.
> So here is what I have :
>
> - scrap20101208-002_a.ora
> - scrap20101208-20101209_a.ora
> - and the 'F2' after made Mypaint crash

Aha! I know what this is :)
I'll fix it locally and give you a patch.

So just to be clear: You are expecting a series like:

20101209-001_a.ora
20101209-001_b.ora
20101209-001_c.ora
20101209-002_a.ora
20101209-002_b.ora
20101210-001_a.ora
20101210-001_b.ora
20101210-001_c.ora

? (ie numbering resets for each new day?)

Or just continuing the numbering series across days, like

20101209-001_a.ora
20101209-001_b.ora
20101209-001_c.ora
20101209-002_a.ora
20101209-002_b.ora
20101210-003_a.ora
20101210-003_b.ora
20101210-003_c.ora

?

_______________________________________________
Mypaint-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-discuss

Reply via email to