[Product-Developers] collective.transmogrifier csvsource improvement

toutpt toutpt at gmail.com
Tue Feb 16 15:49:18 UTC 2010


I would like to use csvsource section from collective.transmogrifier but I
can't. My use case is simple, I want to initialize my folder site structure
using transmogrifier + a csvfile in a profile like I was doing with
csvreplicata in the past.

So I had my policy with a default profile that embed the csv, but I can't
make a reference to it in my transmogrifier configuration file because it's
waiting for an absolute path. Yes this section use a simple "file_ =
open(options['filename'], 'r')". For sure I have already try with a related
path but the context is not the current configuration file.

transmogrifier has a utils.resolvePackageReference which support a
my.package:path/to/file syntax to make reference to a file embed in a python
package. I would like to use this in csvsource section filename option, but
it will brake already existing configuration.

So, how do you use this section at the moment ?

Do you think this modification has a sens in your cases ?

Any objection to make this change ?

I don't see how it can be used in the current existing code. absolute path
is not reusable.

JeanMichel FRANCOIS aka toutpt
Makina Corpus
View this message in context: http://n2.nabble.com/collective-transmogrifier-csvsource-improvement-tp4580909p4580909.html
Sent from the Product Developers mailing list archive at Nabble.com.

More information about the Product-Developers mailing list