-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joseph Thomas (s) wrote:
> I'm going thru the online zope book (2.6) and trying out the simple
> interest rate calculator web application under the section: 
> 
> 
> Creating a Basic Zope Application Using Page Templates and Scripts
> 
> 
> http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/BasicObject.
> stx
> 
> 
> I'll attach the error log:

<snip>

>       Expression: <PythonExpr
> here.calculateCompoundingInterest(principal, interest_rate, periods,
> years)>
>       Names:
> 
> *                {'container': <Folder at /interest>,
> *                 'context': <Folder at /interest>,
> *                 'default': <object object at 0x0071C528>,
> *                 'here': <Folder at /interest>,
> *                 'loop': {},
> *                 'nothing': None,
> *                 'options': {'args': ()},
> *                 'repeat':
> <Products.PageTemplates.Expressions.SafeMapping object at 0x06EB1A08>,
> *                 'request': <HTTPRequest,
> URL=http://localhost:8080/interest/interestRateDisplay>,
> *                 'root': <Application at >,
> *                 'template': <ZopePageTemplate at
> /interest/interestRateDisplay>,
> *                 'traverse_subpath': [],
>  'user': <PropertiedUser 'admin'>}
> 
> *     Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__
>       __traceback_info__: here.calculateCompoundingInterest(principal,
> interest_rate, periods, years)
> *     Module PythonExpr, line 1, in <expression>
> 
> AttributeError: calculateCompoundingInterest 
> Does this indicate an error with my python script?

Your template expects the script to be called
'calculateCompoundingInterest', but it isn't finding it under that name.
 Check the spelling of the script name.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tsea...@palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJbMaw+gerLs4ltQ4RAlK8AJ997uqXhPJQ2LSuNgaaVfF20Yr1QACgq8s0
chYj0mPO5Cenoi0PT3GBs68=
=j2hx
-----END PGP SIGNATURE-----

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to