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

Transmogrifier class implements no interfaces #4

Open
domenkozar opened this issue Oct 28, 2011 · 4 comments
Open

Transmogrifier class implements no interfaces #4

domenkozar opened this issue Oct 28, 2011 · 4 comments

Comments

@domenkozar
Copy link
Member

ielectric@kaki:~/code/kiberpipa-old-migration$ $ bin/mr.migrator --zcml=collective.transmogrifier,transmogrify.sqlalchemy
Traceback (most recent call last):
File "bin/mr.migrator", line 111, in
mr.migrator.runner.runner({},"pipeline.cfg")
File "/home/ielectric/code/kiberpipa-old-migration/src/mr.migrator/mr/migrator/runner/init.py", line 162, in runner
transmogrifier(pipelineid, **overrides)
File "/home/ielectric/.buildout/eggs/collective.transmogrifier-1.3-py2.7.egg/collective/transmogrifier/transmogrifier.py", line 59, in call
pipeline = constructPipeline(self, sections)
File "/home/ielectric/.buildout/eggs/collective.transmogrifier-1.3-py2.7.egg/collective/transmogrifier/utils.py", line 52, in constructPipeline
pipeline)
File "/home/ielectric/code/kiberpipa-old-migration/src/transmogrify.sqlalchemy/transmogrify/sqlalchemy/init.py", line 25, in init
conns = IAnnotations(transmogrifier).setdefault(SQLSOURCE_KEY, {})
TypeError: ('Could not adapt', {'print': {'blueprint': 'transmogrify.print'}, 'sqlite': {'blueprint': 'transmogrify.sqlalchemy', 'dsn': 'postgres://webpage:YmFiZTAw@localhost/webpage', 'query1': 'SELECT * FROM nuke_postcalendar_events'}, 'discard_old': {'blueprint': 'collective.transmogrifier.sections.condition', 'condition': 'python:'}, 'transmogrifier': {'pipeline': '\nsqlite\nprint'}}, )

@domenkozar
Copy link
Member Author

(Never mind the password, it's temporary)

@djay
Copy link
Member

djay commented Oct 28, 2011

Its a problem with transmogrify.sqlalchemy. It's making the assumption that the context is a plone folder so can support annotations. I'd fill a bug against transmogrify.sqlalchemy.

@domenkozar
Copy link
Member Author

@djay
Copy link
Member

djay commented Oct 28, 2011

Thats pretty crappy :( a dictionary would have done.
Feel free to implement Annotation support in mr.migrator. Shouldn't be hard.

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