Resetting metadata after new from template ?

Jaroslaw Staniek staniek at kde.org
Tue Feb 2 13:08:53 GMT 2016


On 1 February 2016 at 23:20, Pierre <pinaraf at pinaraf.info> wrote:

> Hi
>
> Right now, when we create a new empty document (at least for words), like
> any
> other office suite, it is created from a template. But we currently lack
> the
> reset of some metadata from our templates, leading to funny situations… For
> instance, any document created by calligra using the A4 template is more
> than
> 7 years old :)
>
> We have several possible fix :
> - strip metadata from templates : we would still copy the metadata for user
> templates, including creation date, bad imho
> - strip all metadata when creating a file from template : bad too, users
> could
> have specific metadata they don't want to lose
> - override specific metadata like the creation date with sane values
>
> Each one is very simple to implement, I just don't know which one is the
> best.
> I would go for the third option, but I don't have a list of metadata to
> erase.
> (we already override the generator BTW, but elsewhere in the saving code)
>
> Any thoughts on this ?
>

​Very interesting finding​
​, Pierre.​
If you ask me, the 3rd option looks best. Documenting the new behaviour,
whatever it is, in the API docs, would be useful.


> Thanks
>
>  Pierre
> _______________________________________________
> calligra-devel mailing list
> calligra-devel at kde.org
> https://mail.kde.org/mailman/listinfo/calligra-devel
>
>


-- 
regards, Jaroslaw Staniek

KDE:
: A world-wide network of software engineers, artists, writers, translators
: and facilitators committed to Free Software development - http://kde.org
Calligra Suite:
: A graphic art and office suite - http://calligra.org
Kexi:
: A visual database apps builder - http://calligra.org/kexi
Qt Certified Specialist:
: http://www.linkedin.com/in/jstaniek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20160202/a94c9c4c/attachment.htm>


More information about the calligra-devel mailing list