[ZPatterns] specialist with SQL only storage
Steve Spicklemire
[email protected]
Wed, 28 Aug 2002 13:34:41 -0500
I think you'll need to subclass DataSkin, either with a ZClass, or a
Python (filesystem based) class.
-steve
On Wednesday, August 28, 2002, at 11:29 AM, Godefroid Chapelle wrote:
> 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
>
> _______________________________________________
> ZPatterns mailing list
> [email protected]
> http://www.eby-sarna.com/mailman/listinfo/zpatterns