Re: [Zope] http protocol

2001-01-31 Thread Toby Dickenson

On Fri, 26 Jan 2001 09:17:02 +0100, Oliver Vecernik <[EMAIL PROTECTED]>
wrote:

>Hi all,
>
>I'd like to write an http client for an embedded system to get
>information from Zope. For debugging I want to see the traffic between
>the client and Zope (http protocol). How can this be achieved?

One option is a debugging http proxy I like
http://www.cyberclip.com/webdebug/index.html

Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Re: Some help required but no sarcastic comments this time please

2001-01-24 Thread Toby Dickenson

On Wed, 24 Jan 2001 09:33:16 -0600, "Alan Capesius"
<[EMAIL PROTECTED]> wrote:

>I would also recommend NOT using Win9x for ANYTHING. I always use NT. 

There are those of us who use Zope in desktop applications too (yes
really), where Win9x is not an unreasonable choice.


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




RE: [Zope] Python Products and ZODB Transactions

2001-01-23 Thread Toby Dickenson

If your method changes data then it will always get saved. The only way is
to make sure your method never modifies a persistent object.

> -Original Message-
> From: Stephan Richter [mailto:[EMAIL PROTECTED]]
> Sent: 23 January 2001 11:11
> To: [EMAIL PROTECTED]
> Subject: Re: [Zope] Python Products and ZODB Transactions
> 
> 
> 
> >Use the tranalyzer to see which objects are being commited. 
> They think
> >they are being modified, even if you dont think they should be.
> 
> Okay, I found the methods and they are sometimes changed. But now, it 
> should NEVER save the transaction. Is there a way to do that?
> 
> Regards,
> Stephan
> --
> Stephan Richter
> CBU - Physics and Chemistry Student
> Web2k - Web Design/Development & Technical Project Management
> 

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Python Products and ZODB Transactions

2001-01-23 Thread Toby Dickenson

On Tue, 23 Jan 2001 03:28:34 -0600, Stephan Richter <[EMAIL PROTECTED]>
wrote:

>Hello everyone,
>
>wow, I haven't posted here for a while now, but now I came to a bigger 
>problem and I hope someone of you will have some suggestions:
>
>I built a Python Product that saves and gets data from a RDB. Whenever a 
>method is called from my Python Product, the ZODB saves the transaction, 
>even though the object was not modified at all. I really would like the 
>ZODB to never save any of my Products actions. Any ideas?

Use the tranalyzer to see which objects are being commited. They think
they are being modified, even if you dont think they should be.

http://www.zope.org/Members/tsarna/Tranalyzer


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Caching/http-acceleration and proxying Zope-served con tent

2001-01-10 Thread Toby Dickenson

On Mon, 08 Jan 2001 14:34:20 -0800, [EMAIL PROTECTED] wrote:

>If it supports the ability to direct traffic
>based upon the virtual host address, then squid works

Yes, squid can do this using a redirector; an external program to
rewrite urls.

Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Caching/http-acceleration and proxying Zope-served content

2001-01-09 Thread Toby Dickenson

On Tue, 9 Jan 2001 09:31:35 +0100 (CET), Peter Sabaini
<[EMAIL PROTECTED]> wrote:

>actually i use a combination of squid / apache because i need some
>re-writing, you could as well use squid for caching and apache for
>(name-based) virtual hosting. this of course introduces additional
>latency, but this shouldnt be a problem if your objects are fairly
>cacheable, ie. most content would be served out of squid anyway.

That's an interesting configuration. For a while Ive been considering
a solution based on longer-than-usual chains of http proxies, and a
"do one thing well" principal. In my case:

Apache (for rewriting and SSL)
  -> Squid accelerator
   -> A custom load-balancing redirector
-> Multiple Zopes

Have you had any significant latency, or other problems?

Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Non-ASCII-form-input -> HTML-entities?

2001-01-03 Thread Toby Dickenson

On Wed, 3 Jan 2001 10:33:20 +0100, "Markus Kemmerling"
<[EMAIL PROTECTED]> wrote:

>I would like to have users being able to enter german vowels

Your suggested solution is a good one if you know all your users are
german, all using the same browser, all with the correct german
configuraton.

If not, I strongly recommend using pages encoded in utf-8, and storing
your field values as unicode. Everything will then work happily for
non-germans too.

Standard Zope can't do this yet, you will need the patches at
http://www.zope.org/Members/htrd/wstring

Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] downgrading from 2.1.x from 2.2.0 to use NTuser authentication

2001-01-02 Thread Toby Dickenson

On Wed, 20 Dec 2000 13:15:22 -0800, Erik Myllymaki
<[EMAIL PROTECTED]> wrote:

>I would really like to use the jc/ntuserfolder products but see that they
>haven't been brought up to speed with the new 2.2.x security model. Will
>downgrading to 2.1.x render my site inaccessible? What will I have to change
>security wise so I can use these pages from the old version?
>
>Alternatively, I might take a stab at bring the jc/ntuserfolder up to date
>with the new security model - any insight from those in the know
>appreciated(am I underestimating that task?).

[You should be able to find several references to this in the
archives.]

Firstly, these old XXXUserFolder products still work acceptably unless
you are using the PTK (or other similar products). The incompatability
is not with Zope, but rather with these other products.

Adding to NUserFolder to keep up with API changes is probably not the
best solution, because the User Folder API has been significantly
extened. A better approach is to use a customisable User Folder
product like LoginManager.

It should be possible to transplant the authentication functions from
NTUserFolder. Ive not tried this, but it looks easy enough.

I hope this helps,

Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] charset from forms input

2000-12-15 Thread Toby Dickenson

On Thu, 14 Dec 2000 09:45:53 +1300, Matt <[EMAIL PROTECTED]>
wrote:

>Hi, I seem to have come across the depressing fact that most browsers
>will not return a charset parameter in the http header when a form is
>submitted.  For example, the following from Netscape ... (it happens
>with both IE and Netscape on many platforms I have tried ... Mac, all
>Windows, and Linux).

Yes, this is indeed a problem.

I have developed some patches to support Unicode in ZPublisher which
uses a technique where the character encoding is added to the form
field name (where ZPublisher already expects other marshalling
information)

For example if you have a form with fields named...
address:string
age:int
...you would change those to...
address:utf8:string
age:utf8:int
if you are expecting your form response to be submitted in utf8.
Under this patch, you could also change that field to.
address:utf8:ustring
and store your addresses in unicode.

It is possible to guess what character encoding will be used in a form
response. The situation isnt quite as simple as Dieter Maurer
suggested, but the rules (as I understand them from experimentation)
are in the release notes for this patch.

If anyone knows a better way, I would love to know too.


http://www.zope.org/Members/htrd/wstring

Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Zope (after) install problems

2000-12-15 Thread Toby Dickenson

On Mon, 11 Dec 2000 10:16:31 +0100, "Kai Hofmann" <[EMAIL PROTECTED]>
wrote:

>I installed Zope 2.2.2 with Python 1.6 (incl. threads) under Solaris 2.6 

Is there a reason you cant use Python 1.5.2 or 2.0?

(python 1.6 has many known bugs)

Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




[Zope] Re: [Zope-dev] IE5 / Medusa bug?

2000-12-15 Thread Toby Dickenson

On Thu, 14 Dec 2000 22:10:20 +, seb bacon <[EMAIL PROTECTED]> wrote:

>I'll continue my research by eliminating elements until I've nailed down
>exactly the bit that's messing it up.  Right now, though, I have to go
>to bed.  Meanwhile, any comments?


Something very strange is going on.

I am accessing the page using 

* IE (5.50.4134.0600) - I do see the " in the page source

However, both browsers are using a Squid proxy cache, so I can check
the size of content transferred by each request Both browsers are
transferring 4561 bytes.

I hope this helps,

Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Large XML files

2000-12-06 Thread Toby Dickenson

On Tue, 5 Dec 2000 23:02:38 -, "Phil Harris"
<[EMAIL PROTECTED]> wrote:



>The XMLDocument type is rather 'expensive' and you may be able to 'get away'
>with using a simpler type such as DTMLDocument.

Simpler, but thats not necessarily an advantage. DTMLDocument will
store the whole document in memory, but XMLDocument uses ZODB
effectively so that it only loads the DOM nodes that are in use.

If you are always using the *whole* document then this is no help, and
simpler may indeed be better.

>From: <[EMAIL PROTECTED]>

>> I am testing the possibilities of delivering the content of  XML Documents
>> through the Zope environment.  Unfortunately, some of the proposed file
>are
>> rather large (up to 760KB) and just uploading them and viewing them on our
>> current Zope server is prohibitively slow.  Our server, running Z2 is a
>> blazing P133 running NT 4.0 with 32 MB of RAM (I get the bottom feeders).
>> Is the bottleneck the hardware; is there something I can do software-wise
>> to improve performance; or is development not yet advanced enough to
>handle
>> this scenario efficiently? Any opinions on this?

For a machine of that size I suggest you use only one publisher thread
(thats -T 1 on the command line), rather than the default of 4. Each
thread gets a copy of the ZODB object cache, and you probably dont
want to keep four copies of your 700k document in memory.

Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] jcNTUserFolder on 2.2.x

2000-11-21 Thread Toby Dickenson

On Mon, 20 Nov 2000 14:20:41 -0800, "Andy McKay"
<[EMAIL PROTECTED]> wrote:

>Is there an updated version or product similar to jcNTUserFolder (allowing
>NT authenitcation in Zope) that works in Zope 2.2.x? Or am I going to have
>to upgrade jcNTUserFolder?

Both jcNTUserFolder and NTUserFolder (Which I maintain, and from which
jcNTUserFolder forked) do not fully integrate with 2.2's security
machinery. Tackling this deficiency is on my to-do list too, but I
wont be upset if someone else does the work first.

API changes in 2.2 (and future developments, like PTK) make custom
user folders less attractive than they used to be. If you intend
committing some time to this then I recommend something based on
http://www.zope.org/Members/tsarna/LoginManager

The simplest change would be to transplant the authentication code out
of (jc)NTUserFolder and into LoginManager methods. However that would
still only run on NT.

A solution that runs on linux and solaris only is oulined at
http://www.zope.org/Members/tseaver/LoginManager_and_SMB. My ideal
solution (that I still hope to find time for) would be to do whatever
is needed to get this option running on NT and 95 too.

I hope this is of some help.

Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Dr.Watson on NT

2000-11-16 Thread Toby Dickenson

On Fri, 10 Nov 2000 17:54:37 WET, "Júlio Dinis Silva"
<[EMAIL PROTECTED]> wrote:

>Hi all,
>Is there a NT guru in the house :-)

Last time you asked exactly the same question I pointed you to
Microsoft's Knowledge Base articles Q188296 and Q103861. In what way
do these not help?

Have you tried deleting the AeDebug/Debugger registry key, and setting
AeDebug/Auto to 1 to inhibit this dialog for your whole system?

Have you tried SetErrorMode(SEM_NOGPFAULTERRORBOX) (in the win32
python extensions) to inhibit this dialog for this one process?


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] CMS/publishing system

2000-11-03 Thread Toby Dickenson

On Thu, 2 Nov 2000 08:45:12 -0600 , Pete Prodoehl
<[EMAIL PROTECTED]> wrote:

>How well does Zope integrate applications/cgi's written in ASP, Cold Fusion,
>Perl, etc...? As we've got a number of things we'd prefer to keep as is, and
>run alongside Zope.

How much integration do you need?

You say "run alongside". is it enough to run Zope and CF behind
the same Apache? Apache integrates the two in a single URL namespace,
but keeping the application logic separate?



Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] ZServer log buffer?

2000-11-03 Thread Toby Dickenson

On Thu, 02 Nov 2000 21:16:07 WET, "Júlio Dinis Silva"
<[EMAIL PROTECTED]> wrote:

>Supose you are saving z2.log on a mounted disk, either nfs linux or a WinNT 
>cluster network name. If for some seconds that mounted disk became 
>unavailable, isnt supose ZServer log system to buffer a little until the 
>mounted resource became available again?
>I'm dealing with the problem that z2.log "write system" on NT are giving me 
>a IOError when the resource becames unavailable for some seconds.

Why not get Zope to log into local storage, and merge the logs
offline.


>If there isnt anything already to fix this, wouldnt be good if ZServer 
>buffer a "little" until the resource became available and in the case the 
>resource just completelly cease to be then ZServer just stop to write logs, 
>instead of killing the process raising the exception?

You can think of the local log as a buffer, if you prefer ;-)


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Zope and Python 2.0

2000-11-02 Thread Toby Dickenson

>I think we're reaching a point where we'll soon be able to release a
>Python 2.0-compatible Zope source distribution, but you're right in that
>none of the current ones work properly with Python 2.0.
>
>Xavier Defrang wrote:
>> 
>> Hi folks,
>> 
>> I've just downloaded Zope source code to rebuild it on a FreeBSD-4.1 box.
>> 
>> Is Zope-2.2.2 so tightly coupled to Python-1.5.2 that It doesn't run with
>> Python 2.0...

Yes, Zope needs a cPickle newer than the one in 1.5.2, but the one in
2.0 is newer still.

Remove the reference to cPickle and cStringIO, and everything* will
compile and run ok.

>>I've got a system-wide installation of Python 2.0 and the
>> ./start scripts fails.  I made a local installtion of Python 1.5.2 just to
>> run Zope.  I changed the path the Python interpreter in the start shell
>> script but it looks like Medusa's asyncore.py can't find tjhe FCNTL
>> module...

* for a suitable small definition of 'everything' ;-)

Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Zope & python 2

2000-11-02 Thread Toby Dickenson

On Mon, 30 Oct 2000 09:50:16 +1100, Curtis Maloney
<[EMAIL PROTECTED]> wrote:

>Hmm.. well, that's good to know... which products have you tried it with so 
>far?

Only my own ;-)

>> >And from the looks of things there are a large number of small changes
>> > that could be made to improve performance (such as the new 'augmented
>> > assignment' operators [ += *= /= and so on] )
>>
>> It seems likely that they will not be available in dtml (for the same
>> reasons as regular assignment). The case for PythonMethods has not yet
>> been investigated
>
>I didn't mean to dtml, I meant to all the Python code underneath.  I'm sure 
>you've noticed there is a lot more to Zope than just DTML and Python methods.

Like what?

Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] How small a box can zope run on?

2000-11-02 Thread Toby Dickenson

On Fri, 27 Oct 2000 09:39:54 -0600, Bill Anderson <[EMAIL PROTECTED]>
wrote:

>What OS is this on?

All of them ;-)

>On Linux each thread does _NOT_ get a copy of the
>ODB. It just _looks_ like it.

I suspect you are referring to the characteristic that several Linux
memory-reporting tools list the memory used by one Zope process once
for each thread.

That's not the characteristic I am referring toEach zope publisher
thread really does have its own copy of the ZODB object cache.

You can verify this by checking the value "Total number of objects in
all of the caches combined" from Control Panel. This number should be
roughly (number of threads) * (target size), although there are many
factors that can affect it.

>See the archives for details. The benefit
>from smaller thread counts is that:
>A) Multiple threads is not a big boost on uniprocessor machines

This is only true if Zope is saturating your processor. It may not be
true if you are publishing any methods that are mostly I/O (file
access, or other web requests)

>B) Python does some different things with threads, see the Global
>Interpreter Lock for details. Changin the realted value in Zope will
>acheive differing levels of performance.

Yes


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] How small a box can zope run on?

2000-10-26 Thread Toby Dickenson

On Wed, 25 Oct 2000 18:43:57 +0200, "Alexander Limi"
<[EMAIL PROTECTED]> wrote:

>We are building some device controller software and to control those we have
>a normal 486 with 24MB RAM running linux. Has anybody tried running zope on
>such a modest setup? There is only going to be one or two users connected to
>Zope at once, so we don't need much performance in terms of page views per
>second :)

Yes, Im using Zope in a similar scenario and it works well.

I found a benefit in using a smaller number of publisher threads (I
use -T 2 ). Each thread gets its own copy of the ODB, which is an
unnecessary memory hog for the expected load.


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Zope & python 2

2000-10-26 Thread Toby Dickenson

>> Hi all
>>
>> Is anyone using or know the current state of Zope with python 2.0 ?
>
>I've been somewhat curious about this myself.

The current release of Zope works well on python 2.0. If you are a
cautious type, you might not want to use it on a production server
yet. (I would certainly recommend you dont if you allow untrusted
users to write dtml)

>Will there need to be large changes now that strings are proper objects? (the 
>string functions are now methods of strings).  If so, will this mean the 
>phasing out of _.string ?

_.string is unlikely to go away.

String methods are currently inaccessible TTW. The security
implications of opening this up have not yet been assessed.

>Will the new Unicode support, does this mean Zope is now a big step closer to 
>i18n?

My patches to give Zope full (full enough for me) unicode support are
at http://www.zope.org/Members/htrd/wstring.

>And from the looks of things there are a large number of small changes that 
>could be made to improve performance (such as the new 'augmented assignment' 
>operators [ += *= /= and so on] )

It seems likely that they will not be available in dtml (for the same
reasons as regular assignment). The case for PythonMethods has not yet
been investigated

>watching closely,

Not closely enough ;-)



Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] problem(100) ZServer Computing local hostname on windows install

2000-10-25 Thread Toby Dickenson

On Tue, 24 Oct 2000 15:38:43 -0400, "Richard Lanham"
<[EMAIL PROTECTED]> wrote:

>then it says:
>ZServer Medusa (V1.16.4.3) started at... timestamp...
> hostname: dsl1254-096...isp.net
> Port:8080

your http server is on 8080

>Monitor Server starts on port 8099

and the monitor is on 8099

>http://localhost:8099/manage

So that url should http://localhost:8080/manage



Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] bobobase_modification_time and .zexp

2000-10-18 Thread Toby Dickenson

On Tue, 17 Oct 2000 21:25:18 +0200, "Wolfgang Strobl" <[EMAIL PROTECTED]>
wrote:

>> Wherever I need information when the page has been created, I use my
>> creationTime attribute.
>
>Sure. For your own creations it's somewhat easier, just create your 
>own timestamps. But what about existing content. Say: what if you 
>have a Yihawdirectory which has grown for a while, plus a 
>collection of Zwikis scattered over various Zopes, which I want to 
>move into a a single new, but already existing on a bigger, greater 
>and better server? 

Zopes existing 'find' mechanism lets you apply an operation to all the
objects that it matches - use that to patch your existing objects to
the new schema.

>> I do not know how to implement 'modificationTime' attribute (or
>> better: how to change it whenever someone edits or uploads the
>> document).
>
>Well, for a moment I considered hacking ExportImport.py, but it's 
>not obvious. That's why I'm asking whether somebody perhaps 
>already has solved the problem.
>
>There is the option of stripping all the various data.fs and combining 
>them via mounting, but this is far from elegant, if it works at all. 

bobobase_modification_time returns the timestamp of the transaction
containing the most recent copy of the object. timestamping is
fundamental to ZODB. For this alone to work you will need to keep the
objects in separate data.fs files forever.


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Re: Upload just file headers?

2000-10-12 Thread Toby Dickenson

On Wed, 11 Oct 2000 15:41:16 -0700 (PDT), knight
<[EMAIL PROTECTED]> wrote:

>infilename = REQUEST.form['attached_file'].filename  # Get filename
>infile = REQUEST.form['attached_file'] # Get the file descriptor
>myheader = infile.read(500)# Read up to 500 bytes
>infile.close() # Close the stream
>
>This should be in an external method or product.
>
>I haven't tested whether or not this will only let the client upload the
>first 500 bytes

Im sure it wont

>it's very possible zope takes in the entire file, and
>puts it into a buffer that is like a file descriptor (hence StringIO).

File uploads are spooled into a temporary file, and the request is
only dispatched into Zope once the whole request has arrived.

Anything smarter than that will require some ZServer hacking.


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Zope.org Feature Request - Product Download Counter

2000-10-11 Thread Toby Dickenson

On Tue, 10 Oct 2000 16:15:44 -0400, mindlace <[EMAIL PROTECTED]>
wrote:

>Andy McKay wrote:
>> 
>> Of course the only problem with a hit counter is that high traffic requests
>> mean continually writing the object into the ZODB each time it gets hit /
>> downloaded, whatever. Thats why I release FSCounter which uses the file
>> system. I would like to expand this to cover multiple objects...
>
>The problem is slightly more complicated than this:  We have Apache
>cache file and image objects.  This is a good thing, because they are
>static, and Apache will *always* be better than Zope at serving static
>content. This is a bad thing, because direct requests for files don't
>ever make it to Zope.

FYI, there is a (mostly successful) way around this if you dont worry
about Zope having to serve up a 304 response for this request. set
the following header.

Cache-Control: public, s-maxage=0, proxy-revalidate

Caches will cache the content, but always revalidate it before using
the cached reply. 


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Still need help about Product namespace

2000-10-10 Thread Toby Dickenson

On Tue, 10 Oct 2000 10:51:09 +0200, Pierre-Julien Grizel
<[EMAIL PROTECTED]> wrote:

>I still need help about my product needing to know its namespace...

You also need to read the answers already provided.

http://www.zope.org/Members/htrd/howto/FunctionTemplate


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




RE: [Zope] Access Control vs Publishing Protocol

2000-10-09 Thread Toby Dickenson

> It seems like this can be handled rather well by simply
> adding a 'XML-RPC access', a 'SOAP access' and a 'WebDAV
> access' set of permissions. we already have a 'FTP access'
> permission  which works fine.

Not quite.

That permission controls several methods that are particularly useful for
FTP (indeed, you cant do FTP without them). However you could also call
those methods using xml-rpc, soap, or ZPublisher (or, not, depending on the
whether you have the 'FTP access' permission).

Your suggestion makes sense for WebDAV which, like FTP, only uses a small
set of methods. I dont think its appropriate for a more flexible protocol
like xml-rpc, soap, or ZPublisher.

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Zope in Windows is faster than Linux ???

2000-10-09 Thread Toby Dickenson

>> We have been stress testing our Zope application on NT and Linux. Our
>> conclusion is that OS is not a factor in Zope performance.

>Can we see some profiling data from that to support your statement?

Its all application-specific, and theres nothing I can release at the
moment. Essentially the timings were all within a 15% band after a
little tweaking.

Personally I don't think this result is at all suprising: In a loaded
Zope system the processor spends all its time executing the python VM,
not OS code.


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Zope in Windows is faster than Linux ???

2000-10-09 Thread Toby Dickenson

On Sat, 07 Oct 2000 01:57:40 +0200, "Ansgar W. Konermann"
<[EMAIL PROTECTED]> wrote:

>Definitely, yea!
>
>> I would really be interested in its correct results.

We have been stress testing our Zope application on NT and Linux. Our
conclusion is that OS is not a factor in Zope performance.

Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] status of SOAP for Zope?

2000-10-09 Thread Toby Dickenson

On Fri, 6 Oct 2000 11:20:38 -0400, "Brian Lloyd" <[EMAIL PROTECTED]>
wrote:

>This is a very important point - I think people would rather 
>be able to implement SOAP services selectively rather than 
>by One Big Switch that may expose just about anything. I would 
>very much like to see a project started on dev.zope.org that 
>starts off by drafting a "user manual" that describes how SOAP 
>services would be implemented from the standpoint of a Zope 
>developer. This would give us a good way to come to agreement 
>without worrying about code just yet. 

Ive been considering this point of view over the weekend, and I think
I disagree. Zope already has a perfectly good definition of 'web
service' - the definition used by ZPublisher and the xml-rpc
implementation (and FTP, to a lesser extent).

Developing Zope services already involves enough detail - An extra
layer of abstraction here is undesirable.

I suspect many people using xml-rpc are, like me, not completely
satisfied with its feature set. Id been looking to soap to fill these
holes, and I would be disappointed if soap wasnt implemented in the
same way.

>Some attention should be given to how SOAP services get exposed by 
>other systems at this point (they do *not* just suddenly expose 
>every in-memory object to SOAP).

And that's plainly not the case for Petru Paler's soap implementation
- he only exposes the same objects and methods exposed by ZPublisher.

>There are a number of people 
>who have recently voiced their (legitimate) concern that by 
>default *practically everything* on their site is xml-rpc 
>enabled

Those people were concerned that too many things were exposed via
ZPublisher also My interpretation was that the issue is one of
access control, not publishing protocol.



Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] _ in a product

2000-10-05 Thread Toby Dickenson

On Thu, 05 Oct 2000 16:03:24 +0200, Pierre-Julien Grizel
<[EMAIL PROTECTED]> wrote:

>Correcting my earlier post, I'd "simply" like to have a way to get the _
>(namespace) variable in a product method.
>Currently, I use the following syntax :
>
>
>
>to pass _ to my product.
>
>It works, but. Reminds me of the great times when my hammer was the
>dtml-method..
>
>
>
>
>Has anyone a way to acquire _ in a product without constrainging the
>user to pass it explicitly ??

Have a look at

http://www.zope.org/Members/htrd/howto/FunctionTemplate

Its a wrapper object for python functions that gives them *exactly*
the same calling convention as dtml methods. I developed this as a way
to replace overworked dtml without having to modify every other bit of
dtml that called it.

define your function as

def my_method(self,_):
stuff goes in here

to invoke it from dtml use 



Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Bug or feature? :-)

2000-09-27 Thread Toby Dickenson

On Tue, 26 Sep 2000 14:30:56 -0400 (EDT), Jeff Hoffman
<[EMAIL PROTECTED]> wrote:

>Hello, Zopers.
>
>Try this:
>
>Create a DTML Method in Zope. Give it an id of 'target', and give it the
>following body:
>
>  Woohoo!
>
>Now manage the folder that it is contained in. Instant tab augmentation!
>:-)

Theres been some discussion on this class of bug on zope-dev this
week. http://www.zope.org/Members/htrd/names is a list of other ids
that will change Zopes behaviour if used.


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




RE: [Zope] Catalog Searching

2000-09-21 Thread Toby Dickenson

> But doesn't Catalog() return all objects in the Catalog? 
> Doesn't all the
> meta-data for those objects have to be loaded into memory ratehr than
> just the 50 that are actually needed?

No, it returns a list-like object that load objects into memory only as the
elements of that sequence are accessed.

Objects are arranged in the right order within that sequence using the
metadata cached by the catalog.

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Catalog Searching

2000-09-21 Thread Toby Dickenson

On Wed, 20 Sep 2000 14:51:01 +0100, Chris Withers <[EMAIL PROTECTED]>
wrote:

>Maik Roeder wrote:
>> 
>> Show stuff in Catalog here.
>> 
>
>That doesn't take advantage of the Catalog's lazy searching, AFAIK, and
>on a site with a lot of content that could be bad.

Lazy searching is not an issue - that definitely happens. The catalog
always uses its cached metadata for searching and sorting.

A more interesting question is over sorting-by-index. Whether or not
this happens depends on the relative size of two sets:

a. The number of *different* *values* for the sort attribute over the
whole catalog content.

b. The number of matches found.

If number(b)>number(a) then sorting-by-index works well. This might
happen for example if you are sorting by "author name", where there
are more matches than there are authors. This is efficient since the
catalog precomputes the matches grouped by author name, and it only
needs to sort the groups.

If number(a)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 )




Re: [Zope] Folderish DTML Document

2000-09-21 Thread Toby Dickenson

On Wed, 20 Sep 2000 09:50:16 -0700, "Andy McKay"
<[EMAIL PROTECTED]> wrote:

>Sure it works but Im creating 2 objects a folder and a index_html for every
>one occurence. Im doubling my database for every object. Ugh!

In straight python you can only create methods for a class by creating
function objects (using malloc, no less) and assigning them as
variables in the class object. Double Urgh!

;-)


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Massive FTP troubles

2000-09-21 Thread Toby Dickenson

On Thu, 21 Sep 2000 00:03:47 +0200 (CEST), Dieter Maurer
<[EMAIL PROTECTED]> wrote:

>The only strange thing is, that you get told that
>a conflict occured for "/em/nav/aiti2.gif" rather
>than the folder.

That is the URL of the request that caused the conflict, not the
object in which the conflict occurred.

Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Folderish DTML Document

2000-09-20 Thread Toby Dickenson

On Tue, 19 Sep 2000 17:19:01 -0700, "Andy McKay"
<[EMAIL PROTECTED]> wrote:

Whats wrong with a folder that contains an index_html DTMLMethod?

>Am I totally off my head or is it possible to make a Folderish DTML
>Document. I had a thread on zope-dev got no response. I know Chris Withers
>thinks every object is a folderish one, but Im talking about using
>PropertyManager, ObjectManager and DTMLMethod all on one object. The main
>problem being absolute_url on the object seems to be broken.


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Python 1.6 makes Zope not work?!

2000-09-15 Thread Toby Dickenson

>Though I am a newbie Zope developer, it was very kindly explained to me that a bug
>in Python 1.6 was being ticked by Zope 2.2.1

FYI, all previous version too.


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] zope 2.2.1 and python 1.6

2000-09-14 Thread Toby Dickenson

On Wed, 13 Sep 2000 12:03:40 -0400, Brian Lloyd <[EMAIL PROTECTED]>
wrote:

>> i couldn't find anything in the list archives or the docs about python
>> 1.6  from python's site, it looks like there are a lot of changes that
>> could break code.  can i run zope 2.2.1 on python 1.6 or should i
>> stick with 1.5.2?

The final release of 1.6 has some bugs that seriously interfere with
Zope. The current CVS of python 2.0 is much more stable than the final
release of 1.6

There are some minor compatability issues in Zope - I document
everything I know with my Unicode patches (which requires 2.0) at
http://www.zope.org/Members/htrd/wstring/Unicode0.4Readme.txt

>I've seen some people report using 1.6 successfully with Zope - 
>at this point I can't recommend doing that for a *production* 
>site, since while it may *work* we still need to assess some 
>things regarding their impact on security.

I 100% agree with Brians caution here, however

>For example in 1.6 strings have methods, which may or may not 
>have an impact on DTML safety. This is also the case for 
>Python 2.0.

string methods are safely inaccessible as of the new security
implementation in 2.2 (hurrah for private-by-default)


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Zope and the GPL poison pill

2000-09-13 Thread Toby Dickenson

On Wed, 13 Sep 2000 13:33:05 +0200, "Dario Lopez-Kästen"
<[EMAIL PROTECTED]> wrote:

>
>>From: "Toby Dickenson" <[EMAIL PROTECTED]>
>> If that is your motivation then you may find that you get *more* back
>> by not using the GPL. My contributions to Zope (both personal and on
>> company time) are fairly significant in total, and would not have
>> happened if Zope was under a GPL license.


>or is it because the GPL actually prevents this? and if so,
>could you please elaborate?

I am using Zope as a component of a closed source product. GPL
components are not an option simply because we are not willing to open
source *all* of this product. I am developing the one type of software
product that the GPL is designed to work against.

The difference between GPL and more flexible licenses such as Python's
or the ZPL is that *we* get to draw the line between what we
contribute to the community, and what we keep to ourselves. GPL
advocates are wrong to assume that means we contribute nothing - there
are strong technical and commercial reasons to contribute significant
amounts of code and experience back to the community.


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Zope and the GPL poison pill

2000-09-13 Thread Toby Dickenson

On Tue, 12 Sep 2000 09:53:34 -0700, Kapil Thangavelu
<[EMAIL PROTECTED]> wrote:

>I want to give my code to the community. i don't want people taking my
>code from the community and distributing it without giving back.

If that is your motivation then you may find that you get *more* back
by not using the GPL. My contributions to Zope (both personal and on
company time) are fairly significant in total, and would not have
happened if Zope was under a GPL license.



Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Input for Chinese Characters

2000-09-11 Thread Toby Dickenson

On Mon, 11 Sep 2000 06:03:42 GMT, "Kelvin Cheong" <[EMAIL PROTECTED]>
wrote:

I have some patches to Zope at

http://www.zope.org/Members/htrd/wstring

that let you use Unicode strings in Zope as easily as 8-bit strings.
You will need python 2.0 for its unicode support - this is currently
in beta, but very stable.

>Now that I have managed to display Chinese characters, i'm stuck with my
>next problem. How do i input Chinese characters into Zope?
>
>Thanx in advance to all of ya!
>
>Later,
>amoebia
>
>VCN - The Leader In Corporate Communication Solutions
>Visit our website at http://www.vcn.com.my. 
>or http://www.vcnlinux.com
>
>
>___
>Zope maillist  -  [EMAIL PROTECTED]
>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 )


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Underscore Caracter

2000-09-06 Thread Toby Dickenson

On Tue, 5 Sep 2000 20:23:47 -0600, "T.J. Mannos" <[EMAIL PROTECTED]>
wrote:

>Now, who do I have to beat up to get the 're' module added to the namespace
>variable???  :)

Not a good idea its too easy for a buggy regex to eat up lots of
memory and processor time.

Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Re: ZOPE Python edit debug cycle

2000-09-01 Thread Toby Dickenson

On Tue, 29 Aug 2000 16:52:02 -0700, "Loren Stafford"
<[EMAIL PROTECTED]> wrote:

>There's also the Refresh product
>(http://www.zope.org/Members/hathawsh/Refresh) which helps reload some
>(most) products without restarting Zope.

Is this still needed? Are you still suffering from Zope taking a long
time restart?


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] compiling on windows

2000-08-23 Thread Toby Dickenson

On Wed, 23 Aug 2000 15:47:36 +0200, "Wolfgang Strobl" <[EMAIL PROTECTED]>
wrote:

>Well, actually I have. But there aren't any workspace and project 
>files (*.dsw and *.dsp).

Hmmm, no. If you can wait, Ill send you the ones I use early next
week.

>most probably a somewhat modifie Python src dist

Zope builds happily on a stock python 1.5.2 and the cvs versions of
2.0 too.


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] compiling on windows

2000-08-23 Thread Toby Dickenson

On Wed, 23 Aug 2000 10:49:15 +0200, "Wolfgang Strobl" <[EMAIL PROTECTED]>
wrote:

>Speaking about cvs: How do you people out there who run Zope on 
>Windows too, do install cvs versions of zope?  I do it simply by 
>using the latest installer (i.e. Zope-2.2.1b1-win32-x86.exe, 
>currently) for creating a local installation, and copy an actual cvs 
>checkout into the destination directory, afterwards, using the 
>robocopy.exe utility from the nt4 resource kit (it works great on 
>win2000, too).
>
>Is there perhaps a better way for installing a cvs checkout on 
>windows? It's obvious that none of the c modules get compiled, but 
>these seem to change rather rarely ...

I cant think of a better way if you don't have the compiler to hand.


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] NTUserFolder-1.3-Comments

2000-08-18 Thread Toby Dickenson

On Fri, 18 Aug 2000 13:00:41 +0200, Jean Jordaan
<[EMAIL PROTECTED]> wrote:

>Hi Toby
>
>> No feedback on this from anyone yet. 
>
>Well, that doesn't really sound encouraging...

Or maybe everyone is quietly happy


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] NTUserFolder-1.3-Comments

2000-08-18 Thread Toby Dickenson

On Thu, 17 Aug 2000 18:15:16 +0200, Jean Jordaan
<[EMAIL PROTECTED]> wrote:

>Hi Toby
>
>In the source of NTUserFolder from end of last year I see:
>
>## Experimental support for authenticating from a domain
>## (rather than the local computer) Use this at your own
>## risk. If you do, please let me know how you get on. I will
>## only include a user interface for these parameters once I
>## have independant verification that there are no problems.
>
>Have you had any feedback? Does this work at all? 

No feedback on this from anyone yet. Im not sure what that means

Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Total newbie with NTUserFolder 1.3 issues

2000-08-18 Thread Toby Dickenson

On Thu, 17 Aug 2000 16:48:44 +0100, Christian Adams
<[EMAIL PROTECTED]> wrote:

>I'm running Zope 2.2.0 over NT Server 4.

Me too.

>I installed Python 1.5.2 and the latest Win32 Extensions, then unzipped
>NTUserFolder1.3.zip into C:\Program Files\ZopeServer\NTUserFolder

Thats good.

>then ran
>both the init.py and NTUserFolder.py files after entering my Domain and PDC
>info into NTUserFolder.py 
>I ran them both to get the respective .pyc files.

Running a .py file doesn't create any .pc files. Those were
created when you next started Zope and the files were *imported*. You
didn't need to run them, but it has done no harm.

>. my question is...
>
>What now? What do I need to do next to actually get this stuff working as
>opposed to taking up disk space, because nothing yet has actually happened
>and, even if It has, I have no idea how to find out.

You need to create an NTUserFolder object in your Zope database, using
the /manage interface. You may have to delete any existing acl_users
object first.



Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Python function within a ZClass...

2000-08-17 Thread Toby Dickenson

On Thu, 17 Aug 2000 15:42:17 +0200, Marcin Kasperski
<[EMAIL PROTECTED]> wrote:

>Vincent wrote:
>> 
>> Is it possible to access Python function within a ZClass ?
>> 
>> If yes, how should I do that ?
>> 
>
>Two methods
>
>1) create External Method (python code in separate file placed in
>Extensions directory + information which file should be called in Zope
>management interface)
>
>2) create Python Method (you must install non-standard product providing
>Python Methods) - then you edit Python code just via Zope management
>interface (like DTML Documents)
>

3) create a python class that does what provides the methods, and use
that as a base class for your ZClass
 pro: easy to add more methods
 con: need to restart server after changes
  need to do this before you create the ZClass


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Zope culture (Was: [Zope] Simple DTML date-stamp)

2000-08-14 Thread Toby Dickenson

On Mon, 14 Aug 2000 15:43:25 +0200, William BC Crandall
<[EMAIL PROTECTED]> wrote:

>Another question of 'Zope Culture': Is the anti Win98 feeling 
>I get an accurate assessment of the Zopista community?

>Andy Dustman's documentation for what seems like a nice 
>MySQL interface puts it clearly:
>
>   Windows is not a supported platform. 

>I currently function in two worlds, Win98 and Linux.
>Would I be right to say that 90% of Zopers live in world
>number two?

Most of Zope (and python in general) is shockingly platform-neutral.

It sounds like the same might not be true of MySQL.


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Using Zope as App Server for non http-Protocols

2000-08-14 Thread Toby Dickenson

On Fri, 11 Aug 2000 23:30:43 +0200, "Philipp Auersperg"
<[EMAIL PROTECTED]> wrote:

>We want to (mis)use zope as an application server servicing a proprietary non-http 
>protocol 
>for transmitting compressed data.

Its easy to overlook http if your application is not a conventional
'web' application, but there are strong reasons for sticking with http
if possible: you can benefit from the existing tools and
infrastructure, plus Zope already talks http.

SOAP looks like it will be popular for similar reasons.

What do you need to do that makes http unsuitable?



Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] zcatalog -- returning context of hits on fulltext

2000-08-14 Thread Toby Dickenson

On Mon, 14 Aug 2000 13:04:49 +0100, Chris Withers <[EMAIL PROTECTED]>
wrote:

>Jean Jordaan wrote:
>> I've already got a pretty structured-text "Abstract" field
>> that tells about the document, but I'd like to *see* the
>> sentence on page 67 or wherever in a document where my
>> term matches, so I know whether it's mentioned in passing
>> or really important ..
>
>erk... that's a little harder :S
>
>I don't know if Catalog can do it, but at the very least you'd need a
>reference to your object to search the whole text, which means you loose
>the 'cool' metadata feature of not sucking a lot fo resource for search
>results.


If you really do have a 67 page document, it would be better to store
each page in its own ZODB object, and index each page individually.

With that scheme your search results page only has to load a few
pages, rather than a few documents.


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Python + COM (from external method)

2000-08-11 Thread Toby Dickenson

That might seem to work, but you will run into subtle bugs eventually.
Check the mailing list archives (or the Collector) for tips on calling
CoInitializeEx.

On Fri, 11 Aug 2000 16:00:08 +0200, Steinar Rune Eriksen
<[EMAIL PROTECTED]> wrote:

>That worked. Thanks
>
>> -Original Message-
>> From:Phil Harris [SMTP:[EMAIL PROTECTED]]
>> Sent:Freitag, 11. August 2000 14:06
>> To:  Steinar Rune Eriksen; [EMAIL PROTECTED]
>> Subject: Re: [Zope] Python + COM (from external method)
>> 
>> Steinar,
>> 
>> Did you call pythoncom.CoInitialize()?
>> 
>> If not you need to.


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] How can you get Zope console messages running as NT service?

2000-08-08 Thread Toby Dickenson

Most of those message are also sent to the Zope logging system.

I have a prototype logger which sends this information to the NT Event
log. There are several complications, but I could bump this up the
priority list if it would be generally useful

Anyone interested?

On Mon, 07 Aug 2000 21:20:07 -0700, "Matthew Wilbert"
<[EMAIL PROTECTED]> wrote:

>This must be in the archives someplace, but searching
>didn't turn it up.
>
>I'm running ZServer as an NT service, and I'd like to
>be able to see the usual console debug messages that I 
>would get if I were running it from a command window, 
>but I don't know how.  I tried setting the -D flag in the service startup parameters, 
>but if that works, I don't know where the output is going.
>
>If anyone knows how to do this, or that it is impossible,
>I'd like to know too.
>
>Thanks,
>
>Matt Wilbert
>
>
>
>
>___
>Visit http://www.visto.com/info, your free web-based communications center.
>Visto.com. Life on the Dot.
>
>
>___
>Zope maillist  -  [EMAIL PROTECTED]
>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 )


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] XMLRPC returns error sometimes

2000-08-07 Thread Toby Dickenson

On Sun, 6 Aug 2000 11:56:35 -0400 , Chris McDonough
<[EMAIL PROTECTED]> wrote:

>Only strings, integers, floats, "booleans", dictionaries, tuples, lists,
>and special "datetime", base64, and fault objects can be passed via
>XML-RPC.   Anything else is too complex.  The spec at
>http://www.xml-rpc.com/spec is useful.


Also, xmlrpclib will marshall a class instance as a dictionary, using
it's __dict__.

This applies to instances of python classes, but not extension
classes. Fixing this would be a bad idea: ObjectManager.objectItems
would try to return your whole database.

>> -Original Message-
>> From: Gijs Reulen [mailto:[EMAIL PROTECTED]]
>> Sent: Sunday, August 06, 2000 6:53 AM
>> To: [EMAIL PROTECTED]
>> Subject: [Zope] XMLRPC returns error sometimes
>> 
>> 
>> I am experimenting with xml-rpc and Zope. Some Methods from 
>> the API work ok,
>> but others return an error. A common error is:
>> 
>> Error Value: cannot marshal > Acquisition.ImplicitAcquirerWrapper at 00C950F0> objects
>> 
>> I receive this error for example when for Zope 2.1.6 I execute:
>> ObjectManager.objectValues
>> Where as the next Method works ok:
>> ObjectManager.objectItems
>> 
>> Maybe the to be returned info is to complex ?
>> 


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Caching How-To (was Cache concerns (waszope/proxy_pass configuration problem) configuration problem)

2000-08-07 Thread Toby Dickenson

>has anybody had bad experience with caching when using ie?  i've done as

For caching, IE is one of the better behaved browsers

Check the content of your "Temporary Internet Files" directory - this
will show when the cached documents expire.

You might find you need to manually purge your browsers cache after
fixing a caching bug, to eliminate all traces of the bug.


>what you did, but ie keeps showing old data.  this with a no-cache
>header,must-revalidate.


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Caching How-To (was Cache concerns (was zope/proxy_pass configuration problem) configuration problem)

2000-08-04 Thread Toby Dickenson

On Fri, 4 Aug 2000 12:33:53 +0200, Ragnar Beer
<[EMAIL PROTECTED]> wrote:

>During the last couple of days I could finally figure out how to set 
>up caching with mod_proxy. This morning I put together a caching 
>howto and submitted it for review.
>
>If it's accepted it will be available under 
>http://www.zope.org/Members/rbeer/caching

Hey really? Me too.

 http://www.zope.org/Members/htrd/howto/caching



Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Meta Type Registry

2000-07-25 Thread Toby Dickenson

On Sat, 22 Jul 2000 13:20:59 -0600, Bill Anderson <[EMAIL PROTECTED]>
wrote:

>Andrew Kenneth Milton wrote:
>> 
>> Is there a Product Builders meta-type registry somewhere?
>> 
>> I can see things getting messed up in the near future as the number of
>> products proliferates and meta-types start to clash.
>> 
>> I've already seen weird interactions with products
>> PSQL Input Wizard and ZNolk when both are installed I only got
>> PSQL Input Wizard despite picking ZNolk from the drop down...
>> 
>> At least if developers can register their meta-types then common
>> meta-types won't clash for different products (I can see stuff like
>> 'news item' and 'link' clashing all the time).
>> 
>> Perhaps limit registration to developers who have published their product,
>> I know this probably places an additional burden on the already heavily
>> under seige developers, but I think some controls are going to be needed.
>
>
>IMO, this should be done in each individual Zope server. IE, Zope
>shouldn't let you have two meta_types called 'News Item'. In combination
>with this, Products should list their meta types.

There is a list of product names on http://www.zope.org/Products. If
meta-types were to include the product name


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] ZEO and a front end...

2000-07-21 Thread Toby Dickenson

On Wed, 19 Jul 2000 10:07:30 -0600, Bill Anderson <[EMAIL PROTECTED]>
wrote:

>Toby Dickenson wrote:
>> 
>> On Tue, 18 Jul 2000 16:08:48 -0600, Bill Anderson <[EMAIL PROTECTED]>
>> wrote:
>> 
>> >> I might be reading more into his words than was intended, but I think
>> >> this demonstrates the problem. Distributing multiple requests for one
>> >> section across multiple servers is (what I consider to be)
>> >> undesirable.
>> >
>> >You can actually do it either way. Curtis (AIUI) complained that the
>> >method described meant your site depended upon each of th esection's
>> >servers being up, that there was no redundancy. So I described a way of
>> >doing it with redundancy.
>> 
>> What you described doesn't scale up to having 1000's of sections
>> (which I was assuming, and I think Curtis was too).  If this isn't a
>> problem, then your solution is great.
>
>I don't understand why you think it doesn't. DNS has clearly
>demonstrated the ability to handle 'thousands', and the entire
>scalability of a cluster is the addition of machines. You appear to be
>desirous of having a machine handle a section. Thus, for thousands of
>sections, you have thousands of machines.

DNS scales up to one machine per section, but a typical budget doesnt.

Fortunately it doesnt need too. Even if we have 1's of sections, I
would expect only 10's to be active over a period of a few minutes.

Another way of looking at the issue is that it is similar to using
in-memory Sessions. You have to ensure that each user's requests are
routed to the machine that holds their session. The main difference is
that it is a performance, not correctness issue.

I don't want to think about handling Sessions using DNS and one
machine per user ;-)

>> >EddieWare does do 'intellgient' caching
>> 
>> eddieware is on my list of option to try out next month... Ill keep
>> you posted
>
>Cool.


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] ZEO and a front end...

2000-07-19 Thread Toby Dickenson

On Tue, 18 Jul 2000 16:08:48 -0600, Bill Anderson <[EMAIL PROTECTED]>
wrote:

>> I might be reading more into his words than was intended, but I think
>> this demonstrates the problem. Distributing multiple requests for one
>> section across multiple servers is (what I consider to be)
>> undesirable.
>
>You can actually do it either way. Curtis (AIUI) complained that the
>method described meant your site depended upon each of th esection's
>servers being up, that there was no redundancy. So I described a way of
>doing it with redundancy. 

What you described doesn't scale up to having 1000's of sections
(which I was assuming, and I think Curtis was too).  If this isn't a
problem, then your solution is great.

>EddieWare does do 'intellgient' caching

eddieware is on my list of option to try out next month... Ill keep
you posted


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] ZEO and a front end...

2000-07-18 Thread Toby Dickenson

On Tue, 18 Jul 2000 04:22:16 -0600, Bill Anderson <[EMAIL PROTECTED]>
wrote:

>> I think most people seem to be missing the point here.
>> 
>> The idea is that ALL servers can serve ALL content.  HOWEVER, the 'load
>> balancer' will opt for a certain server for a certain URL, in order to
>> improve cache hits.
>> 
>> So, for www.contrived-example.com/dir1  it will first try server1, but if
>> it's busy (or down) it will try others.  This way, the cache on server1 is
>> more likely to contain objects relevant to /dir1  and thus have a higher hit
>> rate, therefore improving performance.
>
>No, I understand what is being discussed, I doubt the problem. :-)

You are right, theres no problem in the scenario you described. 

Ill fill in some more details about the fictional example for which I
still can't see an easy solution

Zope is used to store books. Each book object contains:
1. The text of the books, each page in a separate object
2. Images and diagrams for the book.
3. A ZCatalog full-text-index of the book.
Each book object allows:
1. Searching, viewing pages, etc.
2. Dynamically rendering a range of pages as pdf, postscript, etc.

The whole database stores 10,000 books, and is served by a cluster of
many identical Zope servers.

A typical usage pattern might be:
a. Users searches through a book to find the interesting pages
b. He browses the pdf version of those pages
c. He tweaks the page range, and double-checks the pdf version.
d. then downloads a postscript version of that page range for printing

Assume that noone has accessed this book recently, so it's not in any
caches.

The cache has to be filled at step b. This transfers alot of data -
possibly the whole content of the book - and introduces a noticeable
delay.

The possibility for optimisation comes at steps c and d. There is one
cache already filled with the right data - if the requests from c and
d can be directed to the same server as the original then the
cache-filling delay can be avoided.

This extra delay might not have a great impact of actual site
performance, but I've found a catastrophic affect on perceived
performance in some usability tests. Users seem happy to accept a
delay when they first access their data, but not if it repeated in a
subsequent request.

Bill wrote...

> http://my.site.com/sec1 is mapped to: sec1.site.com, which
> is load balanced across as many machines as possible

I might be reading more into his words than was intended, but I think
this demonstrates the problem. Distributing multiple requests for one
section across multiple servers is (what I consider to be)
undesirable.

I want to move load balancing up one level of abstraction -
distributing sections across machines (rather than connections).

>If that isn't enough, you can throw eddieware into the mix, which
>*already* has the ability to redirect based upon the URL.

Ive not seen eddieware before - so it looks like Ive got some reading
to do.

At a first glance it doesn't have any integrated http caching
(although it seems to have everything else ;-) and theres no obvious
place to hang squid. In my example above, I really want to be able to
cache the rendered pdf files.



Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] ZEO and a front end...

2000-07-17 Thread Toby Dickenson

On Mon, 17 Jul 2000 05:45:49 -0600, Bill Anderson <[EMAIL PROTECTED]>
wrote:

> >> I'm wondering if anyone can suggest something good to run in front of
> >> 2 zopes talking to a zeo server - for failover and load balancing.  I


>> One disadvantage is that solution is that each Zope will have poor
>> locality-of-reference within the object database. I think I can avoid
>> that using a squid redirector (www.squid-cache.org). Ill post any
>> news.
>
>What do you mean?

Suppose your zope site www.contrived-example.com is comprised of many
largely independant sections,
http://www.contrived-example.com/section1,
http://www.contrived-example.com/section2 etc.

Your multiple Zopes can all serve all of these sections, however
theres not enough storage for each machine to hold all the sections
simultaneously.

You can make better use of ZODB's in-memory cache and the ZEO pickle
cache if the requests for /section1 usually go to the same server.

However, you don't want to hardwire this relationship since any other
machine should handle /section1 if its 'home' machine goes down, or is
busy.


This problem can't be solved without parsing http headers, so
low-level solutions such as www.linux-ha.com are not a total solution.



Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] suggestions for what to run in front of ZEO'ed zopes for failover?

2000-07-17 Thread Toby Dickenson

On Fri, 14 Jul 2000 14:12:33 -0600, Bill Anderson <[EMAIL PROTECTED]>
wrote:

>Roman Milner wrote:
>> 
>> I'm wondering if anyone can suggest something good to run in front of
>> 2 zopes talking to a zeo server - for failover and load balancing.  I
>> have been using a tool called 'balance' which works really well - but
>> for failover it only works if the socket to one of the zope servers
>> doesn't connect.
>> 
>> We occasionally have a situation where the socket will still answer
>> but the zope server hanges and never returns an answer.  So, I'm
>> looking for something with configurable timeouts on responses.  Does
>> any one know of anything like that?
>
>
>You didn't specify the platform, so I'll suggest a nice, cost-effective
>one:
>Linux with IPVS (IP Virtual Server). www.linux-ha.com has more
>information.

That looks good on paper, and I may be setting up a trial system next
month.

One disadvantage is that solution is that each Zope will have poor
locality-of-reference within the object database. I think I can avoid
that using a squid redirector (www.squid-cache.org). Ill post any
news.


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] zope and caching

2000-07-03 Thread Toby Dickenson

On Mon, 3 Jul 2000 10:49:28 +0800, "Bak @ kedai" <[EMAIL PROTECTED]>
wrote:

>hi good people
>i've been using zope for quite some time now.  everything has been great; zope,
>the mailinglist, products are great!  
>
>
>i want to serve a dynamic site and zope fits the bill.  now, i think i want to have 
>some of the dynamic methods cached, so as to reduce the cpu cycles on my server. 
>
>y'see, the site has slowly bogged down as the number of users increase(dwhich is
>good, the users increase :)) and cpu cycles processing user requests have
>increased.  i'm not too sure (being a newbie) whether all my methods contribute
>to the consumption of cpu cycles.

FWIW, I think your approach is the right one. Treat caching as an
optimisation. Wait until it's a measurable problem, then tackle the
hot spots.

>caching.  yes, i've tried putting cache headers on my docs, but it  seems that
>ie do not honor the headers, or maybe i put it wrongly.  ie(4.x and 5.x) kept
>showing the cached version of my pages, even after clearing the local cache.  
>only deleting the temp files solved the problem.  i had no bad behaviour from
>netscape.

There are several messages in the mailing list archives explaining how
to set these headers. Im still planning to write that HowTo one
day

>also tried ZCache, but according to the product author, better wait for the
>next version.  so, i'm waiting.
>
>meanwhile, i've tried Cache Pool, and it looks good.  i have yet to test the
>effectiveness of Cache Pool, but it looks as if the page loads faster now.

These products that cache stuff internal to Zope are great if you need
zope to process the cached data (from your desciption, you dont)

If you need to cache whole requests, then the best approach is to
understand and use the http cache headers. If processor load is your
main problem, an external http cache is a big advantage too (I use
squid, see http://www.squid-cache.org)

Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] LocalFS cache, was Re: ZODB or not ZODB?

2000-06-30 Thread Toby Dickenson

On Thu, 29 Jun 2000 10:44:39 -0700, "Jonothan Farr" <[EMAIL PROTECTED]>
wrote:

>> How do you do to cache those objects, since LocalFS
>> referenced objects are not cached by Zope?
>
>They aren't cached. I experimented with adding a cache, but ran into some
>problems and gave up. It would probably be worth giving it another shot, though.

LocalFS happily uses the If-Modified-Since header, so an http cache (I
use Squid, http://www.squid-cache.org/) can cache LocalFS content
outside of Zope.

This assumes you are using LocalFS to serve whole files over http,
rather than processing those files inside Zope.

Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Backing Up Zope (was: Re: [Zope] Data.fs.lock?)

2000-06-30 Thread Toby Dickenson

On Thu, 29 Jun 2000 17:19:32 -0400, Shane Hathaway
<[EMAIL PROTECTED]> wrote:

>Quite simply, Data.fs is appended, not modified, except during a pack
>operation.  Think of it like a binary log file.  Therefore there are
>only two ways a simple, live backup of Data.fs can fail:
>
>1) You do the copy in the middle of a pack operation.  For most,
>packing is a rare operation.  But if this happened, your backup would
>be worthless.

I think its better than that. FileStorage packs itself into a
temporary file, which is renamed to data.fs only when the pack is
complete.

>2) You get a partly truncated record at the very end.  This is actually
>not a big deal, and AFAIK in most cases ZODB is capable of
>automatically rolling back a partially committed transaction.


I think the other exception is during an Undo, where Zope will rewrite
one byte in the middle of the file.


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Urgent problem: Database and large clock skew

2000-06-29 Thread Toby Dickenson

On Wed, 28 Jun 2000 10:46:06 -0700, Jim Flanagan <[EMAIL PROTECTED]>
wrote:

>Hi,
>
>In trying to fix a problem with Zope httpd server sockets getting wedged in 
>TIME_WAIT state, I set my system clock ahead by a year, then set it back. 
>Unfortunately, connections to the Zope httpd server occurred while the 
>clock was set in the future, and now when I try to start Zope, it dies with:
>
>DatabaseError: The database contains records, starting at position 
>189587919, that have time stamps 2540023.19965 seconds in the future. This 
>could lead to database corruption.  Please double check your system clock!
>
>I'm using a pre-2.0 version of Zope (Though I can't determin exacly which 
>version...)

That probably means you are using ZODB2, yes? (please say yes; ZODB3
should be immune to this problem). If so, there used to be a tool to
correct the timestamps... you should be able to find it in the utils
directory in the Zope 1 CVS

>Is there any way to correct insane timestamp values? I'm pretty much dead 
>in the water.
>
>Alternatively, I have found the section in BoboPOS.py where this exception 
>is generated. Is it really a problem to have future timestamps? What if I 
>just snipped this portion of the code out?




Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




RE: [Zope] Data.fs.lock?

2000-06-28 Thread Toby Dickenson

Windows definitely provides the right default behaviour here; in most cases
reading a file while someone else is writing to it is a great way to read
garbage. Its annoying for the minority of cases where it does make sense
(such as data.fs) that the Unix-like behaviour (ie, unsafe ;-) isn't
available to Python.

Is anyone from DC listening? would you accept a patch to FileStorage for
Windows that relied on an extension module?


> -Original Message-
> From: Chris Withers [mailto:[EMAIL PROTECTED]]
> Sent: 28 June 2000 12:04
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [Zope] Data.fs.lock?
> 
> 
> Toby Dickenson wrote:
> > It's definitely normal, and arguably a problem.
> 
> > net stop zope
> > copy c:/zope/var/data.fs c:/zope/var/backupdata.fs
> > net start zope
> 
> I'd say it's definitely a problem if you have to stop zope to do a
> backup :(
> 
> But then, I'd say it's a problem running (Zope on) Windows in a
> production environment ;-)
> 
> cheers,
> 
> Chris
> 

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Data.fs.lock?

2000-06-28 Thread Toby Dickenson

On Tue, 27 Jun 2000 16:30:30 -0500, [EMAIL PROTECTED] wrote:

>The tech that does backups on my new NT server (IIS) tells me that
>everything backs up ok except the \var\Data.fs.lock file.
>Is that normal or a problem?

It's definitely normal, and arguably a problem.

On Windows, any file opened for write access by the C fopen function
has its sharing flags set so that no other process can read or write
the file.

I solve the problem with a small batch file, scheduled to run just
before the backup, that looks similar to

net stop zope
copy c:/zope/var/data.fs c:/zope/var/backupdata.fs 
net start zope

hope this helps,


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] 2.2.0b2 dies in Windows NT4

2000-06-26 Thread Toby Dickenson

On Sun, 25 Jun 2000 13:15:39 +1300, Graham Chiu
<[EMAIL PROTECTED]> wrote:

>I've tried this again.  When I access the manage page, an Import/Export
>tab at folder / comes up, and then Python.exe dies with an NT exception
>which is a stack overflow :-(

Stack overflow is a clue. Python tries to detect too-deep recursion,
however in python 1.5.2 the limit is set a bit too high, and NT
catches it first.

There is a replacement python15.dll somewhere on www.python.org that
sets the limit lower: you will get a very long traceback instead.

Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] ZODB performance: reads to writes

2000-06-26 Thread Toby Dickenson

On Sat, 24 Jun 2000 12:43:05 -0400, "Evan Simpson" <[EMAIL PROTECTED]>
wrote:

>> Will an app as described above still suffer from problems with high
>writes?


>There are two independent attacks on this problem underway:

>2. Implement the application-level conflict handling you read about, so that
>Folders and Catalogs can decide that two writes don't conflict after all,
>and merge them into a single update.

Yes, that will help


>1. Make Folders and Catalogs store meta-data about their contents in a data
>structure consisting of small persistent objects, like B-Tree nodes.  This
>reduces the scope of potential conflict (and the size of the update required
>by a write) to the size of one of these nodes.

As I understand it, a BTreeFolder alone (ie without application-level
conflict handling) will not help here.

Folders have to ensure that all their contained elements have a
different id. The hot-spot is the only way a Folder can achieve this.



Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] ZODB Storage Question

2000-06-19 Thread Toby Dickenson

On Tue, 13 Jun 2000 16:31:09 -0400, "Pete Kazmier" <[EMAIL PROTECTED]>
wrote:

>I have about 400 objects that are updated every ten minutes.  Needless
>to say, Data.fs grows a little faster than I'd like.  I'm only
>changing about 5 attributes of each object .

Ok, so 5 small attributes change, but how much doesnt change?

ZODB will store a new copy of the whole object if just one attribute
changes. If you have some large attributes that rarely change then you
can save space by storing it in a different object.


Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] What is "favicon.ico" and why is it an error?

2000-06-09 Thread Toby Dickenson

On Wed, 07 Jun 2000 13:58:42 -0400, "J. Atwood"
<[EMAIL PROTECTED]> wrote:

>So, does the user get an error page or is the server just sending me an
>error cause it is requesting a file that does not exist. I will try testing
>with IT (it is not effecting my Mac IE 4.5/5.0)

The user wont see error; just the default icon in the favorites menu.

>Add this to the many reasons that I hate MIE!

do you have a robots.txt, or are webcrawlers evil too? ;-)


J. Michael Mc Kay wrote

>Now that you have done this, you have to put it in every directory
>accessible to IE to prevent excessive logging of errors on your server.

Is that true? I undestand only the root directory is necessary, unless
you have specifically linked another icon file from your html.




Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Passing all POST variables?

2000-06-07 Thread Toby Dickenson

On Fri, 26 May 2000 15:14:56 +0200, Martijn Pieters <[EMAIL PROTECTED]>
wrote:

>> Shame there's no "safe pickle option" that allows only numbers, strings,
>> lists, tuples and dictionaries.
>
>There is actually. It's called marshal:
>
>  http://www.python.org/doc/current/lib/module-marshal.html
>
>which supports just that list of types, plus code objects.

Or look at http://www.zope.org/Members/htrd/howto/MiniPickle if you
need:
* Recusive data structures
* Compatability with the next version of python

Toby Dickenson
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )