Monday 22 November 2010 3:35:04 pm
Hi. It seems to be working as expected for creating new attributes and new contentclasses.
It does not work i believe if i remove an existing attribute in the spec and want to have this reflected in ezpublish.
Also, if i deside to change my identifier the import procedure does not work as expected.
Have you tried this with removing attributes as well, or is this just currently not supported.
Monday 22 November 2010 9:05:03 pm
Hi Lars Eirik,
Thanks for trying out ezclasspec/nmcontentclass, and for your feedback.
Issue no. 1: I have not experienced this issue, but suspect it is related to the version number on the attribute not matching up with the ones of the objects you are editing. Could you take a look at the database and see if there are any differences in versions of the attributes in the content objects that display the additional attributes, and those that don't?
Issue no. 2: As stated in the docs for eZ Class Spec:
"[...] the specification only needs to include the changes you would like to
make to the classes, and not the entire class structure. For instance, if you want to
make changes to, or a new attribute to an existing class, the class specification only
needs to include that specific attribute, and its current data."
This means that if a class spec is missing an attribute, it's assumed to have been added manually through the admin interface, and hence does not tamper with it. This behaviour could of course be modified, either to support a flag which would consider the class spec to be complete, or to keep a backlog of deleted attributes, but that's not very high on our list of priorities. However, I'd be happy to give you member privelieges to the project if you would like to contribute. It should be a fairly easy fix.
Tuesday 23 November 2010 9:35:04 am
Thanks for getting back to me.
issue 1: Does this mean you have not tried the same scenario as i have mentioned, or have you verified that the before mentioned scenario actually works on your installation?
Before i spend time looking into the database mapping and tables , i would like to know if there is any point in doing so. Also would you be able to provide me with a brief hint on which tables to check?
Tuesday 23 November 2010 12:05:03 pm
Hi Lars Eirik,
> issue 1: Does this mean you have not tried the same scenario as i have mentioned,
> or have you verified that the before mentioned scenario actually works on your installation?
I have not tried it.
> Before i spend time looking into the database mapping and tables , i would like to know
> if there is any point in doing so. Also would you be able to provide me with a brief hint
> on which tables to check?
You mean you want me to troubleshoot your problem for you in addition to writing and sharing the application?