[ZPatterns] Fwd: Attribute Error: Address
Eckhard Jost
[email protected]
Mon, 15 Sep 2003 22:40:50 +0200
--Boundary-00=_SPiZ/kzIwX6qDdc
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--Boundary-00=_SPiZ/kzIwX6qDdc
Content-Type: message/rfc822;
name="forwarded message"
Content-Transfer-Encoding: 8bit
Content-Description: Eckhard Jost <[email protected]>: Attribute Error: Address
From: Eckhard Jost <[email protected]>
Reply-To: [email protected]
Organization: Software Consultant
To: [email protected]
Subject: Attribute Error: Address
Date: Mon, 15 Sep 2003 22:38:17 +0200
User-Agent: KMail/1.5.1
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <[email protected]>
Status: RO
X-Status: S
X-KMail-EncryptionState:
X-KMail-SignatureState:
Hello,
thank you for your ZPattern-HowTo!=20
I am using Python2.3, Zope-2.7.0-b2, SuSE8.2.
I am trying to work thru your HowTo, but I have a Problem, when I do the fi=
rst=20
Test to add an Organisation:
=2D------------------
Traceback (innermost last):
Module ZPublisher.Publish, line 98, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module Shared.DC.Scripts.Bindings, line 252, in __call__
Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec
Module Products.PythonScripts.PythonScript, line 320, in _exec
Module Script (Python), line 31, in addInstance
- <PythonScript at /ContactDirectory/Organisations/addInstance>
- Line 31
Module Shared.DC.Scripts.Bindings, line 252, in __call__
Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec
Module Products.PageTemplates.ZopePageTemplate, line 220, in _exec
Module Products.PageTemplates.PageTemplate, line 95, in pt_render
- <ZopePageTemplate at /ContactDirectory/Organisations/index_html>
Module TAL.TALInterpreter, line 189, in __call__
Module TAL.TALInterpreter, line 233, in interpret
Module TAL.TALInterpreter, line 623, in do_condition
Module TAL.TALInterpreter, line 233, in interpret
Module TAL.TALInterpreter, line 599, in do_loop_tal
Module TAL.TALInterpreter, line 233, in interpret
Module TAL.TALInterpreter, line 477, in do_insertText_tal
Module Products.PageTemplates.TALES, line 226, in evaluateText
Module Products.PageTemplates.TALES, line 220, in evaluate
- URL: /ContactDirectory/Organisations/index_html
- Line 22, Column 12
- Expression: standard:'organisation/Address/Country'
- Names:
{'container': <Specialist instance at 416bd050>,
'default': <Products.PageTemplates.TALES.Default instance at=20
0x40d2cb0c>,
'here': <Specialist instance at 416bd050>,
'loop': <SafeMapping instance at 416cb7a0>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporte=
r=20
instance at 0x40d24f8c>,
'nothing': None,
'options': {'args': ()},
'repeat': <SafeMapping instance at 416cb7a0>,
'request': <HTTPRequest,=20
URL=3Dhttp://localhost:8080/ContactDirectory/Organisations/addInstance>,
'root': <Application instance at 41412290>,
'template': <ZopePageTemplate at=20
/ContactDirectory/Organisations/index_html>,
'traverse_subpath': [],
'user': ecki}
Module Products.PageTemplates.Expressions, line 206, in __call__
Module Products.PageTemplates.Expressions, line 194, in _eval
Module Products.PageTemplates.Expressions, line 150, in _eval
- __traceback_info__: organisation
Module Products.PageTemplates.Expressions, line 359, in restrictedTraverse
- __traceback_info__: {'path': ['Address', 'Country'],=20
'TraversalRequestNameStack': ['Country']}
AttributeError: Address
=2D------------------------------------
Do you have any Idea? Do I have to compile DynPersist.c again?=20
Thanks a lot,
Eckhard
=2D-=20
=2D---------------------------------
Dipl.-Kfm. / M.R.F.
Eckhard Jost
Software Consultant
Hans-B=F6ckler-Str. 37
55128 Mainz
Tel.: +49 6131 7206299
=46ax.: +49 6131 7206446
Mobil: +49 151 11672965
Email: [email protected]
http://www.eckhardjost.de
=2D---------------------------------
--Boundary-00=_SPiZ/kzIwX6qDdc--