Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve creation dates and creators through export/import? #5

Closed
ejucovy opened this issue Feb 12, 2012 · 3 comments
Closed

Preserve creation dates and creators through export/import? #5

ejucovy opened this issue Feb 12, 2012 · 3 comments

Comments

@ejucovy
Copy link
Member

ejucovy commented Feb 12, 2012

I don't know offhand if it's possible to preserve original creation dates and creators when reimporting content from an export. If we can't, it's not a blocker, but it would be a shame to lose that data, so it's worth investigating.

This pertains to all major content types -- members, projects, mailing lists, wiki pages -- I assume the answer (and technique, if there is one) will be the same for all content types.

@ejucovy
Copy link
Member Author

ejucovy commented Feb 14, 2012

Looks like it might be possible to set creation date like so:

from DateTime import DateTime
creation_date = DateTime(some_datetime_string)
obj.getField("creation_date").set(obj, creation_date)

...and then I suppose performing some catalog reindexing?

@ejucovy
Copy link
Member Author

ejucovy commented Feb 14, 2012

Looks like Creator can be set like so:

obj.Schema()['creators'].set(obj, ('ejucovy',))

@ejucovy
Copy link
Member Author

ejucovy commented Oct 20, 2013

Will file specific tickets when issues are found.

@ejucovy ejucovy closed this as completed Oct 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant