Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

Error in python method...

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


jthomas at cap

Jan 13, 2009, 8:36 AM

Post #1 of 8 (1654 views)
Permalink
Error in python method...

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:




Time

2009/01/13 09:57:11.072 US/Central

User Name (User Id)

admin (admin)

Request URL

http://localhost:8080/interest/interestRateDisplay

Exception Type

AttributeError

Exception Value

calculateCompoundingInterest

Traceback (innermost last):

* Module ZPublisher.Publish, line 119, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 42, in call_object
* Module Shared.DC.Scripts.Bindings, line 313, in __call__
* Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
* Module Products.PageTemplates.ZopePageTemplate, line 330, in
_exec
* Module Products.PageTemplates.ZopePageTemplate, line 427, in
pt_render
* Module Products.PageTemplates.PageTemplate, line 89, in
pt_render
* Module zope.pagetemplate.pagetemplate, line 117, in pt_render
* Module zope.tal.talinterpreter, line 271, in __call__
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 623, in do_insertText_tal
* Module Products.PageTemplates.Expressions, line 228, in
evaluateText
* Module zope.tales.tales, line 696, in evaluate
URL: /interest/interestRateDisplay
Line 10, Column 4
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


form

interest_rate

12.0

years

12

periods

4

principal

20000.0








Does this indicate an error with my python script?









Joseph Thomas

College of American Pathologists

http://www.cap.org <http://www.cap.org/>





Consider our environment; please print this e-mail only if truly
necessary. Thank you!


tseaver at palladion

Jan 13, 2009, 8:52 AM

Post #2 of 8 (1537 views)
Permalink
Re: Error in python method... [In reply to]

-----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 tseaver [at] palladion
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 [at] zope
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 )


lists at zopyx

Jan 13, 2009, 8:53 AM

Post #3 of 8 (1545 views)
Permalink
Re: Error in python method... [In reply to]

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

If you are new to Zope and/or interested in Zope, you are possibly more
interested in using GROK (grok.zope.org) for getting started with Zope
instead of using the "old" Zope 2 system.

- -aj

On 13.01.2009 17:36 Uhr, 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:*
>
>
> * *
>
> *Time*
>
>
>
> 2009/01/13 09:57:11.072 US/Central
>
> *User Name (User Id)*
>
>
>
> admin (admin)
>
> *Request URL*
>
>
>
> http://localhost:8080/interest/interestRateDisplay
>
> *Exception Type*
>
>
>
> AttributeError
>
> *Exception Value*
>
>
>
> calculateCompoundingInterest
>
> Traceback (innermost last):
>
> * Module ZPublisher.Publish, line 119, in publish
> * Module ZPublisher.mapply, line 88, in mapply
> * Module ZPublisher.Publish, line 42, in call_object
> * Module Shared.DC.Scripts.Bindings, line 313, in __call__
> * Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
> * Module Products.PageTemplates.ZopePageTemplate, line 330, in _exec
> * Module Products.PageTemplates.ZopePageTemplate, line 427, in pt_render
> * Module Products.PageTemplates.PageTemplate, line 89, in pt_render
> * Module zope.pagetemplate.pagetemplate, line 117, in pt_render
> * Module zope.tal.talinterpreter, line 271, in __call__
> * Module zope.tal.talinterpreter, line 346, in interpret
> * Module zope.tal.talinterpreter, line 623, in do_insertText_tal
> * Module Products.PageTemplates.Expressions, line 228, in evaluateText
> * Module zope.tales.tales, line 696, in evaluate
> *URL: /interest/interestRateDisplay*
> *Line 10, Column 4*
> *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
>
>
> *form*
>
> *interest_rate*
>
>
>
> 12.0
>
> *years*
>
>
>
> 12
>
> *periods*
>
>
>
> 4
>
> *principal*
>
>
>
> 20000.0
>
>
> * *
>
>
> * *
>
>
> *Does this indicate an error with my python script?*
>
>
> * *
>
>
>
>
>
> Joseph Thomas
>
> College of American Pathologists
>
> http://www.cap.org <http://www.cap.org/>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Zope maillist - Zope [at] zope
> 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 )


- --
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: info [at] zopyx - Phone +49 - 7071 - 793376
Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535
Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK
- ------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAklsxwsACgkQCJIWIbr9KYxYaACdE4S11TgoLtNIxOeQsF55XqT4
0a0AoL8piU+WpYP9XOo0auqpILUVUOoi
=rbJC
-----END PGP SIGNATURE-----
Attachments: lists.vcf (0.32 KB)


jeff.peterson at crary

Jan 13, 2009, 11:36 AM

Post #4 of 8 (1554 views)
Permalink
Re: Error in python method... [In reply to]

Agreed, if you are going through the learning curve anyway, may as well be the new way. Grok, in fact, may take less time to get into for basic apps.

--
Jeffrey D Peterson
Webmaster
Crary Industries, Inc.


-----Original Message-----
From: zope-bounces [at] zope [mailto:zope-bounces [at] zope] On Behalf Of Andreas Jung
Sent: Tuesday, January 13, 2009 10:54 AM
To: Joseph Thomas (s)
Cc: zope [at] zope
Subject: Re: [Zope] Error in python method...

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

If you are new to Zope and/or interested in Zope, you are possibly more interested in using GROK (grok.zope.org) for getting started with Zope instead of using the "old" Zope 2 system.

- -aj

On 13.01.2009 17:36 Uhr, 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/BasicObje
> ct.stx*
>
>
> *I’ll attach the error log:*
>
>
> * *
>
> *Time*
>
>
>
> 2009/01/13 09:57:11.072 US/Central
>
> *User Name (User Id)*
>
>
>
> admin (admin)
>
> *Request URL*
>
>
>
> http://localhost:8080/interest/interestRateDisplay
>
> *Exception Type*
>
>
>
> AttributeError
>
> *Exception Value*
>
>
>
> calculateCompoundingInterest
>
> Traceback (innermost last):
>
> * Module ZPublisher.Publish, line 119, in publish
> * Module ZPublisher.mapply, line 88, in mapply
> * Module ZPublisher.Publish, line 42, in call_object
> * Module Shared.DC.Scripts.Bindings, line 313, in __call__
> * Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
> * Module Products.PageTemplates.ZopePageTemplate, line 330, in _exec
> * Module Products.PageTemplates.ZopePageTemplate, line 427, in pt_render
> * Module Products.PageTemplates.PageTemplate, line 89, in pt_render
> * Module zope.pagetemplate.pagetemplate, line 117, in pt_render
> * Module zope.tal.talinterpreter, line 271, in __call__
> * Module zope.tal.talinterpreter, line 346, in interpret
> * Module zope.tal.talinterpreter, line 623, in do_insertText_tal
> * Module Products.PageTemplates.Expressions, line 228, in evaluateText
> * Module zope.tales.tales, line 696, in evaluate
> *URL: /interest/interestRateDisplay*
> *Line 10, Column 4*
> *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
>
>
> *form*
>
> *interest_rate*
>
>
>
> 12.0
>
> *years*
>
>
>
> 12
>
> *periods*
>
>
>
> 4
>
> *principal*
>
>
>
> 20000.0
>
>
> * *
>
>
> * *
>
>
> *Does this indicate an error with my python script?*
>
>
> * *
>
>
>
>
>
> Joseph Thomas
>
> College of American Pathologists
>
> http://www.cap.org <http://www.cap.org/>
>
>
>
>
> ----------------------------------------------------------------------
> --
>
> _______________________________________________
> Zope maillist - Zope [at] zope
> 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 )


- --
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: info [at] zopyx - Phone +49 - 7071 - 793376
Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535
Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK
- ------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAklsxwsACgkQCJIWIbr9KYxYaACdE4S11TgoLtNIxOeQsF55XqT4
0a0AoL8piU+WpYP9XOo0auqpILUVUOoi
=rbJC
-----END PGP SIGNATURE-----
_______________________________________________
Zope maillist - Zope [at] zope
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 )


jthomas at cap

Jan 13, 2009, 11:41 AM

Post #5 of 8 (1536 views)
Permalink
Re: Error in python method... [In reply to]

Its not zope perse, but Plone that we're customizing. I may be able to sell zope 3/Grok etc but it all hinges on plone support on the underlying app server or framework. Is plone ready to run on Grok?
-----Original Message-----
From: Jeff Peterson [mailto:jeff.peterson [at] crary]
Sent: Tuesday, January 13, 2009 1:36 PM
To: lists [at] zopyx; Joseph Thomas (s)
Cc: zope [at] zope
Subject: RE: [Zope] Error in python method...

Agreed, if you are going through the learning curve anyway, may as well be the new way. Grok, in fact, may take less time to get into for basic apps.

--
Jeffrey D Peterson
Webmaster
Crary Industries, Inc.


-----Original Message-----
From: zope-bounces [at] zope [mailto:zope-bounces [at] zope] On Behalf Of Andreas Jung
Sent: Tuesday, January 13, 2009 10:54 AM
To: Joseph Thomas (s)
Cc: zope [at] zope
Subject: Re: [Zope] Error in python method...

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

If you are new to Zope and/or interested in Zope, you are possibly more interested in using GROK (grok.zope.org) for getting started with Zope instead of using the "old" Zope 2 system.

- -aj

On 13.01.2009 17:36 Uhr, 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/BasicObje
> ct.stx*
>
>
> *I'll attach the error log:*
>
>
> * *
>
> *Time*
>
>
>
> 2009/01/13 09:57:11.072 US/Central
>
> *User Name (User Id)*
>
>
>
> admin (admin)
>
> *Request URL*
>
>
>
> http://localhost:8080/interest/interestRateDisplay
>
> *Exception Type*
>
>
>
> AttributeError
>
> *Exception Value*
>
>
>
> calculateCompoundingInterest
>
> Traceback (innermost last):
>
> * Module ZPublisher.Publish, line 119, in publish
> * Module ZPublisher.mapply, line 88, in mapply
> * Module ZPublisher.Publish, line 42, in call_object
> * Module Shared.DC.Scripts.Bindings, line 313, in __call__
> * Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
> * Module Products.PageTemplates.ZopePageTemplate, line 330, in _exec
> * Module Products.PageTemplates.ZopePageTemplate, line 427, in pt_render
> * Module Products.PageTemplates.PageTemplate, line 89, in pt_render
> * Module zope.pagetemplate.pagetemplate, line 117, in pt_render
> * Module zope.tal.talinterpreter, line 271, in __call__
> * Module zope.tal.talinterpreter, line 346, in interpret
> * Module zope.tal.talinterpreter, line 623, in do_insertText_tal
> * Module Products.PageTemplates.Expressions, line 228, in evaluateText
> * Module zope.tales.tales, line 696, in evaluate
> *URL: /interest/interestRateDisplay*
> *Line 10, Column 4*
> *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
>
>
> *form*
>
> *interest_rate*
>
>
>
> 12.0
>
> *years*
>
>
>
> 12
>
> *periods*
>
>
>
> 4
>
> *principal*
>
>
>
> 20000.0
>
>
> * *
>
>
> * *
>
>
> *Does this indicate an error with my python script?*
>
>
> * *
>
>
>
>
>
> Joseph Thomas
>
> College of American Pathologists
>
> http://www.cap.org <http://www.cap.org/>
>
>
>
>
> ----------------------------------------------------------------------
> --
>
> _______________________________________________
> Zope maillist - Zope [at] zope
> 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 )


- --
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: info [at] zopyx - Phone +49 - 7071 - 793376
Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535
Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK
- ------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAklsxwsACgkQCJIWIbr9KYxYaACdE4S11TgoLtNIxOeQsF55XqT4
0a0AoL8piU+WpYP9XOo0auqpILUVUOoi
=rbJC
-----END PGP SIGNATURE-----


jeff.peterson at crary

Jan 13, 2009, 11:53 AM

Post #6 of 8 (1547 views)
Permalink
Re: Error in python method... [In reply to]

Don't quote me but I believe Plone 3 runs on the Zope 3 framework already. Anyone?

--
Jeffrey D Peterson
Webmaster
Crary Industries, Inc.

From: Joseph Thomas (s) [mailto:jthomas [at] cap]
Sent: Tuesday, January 13, 2009 1:41 PM
To: Jeff Peterson; lists [at] zopyx
Cc: zope [at] zope
Subject: RE: [Zope] Error in python method...


Its not zope perse, but Plone that we're customizing. I may be able to sell zope 3/Grok etc but it all hinges on plone support on the underlying app server or framework. Is plone ready to run on Grok?

-----Original Message-----
From: Jeff Peterson [mailto:jeff.peterson [at] crary]
Sent: Tuesday, January 13, 2009 1:36 PM
To: lists [at] zopyx; Joseph Thomas (s)
Cc: zope [at] zope
Subject: RE: [Zope] Error in python method...

Agreed, if you are going through the learning curve anyway, may as well be the new way. Grok, in fact, may take less time to get into for basic apps.

--

Jeffrey D Peterson

Webmaster

Crary Industries, Inc.


-----Original Message-----

From: zope-bounces [at] zope [mailto:zope-bounces [at] zope] On Behalf Of Andreas Jung

Sent: Tuesday, January 13, 2009 10:54 AM

To: Joseph Thomas (s)

Cc: zope [at] zope

Subject: Re: [Zope] Error in python method...

-----BEGIN PGP SIGNED MESSAGE-----

Hash: SHA1

If you are new to Zope and/or interested in Zope, you are possibly more interested in using GROK (grok.zope.org) for getting started with Zope instead of using the "old" Zope 2 system.

- -aj

On 13.01.2009 17:36 Uhr, 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/BasicObje

> ct.stx*

>

>

> *I'll attach the error log:*

>

>

> * *

>

> *Time*

>

>

>

> 2009/01/13 09:57:11.072 US/Central

>

> *User Name (User Id)*

>

>

>

> admin (admin)

>

> *Request URL*

>

>

>

> http://localhost:8080/interest/interestRateDisplay

>

> *Exception Type*

>

>

>

> AttributeError

>

> *Exception Value*

>

>

>

> calculateCompoundingInterest

>

> Traceback (innermost last):

>

> * Module ZPublisher.Publish, line 119, in publish

> * Module ZPublisher.mapply, line 88, in mapply

> * Module ZPublisher.Publish, line 42, in call_object

> * Module Shared.DC.Scripts.Bindings, line 313, in __call__

> * Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec

> * Module Products.PageTemplates.ZopePageTemplate, line 330, in _exec

> * Module Products.PageTemplates.ZopePageTemplate, line 427, in pt_render

> * Module Products.PageTemplates.PageTemplate, line 89, in pt_render

> * Module zope.pagetemplate.pagetemplate, line 117, in pt_render

> * Module zope.tal.talinterpreter, line 271, in __call__

> * Module zope.tal.talinterpreter, line 346, in interpret

> * Module zope.tal.talinterpreter, line 623, in do_insertText_tal

> * Module Products.PageTemplates.Expressions, line 228, in evaluateText

> * Module zope.tales.tales, line 696, in evaluate

> *URL: /interest/interestRateDisplay*

> *Line 10, Column 4*

> *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

>

>

> *form*

>

> *interest_rate*

>

>

>

> 12.0

>

> *years*

>

>

>

> 12

>

> *periods*

>

>

>

> 4

>

> *principal*

>

>

>

> 20000.0

>

>

> * *

>

>

> * *

>

>

> *Does this indicate an error with my python script?*

>

>

> * *

>

>

>

>

>

> Joseph Thomas

>

> College of American Pathologists

>

> http://www.cap.org <http://www.cap.org/>

>

>

>

>

> ----------------------------------------------------------------------

> --

>

> _______________________________________________

> Zope maillist - Zope [at] zope

> 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 )


- --

ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany

Web: www.zopyx.com - Email: info [at] zopyx - Phone +49 - 7071 - 793376

Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535

Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK

- ------------------------------------------------------------------------

E-Publishing, Python, Zope & Plone development, Consulting

-----BEGIN PGP SIGNATURE-----

Version: GnuPG v1.4.9 (Darwin)

Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAklsxwsACgkQCJIWIbr9KYxYaACdE4S11TgoLtNIxOeQsF55XqT4

0a0AoL8piU+WpYP9XOo0auqpILUVUOoi

=rbJC

-----END PGP SIGNATURE-----
[cid:~WRD000.jpg]
Attachments: ~WRD000.jpg (0.80 KB)


jens at dataflake

Jan 13, 2009, 12:33 PM

Post #7 of 8 (1553 views)
Permalink
Re: Error in python method... [In reply to]

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


On Jan 13, 2009, at 20:53 , Jeff Peterson wrote:

> Don$B!G(Bt quote me but I believe Plone 3 runs on the Zope 3 framework
> already. Anyone?

No.

jens



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkls+n4ACgkQRAx5nvEhZLLeUQCfa6+d2/zHAfyeKrUNB7+9XPaR
56wAn3SCd4QxQPYssTJewH1Y/aIOA3nL
=Qh+b
-----END PGP SIGNATURE-----


lists at zopyx

Jan 13, 2009, 9:54 PM

Post #8 of 8 (1531 views)
Permalink
Re: Error in python method... [In reply to]

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

On 13.01.2009 20:53 Uhr, Jeff Peterson wrote:
> Don’t quote me but I believe Plone 3 runs on the Zope 3 framework
> already. Anyone?
>
>

No, it's running like many apps nowadays on top of Z2 + using a lot of
Z3 components internally.

- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkltfgwACgkQCJIWIbr9KYzexgCdEu4/JyRRm38pcTQSW8Ha5ZqA
VvAAniqa37c/wrVVxQK0GF7AoTe165CA
=I3Xv
-----END PGP SIGNATURE-----
Attachments: lists.vcf (0.32 KB)

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.