RE: [Zope-dev] JPython Product?

2000-11-08 Thread Bjorn Stabell
Somehow I think the other way around would be even more interesting: a Java application server accessing Zope (Jope?). The platform market is really tough, and competing with Java isn't easy. If you can't beat them, join them... I guess there are millions of reasons why it can't be done,

[Zope-dev] Multilingual websites

2000-12-18 Thread Bjorn Stabell
Hi there, I'm working on improving the support for multilingual websites in Zope. Already I've found some tools to be of great help: SiteAccess, Translator, and Transparent Folder (and zzLocale, although I'm mostly interested in ZODB objects). The Transparent Folder enabled me to separate the

[Zope-dev] Login updating database (so ZEO is slow)

2000-12-18 Thread Bjorn Stabell
Hi, We've been experimenting with ZEO for a few months. The intended use is to have a ZEO client on our LAN, one on the Internet backbone in China, and one in the US, but there are two problems preventing us from using it: 1. updates are very slow, slower than accessing the ZEO client closest

[Zope-dev] Using Python script to create ZClass instances

2001-04-11 Thread Bjorn Stabell
be some explanation somewhere how to access resources inside of Control_Panel, but I fail to find it. Creating objects is very confusing and difficult at times... Bye, -- Bjorn Stabell [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] h

RE: [Zope-dev] Using Python script to create ZClass instances

2001-04-12 Thread Bjorn Stabell
Message- From: Bjorn Stabell Posted At: Thursday, April 12, 2001 12:02 Posted To: Zope Developer Conversation: [Zope-dev] How do I call an HTMLFile in context provided by apath? Subject: [Zope-dev] Using Python script to create ZClass instances Hi there, Im having problems using Python

[Zope-dev] CoreSessionTracking 0.8 strangeness

2001-05-11 Thread Bjorn Stabell
. Regards, -- Bjorn Stabell [EMAIL PROTECTED] ___ 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-announce http

RE: [Zope-dev] CoreSessionTracking 0.8 strangeness

2001-05-12 Thread Bjorn Stabell
- From: Chris McDonough [mailto:[EMAIL PROTECTED]] Sent: Friday, May 11, 2001 20:47 To: Bjorn Stabell Cc: [EMAIL PROTECTED]; Exoweb Subject: Re: [Zope-dev] CoreSessionTracking 0.8 strangeness This is very odd, as cst depends on ZODB locking just like everything else in Zope, and uses the same

RE: [Zope-dev] CoreSessionTracking 0.8 strangeness

2001-05-13 Thread Bjorn Stabell
Stabell Cc: [EMAIL PROTECTED]; Exoweb Subject: Re: [Zope-dev] CoreSessionTracking 0.8 strangeness Bjorn, Is this entirely with cookies? Or are you using url-encoding anywhere? Does your application make use of frames or multiple windows? - C Bjorn Stabell wrote: Chris, It is definately

Randomness (RE: [Zope-dev] CoreSessionTracking 0.8)

2001-05-23 Thread Bjorn Stabell
of randomness. It gives me a very bad stomach feeling. I definately think it's something deeper than a CoreSessionTracking problem. Bye, -- Bjorn Stabell [EMAIL PROTECTED] -Original Message- From: Chris McDonough [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 20:34 To: Howard

RE: Randomness (RE: [Zope-dev] CoreSessionTracking 0.8)

2001-05-25 Thread Bjorn Stabell
site for you. It's quite refreshing to do a project for a sandwich shop, like we do now, but I hope we can get to the bottom of these disappearing cokes. :) Thank you for all the help. Open source sure beats the heck out of commercial solutions when it comes to support. Bye, -- Bjorn Stabell

Brought to you live: The Bug (RE: Randomness (RE: [Zope-dev] CoreSessionTracking 0.8))

2001-05-25 Thread Bjorn Stabell
By the way, Chris, you can see the bug in action at our site by going to: http://www.beijingsammies.com:7380/sammies/ The website has not been launched yet, so be careful guys. Also, don't try ordering, unless you're in Chaoyang district, Beijing, China. :) The site may be slow since

RE: Randomness (RE: [Zope-dev] CoreSessionTracking 0.8)

2001-05-25 Thread Bjorn Stabell
2001, Bjorn Stabell wrote: session = context.session_mgr.getSessionData() cart = session.get('shopping_cart', {}) sku = int(sku) if not cart.has_key(sku): cart[sku] = 0 if int(qty)0: cart[sku] = cart[sku] + int(qty) Could this be the same problem that I was experiencing

[Zope-dev] Personalization (was RE: [Zope-CMF] List of subject/metadata sets?)

2001-06-05 Thread Bjorn Stabell
to personalization. These are just thoughts; I don' thave any plans to implement personalization yet. I'd be happy to help others, though :) Bye, -- Bjorn Stabell [EMAIL PROTECTED] Exoweb -Original Message- From: Jon Edwards [mailto:[EMAIL PROTECTED]] Posted At: Tuesday, June 05, 2001 23:17

[Zope-dev] 60GB Data.fs?

2001-06-05 Thread Bjorn Stabell
see there are these options: - SQL method cacheing - Using StandardCacheManagers to cache Python and DTML methods - Using StandardCacheManagers to cache pages (using, e.g., Squid as an HTTP accelerator) - ZEO client object cacheing Any other ideas? Bye, -- Bjorn Stabell [EMAIL PROTECTED

[Zope-dev] RE: DTML-Python confusion (RE: [Zope] How to make a script return rendered dtml)

2001-06-13 Thread Bjorn Stabell
Wow, thanks Evan. I should've asked these questions a long time ago... From: Evan Simpson [mailto:[EMAIL PROTECTED]] From: Bjorn Stabell [EMAIL PROTECTED] How do you do dtml-with and dtml-let in a Python script? (I.e. put something on the namespace) You can't. Scripts can use the DTML

[Zope-dev] DTML-Python confusion (RE: [Zope] How to make a script return rendered dtml)

2001-06-13 Thread Bjorn Stabell
I've spent hours, maybe days, being confused about this as well. According to the Zope API documentation and ZDP at http://zdp.zope.org/projects/zfaq/faq/DTML/959888072 http://zdp.zope.org/projects/zsnippet/snippets/DTMLTags/CallingDTMLMetho ds someDTMLMethod(_.None, _) should

RE: [Zope-dev] Emailing html web pages: how can I render page as the anonymous user?

2001-10-07 Thread Bjorn Stabell
My favorite way is to support this is to create skins. We have two skins: printable emailable that fixes the standard_html_* stuff, and can even be used to override the content rendering at a deeper level, if needed (overriding document_view etc). We can use the same way to

[Zope-dev] ZCatalog searching for missing values

2001-10-08 Thread Bjorn Stabell
Hi all, We've installed Kavio's CatalogQuery product and are very happy with it. Haven't looked at the ZOQLMethod from iuveno yet, but both look like great steps in the right direction. I have one question: is it possible using a normal catalog query or Kavio's catalog query to check if a value

RE: [Zope-dev] ZCatalog searching for missing values

2001-10-08 Thread Bjorn Stabell
Having an exists function would be great. I was trying to do the same using CatalogQuery, but I found no way to check for Missing.Value, which is the repr() of what's in the catalog's metadata field for objects that don't have that attribute/function. I also ran into problems doing more complex

RE: [Zope-dev] ZCatalog searching for missing values

2001-10-08 Thread Bjorn Stabell
:33 To: Bjorn Stabell Cc: [EMAIL PROTECTED] Subject: RE: [Zope-dev] ZCatalog searching for missing values I just tried out ZOQLMethod as well. Couldn't get it to work, but it looks like really solid craftsmanship. I like the user-friendly way of selecting base object and the complete

RE: [Zope-dev] symbolic link patch

2002-02-18 Thread Bjorn Stabell
Well, this would be similar to the approach used by the PortableHole product. It's more like a hard link than symbolic link; if you run your site through ZSync, ZSync will unwind all the links and make separate copies. -Original Message- From: Maik Jablonski [mailto:[EMAIL PROTECTED]]

[Zope-dev] Manual object-to-relational persistency framework

2002-03-08 Thread Bjorn Stabell
Hello, I'm trying to use Zope without storing everything in ZODB while still having the perception of an object-oriented database. I want to control the object-to-relational mapping layer, but would like the loading and saving of objects to be automatic. Is there some way to do that using

RE: [Zope-dev] Manual object-to-relational persistency framework

2002-03-08 Thread Bjorn Stabell
] [mailto:[EMAIL PROTECTED]] Posted At: Friday, March 08, 2002 17:27 Posted To: Zope Developer Conversation: [Zope-dev] Manual object-to-relational persistency framework Subject: Re: [Zope-dev] Manual object-to-relational persistency framework On Friday, 8. March 2002 09:50, Bjorn Stabell wrote: I'm

RE: [Zope-dev] Why are ZClasses bad?

2002-04-03 Thread Bjorn Stabell
I would really like to see a hybrid between ZClasses and the CMF's portal_types, so that you can define methods in the Python class that you want portal_type instances of this class to be able to overload. I'm currently abusing the CMF portal_types' actions to overload methods of these types.

[Zope-dev] Python method wrapping around DTML method

2003-01-03 Thread Bjorn Stabell
?). Right now, I'm struggeling because I cannot get the namespace to be passed to PlainFunc, therefore PlainFunc cannot pass the namespace on to DTMLFunc. Any clues? Bye,-- Bjorn Stabell [EMAIL PROTECTED]Tel +86 (10) 65918490

[Zope-dev] Rendering of objects in DTML

2003-01-13 Thread Bjorn Stabell
Hello, When a content is rendered by the Zpublisher, its index_html() is called. When it is rendered in DTML, e.g., as dtml-var content, its __call__ method is called. The __call__ method is also called if the object appears in dtml-if content or dtml-with content. Is it possible to render

RE: [Zope-dev] Rendering of objects in DTML

2003-01-13 Thread Bjorn Stabell
Bjorn Stabell wrote: Hello, When a content is rendered by the Zpublisher, its index_html() is called. When it is rendered in DTML, e.g., as dtml-var content, its __call__ method is called. The __call__ method is also called if the object appears in dtml-if content or dtml

[Zope-dev] Weird batches produced by dtml-in

2003-02-11 Thread Bjorn Stabell
Hello, I'm trying to implement a Google-like pagination using the dtml-in batching system, and I'm getting some very strange results. Either I'm overlooking something obvious or there is a problem with dtml-in. See attached source code of simplified example that produces the strange results.

RE: [Zope-dev] Weird batches produced by dtml-in

2003-02-11 Thread Bjorn Stabell
. --On Dienstag, 11. Februar 2003 17:01 +0800 Bjorn Stabell [EMAIL PROTECTED] wrote: Hello, I'm trying to implement a Google-like pagination using the dtml-in batching system, and I'm getting some very strange results. Either I'm overlooking something obvious or there is a problem

[Zope-dev] Sporadic IOErrors...?

2003-04-03 Thread Bjorn Stabell
work again. Regards, -- Bjorn Stabell [EMAIL PROTECTED] Tel +86 (10) 65918490 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman

[Zope-dev] Conflict Errors; how to track them down?

2003-06-03 Thread Bjorn Stabell
Hi all, Except for SARS, another problem that's been plagueing us for months are seemingly random Conflict Errors. We see about 10 every day on our Zope 2.6.1, and they can happen on any page. In most cases they are not related to pages that actually updated anything (AFAIK), although we do use

[Zope-dev] Bad reference to ... how to find object references?

2003-06-03 Thread Bjorn Stabell
\x00\x00 \x00\x0b\x9e\xb7', '') -- 2003-06-03T00:55:27 ERROR(200) ZODB FS FS21 ERROR: Bad reference to ('\x00\x00\x00\x00 \x00\x0b\x9e\xb8', '') -- 2003-06-03T00:55:27 ERROR(200) ZODB FS FS21 ERROR: Bad reference to ('\x00\x00\x00\x00 \x00\x0b\x9fy', '') -- Bye, -- Bjorn Stabell

RE: [Zope-dev] Conflict Errors; how to track them down?

2003-06-03 Thread Bjorn Stabell
On 06/02/2003 11:08 PM, Bjorn Stabell wrote: Except for SARS, another problem that's been plagueing us for months are seemingly random Conflict Errors. We see about 10 every day on our Zope 2.6.1, and they can happen on any page. In most cases they are not related to pages

RE: [Zope-dev] Sporadic IOErrors...?

2003-04-06 Thread Bjorn Stabell
to the first place. :) -Original Message- From: Shane Hathaway [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 23:41 To: Bjorn Stabell Cc: [EMAIL PROTECTED] Subject: Re: [Zope-dev] Sporadic IOErrors...? Bjorn Stabell wrote: Hi Zope gurus, After upgrading to Zope 2.6.1

[Zope-dev] Strange bug(?) accessing File objects

2003-09-02 Thread Bjorn Stabell
Hi, Has anyone encountered this problem: When accessing File objects that are not accessible to Anonymous (HTTP and WebDAV View permissions not given), the Basic HTTP Auth window pops up repeatedly even after the user has logged in using the cookie crumbler method, and the user has permissions

[Zope-dev] Re: Caching prob with AHCM and headers

2003-09-10 Thread Bjorn Stabell
Accelerated HTTP Caching Manager doesn't work out-of-the-box as this thread reported, but the thread had no conclusion: http://mail.zope.org/pipermail/zope/2003-April/134800.html http://mail.zope.org/pipermail/zope/2003-April/135059.html http://mail.zope.org/pipermail/zope/2003-April/135101.html

RE: [Zope-dev] AW: Caching prob with AHCM and headers

2003-09-10 Thread Bjorn Stabell
Carsten wrote: Well, sadly I didn't find the time to pursue the issue any further yet. We're kneedeep in work to get the system up and running and caching isn't top priority so far. I don't even know if someone patched the AHCM yet, simply haven't looked. But as someone suggested

[Zope-dev] Etag support in page templates

2003-09-11 Thread Bjorn Stabell
Janko wrote: I think, this is one problem with the current code. There is no defined way to decide, when something is last modified. With CMF-based sites there is a clearly defined property for this. On the other hand all objects have at least a bobobase_modification_time, but this one

[Zope-dev] [Summary] Caching prob with AHCM and headers

2003-09-12 Thread Bjorn Stabell
, -- Bjorn Stabell [EMAIL PROTECTED] Tel +86 (10) 65918490 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope

[Zope-dev] Unicode encoding/decoding

2003-10-07 Thread Bjorn Stabell
How does Zope handle Unicode encoding/decoding of non-UTF8 encodings? I see encoding/decoding functions popping up in products (e.g., Archetypes), but I thought Zope already had this covered? Bye, -- Bjorn ___ Zope-Dev maillist - [EMAIL PROTECTED]

RE: [Zope-dev] Etag support in page templates

2003-11-02 Thread Bjorn Stabell
Just FYI. Apache 2.0.48 now honors caching of pages which only have Expires set (no need to include Etag and/or Last-Modified), but the 1.3 team hasn't responded and so 1.3.29 still has the bug. With mod_deflate site-wide compression of text/html etc, I guess it's enough candy there for me to

[Zope-dev] Where did __traceback_info__ go?

2003-12-21 Thread Bjorn Stabell
I upgraded to 2.7b3, and it looks quite solid! I have one problem, though: I can't find the full tracebacks that include __traceback_info__ anywhere! I used to start up Zope in debug mode, so I'd get everything sent to stdout. Now, stdout just contains some startup stuff; doesn't even contain

RE: [Zope-dev] Where did __traceback_info__ go?

2003-12-21 Thread Bjorn Stabell
Dieter: Bjorn Stabell wrote at 2003-12-21 23:49 +0800: I upgraded to 2.7b3, and it looks quite solid! I have one problem, though: I can't find the full tracebacks that include __traceback_info__ anywhere! They are not in http://yourZope/error_log? No, the error, UnicodeError, doesn't

[Zope-dev] ESI support

2004-01-12 Thread Bjorn Stabell
Any news on Zope support for ESI? http://mail.zope.org/pipermail/zope-dev/2003-January/018619.html http://www1.cn.squid-cache.org/mail-archive/squid-dev/200208/0047.html From what little I can gather from the Squid mailing lists, it looks like ESI support is materializing in Squid. Bye, -- Bjorn

RE: [Zope-dev] ESI support

2004-01-12 Thread Bjorn Stabell
Jens: Zope does not need ESI support - You can write ESI statements in your templates without specific support from Zope. Yes, but I think they were planning to make it easier from DTML/ZPT, a la JSP's ESI library. ___ Zope-Dev maillist - [EMAIL

[Zope-dev] How to make Zope fail nicely under high load?

2004-02-11 Thread Bjorn Stabell
for it, and Apache's ProxyPass doesn't either. I guess load balancers would, but that's a bit overkill since we run the server on one machine. Regards, -- Bjorn Stabell [EMAIL PROTECTED] Tel +86 (10) 65918490 ___ Zope-Dev maillist - [EMAIL PROTECTED

RE: [Zope-dev] How to make Zope fail nicely under high load?

2004-02-11 Thread Bjorn Stabell
Bjorn Stabell wrote: Basically, when the load gets high, Zope has a huge backload of work (several minutes of requests), making the average latency for each request many minutes. What are effective ways to do this kind of overload management so that the backlog of work doesn't get

RE: [Zope-dev] How to make Zope fail nicely under high load?

2004-02-11 Thread Bjorn Stabell
Toby wrote: [...] Zope's ZServer manages a queue of requests that have been recieved over http, but not dispatched to the publisher. This is handled in PubCore/ZRendezvous.py. I suspect this queue will be holding your backlog. You might get some benefit from capping the length of that

RE: [Zope-dev] How to make Zope fail nicely under high load?

2004-02-11 Thread Bjorn Stabell
Toby wrote: Hmm, yes. ZRendezvous doesnt have any choice but to queue up the request. Handling the request at that point could cause problems because the support for pipelined http requests might cause another recursive call to ZRendezvous.handle, and deadlock. You need to handle it

RE: [Zope-dev] How to make Zope fail nicely under high load?

2004-02-11 Thread Bjorn Stabell
Richard Jones wrote: On Thursday 12 February 2004 01:23, Casey Duncan wrote: What kinds of requests are these? Do they all require a dynamic output? If not, then you should put better caching in front of Zope, or at a minimum tweak you caching headers so that some could be served as

RE: [Zope-dev] How to make Zope fail nicely under high load?

2004-02-11 Thread Bjorn Stabell
Bjorn wrote: I wonder if Zope also processes requests that have been closed from the client end? I know Zope will continue processing a request even if it times out at least (so you can do long-running requests, like packing, through the web). Many (all?) of these 300 requests would

RE: [Zope-dev] How to make Zope fail nicely under high load?

2004-02-11 Thread Bjorn Stabell
Jamie writes: Lennart Regebro wrote: OK, you get the problem that images may not load even if the main page does, but is that really worse for the end user than not getting anything? As I've been saying, if you do that, they will reload repeatedly making the problem worse. If the

RE: [Zope-dev] How to make Zope fail nicely under high load?

2004-02-12 Thread Bjorn Stabell
Toby wrote: One of the optimization we're thinking of is storing results of ZCatalog searches (e.g., number of replies to postings) in volatile variables so we don't have to run the catalog search at all. We'd like to use memory space shared between threads for this. Using ZEO

RE: [Zope-dev] How to make Zope fail nicely under high load?

2004-02-12 Thread Bjorn Stabell
Erik: using the _v_ variables won't work for this since different threads won't agree on who was latest. Its definitely a bad idea to do queries for these three data points. What about putting them in the temp_folder then you can still use ZEO with a bunch of clients that will all

RE: [Zope-dev] How to make Zope fail nicely under high load?

2004-02-12 Thread Bjorn Stabell
Jan-Wijbrand wrote: [...] You are able to store *and* share data over ZEO Clients in a TemporaryStorage by making the ZSS serve this TemporaryStorage to its ZCs. You could mount this storage as temp_folder I guess, but any other mount point would work too. Col :) Not sure, but

[Zope-dev] Proposal (was How to make Zope fail nicely under high load?)

2004-02-19 Thread Bjorn Stabell
I wrote up a simple proposal for how to change Zope to work better under heavy load: http://zope.org/Members/bjorn/proposals/MakeZopeFailNicelyUnderHeavyLoad The solution is a bit different from what we discussed on the list before; basically do away with the Medusa request queue altogether

RE: [Zope-dev] Proposal (was How to make Zope fail nicely under highload?)

2004-02-19 Thread Bjorn Stabell
Toby wrote: On Thursday 19 February 2004 11:18, Bjorn Stabell wrote: [...] The solution is a bit different from what we discussed on the list before; basically do away with the Medusa request queue altogether and use listen()'s backlog instead. Last week you were keen that medusa keep

[Zope-dev] TCPWatch or other such tool

2004-03-04 Thread Bjorn Stabell
Title: Message Has anyone gotten TCPWatch to work recently? Using Python2.1/2.2/2.3 I get: Unhandled exception in thread started by function window_loop at 0x402877d4Traceback (most recent call last): File "/zope/opt/bin/tcpwatch.py", line 656, in window_loop app.mainloop() File

RE: [Zope-dev] TCPWatch or other such tool

2004-03-04 Thread Bjorn Stabell
Shane wrote: [...] Other people have reported this, but I can't reproduce it. I've been using tcpwatch on Python versions 2.1 through 2.3 without a hiccup. Are you using Linux? If so, what distribution? As a workaround, you can use -s to dump to stdout. Thanks. I was running it on

[Zope-dev] Unicode in Zope 2 (ZMI, Archetypes, Plone, Formulator)

2004-04-26 Thread Bjorn Stabell
) :) I'll be willing to contribute patches, but since this applies to so many products, it would be good to get some consensus first. At the very least, can we create a Standard Unicode Practices page? Bye, -- Bjorn Stabell mailto:[EMAIL PROTECTED

[Zope-dev] RE: [Archetypes-devel] Unicode in Zope 2 (ZMI, Archetypes, Plone, Formulator)

2004-04-26 Thread Bjorn Stabell
--On Montag, 26. April 2004 10:53 Uhr +0200 David Convent [EMAIL PROTECTED] wrote: I always believed that unicode and utf-8 were same encoding, but reading you let me think i was wrong. Can you tell me what the difference is between unicode and utf-8 ? Andreas Jung wrote: Unicode is

[Zope-dev] RE: [Archetypes-devel] Unicode in Zope 2 (ZMI, Archetypes, Plone, Formulator)

2004-04-26 Thread Bjorn Stabell
None of the above components handles Unicode in this way, but it seems to be how the Unicode support in Zope 2 was meant to be used. Martijn wrote: You're actually wrong about Formulator. :) Apologies. We were using older versions of Formulator before, and I was just doing code inspection