Edit content of acp in python/java

Zdeněk Sklenář

I exported my documents from Alfresco 4.x and now i need to import them to Alfreco 5.1, however i had different content models. So only think i need is to rewrite types and base url, i have similar types in my new Alfresco, but not the same name and prefix, url. So my question is:

How to rewrite metadata which is stored in ACP file in python or maybe java?

I tried to use zipFile in python, but it gives me only errors and keep convincing me that i dont have zip file. I can't open it in notepad++ because it is not readable. I tried to just read content of file but python give blank line when i try to print it.

EDIT: Here is a link to my file that i need to open and edit. DELETED no need for this anymore.

Nick Nagels

If it is a single archive your best bet is to unpack the acp (just a normal zip file, so any zip tool will work) and manipulate the .XML file inside it, which contains all the metadata, types, associations... You could then use an XSLT to change the XML file and types and properties inside and rezip it with the rest of the content package.

Another approach can be to add the missing properties and aspects in a new 'legacy'-content model and add it to Alfresco 5.1. Once it is imported you can write a script to transfer the properties to the new model.

Once you are sure everything is copied you can remove the old model.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

UITableViewCell custom edit content

From Dev

Edit iframe dynamic content

From Dev

Summernote will not edit its content

From Dev

UITableViewCell custom edit content

From Dev

UITableViewCell edit cell content on click

From Dev

How to edit the file content in vi?

From Dev

UITableViewCell edit cell content on click

From Dev

jQuery edit content of li element

From Dev

Edit table programmatically to fit content

From Dev

How to replace and edit content of file?

From Dev

How to edit page content in Drupal

From Dev

Registering AE To CSE With ACP

From Dev

Edit an item and print the whole content with jq

From Dev

Only allow a user to edit their own content

From Dev

How to use regular expression edit the content?

From Dev

How to edit a function without rewrite its content?

From Dev

How can I edit the content of a ini file?

From Dev

How to edit content in a about:blank iframe?

From Dev

Edit strings.xml file content in Android

From Dev

Edit table in PyQt QAbstractTableModel without deletion of content

From Dev

Create RecyclerView List From Edit Text Content

From Dev

Swipe to edit sqlite database content in swift

From Dev

Edit email content with a plugin on a quick campaign

From Dev

How to use regular expression edit the content?

From Dev

JSF Datatable "elegant" way to edit the content of a row

From Dev

How edit this code to display content of category? (Wordpress)

From Dev

How can I edit the content of .properties file?

From Dev

Let some types of users to edit content

From Dev

UITableViewCell not scrolling content when entering Edit Mode