[Zope-dev] Re: [Zope3-dev] Proposal: cvs to subversion transition May 11 (?)

2004-05-05 Thread Fred Drake
On Wednesday 05 May 2004 01:59 am, Jim Fulton wrote:
  I'm thinking of trying again to do the cvs to svn conversion of the
  main-line development branches (cvs heads) on Tusday May 11. This would
  entail moving ZODB, Zope 2, and Zope 3 head development to subversion
  (along with ZConfig, zdaemon, and zLOG).

+1


  -Fred

-- 
Fred L. Drake, Jr.  fred at zope.com
PythonLabs at Zope Corporation


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


[Zope-dev] Re: [ZODB-Dev] RFC: Multi-Databases

2004-05-05 Thread Toby Dickenson
(reply-to set to zodb-dev)

 In the long term, this will allow is to *finally* support cross database
 references.

Your proposal describes an unfamiliar kind of reference. In unix filesystem 
terms, it mixes characteristics of hard links and symbolic links.

Like hard links it directly references the inode/oid. The reference doent need 
to have a filename/object reference from the root of the referenced 
filesystem/database.

Like symbolic links it does not prevent garbage collection from freeing the 
inode/oid. So there does need to BE a filename/object reference from the root 
of the referenced filesystem/database it needs to exist, but the 
reference doesnt need to have it.

(by 'object reference' above I mean a chain of normal object references like 
we have in normal python and zodb today)


Right now I cant think of a use case for this new type of reference (either in 
a filesystem or zodb database).  Can you give some examples?

-- 
Toby Dickenson


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


Re: [Zope-dev] Zope 2.X Session problems

2004-05-05 Thread Chris Withers
Kris Erickson wrote:

Per this thread that seems to have been dropped 
(MaxTransientObjectsExceeded Error);
This means more unique users have accessed your site than the maximum configured 
number of sessions.

Go to the session data container objectin the the temp folder and tweak the 
config so that the number of sessions allowed matches the number of people using 
your Zope instance...

cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: Mailing Log Entries in 2.7

2004-05-05 Thread Chris Withers
Fred Drake wrote:
That's not currently possible, though it wouldn't be hard to add.  Perhaps 
some future ZConfig revision would add this.
Surely ZConfig alredy allows this, it's just Zope's use of ZConfig that needs to 
support it?

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: Nightly Zope 3 Binary Compiles for WIndows

2004-05-05 Thread Chris Withers
Jim Fulton wrote:
I'd be happy to set up a nightly (or weekly, let me know which would 
be better) scheduled task (see, it's Widnows, there is no Cron, 
although Schedules Tasks do have a much nicer UI ;-) ) that checked 
out he latest HEAD of Zope 3, compiled it and PUT it up to my Zope.org 
member area
I think that would be super.  Nightly would be best.
Okay, added to the bottom of a sadly very long list :-S

Do you have to go through all of that? Couldn't you put it up as a zip
file, using ZMI, rather than CMF API's?
As a mere mortal member and not-yet-signer of litigious paperwork, am I allowed 
ZMI access?

I think making the binaries available will widen the pool of people
who could fix windows problems.
Really? I would have thought they'd need ot be able to compile :-S

Don't confuse caring with time and priorities.  I care about having
Zope 3 run on Windows, and Mac OS X, and other platforms.  I don't have 
time
to do that though.  I think it would be appropriate for others to help 
by working
on windows and Mac OS X (etc.) issues.
Indeed. Although the stuff which stopped me was shear carelessness (things like 
just using unix path seperators rather that os.path.join, etc)...

cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Subversion

2004-05-05 Thread Chris Withers
Tim Peters wrote:

svn's story is much better (perfect, in fact) when forgetting to add
eol-style:  regardless of which kind of platform did the commit, the
property can be added after the fact by anyone, and svn will automatically
repair working copies on all platforms.  Because (most) svn properties are
versioned, adding eol-style is enough to convince svn that pre-eol-style
copies are out of date.  Nobody even needs to bother running dos2unix or
unix2dos; just adding the property is enough (and when the person who adds
the property commits the change, svn fiddles the line ends on their working
copy (if needed) by magic too).
Cool :-)

Glad to find this one is a non-issue!

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Subversion

2004-05-05 Thread Lennart Regebro
Chris Withers wrote:
Tim Peters wrote:

svn's story is much better (perfect, in fact) when forgetting to add
eol-style:  regardless of which kind of platform did the commit, the
property can be added after the fact by anyone, and svn will 
automatically
repair working copies on all platforms.  Because (most) svn properties 
are
versioned, adding eol-style is enough to convince svn that pre-eol-style
copies are out of date.  Nobody even needs to bother running dos2unix or
unix2dos; just adding the property is enough (and when the person who 
adds
the property commits the change, svn fiddles the line ends on their 
working
copy (if needed) by magic too).


Cool :-)

Glad to find this one is a non-issue!
Well... Non-issue it is not. But it makes it much less of an issue. It 
would still be nice to have server-side configurations of defalts, though.

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


[Zope-dev] Re: Zope 2.X Session problems

2004-05-05 Thread Tres Seaver
Chris Withers wrote:
Kris Erickson wrote:

Per this thread that seems to have been dropped 
(MaxTransientObjectsExceeded Error);


This means more unique users have accessed your site than the maximum 
configured number of sessions.

Go to the session data container objectin the the temp folder and tweak 
the config so that the number of sessions allowed matches the number of 
people using your Zope instance...
In Zope  2.7, you need to set the corresponding environment variable 
(see doc/ENVIRONMENT.txt) to make the change persistent (it doesn't do 
much good to set the value on the TemporaryStorage!)

In Zope = 2.7, zope.conf has a setting for this value.

Tres.
--
===
Tres Seaver[EMAIL PROTECTED]
Zope Corporation  Zope Dealers   http://www.zope.com
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [ZODB-Dev] RE: [Zope-Coders] RE: [Zope-dev] Re: [Zope3-dev] ATTENTION! cvs tosubversion transitiontomorrow

2004-05-05 Thread Chris Withers
Tim Peters wrote:
snip much pain and suffering
This, btw, is why I prefer the:
svn co https://
...protocol.

Will this be supported?

cheers,

Chris - who suddenly wonder how the hell you get https to use key-based auth :-S

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Proposal: cvs to subversion transition May 11 (?)

2004-05-05 Thread Leonardo Rochael Almeida
On Wed, 2004-05-05 at 02:59, Jim Fulton wrote:
 Jim Fulton wrote:
 [...] 
 I'm thinking of trying again to do the cvs to svn conversion of the main-line
 development branches (cvs heads) on Tusday May 11. This would entail moving
 ZODB, Zope 2, and Zope 3 head development to subversion (along with ZConfig,
 zdaemon, and zLOG).
 
 Any objections?

Isn't that the day of the next ZC IRC session? How will that be affected
by the migration?

Cheers, Leo

-- 
Ideas don't stay in some minds very long because they don't like
solitary confinement.



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


Re: [ZODB-Dev] RE: [Zope-Coders] RE: [Zope-dev] Re: ATTENTION! cvs tosubversion transitiontomorrow

2004-05-05 Thread Tres Seaver
Chris Withers wrote:
Tim Peters wrote:
snip much pain and suffering
This, btw, is why I prefer the:
svn co https://
...protocol.

Will this be supported?
No.  We discussed this already:  the WebDAV stuff is slow, and has much 
weaker authentication semantics;  it would also require us to go into 
the business of issuing SSL certificates.

Tres.
--
===
Tres Seaver[EMAIL PROTECTED]
Zope Corporation  Zope Dealers   http://www.zope.com
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


RE: [Zope-dev] Segfault and Deadlock

2004-05-05 Thread alangmead




Carl Witty [EMAIL PROTECTED] wrote on 05/04/2004 08:18:52 PM:
 I don't think it should be tested for in configure (or at compile-time
 at all).  People will want to have binary distributions that work both
 with LinuxThreads and NPTL; some people actually switch back and forth
 on an application-by-application basis.  It would be much better to
 check at runtime.

You do have some good points. I did implement the compile time check,


http://sourceforge.net/tracker/index.php?func=detailaid=948614group_id=5470atid=305470

but I can see if I can rework it in a way that wouldn't adversely affect
other systems or NPTL systems.


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


[Zope-dev] Re: Mailing Log Entries in 2.7

2004-05-05 Thread Fred Drake
Regarding putting more information in email's generated using email-notifier 
sections, I wrote:
  That's not currently possible, though it wouldn't be hard to add. 
  Perhaps some future ZConfig revision would add this.

On Wednesday 05 May 2004 05:41 am, Chris Withers responded:
  Surely ZConfig alredy allows this, it's just Zope's use of ZConfig that
  needs to support it?

The configuration of the logging is handled using a ZConfig component that's 
actually bundled with ZConfig itself on the Zope 2 head; it's in the package 
ZConfig.components.logger.  This allows any project using ZConfig to use the 
same basic logging support; we actually have several projects using ZConfig 
outside the application server.


  -Fred

-- 
Fred L. Drake, Jr.  fred at zope.com
PythonLabs at Zope Corporation


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


[Zope-dev] Re: Mailing Log Entries in 2.7

2004-05-05 Thread Chris Withers
Fred Drake wrote:

The configuration of the logging is handled using a ZConfig component that's 
actually bundled with ZConfig itself on the Zope 2 head; it's in the package 
ZConfig.components.logger.  This allows any project using ZConfig to use the 
same basic logging support; we actually have several projects using ZConfig 
outside the application server.
Cool. Okay, quick question for you...

I'm trying to set up some (normal python) logging so that run of the mill 
messages are send to a logfile while critical errors are sent via email to me. I 
got to:

import logging
logger = logging.getLogger('X2Y')
hdlr = logging.FileHandler(logfile)
formatter = logging.Formatter('%(asctime)s %(process)d %(levelname)s %(message)s')
hdlr.setFormatter(formatter)
logger.addHandler(hdlr)
if len(sys.argv)==2 and sys.argv[1]=='debug':
logger.setLevel(logging.DEBUG)
else:
logger.setLevel(logging.INFO)
hdlr = logging.SMTPHandler(*etc*)
formatter = logging.Formatter('%(asctime)s 
%(process)d\n\n%(message)s\n\n%(pathname)s line %(lineno)d.')
hdlr.setFormatter(formatter)
logger.addHandler(hdlr)

...but then couldn't figure out how to say that the SMTPHandler should only deal 
with messages that are critical.

Any ideas?

Bringing this back on topic, I'd also be very interested in doing the same thing 
for Zope instances...

cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] getRoles()

2004-05-05 Thread Erik Myllymaki
I was fooling around in AccessControl\User.py, tying to add some user 
groups from an NT domain in the getRoles() method. Why does the 
getRoles() method get called so many times? Seems like once for each 
object on a page that needs authentication? Was making for a VERY slow 
page load while my NT Domain was across a slow WAN link.

I would have thought it would have been called once and then cached, or...?

thanks for any insight.



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


[Zope-dev] Re: Bug day report

2004-05-05 Thread Simon Michael
+1. This happens a bit on plone.org as well. Valid issues get rejected a 
bit too quickly when they should be left open or clarified further. 
Since the submitter is relatively powerless in these trackers there is a 
bad psychological effect.

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


Re: [Zope-dev] Zope 2.X Session problems

2004-05-05 Thread Chris McDonough
The data object timeout value was what I needed.  I'm afraid though that
in this case I don't have a good answer for why they're not being
expired.  I will put looking into this on my todo list.

On Tue, 2004-05-04 at 09:32, Alex V. Koval wrote:
 Hi Chris,
 
 On Wed, 21 Apr 2004 11:36:59 -0400, Chris McDonough [EMAIL PROTECTED]  
 wrote:
 
  What do you have the transient object timeout set for?
 
 Do you mean this (/temp_folder/session_data):
 
 Data object timeout value in minutes: 20
 
 Also, here is a part of zope.conf for your reference:
 # from Chris
 zodb_db temporary
  # Temporary storage database (for sessions)
  filestorage
path $INSTANCE/var/Sessions.fs
  /filestorage
  mount-point /temp_folder
  container-class Products.TemporaryFolder.TemporaryContainer
 /zodb_db
 
 Regards.


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


[Zope-dev] Re: [ZODB-Dev] RFC: Multi-Databases

2004-05-05 Thread Jim Fulton
Toby Dickenson wrote:
(reply-to set to zodb-dev)


In the long term, this will allow is to *finally* support cross database
references.


Your proposal describes an unfamiliar kind of reference. In unix filesystem 
terms, it mixes characteristics of hard links and symbolic links.
That's right, it's not like a file-system hard link or a soft link.

...

Right now I cant think of a use case for this new type of reference (either in 
a filesystem or zodb database).  Can you give some examples?
Yes. I want to create a reference from one object to another in Python code.
(It's much easier to do that in Zope 3, for various reasons I won't go into
here.)  At the Python level, I don't want to have to worry about whether the
objects are in separate databases.
Now, the fact that the reference is weak is a definate disadvantage. I'd rather
have a strong reference, but that makes the problem much harder to solve. There
are applications where weak references are a step forward.
An alternative model is to require that the reference isn't direct but has
weak references (as in Python weak reference) semantics). That is, rather than
saying:
   self.x = foo

requiring:

   self.x = persistent.wref.ref(foo)

Anyway, you ask a reasonably question. Let's continue this discussion after
I write a proposal for cross-database references.
Jim

--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
CTO  (540) 361-1714http://www.python.org
Zope Corporation http://www.zope.com   http://www.zope.org
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: Nightly Zope 3 Binary Compiles for WIndows

2004-05-05 Thread Jim Fulton
Chris Withers wrote:

Do you have to go through all of that? Couldn't you put it up as a zip
file, using ZMI, rather than CMF API's?


As a mere mortal member and not-yet-signer of litigious paperwork, am I 
allowed ZMI access?
Sure.  After you log in, you can still get to Members/youruserid/manage_main.

I think making the binaries available will widen the pool of people
who could fix windows problems.


Really? I would have thought they'd need ot be able to compile :-S
If they have the .pyd files, they can run Zope and fix problems
they find in the .py files.
Don't confuse caring with time and priorities.  I care about having
Zope 3 run on Windows, and Mac OS X, and other platforms.  I don't 
have time
to do that though.  I think it would be appropriate for others to help 
by working
on windows and Mac OS X (etc.) issues.


Indeed. Although the stuff which stopped me was shear carelessness 
(things like just using unix path seperators rather that os.path.join, 
etc)...
shrug

Jim

--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
CTO  (540) 361-1714http://www.python.org
Zope Corporation http://www.zope.com   http://www.zope.org
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


RE: [Zope-dev] Re: Nightly Zope 3 Binary Compiles for WIndows

2004-05-05 Thread Tim Peters
[Jim]
...
 If they have the .pyd files, they can run Zope and fix problems
 they find in the .py files.

They have the .pyd files now.  I'm keeping them up to date, and Max M wrote
a clear howto (which references the .pyd Zip files on zope.org):

http://www.mxm.dk/papers/run-z3-cvs-wthout-compiler/

easier-to-do-it-than-argue-about-it0.7-wink-ly y'rs  - tim


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