This project is read-only.


Automated data export


As I proposed on the forum ( I'd like to get automated data export working via http. My module is depending on the Import/Export module, and it needs some changes to get this to work.
Closed Mar 19, 2013 at 9:36 PM by sebastienros
This should be done as a module on the gallery. There is no need for it as a core feature right now.


Lukasvan3L wrote Feb 11, 2013 at 9:19 AM

I created a pull request:

Please let me know if I did anything wrong, it's my f1rst contribution...

BertrandLeRoy wrote Feb 11, 2013 at 5:25 PM

Congratulations on your first contribution!

Lukasvan3L wrote Mar 20, 2013 at 7:16 AM

Agree sebastien, the functionality should be a module. But it would be nice if the module could depend on the importexport module instead of having to copy 90% of the logic that's inside....
Please reconsider these minor changes!

sebastienros wrote Mar 20, 2013 at 5:53 PM

Can you exactly explain what needs to be changed in the module so you can reuse it ? What is blocking you right now ?

Lukasvan3L wrote Mar 21, 2013 at 10:08 AM

I propose two changes to the Import/Export module. First of all it would be nice to be able to retrieve the XmlDocument itself instead of writing it to file. The interface would look like this:

public interface IImportExportService : IDependency {
void Import(string recipeText);
string Export(IEnumerable<string> contentTypes, ExportOptions exportOptions);
XDocument ExportXml(IEnumerable<string> contentTypes, ExportOptions exportOptions);

Secondly there are hardcoded references to the currently logged in user. I don't need this, the url is publicly available. Could the references to a user be changed to:

_orchardServices.WorkContext.CurrentUser != null ? _orchardServices.WorkContext.CurrentUser.UserName : "Anonymous"