[opencms-dev] manifest.xml & delete

Ruben Malchow ruben at khm.de
Wed Aug 9 12:30:17 CEST 2006


hi christian,

thanks for your reply. here are some things i have looked into. the 
manifest doesn't include files that are marked as deleted. and even if 
it would, on the import side the resources are created like this:

  CmsResource resource = new CmsResource(
	[...]
	CmsResource.STATE_NEW,
	[...]
);

... with a hardcoded state.

my ftp module is functional, but if you upload a new xml file and a new 
schema, and you happen to upload the xml file first, it will try to set 
the type and fail, because when you set it to the right type, it will 
try to resolve the schema, which isn't uploaded yet. of course you can 
just upload it again, and it will work in the second go (because then, 
the schema will be present).

the import/export stuff on the other hand has all the meta information 
in one file, it first creates all the files, and then it sets the 
metadata. which is way more reliable when you're really working with the 
system and not just modifying content.

and last but not least: the sync tool is not really an option, because 
it requires a user interaction with the workplace, but i will look into 
that and see how it's done, maybe it will give me an idea.

pling

.rm


Christian Steinert schrieb:
> Ruben Malchow schrieb:
>> hello list,
>>
>> is the manifest file format good for _deleting_ files? more precisely,
>> if i want to synchronize a local working copy with a vfs on the server,
>> and there are some files that have been added or changed, i can just
>> write an export zip file and shove it into the server. but what if i
>> have deleted files? can i include that in the manifest in some way? or
>> would i have to do that seperately?
>>
>> .rm
>>
> 
> The only thing that comes to my mind is the synchronization feature (you
> can activate it in the admin view under "workplace tools".
> 
> This feature will sync down all files and upon import it will remove all
> files that have been exported but are not there anymore on import time.
> 
> I don't know how this works, though. Maybe you can derive something
> helpful from that, maybe not.
> 
> You couldlso try to delete a file but not publish it and then do an
> export of that part of the folder tree. Maybe the manifest file is able
> to express the deletion-information. Like that it should be easy to find
> out.
> 
> These are the only things that come to my mind.
> 
> christian
> 
> 
> ------------------------------------------------------------------------
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list