[Zope] Re: Re: request.locale - do we have this in 2.9.4?

2006-09-06 Thread Rocky Burt
On Wed, 2006-06-09 at 13:52 +0200, Philipp von Weitershausen wrote:
> That said, *if* we choose to go with such a configuration option, I 
> think it woudl probably be a good idea to have it disabled by default in 
> the first release and enabled in subsequent releases. That way 
> applications could opt in for the new behaviour earlier than necessary 
> (much like Python's __future__ imports).

My 2 cents here.  I've also spent a great deal of time pondering this
particular problem.  And there has been some good discussion in this
thread.  Personally what I'm leaning towards liking the most would be an
approach that blends the configuration and adapter ideas discussed here.

Five version X would introduce an IBrowserRequest adapter for a zope 2
request and a new zcml directive, say five:zope3request, that would
toggle whether or not Five should pass through the adapted request
instead of the raw request.  By default it would not adapt (for BBB
compat).  We could consider issuing a deprecation message saying the
default will be changed with future Five release.  And with Five version
X+1 or X+2 we change the default to adapt.

I'd propose version X would be 1.5 and the release that sets the default
to zope3 requests be version 1.6.

We could always keep around the five:zope3request directive even after
we change the default so that people who really need old-style behaviour
(raw zopee 2 requests) can still re-activate it.

- Rocky

-- 
Rocky Burt
ServerZen Software -- http://www.serverzen.com
News About The Server (blog) -- http://www.serverzen.net



signature.asc
Description: This is a digitally signed message part
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: accelerating Zope restart

2006-08-31 Thread Rocky Burt
On Thu, 2006-31-08 at 12:18 +0100,
[EMAIL PROTECTED] wrote:
> Hi,
> 
> My Data.fs is huge (21GB) because it contains many video files. This is not a
> problem in itself, however, I recently had to reboot my machine and now zope
> takes around 20-30 minutes to restart. Is a fstest automatically done ? How
> could I accelerate the restarting, if possible ? 

I highly recommend you use some sort of external storage product to
store such large files.  Perhaps Chris McDonough's blob product might
fit well here.

- Rocky

-- 
Rocky Burt
ServerZen Software -- http://www.serverzen.com
News About The Server (blog) -- http://www.serverzen.net



signature.asc
Description: This is a digitally signed message part
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: accelerating Zope restart

2006-08-31 Thread Rocky Burt
On Thu, 2006-31-08 at 12:52 +0100,
[EMAIL PROTECTED] wrote:
> > 
> > Zope does maintain a Data.fs.index file. If it becomes corrupt e.g. through 
> > an unclean shutdown then Zope will recreate it by scanning the whole 
> > Data.fs file when starting Zope the next time. This will take some 
> > timeso before rebooting you should shutdown down your Zope properly.
> > 
> 
> OK, I have two questions about shutting down zope:
> 
> - To cleanly shut down zope daemon, is "zopectl stop" enough ?

Yes.


> - If zope runs in the foreground, how to shut it down cleanly ? CTRL+C won't 
> do
> it I guess ?

I always thought CTRL+C would do it actually.  It's only a force kill
with -9 that will kill it without shutting down properly.  But you could
always go to the Control_Panel in the zmi and do a shutdown from there,
that is for certain safe.

- Rocky

-- 
Rocky Burt
ServerZen Software -- http://www.serverzen.com
News About The Server (blog) -- http://www.serverzen.net



signature.asc
Description: This is a digitally signed message part
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Any known leaks in ExtFile and OpenFlow?

2006-06-04 Thread Rocky Burt
On Sun, 2006-04-06 at 11:59 +0200, Michael Vartanyan wrote:
> One of my Zope (2.8.4 on Python 2.4.2, SLES9) sites constantly hits the 
> memory limit. It makes heavy use of two products - ExtFile (1.5.0) and 
> OpenFlow (1.1.0). ExtFile class (of ExtFile) and workitem class (of 
> OpenFlow) are leading the refcount list with a not-constant but overall 
> increasing numbers of references. Refcounts for both reach numbers that 
> are incomparably higher than the numbers of their instances in ZoDB. I 
> wanted to ask if there are known leaks in these products before going 
> into (painful) hunting and debugging leaks in my own code.

I don't know if this is related or not, but python2.4.x is not supported
on Zope 2.8.x.  But chasing down issues like this will be definitely be
harded while not running a supported base configuration.

- Rocky


-- 
Rocky Burt
ServerZen Software -- http://www.serverzen.com
News About The Server (blog) -- http://www.serverzen.net



signature.asc
Description: This is a digitally signed message part
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Java vs Zope

2006-01-04 Thread Rocky Burt
J Cameron Cooper wrote:
> ... I think it's quite acceptable to put the burden of use on the
> programmer instead of the compiler, considering the benefits; that's
> what he's thinking about anyway, no?

+1

> Zope 3, though I admit I've only played with it glancingly, seems to be
> more J2EE-like in certain respects: there seem to be a lot of things I
> have to touch to get things going. To a certain point, I can deal with
> this, but if there's ever a "ZDoclet"...

Lol, I remember so many times haveint to install XDoclet in order to
develop my EJB's in any sane amount of time.

But I understand and agree with your point here.  EJB development
required so much boilerplate code that it slowed the developer down big
time.  It took tools like XDoclet to come along and make the boilerplate
code somewhat manageable before developing with EJB's was very
productive IMHO.  I recently talked about this at:
http://www.serverzen.net/weblog/archive/2006/01/02/boilerplate-zope-projects

For the record (and as my blog entry mentions), Skeletor seems to strive
to be XDoclet for Zope2.

- Rocky

-- 
Rocky Burt
ServerZen Software -- http://www.serverzen.com
ServerZen Hosting -- http://www.serverzenhosting.net
News About The Server -- http://www.serverzen.net

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Java vs Zope

2006-01-04 Thread Rocky Burt
David H wrote:
> Python is also object oriented.  In python, x = 10 creates an object not
> a simple type - if I recall the same is true in Java.

In fact this is not quite right.  In java, int x = 10 produces a
primitive type.  Not a class instance at all.  In this case x has no
methods which can be invoked whatsoever.  This is something I always
despised about Java.  Java does have an "Integer" class but that is
generally only used when an object is absolutely required (which is not
often).  Java 1.5 did introduce autoboxing on primitive types so that
int's and Integer instances could be interchanged without knowing in
method calls, etc ... but x is still not an object with methods.

In fact I'd go as far as to say that Python seems *more* object-oriented
than Java.

- Rocky

-- 
Rocky Burt
ServerZen Software -- http://www.serverzen.com
ServerZen Hosting -- http://www.serverzenhosting.net
News About The Server -- http://www.serverzen.net

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: zope db question

2005-12-21 Thread Rocky Burt

Hi José,

If you're "learning" how to use Zope then it'd be best (imho) for you to
learn how to do it with the ZODB (this is the 'default' way to store
data persistently in Zope).  Later on if you have a specific reason to
put this in a relational database (please, don't use gadfly) then it'll
be much easier for you to figure this out.

- Rocky


José Carlos Senciales Chaves wrote:
> Hi
>  
> I am new phyton and zope programmer.
>  
> I have to make a product for zope and i must use a list of groups with a
> lot of data.
>  
> I´m wondering if i must to use a list of persistent objects or if it´s
> better use a database like
> gadfly with tables or another one.
>  
> I´m a little confuse. I think that the two solutions are possible but i
> don´t know whitch is better.
>  
> sorry for my bad english.
>  
> thanks.
> jose from Spain, Europe.
> 
> 
> 
> 
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )


-- 
Rocky Burt
ServerZen Software -- http://www.serverzen.com
ServerZen Hosting -- http://www.serverzenhosting.net
News About The Server -- http://www.serverzen.net

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )