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

Defining a post-import Block for imported objects #24

Open
JoachimTuchel opened this issue Apr 27, 2021 · 1 comment
Open

Defining a post-import Block for imported objects #24

JoachimTuchel opened this issue Apr 27, 2021 · 1 comment

Comments

@JoachimTuchel
Copy link

This may again be something that goes beyond the scope of a mere importer. But I'll describe my idea anyways...

Almost always when I import objects using NeoCSVReader, they are going to end up in a Collection of some object. And each of them will have to have a backpointer to the object they are attached to.

Like, say I import OrderItems. They'll all be added to the same order, and it would make sense for them to have the order in their #order variable. Or I'd like to user a method like MyOrder addItem: importedObject after reading them.

So something like a post-import-Block that gets evaluated with every imported object could come in very handy.

What do you guys think?

@svenvc
Copy link
Owner

svenvc commented May 13, 2021

There is now the following commit:

0acc227

which should address a couple of issues.

There subclass hooks for instanciating recordClass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants