Hello, I wish to modify the class DiskFile de CPSSchema.  
To start, I copied the DiskFile.py file in my product, by modifying the line:  
- from TM import VTM which becomes:  from Products.CPSSchemas.TM import VTM.  
I modify the __ init__.py of my product:  import DiskFile.

So that my modifications are taken into account, I patch the CPSFileField 
classes and CPSDiskFileField of the file BasicFields.py of CPSSchema while 
replacing InitializeClass(CPSFileField) and InitializeClass(CPSDiskFileField) 
by:
Products.CPSSchemas.BasicFields.CPSFileField = CPSFileField and 
Products.CPSSchemas.BasicFields.CPSDiskFileField = CPSDiskFileField.
And in my file patch I make an importation of:
from Products.MonProduitCPS.DiskFile import DiskFile instead of from 
Products.CPSSchema.DiskFile import DiskFile.

I expect to have the same result as previously, no modification of the code of 
the functions not having been made, but the remote loading of doc file does not 
function any more:
I have the error:  len() of unsized object.  
Version:  Zope Version:  (Zope 2.7.3-0, python 2.3.4, linux2) 
Python Version:  2.3.4 (# 1, DEC 3 2004, 09:42:46) [ GCC 3.2.2 20030222 (Red 
Hat Linux 3.2.2-5) ] 
CPSSchemas (from CVS, tag:  Did Cps-3_2_4)
Somebody already encounter this problem?
And especially how to solve it?

Thank you in advance for your answers.

------------------------------------------------- 
Jérôme TEXIER
CRIL TECHNOLOGY 
Espace Nobel - Rue Antoine Becquerel - CS 80804 
35708 RENNES cedex 7 
Tél : 02.23.21.11.46 - Fax : 02.23.21.11.00 
www.criltechnology.com


_______________________________________________
cps-users mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/cps-users

Reply via email to