Message-ID: <0003021733030M.00679@tokey.kedai.com.my>
On Thu, 02 Mar 2000, technews@egsx.com wrote:
> Hi,
>
> Can you please tell us what is the configuration of your machine. I am
> very interested. We had our servers crawl to halt when we used Zope but
> we had other things running at the same time. So I will appretiate it if
> you can give us the configuration. Are you using a database? Is it on the
> same machine or by itself, and if so what are the configuration of the
> supporitng servers.
>
> 1M pages/day is a great number, I think that if a farm configuration is
> used you can create an extremely dynamic and scalable site.
>
> TIA
> Adonis
>
hi, we have a PIII 500 M, dual processor running rh6.1 with 712M RAM. there's
only zope there, and mysql to cater for banner ads. i'm using phpAds for now
until we got a commercial ad server or until there exist a mature banner ad
products for zope. (i'mm eyeing banner ad with interest tho..) everything is
in one server, although we're looking at adding another server for redundency.
don't know yet how to go about this. anybody got any pointers? maybe
failoverd? (http://ps-ax.com/failoverd/ ) or eddie?(www.eddieware.org)
the 1M number is hits, not pages. we have max 600k pages/day last feb. this
is our second month so, hopefully zope lives up to its standard.. or i'll need
to find another job *grin*
------------------------------------------------------
http://www.kedai.com.my/kk
Am I Evil?
From campos@e2000.es Thu Mar 2 10:55:56 2000
From: campos@e2000.es (Javier Campos Morales)
Date: Thu, 2 Mar 2000 11:55:56 +0100
Subject: [Zope] I cannot login (WorldPilot)
Message-ID: <000001bf8435$e2d4e740$0500a8c0@red.servidor>
This is a multi-part message in MIME format.
------=_NextPart_000_0001_01BF843E.44994F40
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
I have Suse 6.2
I cannot login worldpilot.
I have sendmail configured in localhost, the Zope sources and compiled
without problems.
I installed the package "pop" with fetchmail, pop3d and imapd. I don't know
if I must to execute imapd but I do this and the process stop by autologout.
The propierties of woldpilot are id=worldpilot Title=WorldPilot
imap=localhost smtp=localost.
I introduce the user and password of my local users and it seems that dont
have effect.
żWhat is the problem?żWhere are the users?
------=_NextPart_000_0001_01BF843E.44994F40
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I have =
Suse=20
6.2
I =
cannot login=20
worldpilot.
I have =
sendmail=20
configured in localhost, the Zope sources and compiled without=20
problems.
I =
installed the=20
package "pop" with fetchmail, pop3d and imapd. I don't know if I =
must to=20
execute imapd but I do this and the process stop by=20
autologout.
The =
propierties=20
of woldpilot are id=3Dworldpilot Title=3DWorldPilot =
imap=3Dlocalhost=20
smtp=3Dlocalost.
I =
introduce the user=20
and password of my local users and it seems that dont have=20
effect.
=BFWhat is the=20
problem?=BFWhere are the users?
------=_NextPart_000_0001_01BF843E.44994F40--
From faassen@vet.uu.nl Thu Mar 2 11:07:38 2000
From: faassen@vet.uu.nl (Martijn Faassen)
Date: Thu, 2 Mar 2000 12:07:38 +0100
Subject: [Zope] bobobase_modification_time one day back?
In-Reply-To: <200003011733.SAA13630@rztsun.rz.tu-harburg.de>
References: <200003011733.SAA13630@rztsun.rz.tu-harburg.de>
Message-ID: <20000302120738.A3668@vet.uu.nl>
Thomas Weiner wrote:
> Am I the only one whose bobo_modification_time started today with
> /2000/2/29 instead of /2000/03/01?
I only noticed it today (2000/03/02): the undo logs show
2000/03/01, and so do ZWiki times. This appears to be a bug in
bobobase_modification_time.
does show the right time, and the 'Content
changed' notification Zope gives does too. The bug happens on both
Windows NT and Linux.
Regards,
Martijn
From a.k.heath@open.ac.uk Thu Mar 2 12:00:48 2000
From: a.k.heath@open.ac.uk (Andy Heath)
Date: Thu, 02 Mar 2000 12:00:48 +0000
Subject: [Zope] trees and namespaces newbie q
References: <38BC6375.1CF97892@open.ac.uk> <200003011001.LAA17503@rztsun.rz.tu-harburg.de>
Message-ID: <38BE57F0.BEC0AA77@open.ac.uk>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
> try:
>
> this should render the content of 'id'.
Thankyou.
However,to help my understanding how does this work?
Hope you don't mind - I've mailed my other, unanswered
tree question to you because I desparately need an answer.
Andy
--
-------------------------------------------------
Andy Heath a.k.heath@open.ac.uk
The Open University +44 (0) 114 2885738
From a.k.heath@open.ac.uk Thu Mar 2 12:33:58 2000
From: a.k.heath@open.ac.uk (Andy Heath)
Date: Thu, 02 Mar 2000 12:33:58 +0000
Subject: [Zope] why doesn't this work with tree tag
Message-ID: <38BE5FB6.9EFCCE4C@open.ac.uk>
In the depths of a tree tag I want to pick up a
property of the "current" object without acquisition
if the property isn't present.
This code seems to work when used not in a tree tag
but when its in a tree tag it still finds the property
from higher up in the acquisition space.
What gives? How can I do this?
The version below doesn't fall over if the property
isn't present on that object, it just finds it by acq.
Code below should fall over but doesn't
----------------------------------
()
Andy
sorry for so many q's. I promise to give back when I can.
--
-------------------------------------------------
Andy Heath a.k.heath@open.ac.uk
The Open University +44 (0) 114 2885738
From Jatwood@bwanazulia.com Thu Mar 2 11:40:19 2000
From: Jatwood@bwanazulia.com (Jatwood@bwanazulia.com)
Date: Thu, 2 Mar 2000 06:40:19 -0500
Subject: [Zope] how much resource?
In-Reply-To: <0003021733030M.00679@tokey.kedai.com.my>
References:
<0003021733030M.00679@tokey.kedai.com.my>
Message-ID:
To fully round out this little performance study (small study of
course) could you tell us what capacity the machine is at as far as
you know, what Zope version you are running and with what
configuration (Zserver alone, w/ Apache etc)?
These kinds of things are really helpful in determining Zope's
ability to scale and in winning out the hearts of iCEO's.
Thanks,
JMA
>
>hi, we have a PIII 500 M, dual processor running rh6.1 with 712M RAM. there's
>only zope there, and mysql to cater for banner ads. i'm using phpAds for now
>until we got a commercial ad server or until there exist a mature banner ad
>products for zope. (i'mm eyeing banner ad with interest tho..) everything is
>in one server, although we're looking at adding another server for redundency.
>don't know yet how to go about this. anybody got any pointers? maybe
>failoverd? (http://ps-ax.com/failoverd/ ) or eddie?(www.eddieware.org)
>
>the 1M number is hits, not pages. we have max 600k pages/day last feb. this
>is our second month so, hopefully zope lives up to its standard.. or i'll need
>to find another job *grin*
From mj@digicool.com Thu Mar 2 11:41:38 2000
From: mj@digicool.com (Martijn Pieters)
Date: Thu, 2 Mar 2000 12:41:38 +0100
Subject: [Zope] bobobase_modification_time one day back?
References: <200003011733.SAA13630@rztsun.rz.tu-harburg.de> <010101bf83be$b3ede340$21172ed5@arnhem.chello.nl> <864sapx3f9.fsf@knapek.pvt.net>
Message-ID: <000d01bf843c$4811e620$21172ed5@arnhem.chello.nl>
From: "Petr Knapek"
MP> 1: What is your timezone setting. It could be that dates are
MP> displayed in a different timezone.
Martijn, it is not problem of timezone setting. If yes I had to see the
difference in past also. And it was OK. The problem started with
29.2. date. I think that it is a bug in bobobase_modification_time. The
system time is OK, only problems with bobobase_modification_time.
The best test is creating a DTML _Document_ (not a Method!), with the
contents:
Modified:
Current time:
IMartijn Pieters
| Software Engineer mailto:mj@digicool.com
| Digital Creations http://www.digicool.com/
| Creators of Zope http://www.zope.org/
| The Open Source Web Application Server
---------------------------------------------
From Steven.Purchase@rdel.co.uk Thu Mar 2 11:47:14 2000
From: Steven.Purchase@rdel.co.uk (Steven Purchase)
Date: Thu, 02 Mar 2000 11:47:14 +0000
Subject: [Zope] Problems installing Zope
Message-ID: <38BE54C2.B71E007E@rdel.co.uk>
Having just successfully installed and setup Zope and Squishdot
on an 486 Linux box (Debian packages made it dead easy), I
thought I'd move over to a SUN box as it is quicker and I want to
run a discussion group for the intranet here.
[SunOS 5.5.1 Generic sun4m sparc SUNW,SPARCstation-10]
After installing the latest python (and then re-compiling with
threads, doh) I unpacked Zope-2.1.4-src and ran wo_pcgi.py.
Everything seemed to go fine, so I simply fired it up using
./start. After a couple of seconds Zope (okay, Python) falls over
reporting that the ExtensionClass module couldn't be found at the
import in ZODB/__init__.py.
Actually, after investigation, none of the modules would load
from an import even though they all have .so files present in the
lib/python dir. Now, I don't know a thing about Python so I don't
know where to look to sort this out... Any ideas?
Is it something to do with shared libraries being handled wrongly
on SunOS 5?
Only other thing I can think of is search paths. I install
outside of /usr, but I can't imagine that would be a problem. Do
I need to set a PYTHONPATH or something?
Help...
--
Steve.
"Normal people ... believe that if it ain't broke, don't fix it.
Engineers believe that if it ain't broke, it doesn't have enough
features yet." ----- Scott Adams, The Dilbert Principle
From weiner@tu-harburg.de Thu Mar 2 11:57:49 2000
From: weiner@tu-harburg.de (Thomas Weiner)
Date: Thu, 02 Mar 2000 12:57:49 +0100
Subject: [Zope] bobobase_modification_time one day back?
References: <200003011733.SAA13630@rztsun.rz.tu-harburg.de> <20000302120738.A3668@vet.uu.nl>
Message-ID: <200003021156.MAA20960@rztsun.rz.tu-harburg.de>
Martijn Faassen schrieb:
>
> Thomas Weiner wrote:
> > Am I the only one whose bobo_modification_time started today with
> > /2000/2/29 instead of /2000/03/01?
>
> I only noticed it today (2000/03/02): the undo logs show
> 2000/03/01, and so do ZWiki times. This appears to be a bug in
> bobobase_modification_time.
I've put this into the collector, the bug is a bit weird for those, who
use bobobase_modification_time quite heavy, like me :)
> does show the right time, and the 'Content
> changed' notification Zope gives does too. The bug happens on both
> Windows NT and Linux.
aah .. the 'content changed' is a bit irritating, but it's only the
notice 'content changed' and a in the next line.
Thanks,
Thomas
From weiner@tu-harburg.de Thu Mar 2 12:02:20 2000
From: weiner@tu-harburg.de (Thomas Weiner)
Date: Thu, 02 Mar 2000 13:02:20 +0100
Subject: [Zope] bobobase_modification_time one day back?
References: <200003011733.SAA13630@rztsun.rz.tu-harburg.de> <010101bf83be$b3ede340$21172ed5@arnhem.chello.nl> <864sapx3f9.fsf@knapek.pvt.net> <000d01bf843c$4811e620$21172ed5@arnhem.chello.nl>
Message-ID: <200003021200.NAA21225@rztsun.rz.tu-harburg.de>
Martijn Pieters schrieb:
[...]
> The best test is creating a DTML _Document_ (not a Method!), with the
> contents:
>
> Modified:
> Current time:
Okay, my code was unclear in the example (though with a new created
method the modification time of the container should have changed too:),
but I'm quite sure, it's a bug.
Greetings,
Thomas
From mj@digicool.com Thu Mar 2 12:03:40 2000
From: mj@digicool.com (Martijn Pieters)
Date: Thu, 2 Mar 2000 13:03:40 +0100
Subject: [Zope] Listening on specific interfaces
References: <7502CAC76F59D211B0090000F8662FA305F43E91@ap3expr3applge.appl.ge.com> <38BDE004.14B77522@digicool.com>
Message-ID: <005501bf843f$59c12720$21172ed5@arnhem.chello.nl>
From: "Michel Pelletier"
> You need to hack the z2.py file. Go down near the bottom (look for the
> string '# HTTP Server') and you will see that the HTTP server is fired
> up on the IP_ADDRESS interface. This variable is defined on line 252
> and the default is an empty string '' which means, 'all interfaces'.
>
> You can hack the code here to do anything you want, define a bunch of
> interface variables, etc...
>
> Yes, this needs to be done better, but short of comming up with a conf
> file like apache and dealing with all that, it's probably no so
> realistic. z2.py is currently config'ed with command line options,
> which gets out of control after a while.
Or, as someone else pointed out, you could use the -a parameter to z2.py.
Just run z2.py --usage for all command line options.
Martijn Pieters
| Software Engineer mailto:mj@digicool.com
| Digital Creations http://www.digicool.com/
| Creators of Zope http://www.zope.org/
| The Open Source Web Application Server
---------------------------------------------
From mj@digicool.com Thu Mar 2 12:10:05 2000
From: mj@digicool.com (Martijn Pieters)
Date: Thu, 2 Mar 2000 13:10:05 +0100
Subject: [Zope] bobobase_modification_time one day back?
References: <200003011733.SAA13630@rztsun.rz.tu-harburg.de> <010101bf83be$b3ede340$21172ed5@arnhem.chello.nl> <864sapx3f9.fsf@knapek.pvt.net> <000d01bf843c$4811e620$21172ed5@arnhem.chello.nl> <200003021200.NAA21225@rztsun.rz.tu-harburg.de>
Message-ID: <005f01bf8440$3f155800$21172ed5@arnhem.chello.nl>
From: "Thomas Weiner"
> > The best test is creating a DTML _Document_ (not a Method!), with the
> > contents:
> >
> > Modified:
> > Current time:
>
> Okay, my code was unclear in the example (though with a new created
> method the modification time of the container should have changed too:),
> but I'm quite sure, it's a bug.
Uuuhhhmmm..
I just tested this myself. Here's my output:
Modified: 2000/03/01 13:06:16.05 GMT+1
Current time: 2000/03/02 13:06:17.86 GMT+1
Heh. One day off. And so is the Undo log.
My apologies for my unduly applied sceptisism. I'll go and hide now, and
investigate.
Martijn Pieters
| Software Engineer mailto:mj@digicool.com
| Digital Creations http://www.digicool.com/
| Creators of Zope http://www.zope.org/
| The Open Source Web Application Server
---------------------------------------------
From phd@phd.russ.ru Thu Mar 2 12:20:45 2000
From: phd@phd.russ.ru (Oleg Broytmann)
Date: Thu, 2 Mar 2000 12:20:45 +0000 (GMT)
Subject: [Zope] Problems installing Zope
In-Reply-To: <38BE54C2.B71E007E@rdel.co.uk>
Message-ID:
On Thu, 2 Mar 2000, Steven Purchase wrote:
> [SunOS 5.5.1 Generic sun4m sparc SUNW,SPARCstation-10]
>
> After installing the latest python (and then re-compiling with
> threads, doh) I unpacked Zope-2.1.4-src and ran wo_pcgi.py.
> Everything seemed to go fine, so I simply fired it up using
> ./start. After a couple of seconds Zope (okay, Python) falls over
> reporting that the ExtensionClass module couldn't be found at the
> import in ZODB/__init__.py.
>
> Actually, after investigation, none of the modules would load
> from an import even though they all have .so files present in the
> lib/python dir. Now, I don't know a thing about Python so I don't
> know where to look to sort this out... Any ideas?
>
> Is it something to do with shared libraries being handled wrongly
> on SunOS 5?
I have Zope installed and running on Sun Sparc Solaris 2.5.1. Zope is in
/usr/local/Zope. There are 17 .so libraries in lib/python. Zope is running
fine: http://sun.med.ru/~zphd/
The only thing - I am running under Apache with PCGI, no ZServer.
Nothing special for dynamic linking...
Oleg.
----
Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru
Programmers don't die, they just GOSUB without RETURN.
From itamars@ibm.net Thu Mar 2 12:18:38 2000
From: itamars@ibm.net (Itamar Shtull-Trauring)
Date: Thu, 02 Mar 2000 14:18:38 +0200
Subject: [Zope] Re: HTML-Site Import
References:
Message-ID: <38BE5C1E.2310A351@ibm.net>
Oleg Broytmann wrote:
> > 2) file names are used as the DTML document Id e.g. index.html
> > It seems to me, that index_html is the default DTML document within a
> > Zope directory.
> > Can or should I change it to index.html? And where?
>
> You don't need to. Just create DTML Methtod index_html and put
> in it. That's all.
Or use CVS load_site which has a -I feature that for every index.html
creates an appropriate index_html.
--
-= This is NOT a pyramid scheme =-
The SNAFU Principle: True communication is possible only between equals
Itamar S.T. itamars@ibm.net
From tony.mcdonald@ncl.ac.uk Thu Mar 2 12:19:15 2000
From: tony.mcdonald@ncl.ac.uk (Tony McDonald)
Date: Thu, 2 Mar 2000 12:19:15 +0000
Subject: [Zope] Options for handling concurrency?
In-Reply-To: <613145F79272D211914B0020AFF640194294F6@gandalf.digicool.com>
References: <613145F79272D211914B0020AFF640194294F6@gandalf.digicool.com>
Message-ID:
At 11:29 am -0500 29/2/00, Martijn Pieters wrote:
> > So, I'm *not* calling ZSQL methods from an External method, I'm using
>> direct connections to the database using Python libraries. Obviously,
>> I lose a lot of Zope goodies here, but I really need that speedup...
>
>So, if I understand you correctly, your EM's call query on the DA object
>itself, not using the ZSQL Methods. Then you have no cache whatsoever on
>those queries. Is there no way you can use a ZSQL Method here anyway?
>Just a self.nameOfZSQLMethod(arguments) might speed things up here.
Apologies for the late reply - flu :(
Yes. I create a DBH in an EM and fire away. All I get from the Zope
system is a request of the form http://supercascade?root_id=240551
and I start to do my queries. They are nested in the EM to 9 levels
deep (but normally the first 4 levels are enough to get all the nodes
of the tree with the relevant root_id). Getting the list of nodes is
quite fast, about 0.8 seconds. Then I have to render them. I've got
that down by a factor of ten (since this thread has started in actual
fact!)
I've also found out just how fast a cached ZSQL method can be - one
DMTL method that used query took 3.2 seconds on the first render, and
0.06 seconds on subsequent renders. Obviously some more work needs to
be done in this area and I'm looking into that.
I'm also told that our MySQL server itself does some caching ...
looking into that.
>Also, I don't know how your recursive query will work within the one
>thread of a HTTP request.
Ah, I hadn't thought of that...my query isn't recursive however.
>What python libraries do you use?
MySQL (MySQLmodule-1.4), DocumentTemplate and from
Acquisition,Implicit in the main.
thanks for the thoughts Martijn,
Tone.
------
Dr Tony McDonald, FMCC, Networked Learning Environments Project
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2
From ws@gmd.de Thu Mar 2 12:24:46 2000
From: ws@gmd.de (Wolfgang Strobl)
Date: Thu, 2 Mar 2000 13:24:46 +0100
Subject: [Zope] bobobase_modification_time one day back?
In-Reply-To: <010101bf83be$b3ede340$21172ed5@arnhem.chello.nl>
Message-ID: <200003021224.NAA23803@mail.gmd.de>
0100,0100,0100On 1 Mar 00, 21:42 Martijn Pieters wrote:
7F00,0000,0000> From: "Thomas Weiner" <
> > Am I the only one whose bobo_modification_time started today with
> > /2000/2/29 instead of /2000/03/01?
> >
> > I create a new method Time_now:
> >
> > <<
> > <
> >
> > and the Output is:
> >
> > 2000/03/01 18:30:21.091 GMT+1
> > 2000/02/29 18:30:5.198 GMT+1
> >
> > Same appears in my Undo Log (February, 29th started again today) and
> > so on.
>
> 1: What is your timezone setting. It could be that dates are displayed
> in a different timezone.
As it says. GMT+1, obviously
7F00,0000,0000> 2: If you do your test from a DTML Method, you'll be shown the
> modification date of the container it is called on. For an
> explanation, see:
>
7F00,0000,0000> http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo
That remark is misleading, as a simple experiment could have shown easily
:-(
dtml-var standard_html_header>
<<<
<
This is the < Document.
<
<<
< <
<<
<7F00,0000,0000
renders as
0100,0100,0100Times New Romany2bug
This is the y2kbug Document.
2000/03/02 13:22:14.766 GMT+1
2000/03/01 13:22:13.565 GMT+1
2000/03/02 13:22:14.766 GMT+1
Arialwhen I use "change" and "view" in succession, on that document.
--
o ( Wolfgang.Strobl@gmd.de (+49 2241) 14-2394
/\ * GMD mbH #include
_`\ `_<=== Schloss Birlinghoven,
__(_)/_(_)___.-._ 53754 Sankt Augustin, Germany ________________
From chrisw@nipltd.com Thu Mar 2 12:31:52 2000
From: chrisw@nipltd.com (Chris Withers)
Date: Thu, 02 Mar 2000 12:31:52 +0000
Subject: [Zope] bobobase_modification_time one day back?
References: <200003011733.SAA13630@rztsun.rz.tu-harburg.de> <010101bf83be$b3ede340$21172ed5@arnhem.chello.nl> <864sapx3f9.fsf@knapek.pvt.net> <000d01bf843c$4811e620$21172ed5@arnhem.chello.nl> <200003021200.NAA21225@rztsun.rz.tu-harburg.de> <005f01bf8440$3f155800$21172ed5@arnhem.chello.nl>
Message-ID: <38BE5F38.E6A2AA4D@nipltd.com>
Dunno if this is related or not, but I got some really weird errors yesterday
when trying to view some images I had created in Zope on the 29th.
All I was trying to do was view them using the image's view tab and I got a Zope
error. Something about an invalid datetime stamp I think but try simulating it
yourself if you want the exact answer...
They also appeared as broken images when I included them on pages using
so, Zope doesn't like leap years? ;-)
Chris
Martijn Pieters wrote:
>
> From: "Thomas Weiner"
> > > The best test is creating a DTML _Document_ (not a Method!), with the
> > > contents:
> > >
> > > Modified:
> > > Current time:
> >
> > Okay, my code was unclear in the example (though with a new created
> > method the modification time of the container should have changed too:),
> > but I'm quite sure, it's a bug.
>
> Uuuhhhmmm..
>
> I just tested this myself. Here's my output:
>
> Modified: 2000/03/01 13:06:16.05 GMT+1
> Current time: 2000/03/02 13:06:17.86 GMT+1
>
> Heh. One day off. And so is the Undo log.
>
> My apologies for my unduly applied sceptisism. I'll go and hide now, and
> investigate.
>
> Martijn Pieters
> | Software Engineer mailto:mj@digicool.com
> | Digital Creations http://www.digicool.com/
> | Creators of Zope http://www.zope.org/
> | The Open Source Web Application Server
> ---------------------------------------------
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
From duncan@rcp.co.uk Thu Mar 2 12:38:30 2000
From: duncan@rcp.co.uk (Duncan Booth)
Date: Thu, 2 Mar 2000 12:38:30 +0000
Subject: [Zope] Patch to ZODBCDA
Message-ID: <38BE60C6.11098.1043AC9D@localhost>
A little while back I uploaded a patch to the ODBC Database Adaptor
which (I claimed) fixed the Test tab on the management screens.
Indeed it did, but unfortunately it broke a host of other things.
Anyone who downloaded the patch the first time around may be
interested to know that there is a revised version at
http://www.zope.org/Members/Duncan/zodbcda_patch
--
Duncan Booth duncan@dales.rmplc.co.uk
int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3"
"\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure?
http://dales.rmplc.co.uk/Duncan
From Jatwood@bwanazulia.com Thu Mar 2 13:13:25 2000
From: Jatwood@bwanazulia.com (Jatwood@bwanazulia.com)
Date: Thu, 2 Mar 2000 08:13:25 -0500
Subject: [Zope] SQL Methods being called more than once
In-Reply-To: <38BE5FB6.9EFCCE4C@open.ac.uk>
References: <38BE5FB6.9EFCCE4C@open.ac.uk>
Message-ID:
I have a page that has the same SQL Method called a few times....
Do some stuff
Do some more stuff
Do some more stuff
Does anyone know the inner working well enough to tell me whether or
not Zope actually makes two separate calls to the database or whether
it makes one caches it and uses the results twice?
If you know and would like to expand on how Zope deals with caching
SQL data that would be great I am trying to optimize my Zope
installation and don't want to tax the database.
Thanks,
JMA
From lfalse@cs.rutgers.edu Thu Mar 2 13:29:25 2000
From: lfalse@cs.rutgers.edu (Stefan Langerman)
Date: Thu, 02 Mar 2000 08:29:25 -0500
Subject: [Zope] dtml-raise types?
References: <200003020940.BAA04419@zope.codeit.com>
Message-ID: <38BE6CB1.B14F3C7F@cs.rutgers.edu>
Hi,
Can anyone tell me what are the predefined error types
for the tag, and how to use them?
The DTML manual talks about "Unauthorized", and
"Redirect", but doesn't give any details. I haven't found
how to use "Redirect" so far.
Thanks,
Stefan.
From chrisw@nipltd.com Thu Mar 2 13:44:21 2000
From: chrisw@nipltd.com (Chris Withers)
Date: Thu, 02 Mar 2000 13:44:21 +0000
Subject: [Zope] dtml-raise types?
References: <200003020940.BAA04419@zope.codeit.com> <38BE6CB1.B14F3C7F@cs.rutgers.edu>
Message-ID: <38BE7035.BB2721C6@nipltd.com>
Dunno about raise, but if you want to do a redirect, try (untested,YMMV,etc)
cheers,
Chris
Stefan Langerman wrote:
>
> Hi,
>
> Can anyone tell me what are the predefined error types
> for the tag, and how to use them?
> The DTML manual talks about "Unauthorized", and
> "Redirect", but doesn't give any details. I haven't found
> how to use "Redirect" so far.
>
> Thanks,
>
> Stefan.
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
From ws@gmd.de Thu Mar 2 13:51:35 2000
From: ws@gmd.de (Wolfgang Strobl)
Date: Thu, 2 Mar 2000 14:51:35 +0100
Subject: [Zope] bobobase_modification_time one day back?
In-Reply-To: <200003021224.NAA23803@mail.gmd.de>
References: <010101bf83be$b3ede340$21172ed5@arnhem.chello.nl>
Message-ID: <200003021351.OAA27504@mail.gmd.de>
Function TimeStamp_yad(int y) in
zope-2.1.4-src\lib\python\zodb\TimeStamp.c
expects a 1900 based year (i.e. 0 = 1900, 2000=100, etc.),
for positive agruments, when computing (y+300)/400.
TimeStamp_abst(int y, int mo, int d, int m, int s)
seems to expect a 0 based year, on the other hand.
l = y%4==0 && (y%100 != 0 || y%400==0)
But it gets called with a 1900 based year in line 290 in
function TimeStamp_timeTime(
TimeStamp_abst(TimeStamp_y-1900, TimeStamp_m-
1, TimeStamp_d-1,
--
o ( Wolfgang.Strobl@gmd.de (+49 2241) 14-2394
/\ * GMD mbH #include
_`\ `_<=== Schloss Birlinghoven,
__(_)/_(_)___.-._ 53754 Sankt Augustin, Germany ________________
From a.k.heath@open.ac.uk Thu Mar 2 14:57:28 2000
From: a.k.heath@open.ac.uk (Andy Heath)
Date: Thu, 02 Mar 2000 14:57:28 +0000
Subject: [Zope] tree and dtml-with only not working for me
References: <38BD1AB9.697583F@open.ac.uk> <001601bf83e4$c26bf3a0$38fe31d4@typhoonn>
Message-ID: <38BE8158.B2CC120A@open.ac.uk>
Phil,
nope. Doesn't find the property called rubbish.
Baffled.
Perhaps its an architecure-related bug -
I'm running on Linux, what box
are you on?
Other ideas?
Andy
> Try this:
>
>
>
>
>
> Works for me 8Ź)
>
> Phil
> phil.harris@zope.co.uk
>
> ----- Original Message -----
> From: "Andy Heath"
> To:
> Sent: 01 March 2000 13:27
> Subject: [Zope] tree and dtml-with only not working for me
>
> > There's something funny about this tree tag.
> >
> > When this code is inside a tree tag it doesn't
> > prevent acquisition.
> >
> > Code
> > ----
> >
> >
> >
> >
> > What do I need to do to make this work - should it be
> > this.somethingOrOther?
> >
> > Also, anyone suggest what X I could put in
> >
> > to enable me to see something to help me figure out
> > what goes on with these namespace things
> >
> > Andy
> > Full code for the tree below
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > ()
> >
> >
> >
> >
> > --
> > -------------------------------------------------
> > Andy Heath a.k.heath@open.ac.uk
> > The Open University +44 (0) 114 2885738
> >
> >
> > _______________________________________________
> > Zope maillist - Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > ** No cross posts or HTML encoding! **
> > (Related lists -
> > http://lists.zope.org/mailman/listinfo/zope-announce
> > http://lists.zope.org/mailman/listinfo/zope-dev )
> >
--
-------------------------------------------------
Andy Heath a.k.heath@open.ac.uk
The Open University +44 (0) 114 2885738
From jwh@allencreek.com Thu Mar 2 14:13:54 2000
From: jwh@allencreek.com (James W. Howe)
Date: Thu, 02 Mar 2000 09:13:54 -0500
Subject: [Zope] Dealing with Dictionaries
In-Reply-To: <004d01bf83f7$50a2cab0$8400a8c0@mozart>
References: <4.2.2.20000301125741.00b6b100@saladin.aisys.com>
<4.2.2.20000301172344.00bab320@mail.ic.net>
Message-ID: <4.2.2.20000302091042.00b9b2e0@mail.ic.net>
At 09:27 PM 3/1/00 -0600, Evan Simpson wrote:
>----- Original Message -----
>From: James W. Howe
> > > >
>
> > I get an "AttributeError" on "keys".
>
>Hmm. Somehow you aren't getting a dictionary, then. It's hard to tell from
>just what you've posted where it's going astray. Are you dtml-return-ing a
>literal dict as in your initial posting? How is dictionaryVariableName set?
Here's what I've got. First, I have a DTMLMethod named creditCardsAccepted
which is defined as follows:
I then have a method called creditCardSelections which is defined as follows:
(I also tried )
When I try to "view" my creditCardSelections, I get the attribute error on
'keys'.
James W. Howe mailto:jwh@allencreek.com
Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html
Ann Arbor, MI 48103
From evan@4-am.com Thu Mar 2 14:21:25 2000
From: evan@4-am.com (Evan Simpson)
Date: Thu, 2 Mar 2000 08:21:25 -0600
Subject: [Zope] Dealing with Dictionaries
References: <4.2.2.20000301125741.00b6b100@saladin.aisys.com><4.2.2.20000301172344.00bab320@mail.ic.net> <4.2.2.20000302091042.00b9b2e0@mail.ic.net>
Message-ID: <001401bf8452$a9e253b0$8400a8c0@mozart>
----- Original Message -----
From: James W. Howe
> Here's what I've got. First, I have a DTMLMethod named
creditCardsAccepted
> I then have a method called creditCardSelections which is defined as
follows:
>
>
Try
Cheers,
Evan @ 4-am & digicool
From jwh@allencreek.com Thu Mar 2 14:33:42 2000
From: jwh@allencreek.com (James W. Howe)
Date: Thu, 02 Mar 2000 09:33:42 -0500
Subject: [Zope] Dealing with Dictionaries
In-Reply-To: <001401bf8452$a9e253b0$8400a8c0@mozart>
References: <4.2.2.20000301125741.00b6b100@saladin.aisys.com>
<4.2.2.20000301172344.00bab320@mail.ic.net>
<4.2.2.20000302091042.00b9b2e0@mail.ic.net>
Message-ID: <4.2.2.20000302093215.00b9b1b0@mail.ic.net>
At 08:21 AM 3/2/00 -0600, Evan Simpson wrote:
>----- Original Message -----
>From: James W. Howe
> > Here's what I've got. First, I have a DTMLMethod named
>creditCardsAccepted
>
> > I then have a method called creditCardSelections which is defined as
>follows:
> >
> >
>
>Try
Just tried that, same results (keys error).
(BTW, there was a typo in my message describing the dictionary I was
returning. The typo existed only in the e-mail, not in the actual code)
James W. Howe mailto:jwh@allencreek.com
Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html
Ann Arbor, MI 48103
From Ingo.Assenmacher@post.rwth-aachen.de Thu Mar 2 13:39:42 2000
From: Ingo.Assenmacher@post.rwth-aachen.de (ingo)
Date: Thu, 2 Mar 2000 14:39:42 +0100
Subject: [Zope] Subclassing User
Message-ID: <200003021337.OAA05522@OSKAR.ingo.net>
Hi!
Can anybody tell me anything about subclassing a UserObject?
I have had some neat errors (including seg-faults and indefinite loops by just subclassing a ZClass from User Object)
When I tried to insantiate a Subclass of UserObject Zope quit.
(I did not change anything to the default constructors and expected something like "missing argument", but not an indefinite loop :)
I am using Zope 2.1.4 on Linux/x86 (2.2.13)
Thanks.
Regards, Ingo.
From jwh@allencreek.com Thu Mar 2 14:40:28 2000
From: jwh@allencreek.com (James W. Howe)
Date: Thu, 02 Mar 2000 09:40:28 -0500
Subject: [Zope] Dealing with Dictionaries
In-Reply-To: <001401bf8452$a9e253b0$8400a8c0@mozart>
References: <4.2.2.20000301125741.00b6b100@saladin.aisys.com>
<4.2.2.20000301172344.00bab320@mail.ic.net>
<4.2.2.20000302091042.00b9b2e0@mail.ic.net>
Message-ID: <4.2.2.20000302093444.00b86260@mail.ic.net>
At 08:21 AM 3/2/00 -0600, Evan Simpson wrote:
>----- Original Message -----
>From: James W. Howe
> > Here's what I've got. First, I have a DTMLMethod named
>creditCardsAccepted
>
> > I then have a method called creditCardSelections which is defined as
>follows:
> >
> >
>
>Try
Followup,
I just realized that I had two definitions of "creditCardsAccepted". One
was defined inside my ZClass, and one was defined in the folder containing
the ZClass. The one in the container was just answering a list. When I
changed that one to answer a dictionary things worked. I then simply
deleted the DTMLMethod in the containing folder and now I get a name
error. Now I'm really confused. After deleting the higher level method, I
now have the creditCardsAccepted and the creditCardSelections both in the
same folder. It seems, however, that the creditCardSelections cannot see
the sibling method.
I'm clearly overlooking something.
James W. Howe mailto:jwh@allencreek.com
Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html
Ann Arbor, MI 48103
From phil.harris@zope.co.uk Thu Mar 2 14:21:08 2000
From: phil.harris@zope.co.uk (Phil Harris)
Date: Thu, 2 Mar 2000 14:21:08 -0000
Subject: [Zope] tree and dtml-with only not working for me
References: <38BD1AB9.697583F@open.ac.uk> <001601bf83e4$c26bf3a0$38fe31d4@typhoonn> <38BE8158.B2CC120A@open.ac.uk>
Message-ID: <01cb01bf8458$ebed01f0$5c773fc1@media1>
Andy,
Do all of the objects have a property 'rubbish'?
Try something like:
No Rubbish
This should check that the rubbish property exists and change what gets
rendered depending on that.
HTH
Phil
phil.harris@zope.co.uk
----- Original Message -----
From: "Andy Heath"
To: "Phil Harris"
Cc:
Sent: Thursday, March 02, 2000 2:57 PM
Subject: Re: [Zope] tree and dtml-with only not working for me
> Phil,
> nope. Doesn't find the property called rubbish.
>
> Baffled.
> Perhaps its an architecure-related bug -
> I'm running on Linux, what box
> are you on?
>
> Other ideas?
>
> Andy
>
> > Try this:
> >
> >
> >
> >
> >
> > Works for me 8Ź)
> >
> > Phil
> > phil.harris@zope.co.uk
> >
> > ----- Original Message -----
> > From: "Andy Heath"
> > To:
> > Sent: 01 March 2000 13:27
> > Subject: [Zope] tree and dtml-with only not working for me
> >
> > > There's something funny about this tree tag.
> > >
> > > When this code is inside a tree tag it doesn't
> > > prevent acquisition.
> > >
> > > Code
> > > ----
> > >
> > >
> > >
> > >
> > > What do I need to do to make this work - should it be
> > > this.somethingOrOther?
> > >
> > > Also, anyone suggest what X I could put in
> > >
> > > to enable me to see something to help me figure out
> > > what goes on with these namespace things
> > >
> > > Andy
> > > Full code for the tree below
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > ()
> > >
> > >
> > >
> > >
> > > --
> > > -------------------------------------------------
> > > Andy Heath a.k.heath@open.ac.uk
> > > The Open University +44 (0) 114 2885738
> > >
> > >
> > > _______________________________________________
> > > Zope maillist - Zope@zope.org
> > > http://lists.zope.org/mailman/listinfo/zope
> > > ** No cross posts or HTML encoding! **
> > > (Related lists -
> > > http://lists.zope.org/mailman/listinfo/zope-announce
> > > http://lists.zope.org/mailman/listinfo/zope-dev )
> > >
>
> --
> -------------------------------------------------
> Andy Heath a.k.heath@open.ac.uk
> The Open University +44 (0) 114 2885738
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
From phil.harris@zope.co.uk Thu Mar 2 13:27:54 2000
From: phil.harris@zope.co.uk (Phil Harris)
Date: Thu, 2 Mar 2000 13:27:54 -0000
Subject: [Zope] SQL Methods being called more than once
References: <38BE5FB6.9EFCCE4C@open.ac.uk>
Message-ID: <01ca01bf8458$e9621150$5c773fc1@media1>
J,
In the advanced tab on the edit page of a SQL Method there is a entry box
for caching information.
You could start by looking there.
HTH
Phil
phil.harris@zope.co.uk
----- Original Message -----
From:
To:
Sent: Thursday, March 02, 2000 1:13 PM
Subject: [Zope] SQL Methods being called more than once
> I have a page that has the same SQL Method called a few times....
>
>
> Do some stuff
>
>
>
>
> Do some more stuff
>
>
>
>
> Do some more stuff
>
>
>
> Does anyone know the inner working well enough to tell me whether or
> not Zope actually makes two separate calls to the database or whether
> it makes one caches it and uses the results twice?
>
> If you know and would like to expand on how Zope deals with caching
> SQL data that would be great I am trying to optimize my Zope
> installation and don't want to tax the database.
>
> Thanks,
> JMA
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
From a.k.heath@open.ac.uk Thu Mar 2 16:58:04 2000
From: a.k.heath@open.ac.uk (Andy Heath)
Date: Thu, 02 Mar 2000 16:58:04 +0000
Subject: [Zope] tree and dtml-with only not working for me
References: <38BD1AB9.697583F@open.ac.uk> <001601bf83e4$c26bf3a0$38fe31d4@typhoonn> <38BE8158.B2CC120A@open.ac.uk> <01cb01bf8458$ebed01f0$5c773fc1@media1>
Message-ID: <38BE9D9C.38B729E9@open.ac.uk>
Phil,
> Do all of the objects have a property 'rubbish'?
No, only some of them. The problem goes away if
I make sure that every object has some value for
this property but that's not a good solution. The
code you suggest (the dtml-if ...) is exactly what I intended
but on my system (Linux slackware 7 + zope 2.1.4) it finds
higher level rubbish properties. Actually its not really
called rubbish, that's just what I was using to check
it worked before using it.
It simply doesn't work - if it works for you lets find
out what's different. Are you on a windows platform?
What Zope version?
Just to restate the problem for new readers:-
The problem is to use "dtml-with X only" inside a tree rendering
so as to be able to test whether the current object
has some specific property. The code works outside trees but
used in a tree it still seems to find properties by
acquisition.
> Try something like:
>
>
> No Rubbish
>
This code finds "rubbish" at higher acquisition levels. I know it
shouldn't but it does. Anyone throw any light on it?
>
> This should check that the rubbish property exists and change what gets
> rendered depending on that.
>
> HTH
>
> Phil
> phil.harris@zope.co.uk
> ----- Original Message -----
> From: "Andy Heath"
> To: "Phil Harris"
> Cc:
> Sent: Thursday, March 02, 2000 2:57 PM
> Subject: Re: [Zope] tree and dtml-with only not working for me
>
> > Phil,
> > nope. Doesn't find the property called rubbish.
> >
> > Baffled.
> > Perhaps its an architecure-related bug -
> > I'm running on Linux, what box
> > are you on?
> >
> > Other ideas?
> >
> > Andy
> >
> > > Try this:
> > >
> > >
> > >
> > >
> > >
> > > Works for me 8Ź)
> > >
> > > Phil
> > > phil.harris@zope.co.uk
> > >
> > > ----- Original Message -----
> > > From: "Andy Heath"
> > > To:
> > > Sent: 01 March 2000 13:27
> > > Subject: [Zope] tree and dtml-with only not working for me
> > >
> > > > There's something funny about this tree tag.
> > > >
> > > > When this code is inside a tree tag it doesn't
> > > > prevent acquisition.
> > > >
> > > > Code
> > > > ----
> > > >
> > > >
> > > >
> > > >
> > > > What do I need to do to make this work - should it be
> > > > this.somethingOrOther?
> > > >
> > > > Also, anyone suggest what X I could put in
> > > >
> > > > to enable me to see something to help me figure out
> > > > what goes on with these namespace things
> > > >
> > > > Andy
> > > > Full code for the tree below
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ()
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > -------------------------------------------------
> > > > Andy Heath a.k.heath@open.ac.uk
> > > > The Open University +44 (0) 114 2885738
> > > >
> > > >
> > > > _______________________________________________
> > > > Zope maillist - Zope@zope.org
> > > > http://lists.zope.org/mailman/listinfo/zope
> > > > ** No cross posts or HTML encoding! **
> > > > (Related lists -
> > > > http://lists.zope.org/mailman/listinfo/zope-announce
> > > > http://lists.zope.org/mailman/listinfo/zope-dev )
> > > >
> >
> > --
> > -------------------------------------------------
> > Andy Heath a.k.heath@open.ac.uk
> > The Open University +44 (0) 114 2885738
> >
> > _______________________________________________
> > Zope maillist - Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > ** No cross posts or HTML encoding! **
> > (Related lists -
> > http://lists.zope.org/mailman/listinfo/zope-announce
> > http://lists.zope.org/mailman/listinfo/zope-dev )
> >
--
-------------------------------------------------
Andy Heath a.k.heath@open.ac.uk
The Open University +44 (0) 114 2885738
From phil.harris@zope.co.uk Thu Mar 2 16:19:49 2000
From: phil.harris@zope.co.uk (Phil Harris)
Date: Thu, 2 Mar 2000 16:19:49 -0000
Subject: [Zope] tree and dtml-with only not working for me
References: <38BD1AB9.697583F@open.ac.uk> <001601bf83e4$c26bf3a0$38fe31d4@typhoonn> <38BE8158.B2CC120A@open.ac.uk> <01cb01bf8458$ebed01f0$5c773fc1@media1> <38BE9D9C.38B729E9@open.ac.uk>
Message-ID: <01dd01bf8463$22f12140$5c773fc1@media1>
Andy,
Hmm, I'm confused.
I use this 'trick' all the time, here's a bit of code from a method of mine:
Which works beautifully.
Hmmm
confusion reigns!??!
Phil
----- Original Message -----
From: "Andy Heath"
To: "Phil Harris"
Cc: "zope"
Sent: Thursday, March 02, 2000 4:58 PM
Subject: Re: [Zope] tree and dtml-with only not working for me
> Phil,
>
> > Do all of the objects have a property 'rubbish'?
>
> No, only some of them. The problem goes away if
> I make sure that every object has some value for
> this property but that's not a good solution. The
> code you suggest (the dtml-if ...) is exactly what I intended
> but on my system (Linux slackware 7 + zope 2.1.4) it finds
> higher level rubbish properties. Actually its not really
> called rubbish, that's just what I was using to check
> it worked before using it.
>
> It simply doesn't work - if it works for you lets find
> out what's different. Are you on a windows platform?
> What Zope version?
>
> Just to restate the problem for new readers:-
>
> The problem is to use "dtml-with X only" inside a tree rendering
> so as to be able to test whether the current object
> has some specific property. The code works outside trees but
> used in a tree it still seems to find properties by
> acquisition.
>
>
> > Try something like:
> >
> >
> > No Rubbish
> >
>
>
> This code finds "rubbish" at higher acquisition levels. I know it
> shouldn't but it does. Anyone throw any light on it?
>
>
> >
> > This should check that the rubbish property exists and change what gets
> > rendered depending on that.
> >
> > HTH
> >
> > Phil
> > phil.harris@zope.co.uk
> > ----- Original Message -----
> > From: "Andy Heath"
> > To: "Phil Harris"
> > Cc:
> > Sent: Thursday, March 02, 2000 2:57 PM
> > Subject: Re: [Zope] tree and dtml-with only not working for me
> >
> > > Phil,
> > > nope. Doesn't find the property called rubbish.
> > >
> > > Baffled.
> > > Perhaps its an architecure-related bug -
> > > I'm running on Linux, what box
> > > are you on?
> > >
> > > Other ideas?
> > >
> > > Andy
> > >
> > > > Try this:
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Works for me 8Ź)
> > > >
> > > > Phil
> > > > phil.harris@zope.co.uk
> > > >
> > > > ----- Original Message -----
> > > > From: "Andy Heath"
> > > > To:
> > > > Sent: 01 March 2000 13:27
> > > > Subject: [Zope] tree and dtml-with only not working for me
> > > >
> > > > > There's something funny about this tree tag.
> > > > >
> > > > > When this code is inside a tree tag it doesn't
> > > > > prevent acquisition.
> > > > >
> > > > > Code
> > > > > ----
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > What do I need to do to make this work - should it be
> > > > > this.somethingOrOther?
> > > > >
> > > > > Also, anyone suggest what X I could put in
> > > > >
> > > > > to enable me to see something to help me figure out
> > > > > what goes on with these namespace things
> > > > >
> > > > > Andy
> > > > > Full code for the tree below
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ()
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > -------------------------------------------------
> > > > > Andy Heath a.k.heath@open.ac.uk
> > > > > The Open University +44 (0) 114 2885738
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > Zope maillist - Zope@zope.org
> > > > > http://lists.zope.org/mailman/listinfo/zope
> > > > > ** No cross posts or HTML encoding! **
> > > > > (Related lists -
> > > > > http://lists.zope.org/mailman/listinfo/zope-announce
> > > > > http://lists.zope.org/mailman/listinfo/zope-dev )
> > > > >
> > >
> > > --
> > > -------------------------------------------------
> > > Andy Heath a.k.heath@open.ac.uk
> > > The Open University +44 (0) 114 2885738
> > >
> > > _______________________________________________
> > > Zope maillist - Zope@zope.org
> > > http://lists.zope.org/mailman/listinfo/zope
> > > ** No cross posts or HTML encoding! **
> > > (Related lists -
> > > http://lists.zope.org/mailman/listinfo/zope-announce
> > > http://lists.zope.org/mailman/listinfo/zope-dev )
> > >
>
> --
> -------------------------------------------------
> Andy Heath a.k.heath@open.ac.uk
> The Open University +44 (0) 114 2885738
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
From tino@wildenhain.de Thu Mar 2 16:25:50 2000
From: tino@wildenhain.de (Tino Wildenhain)
Date: Thu, 02 Mar 2000 17:25:50 +0100
Subject: [Zope] urgent! help! strange blockings
Message-ID: <38BE960E.32E0F12E@wildenhain.de>
Hello,
I cannot get ride of those strange blockings of zope.
This happens from time to time and leads some times to
minutes without action from Zope.
I increased threads pool and decreased it, I use a much
bigger object cache (memory is not an issue on the machine)
and I pured the database (with help of an extra machine)
Zope stucks with about 18% processor use and does almost
nothing at the moment.
Any posibility for an dead-lock?
Help is very appreciated!
Configuration: Zope 2.1.4, ZODBC, Database-Size: 66MB (after purify)
Some sessions with unsafed work, 50 threads for pool, NT 4.0 (ok, this
sux,
but we have to use ODBC with strange Databases)
Tino Wildenhain
From tony.mcdonald@ncl.ac.uk Thu Mar 2 16:14:56 2000
From: tony.mcdonald@ncl.ac.uk (Tony McDonald)
Date: Thu, 2 Mar 2000 16:14:56 +0000
Subject: [Zope] SQL Methods being called more than once
In-Reply-To:
References: <38BE5FB6.9EFCCE4C@open.ac.uk>
Message-ID:
At 8:13 am -0500 2/3/00, Jatwood@bwanazulia.com wrote:
>I have a page that has the same SQL Method called a few times....
>
>
>Do some stuff
>
>
>
>
>Do some more stuff
>
>
>
>
>Do some more stuff
>
>
>
>Does anyone know the inner working well enough to tell me whether or
>not Zope actually makes two separate calls to the database or
>whether it makes one caches it and uses the results twice?
>
>If you know and would like to expand on how Zope deals with caching
>SQL data that would be great I am trying to optimize my Zope
>installation and don't want to tax the database.
>
I posted a message about this this morning. In effect, yes you can
use caching and it is veery fast (one second and subsequent renders).
For your document, I think you'll find it will speed up by a factor
of how many times the ZSQL method is called...
tone.
ps it's the 'Advanced' tag. Put something in the 'cache results for n
seconds' box
------
Dr Tony McDonald, FMCC, Networked Learning Environments Project
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2
From phil.harris@zope.co.uk Thu Mar 2 16:25:03 2000
From: phil.harris@zope.co.uk (Phil Harris)
Date: Thu, 2 Mar 2000 16:25:03 -0000
Subject: [Zope] tree and dtml-with only not working for me
References: <38BD1AB9.697583F@open.ac.uk> <001601bf83e4$c26bf3a0$38fe31d4@typhoonn> <38BE8158.B2CC120A@open.ac.uk> <01cb01bf8458$ebed01f0$5c773fc1@media1> <38BE9D9C.38B729E9@open.ac.uk>
Message-ID: <01e101bf8463$ded14a70$5c773fc1@media1>
Andy,
I sent before reading all your mail.
This technique works on NT and a Linux box both running 2.1.4.
Hmmm
----- Original Message -----
From: "Andy Heath"
To: "Phil Harris"
Cc: "zope"
Sent: Thursday, March 02, 2000 4:58 PM
Subject: Re: [Zope] tree and dtml-with only not working for me
> Phil,
>
> > Do all of the objects have a property 'rubbish'?
>
> No, only some of them. The problem goes away if
> I make sure that every object has some value for
> this property but that's not a good solution. The
> code you suggest (the dtml-if ...) is exactly what I intended
> but on my system (Linux slackware 7 + zope 2.1.4) it finds
> higher level rubbish properties. Actually its not really
> called rubbish, that's just what I was using to check
> it worked before using it.
>
> It simply doesn't work - if it works for you lets find
> out what's different. Are you on a windows platform?
> What Zope version?
>
> Just to restate the problem for new readers:-
>
> The problem is to use "dtml-with X only" inside a tree rendering
> so as to be able to test whether the current object
> has some specific property. The code works outside trees but
> used in a tree it still seems to find properties by
> acquisition.
>
>
> > Try something like:
> >
> >
> > No Rubbish
> >
>
>
> This code finds "rubbish" at higher acquisition levels. I know it
> shouldn't but it does. Anyone throw any light on it?
>
>
> >
> > This should check that the rubbish property exists and change what gets
> > rendered depending on that.
> >
> > HTH
> >
> > Phil
> > phil.harris@zope.co.uk
> > ----- Original Message -----
> > From: "Andy Heath"
> > To: "Phil Harris"
> > Cc:
> > Sent: Thursday, March 02, 2000 2:57 PM
> > Subject: Re: [Zope] tree and dtml-with only not working for me
> >
> > > Phil,
> > > nope. Doesn't find the property called rubbish.
> > >
> > > Baffled.
> > > Perhaps its an architecure-related bug -
> > > I'm running on Linux, what box
> > > are you on?
> > >
> > > Other ideas?
> > >
> > > Andy
> > >
> > > > Try this:
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Works for me 8Ź)
> > > >
> > > > Phil
> > > > phil.harris@zope.co.uk
> > > >
> > > > ----- Original Message -----
> > > > From: "Andy Heath"
> > > > To:
> > > > Sent: 01 March 2000 13:27
> > > > Subject: [Zope] tree and dtml-with only not working for me
> > > >
> > > > > There's something funny about this tree tag.
> > > > >
> > > > > When this code is inside a tree tag it doesn't
> > > > > prevent acquisition.
> > > > >
> > > > > Code
> > > > > ----
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > What do I need to do to make this work - should it be
> > > > > this.somethingOrOther?
> > > > >
> > > > > Also, anyone suggest what X I could put in
> > > > >
> > > > > to enable me to see something to help me figure out
> > > > > what goes on with these namespace things
> > > > >
> > > > > Andy
> > > > > Full code for the tree below
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ()
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > -------------------------------------------------
> > > > > Andy Heath a.k.heath@open.ac.uk
> > > > > The Open University +44 (0) 114 2885738
> > > > >
> > > > >
> > > > > _______________________________________________
> > > > > Zope maillist - Zope@zope.org
> > > > > http://lists.zope.org/mailman/listinfo/zope
> > > > > ** No cross posts or HTML encoding! **
> > > > > (Related lists -
> > > > > http://lists.zope.org/mailman/listinfo/zope-announce
> > > > > http://lists.zope.org/mailman/listinfo/zope-dev )
> > > > >
> > >
> > > --
> > > -------------------------------------------------
> > > Andy Heath a.k.heath@open.ac.uk
> > > The Open University +44 (0) 114 2885738
> > >
> > > _______________________________________________
> > > Zope maillist - Zope@zope.org
> > > http://lists.zope.org/mailman/listinfo/zope
> > > ** No cross posts or HTML encoding! **
> > > (Related lists -
> > > http://lists.zope.org/mailman/listinfo/zope-announce
> > > http://lists.zope.org/mailman/listinfo/zope-dev )
> > >
>
> --
> -------------------------------------------------
> Andy Heath a.k.heath@open.ac.uk
> The Open University +44 (0) 114 2885738
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
From jwh@allencreek.com Thu Mar 2 16:31:15 2000
From: jwh@allencreek.com (James W. Howe)
Date: Thu, 02 Mar 2000 11:31:15 -0500
Subject: [Zope] Advanced DTML Question
In-Reply-To: <002b01bf83c9$c7d08560$8400a8c0@mozart>
References: <4.2.2.20000301155145.00b6c400@saladin.aisys.com>
Message-ID: <4.2.2.20000302112421.00b9f3f0@mail.ic.net>
At 04:01 PM 3/1/00 -0600, Evan Simpson wrote:
>----- Original Message -----
>From: James W. Howe
> > of my dtml-in loop which gets the first letter from the current entry,
> > checks to see if an anchor for that letter has been written, if not, a new
> > anchor tag is inserted into the stream. My problem is I don't really know
>
>Quick, possibly misleading idea: if you can give your Catalog entries a
>brain class with a function "anchorGroup" which returns the first letter of
>the entry, then you can use name="&dtml-anchorGroup;">
I've tried to do something like you suggested, but it doesn't seem to
work. I'm probably not doing things quite correctly. I've added a
"getAnchorCharacter" method to my ZClass which correctly answers the
character I want to use as an anchor. I've tested this and know that it
works. I tried using " ...",
but got no result. Could you explain a bit more about how something like
"sequence-first-xxx" works? I haven't found any information on this form
of a dtml-in variable. Perhaps I'm just misunderstanding your solution.
In thinking about this solution, it seems that if I'm inside of a dtml-in
iterating over entries in a Catalog, the objects known to the "dtml-in"
aren't instances of my ZClass, but instances of some catalogging wrapper
for my ZClass. Therefore, it would seem that my getAnchorCharacter method
wouldn't be accessible from within the dtml-in, but only from within a
dtml-with which sets the object to be the object referenced by the catalog
entry.
Can you clarify all this?
Thanks.
James W. Howe mailto:jwh@allencreek.com
Allen Creek Software, Inc. pgpkey: http://ic.net/~jwh/pgpkey.html
Ann Arbor, MI 48103
From weiner@tu-harburg.de Thu Mar 2 16:51:50 2000
From: weiner@tu-harburg.de (Thomas Weiner)
Date: Thu, 02 Mar 2000 17:51:50 +0100
Subject: [Zope] tree and dtml-with only not working for me
References: <38BD1AB9.697583F@open.ac.uk> <001601bf83e4$c26bf3a0$38fe31d4@typhoonn> <38BE8158.B2CC120A@open.ac.uk> <01cb01bf8458$ebed01f0$5c773fc1@media1> <38BE9D9C.38B729E9@open.ac.uk>
Message-ID: <200003021650.RAA09714@rztsun.rz.tu-harburg.de>
Andy Heath schrieb:
>
> Phil,
>
> This code finds "rubbish" at higher acquisition levels. I know it
> shouldn't but it does. Anyone throw any light on it?
No light, no solution, only a bad workaround:
# your tree code
...
temp_rubbish">
...
hth,
Thomas
From evan@4-am.com Thu Mar 2 17:15:34 2000
From: evan@4-am.com (Evan Simpson)
Date: Thu, 2 Mar 2000 11:15:34 -0600
Subject: [Zope] Advanced DTML Question
References: <4.2.2.20000301155145.00b6c400@saladin.aisys.com> <4.2.2.20000302112421.00b9f3f0@mail.ic.net>
Message-ID: <000e01bf846a$fe2635a0$8400a8c0@mozart>
----- Original Message -----
From: James W. Howe
> I've tried to do something like you suggested, but it doesn't seem to
> work. I'm probably not doing things quite correctly. I've added a
> "getAnchorCharacter" method to my ZClass which correctly answers the
> character I want to use as an anchor. I've tested this and know that it
> works. I tried using " ...",
> but got no result. Could you explain a bit more about how something like
> "sequence-first-xxx" works? I haven't found any information on this form
> of a dtml-in variable. Perhaps I'm just misunderstanding your solution.
Check the Grouping Variables subsection of
http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.8.html
I did give you the wrong syntax; it's ,
with no "sequence-".
> In thinking about this solution, it seems that if I'm inside of a dtml-in
> iterating over entries in a Catalog, the objects known to the "dtml-in"
> aren't instances of my ZClass, but instances of some catalogging wrapper
> for my ZClass. Therefore, it would seem that my getAnchorCharacter method
> wouldn't be accessible from within the dtml-in, but only from within a
> dtml-with which sets the object to be the object referenced by the catalog
> entry.
I misunderstood you. The catalog wrapper is the "brain" which needs to have
the getAnchorCharacter method. But... Suppose you add getAnchorCharacter as
a catalogued meta_type in your Catalog? I think that would work.
Cheers,
Evan @ 4-am & digicool
From jiva@devware.com Thu Mar 2 17:52:57 2000
From: jiva@devware.com (jiva@devware.com)
Date: Thu, 2 Mar 2000 10:52:57 -0700
Subject: [Zope] ZOPE! I HATE YOU!
Message-ID: <20000302105256.A23108@devware.com>
It used to be that I was so open minded when it came to web
technologies. I used to say "Oh yeah, pick whatever you want, we can
do it in that." I used to say "No problem! We can use your scripting
technology! It's just as good as any other." And I would, and they
would, and we did. And we'd all stand around and say "Yeah
man... that's cool."
And then Zope entered my life. And NOW I simply can't think of
virtually any project that Zope wouldn't do a better job of serving
than those *other* technologies. It's very frustrating when every
time you see a project you think "Oh, Zope would make that SO much
easier!" Especially any time someone mentions the word "Database" and
"Web" in close proximity. The truly frustrating part is staying
focused on the problem-space when you have such a fun technology to
play with.
Now in some ways I'll admit, this is an exaggeration. Obviously,
there ARE lots of cases when Zope isn't appropriate, but I just wanted
to shout out a big thanks for developing such an awesome system that
makes developing apps so easy to do. Now if I could just get my mind
off of it's possibilities long enough to evaluate those OTHER
technologies objectively, then I'd be in good shape. ;D
--
Juall's Law on Nice Guys:
Nice guys don't always finish last; sometimes they don't finish.
Sometimes they don't even get a chance to start!
From akuchlin@mems-exchange.org Thu Mar 2 17:16:44 2000
From: akuchlin@mems-exchange.org (Andrew M. Kuchling)
Date: Thu, 2 Mar 2000 12:16:44 -0500 (EST)
Subject: [Zope] Oedipus 0.06 released
Message-ID: <200003021716.MAA27689@amarok.cnri.reston.va.us>
I've made a new release of Oedipus, a Python package for presenting
data from the Open Directory Project.
http://www.mems-exchange.org/software/python/oedipus/
In v0.06, The improvements to the ODP code itself are pretty minor.
The major milestone is that, after some diligent sleuthing,
Jean-Claude Wippler tracked down an obscure bug in MetaKit that I was
tripping over. A patch for MetaKit 2.0 is included in Oedipus 0.06,
so for the first time you can actually handle a complete ODP dump.
You'd better have 400Mb of disk space for the resulting data file,
though, plus 500Mb for the source XML files, plus 4-5 hours of
processing time (at least on a 550MHz Linux box).
The exported ZClass product still doesn't seem to work, though; if you
untar it in a new Zope installation, no Product is added when you
start up Zope. Anyone else notice this problem?
--
A.M. Kuchling http://starship.python.net/crew/amk/
What on earth is less likely than *two* committees to produce a seamless web
of anything but intrigue and deficit? Who said "three committees"?
-- Stan Kelly-Bootle, _The Computer Contradictionary_
From paul.browning@bristol.ac.uk Thu Mar 2 17:30:56 2000
From: paul.browning@bristol.ac.uk (Paul Browning)
Date: Thu, 2 Mar 2000 17:30:56 +0000
Subject: [Zope] bobobase_modification_time one day back?
In-Reply-To: <200003020940.BAA04416@zope.codeit.com>
References: <200003020940.BAA04416@zope.codeit.com>
Message-ID:
> Message: 47
> To: "Martijn Pieters"
> Cc: "Thomas Weiner" ,
> Subject: Re: [Zope] bobobase_modification_time one day back?
> From: Petr Knapek
> Date: 02 Mar 2000 07:59:54 +0100
>
> >>>>> On Wed, 1 Mar 2000 21:42:24 +0100, "Martijn Pieters"
> said:
> Hi all,
> I have the same problem.
Me too, I think. I haven't investigated this more deeply yet
but I noticed that all new News items created since March 1 in
the PTK portal I've been playing with get their
dates set back to 29 Feb the moment they are modified
(by being approved, for example).
Paul
--
The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK
E-mail: paul.browning@bris.ac.uk URL: http://www.bris.ac.uk/
From ewalstad@energywright.com Thu Mar 2 17:46:13 2000
From: ewalstad@energywright.com (Eric L. Walstad)
Date: Thu, 2 Mar 2000 09:46:13 -0800
Subject: [Zope] Zope stopped working after working once...
Message-ID:
Hello all -
I am unable to connect to my Zope 2.
I am running Linux 2.2.14, with Apache
I am new to Zope and pretty new to Linux
I installed Python 1.5.2, then installed Zope using "python w_pcgi.py"
I entered ./start
It worked... for a while... until I shutdown...
When I restarted, Zope wasn't available. I went back to the Zope directory
and tried ./start again but the script seems to lock up after displaying the
following:
------
PROBLEM(100) ZServer Computing default hostname
------
INFO(0) Zserver Medusa (V1.13) started at ...
Hostname: frankenstein.energywright.com
Port:8080
------
INFO(0) ZServer FTP server starte at ...
Authorizer:None
Hostname: frankenstein.energywright.com
Port:8021
------
INFO(0) ZServer PCGI server started at ...
Unix Socket: /usr/local/Zope/var/pcgi.soc
------
INFO(0) ZServer Monitor Server (V1.5)started on port 8099
When I try to connect to http://192.168.1.100:8080/manage I get a "File does
not exist: /home/httpd/html/manage" error in my Apache error_log
I was so happy when I got it running, now I'm incredibly frustrated! Please
help!
I can supply my Apache conf files if necessary...
Many Thanks, Eric.
From weiner@tu-harburg.de Thu Mar 2 18:08:13 2000
From: weiner@tu-harburg.de (Thomas Weiner)
Date: Thu, 02 Mar 2000 19:08:13 +0100
Subject: [Zope] tree and dtml-with only not working for me
References: <38BD1AB9.697583F@open.ac.uk> <001601bf83e4$c26bf3a0$38fe31d4@typhoonn> <38BE8158.B2CC120A@open.ac.uk> <01cb01bf8458$ebed01f0$5c773fc1@media1> <38BE9D9C.38B729E9@open.ac.uk> <200003021650.RAA09714@rztsun.rz.tu-harburg.de>
Message-ID: <200003021806.TAA13309@rztsun.rz.tu-harburg.de>
Thomas Weiner schrieb:
>
> Andy Heath schrieb:
> >
> > Phil,
> >
>
> > This code finds "rubbish" at higher acquisition levels. I know it
> > shouldn't but it does. Anyone throw any light on it?
>
> No light, no solution, only a bad workaround:
apologies, ignore my pervious posting, try instead: