AFAIK (but I'm no expert), a ZClass inherits its parents' propertysheets and
you can access them in the normal way. The problem is that the all the
propertysheets have to have different names. Example:
If your parent class and the child class both have a property sheet called
"Basic", but the
I was just building in some error handling into some UI code, and wanted to catch
errors relating to duplicate ids. The problem is that just about every client-side
error raises the same kind of Exception, a 'Bad Request'. A quick grep counted 41
different types of 'Bad Request' in my Zope
My product is performing incredibly badly. I profiled it and got the following
results:
ncalls tottime percall cumtime percall filename:lineno(function)
...snip...
4/10.0100.0036.3606.360 WebFactory.py:92(change_theme)
37/60.4400.0126.330
Tempting fate by claiming a bug...but although I'm sure I'm at fault
here, there's no sensible reason for the results I'm getting.
When I view one of several different pages with IE5, the last 11 bytes
don't reach the browser. I've got a couple of other people to try it
out. One of them
FWIW, I recall having similar problems with external JavaScript files in
NS - it seemed that the onload event of the body is triggered *before* the
external JS is loaded into the namespace.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
Of Steve
I've been yelling at my ISP (BTopenworld) for having a badly configured
transparent proxy cache, which caches all content *unless* the source
specifies otherwise. It's been really messing up my development, and of
course it's a concern for my users too. Hopefully they'll sort it out.
Anyway,
* Adrian Hungate [EMAIL PROTECTED] [010419 10:09]:
Are there some problems with the new catalog?
I have spotted two possible problems:
1) In CatalogAware, there is a function reindex_all, which appears to have a
few problems, like calling index_object instead of reindex_object. Also, why
Just a quick thought - It'd be useful to be able to see what is on
your 'clipboard' when you're copyandpasting. Would it be a Bad Thing
to factor out the first bit of OFS.CopySupport.manage_pasteObjects into a
separate function, which is callable TTW? You could then iterate over
the objects on
Hi,
First, I don't post to this list normally; is it the best place to
discuss an apparent bug?
Anyway, the lowdown:
If you iterate over a list with a batch size of 1, it messes up
towards the end of the sequence. For example, the following code:
dtml-call REQUEST.set('hoo',(1,2,3,4))
* Joachim Werner [EMAIL PROTECTED] [010618 20:28]:
That's not the behaviour I'd expect. Can anyone confirm this is a
bug?
As LEE Kwan Soo has already said, it is not a bug, but a clever (too
clever?) feature that should maybe not be enabled by default. Every second
week or so somebody
I just tried to restart zope and got a core dump. The backtrace
(pasted below) indicated a problem with the binascii module, and sure
enough, trying to import it reproduced the segfault. I reinstalled
python and it all worked again.
This isn't strictly a Zope issue but I wondered if anyone's
I've been getting a puzzling error. It's not reliably reproduceable.
It occurs perhaps one time in four when I'm using Opera. At first, it
appeared only to be related to Opera, but now I'm getting the same
error in netscape. I can just hit refresh and it works again.
There's no sign of
* Evan Simpson [EMAIL PROTECTED] [010709 21:12]:
seb bacon wrote:
I just tried to restart zope and got a core dump. The backtrace
(pasted below) indicated a problem with the binascii module, and sure
enough, trying to import it reproduced the segfault. I reinstalled
python and it all
* Steve Alexander [EMAIL PROTECTED] [010711 07:59]:
KeyError: SERVER_URL
I have seen a similar traceback which was due to a bug in CopyPaste.py,
to which I have submitted a patch. It had to do with a lack of an
acquisition wrapper at an inopportune time. It looks as though
snip stuff about SERVER_URL KeyError
* Casey Duncan [EMAIL PROTECTED] [010711 16:22]:
I haven't the time time to pursue this right now, but I'll attempt to
make a simple, reproduceable example and submit it to the Tracker.
But just in case I get time to debug it, where might I start? I'm
* Andy McKay [EMAIL PROTECTED] [010924 01:11]:
Haven't we been complaining about this automatic appending of tracebacks for
a while? To me this is what log files are for but Im not sure what this
guy is on. I wouldnt count this as a security vulnerability.
It's not an exploitable
I'm finding that the regex which deals with links in structured text
is broken (Zope 2.4.1, Python 2.1). If you try a link with a query
string:
link:http://www.foo.com?ding=dongbit=bat
the part of the regex which is matching the url only matches up to the
first '=' (or '').
If I run the
don't
get reported because someone doesn't know about the collector, or even how
to report bugs well.
seb
- Original Message -
From: Chris Withers [EMAIL PROTECTED]
To: seb bacon [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, November 11, 2001 11:14 AM
Subject: Re: [Zope-dev] bug
* Lennart Regebro [EMAIL PROTECTED] [011130 11:24]:
From: Andrew Kenneth Milton [EMAIL PROTECTED]
Noone from Zope Corp seems to monitor the list to help out.
That is not my experience at all. I have received answers from Zope corps
several times. But sure, most of the answers you get come
-
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope )
--
[] j a m k i t
seb bacon
T: 020 7749 7218
F: 020 7739 8683
M: 07968 301 336
W: www.jamkit.com
___
Zope-Dev maillist
+2
I like the idea of unifying the fishbowl and the collector. And I
agree about notification.
seb
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists
Paul Everitt wrote:
This isn't a good track record. Brian produced 35 pages worth of
almost-flawless docs on web services to go with his code. But no
comments. And he's doing this on his own time. So let's remember that
this is a two-way street.
snip
* Chris Withers [EMAIL
seb bacon
T: 020 7749 7218
F: 020 7739 8683
M: 07968 301 336
W: www.jamkit.com
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http
://lists.zope.org/mailman/listinfo/zope )
--
[] j a m k i t
seb bacon
T: 020 7749 7218
F: 020 7739 8683
M: 07968 301 336
W: www.jamkit.com
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
On Fri, 2001-12-07 at 11:47, Paul Everitt wrote:
In fact, we'd like to start a pattern of opening up the sprints to
outsiders. We'd like to invite folks to Fburg for a sprint. Though
you'll pay your own freight, we'll supply a spacious cubicle. :^) If
you're interested, contact me.
Third,
There was some brief chatting about it a while ago on the list, do a
search.
seb
On Sat, 2001-12-08 at 21:00, Dirk Datzert wrote:
Hi,
has any zoper played with the new internet technology curl from
http://www.curl.com ?
Regards,
Dirk
___
ROTFLMAO :-)
On Wed, 2001-12-12 at 22:44, Lennart Regebro wrote:
From: Can Canbilek [EMAIL PROTECTED]
Öncelikle rahatsýz ediyorsak özür dileriz ama bu maili okursanýz sanýrým
bize teþekkür edeceksiniz. Sizlere, hiçbir masraf yapmadan yalnýzca
internete girerek para kazanacaðýnýzý iddia
I thought it was time to catch up on the CST stuff which has made it
into the core, only to find that it's only *based on* Chris' CST stuff.
And I can't find a fishbowl project anywhere describing the rationale,
apis, whatever...
Is there a fishbowl for this? Or was session tracking
use of all the docs you already generated
along the way.
So, please do try to find the time, and show my plea to those who make
room for doing such things :-)
seb
On 08 Jan 2002 11:39:35 +
seb bacon [EMAIL PROTECTED] wrote:
I thought it was time to catch up on the CST stuff which
has
First, apologies for the cross posting. I need to make sure this gets
to as many people as possible, for obvious reasons...
Everyone's got grumbles about how zope.org is organised. Now is the
time to quit grumbling and do something about it. If you are a newbie
or a guru, please take the time
You can use FTP to upload the files - check out which port your Zope FTP
server is running on and have a look there. Investigate the
content_type_registry to see how to link certain file types to
particular CMF types.
Sorry for the brevity of the mail, but hopefully that points you in the
right
I've just announced our Call Profiler product on zope.org and the zope
announce list (waiting for people in different timezones to authorise them :)
( http://www.zope.org/Members/richard/CallProfiler/ for the impatient)
This is absolutely excellent, well done and thanks :) I added
I don't have much useful to add - I just wanted to mention that I know
there are people out there who have succesfully used mod_gzip with Zope;
and that I *like* the name dogzip :-)
seb
On Tue, 2002-02-05 at 22:34, Brad Clements wrote:
I'm looking for architectural suggestions for adding gzip
Hi!
It wouldn't surprise me - ZPT has the roughly the same overheads as DTML
for the language parsing, but a presentation template goes through an
HTML parser in addition - which is always going to be quite slow in
python.
seb
On Thu, 2002-02-07 at 00:01, Joachim Werner wrote:
Hello!
Has
However, I do build Python with gcc 3.1 (cvs) and Python 2.1.2 and with
various compile options can get a 17% speedup.
Could you share the compile options with us?
seb
___
Zope-Dev maillist - [EMAIL PROTECTED]
On Tue, 2002-02-12 at 12:36, Matthew T. Kromer wrote:
On Tuesday, February 12, 2002, at 07:17 AM, seb bacon wrote:
However, I do build Python with gcc 3.1 (cvs) and Python 2.1.2 and with
various compile options can get a 17% speedup.
Could you share the compile options with us
A few points I'd like to add. Before I do, a disclaimer: I've never
used Cocoon, and I really like Zope. Having said that, I've used lots
of other 'competing' systems, and I am able to see Zope's weak points.
Some don't think this 'cloning restriction' a severe limitation, I think
this is
Absolutely ... and I would also like to see Richards excellent Call
Profiler service become part of the core.
I'm definitely putting the profiler into 2.6 - there's just an open question
of where it gets put. The question was asked on zope-coders, and got no
response. I figure if
I'd like to see the ZSyncer Product, or a variant thereof, included in
Zope by default. That is, I'd like Synchronization, to a be a default
property of Zope objects, so that objects/content can be pushed and
pulled between two Zope installations.
I would use ZCVSFolder or somewhat
On Mon, 2002-03-04 at 03:55, Anthony Baxter wrote:
I think the performance hit is really quite minimal for two if statements at
the entry and exit point(s) of a function to turn the behaviour on and off.
I'm not convinced. Those small increments of performance really add up.
Look at how
On Mon, 2002-03-04 at 03:47, Richard Jones wrote:
On Mon, 4 Mar 2002 14:40, Casey Duncan wrote:
I agree, monkey patches are perfect for this. That
makes them totally transparent to the application and
Zope for that matter. There's nothing wrong with them
in the right application.
My
On Mon, 2002-03-04 at 10:47, Chris Withers wrote:
seb bacon wrote:
Yes - I would bet the performace difference is in the order of
hundredths of a second.
Which I would prefer not to have added to the several hundred other
hundredths-of-a-second
little differences-that-people-thought
On Mon, 2002-03-04 at 11:23, Chris Withers wrote:
seb bacon wrote:
http://zope.nipltd.com/public/lists/dev-archive.nsf/ByKey/4084B02199CC6AFB
(to save the bother of following the link, that's the thread from about
a month ago regarding evidence suggesting ZPT may be *twice* as slow
What if, instead of the static list of callable info that the CP
currently uses, Zope objects could register themselves as profilable?
We would then make sure that the object types that CP handles now
register themselves, but other products that we don't know (or
have to know) about
anyone object to changing the text at in the top ZMI frame to Logged in
as user on machine? Or is there a better place to put that info?
I find it useful when I've got several windows open to different servers.
seb
___
Zope-Dev maillist - [EMAIL
On Mon, 2002-03-18 at 19:18, Leonardo Rochael Almeida wrote:
On Mon, 2002-03-18 at 13:21, Lennart Regebro wrote:
The machine should, in my opinion, be the domain you are logged in on. I.e,
if you are authenticated for domain www.foobar.com:1001, thats what it
should say, according to an
I've asked this before, about a year ago, but got no response.
Does anyone else ever see 'bad marshal data' errors sometimes? What are
they a symptom of?
It sometimes happens in my products, other times in Zope. It always
occurs on import statements. I usually manage to fix it by playing
There is a bug in IIS[1] which causes cookies to be dropped during a
redirect. The result in the CMF is that a login fails when it is
combined with a redirect, as happens following an attempted access of a
forbidden resource when using the CookieCrumbler.
Now, I'm not too familiar with the
Shane Hathaway wrote:
seb bacon wrote:
Production sites running a stock Zope are vulnerable to abuse of their
server if they have not removed the 'Examples' folder. For example,
anyone could use http://notcarefulenough.com/Examples/FileLibrary as a
warez repository.
Are you sure
Production sites running a stock Zope are vulnerable to abuse of
their server if they have not removed the 'Examples' folder. For
example, anyone could use
http://notcarefulenough.com/Examples/FileLibrary as a warez repository.
Are you sure? I get an Unauthorized error (but not until
Anyone object to me changing PathIndex so it swallows exceptions and
logs them when unindexing content?
On upgrading to Zope 2.6 some if the unindex paths seem to have got
hosed, and I don't want this breaking my site.
___
Zope-Dev maillist -
I've already fixed it; should I commit it or do you want the patches?
Andreas Jung wrote:
Please file a collector issue and assign it to me.
-aj
--On Donnerstag, 21. November 2002 13:24 + seb bacon
[EMAIL PROTECTED] wrote:
Anyone object to me changing PathIndex so it swallows exceptions
The DateTime bug in 2.6.0 breaks all of my sites. This must be true for very
many other people.
If we collectively want use of Zope to multiply 10x, I don't think it's a great
idea to let a major bug like that stay in the latest-and-greatest release.
Can we have a bugfix release?
seb
2002-11-27T16:16:26 ERROR(200) KeywordIndex unindex_object could not
remove documentId -869933785 from index companies. This should not
happen.
exceptions.KeyError: -869933785
This usually happens when there are duplicates in the indexed
keywords and the record isn't updated before
Shane, AdaptableStorage is insane and beautiful - congratulations :-)
It could fit a possible project we have coming up where a requirement is
to store content in an XML format inside MS SQL Server.
Do you have a TODO list? Are there any particularly alpha parts? I
would need to get an idea
Writes are slower than reads, but the real bottleneck is likely to be
your application, not the ZODB. Commonly ZODB writes take place within
a busy transaction, including catalog updates, transformations, etc.
Brian R Brinegar wrote:
Hello,
What effect do ZODB Writes have on Performance? We
Sounds like an acquisition problem to me. Are the objects wrapped?
Try
def _getOb(..):
...
return someobject.__of__(self)
Lars Heber wrote:
Hi zopers,
my class has a list with several objects in it.
When calling my self written _getOb() method, I want to return one of
these objects.
Shane Hathaway wrote:
Chris Withers wrote:
Shane Hathaway wrote:
performance. There needs to be a way for applications that modify
the database to tell Zope about the modification, so Zope can reset
its caches.
But, IIRC, the last time this was discussed on a mailing list you had
some
Jeff Rush wrote:
I use a form of the following to compute dynamic titles for Zope
objects, where the 'title' attribute is the result of a method call.
Modifying it slightly for your case...
from ComputedAttribute import ComputedAttribute
Class B(A):
def getMyObjects(self):
...
How about having a seperate process which just watched the files and
notifed Zope when they changed?
A definite possibility. It might even just poke an URL to send the
notification.
Since every storage will have its own unique notification scheme, which
may be more or less inefficient
Jeff Rush wrote:
Yeah, the new property type in Python 2.2 is pretty cool, but out of
range for use under Zope at the moment. The ExtensionClass requirement
for persistence eliminates using it with new style Python classes.
Why? I can't see why ExtensionClass should not work with the new
Chris Withers wrote:
seb bacon wrote:
Since every storage will have its own unique notification scheme,
which may be more or less inefficient (worst case scenario, periodic
polling of entire storage for recently modified items), it might make
sense to have a notification server. It would
Chris Withers wrote:
seb bacon wrote:
I'd prefer just to have a method somewhere that, as Shane suggested,
could be hit by URL, etc.
A whole seperate server seems like overkill...
Well, if by server you could mean script that gets run by cron every 1
minute and hits a URL in Zope
Toby Dickenson wrote:
On Wednesday 22 January 2003 11:43 am, Ivo van der Wijk wrote:
Do these
references point to the same object instances, or are these copied
as well?
They are independant copies
Is there a
way to optimize this?
1. Obviously, use fewer threads. Do you have a component
There lave been various BTree fixes lounging in the HEAD since Jan 2003
which I'd like to get into a release, basically because we have seen one
of the bugs causing segfaults in production - this is the culprit:
http://cvs.zope.org/Zope/lib/python/BTrees/BTreeItemsTemplate.c.diff?r1=1.17r2=1.18
On Mon, 2003-06-23 at 09:20, Jamie Heilman wrote:
I'll submit a fixed Examples.zexp but I need to know how its normally
prepared, ownership, etc. Is there anything special I should do?
No. Just go ahead and make the changes. It would be instructive for
others reading the examples to add a
Just a quick repeat from last week in case it slipped from anyone's
radar... Here is the important bit again:
a) Any reason why I shouldn't merge BTree bugfixees into the 2.6 branch?
b) If no, how about a 2.6.2b3?
seb
On Wed, 2003-06-18 at 17:25, seb bacon wrote:
There lave been various
Hi,
I'm trying to use Ape for a photo album - the idea being that I just
drop new photos where I normally do on the filesystem, and Zope provides
a thumbnails-bells-and-whistles view onto it.
Performance is extremely poor: viewing the root of the hierarchy causes
*all* descendent objects to
Evan Simpson wrote:
I'm thinking seriously about writing a Product to provide collections of
Python functions defined by a single source text -- PythonLibraries.
This would *not* be the same as Zope 3's persistent modules, although it
would provide some of the same benefits.
Here's the
Nguyen Quan Son wrote:
Hi,
I have a problem with performance and memory consumption when trying to do some
statistics, using following code:
...
docs = container.portal_catalog(meta_type='Document', ...)
for doc in docs:
obj = doc.getObject()
value = obj.attr
...
With about 10.000
Tres Seaver wrote:
Evan Simpson wrote:
Seb Bacon wrote:
Could you provide a brief summary of why this is better than a
folder of python scripts? Perhaps a use case which illustrates the
problems of the current way of doing things?
It isn't *better* than a Folder of Scripts, it's *different
seb bacon
T: 020 7549 0520
F: 020 7490 1152
M: 07968 301 336
W: www.jamkit.com
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http
Fred Yankowski wrote:
I use Squid as an HTTP accelerator in front of ZServer. What do
last-modified headers have to do with this discussion?
I thought that was how this thread started. I must have mis-read something.
I use a standard HTTP Cache Manager for all our caching needs - I have
yet
solutions for charities
seb bacon
T: 020 7549 0520
F: 020 7490 1152
M: 07968 301 336
W: www.jamkit.com
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related
Chris Withers wrote:
Casey Duncan wrote:
I would argue that a better plan would be to only use _v_ vars for
completely disposable data only. The application should expect that
this values will be gone at any random time, not just at transaction
boundaries.
Agreed. Are there any situations,
I've got a fairly major memory leak in my application. I've followed
the thread from August including Shane's suggestions about using a debug
build of Python to inspect object references and the rest [1]
I know from the refcounts in Zope that items of class Foo are definitely
leaking, yet
Tim Peters wrote:
snip useful info about new-style classes
Debugging memory leaks can be hard, in any language.
No kidding. I thought when I identified the suspect class two days ago
I was nearly there ;-)
Another place to look
for ideas is in the top-level test.py from a current Zope HEAD
Tim Peters wrote:
[Seb Bacon]
...but my (naive?) reading of the documentation was that reference
cycles are cleaned out by the garbage collector, *unless* they define
a __del__ (which is not the case here). How am I wrong?
You're reading the docs correctly. It's not necessarily cycles directly
Seb Bacon wrote:
So, say Foo is leaking because it is referenced from O which can't be
collected. Given 100 things which refer to Foo, how do I identify which
one is O? And of course, then O may be leaking because it is referenced
from P...
I sense this question is a bit like asking someone
A simple query for [A or B or C] against a KeywordIndex containing
27k objects is taking about 7 seconds on a Celeron 1.6Ghz, which seems
an absurdly long time to me.
The bit of the operation that is taking the time is the part of the
index which does a union of the results of each of the 3
Tim Peters wrote:
[Seb Bacon]
But main the reason I'm posting is to wonder if there any reason not
to use the multiunion operator instead of the union operator in
UnIndex.py... it should be faster, right? It seems a touch faster in
some informal tests.
[Casey Duncan]
Yes, it probably should
Casey Duncan wrote:
On Thu, 06 Nov 2003 19:11:55 +
Seb Bacon [EMAIL PROTECTED] wrote:
A simple query for [A or B or C] against a KeywordIndex containing
27k objects is taking about 7 seconds on a Celeron 1.6Ghz, which seems
an absurdly long time to me.
guess
This time may be caused
Casey Duncan wrote:
guess
This time may be caused by fetching from the database. If so, then the
only way to speed it up is increase the ZODB cache or get faster disks.
Try the former and see if it helps. /guess
Upping the cache speeds it up to something sane.
However, I don't understand why.
Jason Spisak wrote:
Zopistas,
My ZCatalog is fast as admin, but dog slow as anonymous and other users.
Anyone had this same experience? Details:
This is certainly to do with queries which run against FieldIndexes only
for anonymous users. This is something the CMF does (e.g. expires and
Hi,
Zope 2.7 introduced a change in its translation interface. Previously a
translation service could return None, but now returning None causes an
assertion error.
http://cvs.zope.org/Zope/lib/python/TAL/TALInterpreter.py.diff?r1=1.77r2=1.78
This will break applications (e.g. Plone1) which
On Thu, Feb 19, 2004 at 09:10:30AM -0500, Stephan Richter wrote:
On Thursday 19 February 2004 08:08, seb bacon wrote:
Zope 2.7 introduced a change in its translation interface. Previously a
translation service could return None, but now returning None causes an
assertion error.
http
Personally, I think Zope3 has a great future, and will pick up a much
larger community than Zope2 ever did, because it's better designed and
better documented.
In general, the people who stand to gain immediately (or pretty soon)
from Zope3 are enthusiasts; newcomers; and ZC.
However, if the
Joachim Werner wrote:
There are quite a few Zope-based CMS solutions out there, and most of
them are better than their commercial counterparts in many respects. But
if we had managed to start a joint CMS effort (other than CMF, which is
a failure by design) two or three years ago things would
Joachim Werner wrote:
I've proposed that a couple of times already. There are two problems in real
life:
1) Somebody has to take care of managing the project.
2) If politics take over, things will quickly fall apart.
I agree. I hope that Heimo Paul's session at EP will help work
through
Yves Moisan wrote:
A bit off topic here : browsing the repository, I thought it would be
nice if svn://svn.zope.org/repos/main/Zope3/trunk could be recognized as
a protocol by Mozilla.
http://protozilla.mozdev.org/
seb
___
Zope-Dev maillist -
):
# Return a path value for use in a cookie that refers
# to the root of the Zope object space.
return request['BASEPATH1'] or /
is there a good reason why this can't just return / as the cookie path?
Seb
--
[] j a m k i t
web solutions for charities
seb bacon
T: 020 7549
91 matches
Mail list logo