Recursively comparing 2 folders' objects
Hi, I would like to know if anyone has some advice to give me on this. Inside one Zope instance, I have 2 folders, representing a live site and a development site. People copy objects from dev to live when they are ready. I would like to know if there are things to avoid (in order to speed up overall comparison time). I was thinking about a recursive function that would follow the development site folders structure, and on each folder, compare contents with live content, using comparison methods by meta type. Thanks a lot. Pascal ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com **********************************************************************
Pascal Peregrina wrote at 2005-1-24 21:21 +0100:
... Inside one Zope instance, I have 2 folders, representing a live site and a development site. ... I was thinking about a recursive function that would follow the development site folders structure, and on each folder, compare contents with live content, using comparison methods by meta type.
You can look at "bobobase_modification_time()" (time of the last write to the ZODB) to shortcut the comparison for atomic (!) objects. -- Dieter
participants (2)
-
Dieter Maurer -
Pascal Peregrina