ez projects / nmcontentclass / forum / general / great utility / re: great utility
You need to be logged in to post messages in the forums. New users may register here.
Member since: Posts: 35 |
Monday 22 November 2010 3:31:27 pm Hi. It seems to be working as expected for creating new attributes and new contentclasses if starting on a new project.
I have tested this a bit now and i experience some issues which you hopefully will fix. I created a spec file using your other utility and imported this into ezpublish with nmcontentclass module. The new attributes are added to a new class and when i create an object this works fine. If i do modifications to this spec , that is add a new attribute or alter the name of the attribute this is reflected in the existing class 1:The major drawback to me is that whenever i edit an existing object the recent modifications to the class are not taken into consideration. In my case my object only give me the option of adding/editing the content of the two inital attributes. Looking at the class however i can clearly see that there should be more attributes available. Have you experienced this as well? , is this perhaps not just fully implemented (i know its a beta release). Because at present time, this tool cannot be used on an existing installation where you have existing attributes. Please correct me if there is something with my installation here.. 2: The class it self is not updated if i decide to remove an existing attribute and reimport the spec file. It says "Not action needs to be taken" Update1: New objects do get the expected attributes as found in the content class overview, but as mentioned earlier the older objects do not. Any thoughts or response to this is greatly appreciated as the combination of the spec and the import module in ezpublish is something which should have been an integral part of the eZPublish content management system.. It is rather frustrating to have to use different non-stable solutions in order to not have to redo lots of work for you clients. Thanks for creating this great tool guys. Hope you have the time to work on this further down the line. Lars Eirik |
|
Member since: Posts: 40 |
Monday 22 November 2010 8:47:22 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. Sincerely, |
|
Member since: Posts: 35 |
Tuesday 23 November 2010 9:24:06 am Hi.
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? |
|
Member since: Posts: 40 |
Tuesday 23 November 2010 12:02: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? ;) Sincerely, |
|
Member since: Posts: 40 |
Tuesday 26 April 2011 4:32:00 pm Hi Lars Eirik,
This issue should now be fixed, see revision 2. Sincerely, |
You need to be logged in to post messages in the forums. New users may register here.