pb upgrading Zope 2.5.0 -> 2.6.1
hello all, question 1 : here is my situation : I have developped a website under zope 2.5.0, mostly w/ dtml a python scripts. It is based on zclass defined in products (not external products) 3 of them were imported without pbs under Zope 2.6.1, but one of them (that has nothing special), when I import it raises : Error Type: ImportError Error Value: No module named iclass but I didn't define any iclass, it must be internal to Zope. How can I handle this ? If i rewrite the product under Zope 2.6.1, what should I do fot it to be able to handle mt ols instances ? reuse the same class id ? any pointer appreciated. question 2: when i import folders, the bobobase_modification_time of all the objects is reset to the date of importation. how can I keep this date unchanged when importing ? thank you for your answers zopers.
Nicolas LAURANCE wrote at 2003-3-30 12:06 +0200:
... I have developped a website under zope 2.5.0, mostly w/ dtml a python scripts. It is based on zclass defined in products (not external products) 3 of them were imported without pbs under Zope 2.6.1, but one of them (that has nothing special), when I import it raises :
Error Type: ImportError Error Value: No module named iclass
A well known problem with a known solution. Please search the mailing list archives to find it.
.... question 2: when i import folders, the bobobase_modification_time of all the objects is reset to the date of importation. how can I keep this date unchanged when importing ?
You cannot. Use your own attribute for modification time in the future. Forget about "bobobase_modification_time". However, it is not necessary to export your data from Zope 2.5 and import it into Zope 2.6.1. You can directly use your "Data.fs" in Zope 2.6.1 (provided you have all necessary external products installed in the new installation). Dieter
... I have developped a website under zope 2.5.0, mostly w/ dtml a python scripts. It is based on zclass defined in products (not external products) 3 of them were imported without pbs under Zope 2.6.1, but one of them (that has nothing special), when I import it raises :
Error Type: ImportError Error Value: No module named iclass
A well known problem with a known solution. Please search the mailing list archives to find it.
Yup. This was discussed about a week ago. Search the mailing list archives; but as I remember, only the ZClasses descended from ObjectManager have the problem, and then only if there is a non-empty list on the SubObjects tab. To export from 2.5.x, remove all from that list; then it will import fine into 2.6. Then, I presume that you can recreate the list of allowed subobjects, though I have not tried this.
-- Jim Washington
Worked for me !!
participants (2)
-
Dieter Maurer -
Nicolas LAURANCE