[ZPatterns] specialist with SQL only storage

Godefroid Chapelle gotcha@swing.be
Wed, 28 Aug 2002 18:29:40 +0200


Hi all,

When trying to access a specialist set up with SQL storage only I get the 
following :

Error Type: AttributeError
Error Value: _setId

Traceback (innermost last):
   File C:\PROGRA~1\Zope251\lib\python\ZPublisher\Publish.py, line 150, in 
publish_module
   File C:\PROGRA~1\Zope251\lib\python\ZPublisher\Publish.py, line 114, in 
publish
   File C:\PROGRA~1\Zope251\lib\python\Zope\__init__.py, line 159, in 
zpublisher_exception_hook
     (Object: spec)
   File C:\PROGRA~1\Zope251\lib\python\ZPublisher\Publish.py, line 89, in 
publish
   File C:\PROGRA~1\Zope251\lib\python\ZPublisher\BaseRequest.py, line 278, 
in traverse
   File C:\Program 
Files\Zope251\lib\python\Products\ZPatterns\Specialists.py, line 22, in 
__bobo_traverse__
     (Object: spec)
   File C:\Program 
Files\Zope251\lib\python\Products\ZPatterns\Specialists.py, line 34, in getItem
     (Object: spec)
   File C:\Program Files\Zope251\lib\python\Products\ZPatterns\Rack.py, 
line 59, in getItem
     (Object: defaultRack)
   File C:\Program Files\Zope251\lib\python\Products\ZPatterns\Rack.py, 
line 96, in retrieveItem
     (Object: defaultRack)
   File C:\Program Files\Zope251\lib\python\Products\ZPatterns\Rack.py, 
line 236, in _RawItem
     (Object: defaultRack)
AttributeError: (see above)


The settings are the following :

- A specialist with a default rack.

- The default rack contains a ZSQLMethod with a patient_id as argument.

- The rack has a skinscript plugin as follow :
WITH SQL_primaryKeySelect(ID_PATIENT=self.id) COMPUTE id=ID_PATIENT, name=NOM


- Storage :
Class for stored items: 'ZPatterns:DataSkin'
Objects are loaded by accessing attribute 'name'



I tried to read the ZPatterns code and have the feeling that the error has 
something to do with the class I use but could not get further.


Hope some of you can help me. Thanks.
--

Godefroid Chapelle

BubbleNet sprl
rue Victor Horta, 18 / 202
1348 Louvain-la-Neuve
Belgium

Tel + 32 (10) 459901
Mob + 32 (477) 363942

TVA 467 093 008
RC Niv 49849