[Zope-Annce] SilvaStatic Released

2006-11-28 Thread eric casteleijn
28 november 2006 – Infrae has just released SilvaStatic, a Silva extension that allows users to export a static copy of content maintained in Silva to an external website. This allows an organization to run Silva internally to manage content, but export the content to a simple external web

[Zope-dev] Zope Tests: 8 OK, 1 Failed

2006-11-28 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Mon Nov 27 12:00:00 2006 UTC to Tue Nov 28 12:00:00 2006 UTC. There were 9 messages: 9 from Zope Unit Tests. Test failures - Subject: FAILED (failures=2) : Zope-2.8 Python-2.4.4 : Linux From: Zope Unit Tests Date: Mon Nov 27

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

[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

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 Not

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

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

[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

Re: [Zope] making a dynamic quiz help

2006-11-28 Thread Jonathan
- Original Message - From: Thomas Bennett [EMAIL PROTECTED] To: zope@zope.org 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

[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 module

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 it is

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 list.

[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] 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/knowledge am I

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

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 sigh /. I'll move this to the Plone users list - there may be some specific Plone

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=

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 Python

[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 call