[Zope] Float object not callable (newbie question)

2005-05-13 Thread Paul Hendrick
hi all, I'm trying to write a simple app which takes a name, bank balance, interest rate and returns the balance once 1 years interest has been added. I'm getting the error that float object is not callable. i can't figure out where i'm going wrong :S my code is below(getDetails, showDetails,doSt

[Zope] Adding a zope product

2005-09-02 Thread Paul Hendrick
Hi all, i've just started with zope, and i'm trying to write a filesystem product, so i can have a project in svn and work on it in the filesystem. I've followed the guide at zope.org for creating a minimal product, but can't get this to show up in the list of products. Can anyone see whats wrong?

[Zope] Sql statement in dtml code

2005-09-09 Thread paul . hendrick
Hi all, I'm trying to basically get the output of two SELECT statements into a dtml document, but cant get it working. I've searched, and tried a few examples for similar things, but had no luck. Can anyone recommend a way, please? Thanks, Paul ___ Zope

Re: [Zope] Sql statement in dtml code

2005-09-09 Thread paul . hendrick
Hi Joe, thanks for the quick reply! i've got a zsql method now(called date_count.zsql) which I try to call in my dtml via - but I get a KeyError when the page is refreshed. The dtml is in the same dir as the zsql...not sure whats up. Cheers, Paul On Fri, 2005-09-09 at 11:06 +0100, Joe Bezier wr

Re: [Zope] Sql statement in dtml code

2005-09-09 Thread paul . hendrick
sorry, i meant when i run the code - i'm not with zope terminology yet. here's my date_count.zsql method: select count(*) AS endcount from t_transaction and in the dtml, i've got: Thanks for the replies so far! Paul On Fri, 2005-09-09 at 11:30 +0100, Peter Bengtsso

Re: [Zope] Sql statement in dtml code

2005-09-09 Thread paul . hendrick
Hi, I've attached the two files that I'm using Full error is this: Site Error An error was encountered while publishing this resource. KeyError Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 175, in publish_

Re: [Zope] Sql statement in dtml code

2005-09-09 Thread paul . hendrick
Ok, I've made a few changes, and now I get this error: Site Error An error was encountered while publishing this resource. AttributeError Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 175, in publish_module_standard * Module Products.

[Zope] logging out (not zmi)

2005-09-27 Thread paul . hendrick
Hi all, If i'm logged in as testuser and want to log in with a different user name, whats the right way of doing it? this is on zope 2.7 thanks paul ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HT

[Zope] cookie crumbler and error messages

2005-11-16 Thread Paul Hendrick
Hi all, I'm using CookieCrumbler on a project which sits in / on one server, and /project in another. I'd like to secure a part of the site through *.metadata files so that users of a certain role can't access it. this is done and works well. however, when they try to access a part of the site whic

Re: [Zope] cookie crumbler and error messages

2005-11-21 Thread paul hendrick
is because my .metadata file is denying requests to it for users with a certain role. no idea where to go from here i'm afraid cheers, Paul On 11/18/05, Dieter Maurer <[EMAIL PROTECTED]> wrote: Paul Hendrick wrote at 2005-11-16 17:28 +:>I'm using CookieCrumbler on a project