[Zope] Re: Problem Creating Instance

2006-11-28 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nancy Donnelly wrote: > Hi; > I built Z3 from FreeBSD ports. Went to create an instance and got this error: > > [EMAIL PROTECTED]:ports/www/zope3 (115) > /usr/local/www/Zope3/bin/mkzopeinstance -d /usr/local/www/Zope3/main > Traceback (most recent ca

Re: [Zope] Existence and truth

2006-11-28 Thread Chris Withers
Paul Winkler wrote: On Tue, Nov 28, 2006 at 10:24:51PM +, Mark Barratt wrote: The radio inputs return name="listed" and value 0 or 1 If you change that radio input to name="listed:int" you'll get the behaviour you expect... cheers, Chris -- Simplistix - Content Management, Zope & Pyth

Re: [Zope] Existence and truth

2006-11-28 Thread Mark Barratt
Mark Barratt wrote: Paul Winkler wrote: This kind of thing is usually a mistaken type assumption. I bet your radiobutton is setting it to "0" rather than 0. Thanks. Yes it was. But neither value=0 (which I think is invalid XHTML), nor value="" makes any difference. OK, solved. value="" ac

Re: [Zope] Existence and truth

2006-11-28 Thread Mark Barratt
Terry Brown wrote: Hmmm, CGI only returns strings. Sometimes x*1 will give a number (0) even if x is a string ("0")... but I would have said your example should work... Yes, that's what i would have thought . I'll move this to the Plone users list - there may be some specific Plone evil in

Re: [Zope] Existence and truth

2006-11-28 Thread Terry Brown
Hmmm, CGI only returns strings. Sometimes x*1 will give a number (0) even if x is a string ("0")... but I would have said your example should work... Cheers -Terry x On Tue, 28 Nov 2006, Mark Barratt wrote: Paul Winkler wrote: This kind of thing is usually a mistaken type assumption. I b

Re: [Zope] Existence and truth

2006-11-28 Thread Mark Barratt
Paul Winkler wrote: This kind of thing is usually a mistaken type assumption. I bet your radiobutton is setting it to "0" rather than 0. Thanks. Yes it was. But neither value=0 (which I think is invalid XHTML), nor value="" makes any difference. Mark Barratt ___

Re: [Zope] Existence and truth

2006-11-28 Thread Paul Winkler
On Tue, Nov 28, 2006 at 10:24:51PM +, Mark Barratt wrote: > The radio inputs return name="listed" and value 0 or 1 > > This works OK, but in the radio input code, > > tal:attributes="checked python:test(listed,'checked',None); > > *always* returns 'checked' (snip) > So what basic fact/know

[Zope] Existence and truth

2006-11-28 Thread Mark Barratt
[profound subject: sorry the body may be less interesting] This is so basic, but any help would be appreciated. It's also a Plone site, but the problem is about basic tal behaviour so I hope it's appropriate: I have an attribute, 'listed' (a property of 'member') which I want the user to be

Re: [Zope] Problem Creating Instance

2006-11-28 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On 28. November 2006 11:29:41 -0800 Nancy Donnelly <[EMAIL PROTECTED]> wrote: > Hi; > I built Z3 from FreeBSD ports. Went to create an instance and got this > error: Real men/girls build Zope from the sources. Better ask on the zope3-users l

Re: [Zope] a question about aq_base

2006-11-28 Thread Dieter Maurer
Yuri wrote at 2006-11-28 14:23 +0100: > here: http://docs.neuroinf.de/programming-plone/ate we can read: > > > >obj = brain.getObject().aq_base > >why .aq_base and not only brain.getObject()? :) Usually, it is a bad idea to use "aq_base" in Zope applications (there are special cases where

[Zope] Problem Creating Instance

2006-11-28 Thread Nancy Donnelly
Hi; I built Z3 from FreeBSD ports. Went to create an instance and got this error: [EMAIL PROTECTED]:ports/www/zope3 (115) /usr/local/www/Zope3/bin/mkzopeinstance -d /usr/local/www/Zope3/main Traceback (most recent call last): File "/usr/local/www/Zope3/bin/mkzopeinstance", line 47, in from

Re: [Zope] making a dynamic quiz help

2006-11-28 Thread Jonathan
- Original Message - From: "Thomas Bennett" <[EMAIL PROTECTED]> To: Sent: Tuesday, November 28, 2006 1:40 PM Subject: [Zope] making a dynamic quiz help I would like some suggestions on building a dynamic quiz. There are categories and in each category the question can be multiple

[Zope] making a dynamic quiz help

2006-11-28 Thread Thomas Bennett
I would like some suggestions on building a dynamic quiz. There are categories and in each category the question can be multiple choice or true/false. For each category a specific number of questions is asked. The questions asked are randomly chosen from a collection of questions for the c

Re: [Zope] Re: error with simple python script loop

2006-11-28 Thread Chris Withers
Paul Winkler wrote: I still prefer zdb, because you can actually see and step through the script code. http://www.simplistix.co.uk/software/zope/zdb It also includes the security declarations necessary to import it from untrusted code :-) Chris -- Simplistix - Content Management, Zope & Pyt

Re: [Zope] a question about aq_base

2006-11-28 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28 Nov 2006, at 14:23, Yuri wrote: Hi! here: http://docs.neuroinf.de/programming-plone/ate we can read: obj = brain.getObject().aq_base why .aq_base and not only brain.getObject()? :) You are not presenting this one line in its cont

Re: [Zope] Re: error with simple python script loop

2006-11-28 Thread Paul Winkler
On Tue, Nov 28, 2006 at 08:28:47AM +, Maurits van Rees wrote: > Christian Steinhauer, on 2006-11-24: > > i cant use pdb on zope?s python script i think? > > You can, if you put this small (two lines) program in your Products > dir: > > svn://svn.zope.org/repos/main/Products.enablesettrace >

[Zope] a question about aq_base

2006-11-28 Thread Yuri
Hi! here: http://docs.neuroinf.de/programming-plone/ate we can read: obj = brain.getObject().aq_base why .aq_base and not only brain.getObject()? :) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cros

[Zope] Re: error with simple python script loop

2006-11-28 Thread Maurits van Rees
Christian Steinhauer, on 2006-11-24: > i cant use pdb on zopeĀ“s python script i think? You can, if you put this small (two lines) program in your Products dir: svn://svn.zope.org/repos/main/Products.enablesettrace Not meant for production sites. -- Maurits van Rees | http://maurits.vanrees.org