[Zope-dev] connecting server code to the ZODB

2004-10-28 Thread Tim Hicks
Hi,

I'm trying to figure out how to adjust Nikolay Kim's smtpserver code
 so that
objects within the ZODB can affect the way that messages are received
(i.e. veto messages based on certain criteria in the first instance).

My problem is that I don't quite know how to get hold of the ZODB objects.
 As far as I can tell, Nikolay's
smtpserver.SMTPServer.SMTPChannel.process_message method uses
ZServer.PubCore.handle to make the connection, but I don't really
understand how this all works.

What I really want to be able to do from the server code is something like::

root = magic_that_gets_me_zodb_root()
account_manager = root['Control_Panel']['AccountManager']
account_manager.checkAccepts(msg)

I want calls like that to checkAccepts(msg) to be made a several points in
the SMTP session - say after each of the SMTP commands RCPT, MAIL, DATA,
etc.  I only mention that in case there are implications for some
transaction jiggery-pokery (although I don't expect any of the
checkAccepts() type calls to need to write to the ZODB).

Any pointers much appreciated.


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 )


Re: [Zope-dev] Can I configure additional loggers via zope.conf?

2004-10-28 Thread Ames Andreas (MPA/DF)
Hello,

Fred Drake wrote:

> Please file a feature request for this so we don't forget it.  This
> can be assigned to me, though I'm not sure when I'll be able to get
> to it.

Please look to http://zope.org/Collectors/Zope/1555.  Unfortunately I
don't know how to assign this to you.


Thanks,

andreas

___
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] Can I configure additional loggers via zope.conf?

2004-10-28 Thread Fred Drake
On Thu, 28 Oct 2004 14:33:37 +0200, Ames Andreas (MPA/DF)
<[EMAIL PROTECTED]> wrote:
> sorry if this the wrong list, I just wasn't sure.

This is as good a list as any.

> I'd like to use a python lib which creates and uses its own logger
> objects/hierarchy.  This hierarchy is not a subtree of the
> 'event'-hierarchy or the other default Zope-logger hierarchies.
> Unfortunately I wasn't able to define a  section in my
> zope.conf (without changing the Zope/Startup/zopeschema.xml).

Right.  This is something we should consider adjusting a bit.  Current
versions of ZConfig (Zope 2.8+, Zope 3) have enough support for
Python's logging package that this can be done, but a little suger is
still needed at the schema level.

I don't think that this would appear in the 2.7.x line, since that
would represent a new feature.

Please file a feature request for this so we don't forget it.  This
can be assigned to me, though I'm not sure when I'll be able to get to
it.


  -Fred

-- 
Fred L. Drake, Jr.
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 )


Re: [Zope-dev] ZopeInterface

2004-10-28 Thread Fred Drake
On Thu, 28 Oct 2004 11:07:52 +0200, Radoslaw Stachowiak
<[EMAIL PROTECTED]> wrote:
> Could anyone please provide me information when ZopeInterface product is
> going to be updated ?
> And how is it related to zopex3 releases ?

I'm planning to release a final version around the time that Zope X3
3.0.0 final is released.

> I'm gentoo linux (www.gentoo.org) developer maintaing all zope related
> packages, and we are considering inclusion of ZopeInterface as
> separate package (we already have zopex3_rc3).

Excellent!


  -Fred

-- 
Fred L. Drake, Jr.
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] Can I configure additional loggers via zope.conf?

2004-10-28 Thread Ames Andreas (MPA/DF)
Hello,

sorry if this the wrong list, I just wasn't sure.

I'd like to use a python lib which creates and uses its own logger
objects/hierarchy.  This hierarchy is not a subtree of the
'event'-hierarchy or the other default Zope-logger hierarchies.
Unfortunately I wasn't able to define a  section in my
zope.conf (without changing the Zope/Startup/zopeschema.xml).

Given that the number of python libs using 'logging' seems to keep
growing my question is:  Is this my fault, a Zope bug, a wishlist item
or a feature (I'm using 2.7.2 if that matters)?


TIA,

andreas

___
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] Guidelines for using Speedpack with Zope products

2004-10-28 Thread Jens Vagelpohl
Also if this is the wrong list for this topic please tell me which is
the correct list.
Since SpeedPack is a Plone-related add-on I would assume your question 
belongs on a Plone mailing list. See http://www.plone.org.

jens
___
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] Guidelines for using Speedpack with Zope products

2004-10-28 Thread cp . hennessy
Hi,
  I'm trying to improve the speed of a plone based site and have 
installed SpeedPack. However my understanding is that SpeedPack 
currently takes a conservative approach to a limited set of products.

I would like to understand what limitations SpeedPack has and how I 
can extend it to be able to improve the speed of various products and
methods which profilers seem to indicate are taking more time than I 
think they should.

If anyone has experience of using SpeedPack I'd also appreciate any 
comments you may have.

Also if this is the wrong list for this topic please tell me which is 
the correct list.

Thanks
CPH

___
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] ZopeInterface

2004-10-28 Thread Radoslaw Stachowiak
Hello,

Could anyone please provide me information when ZopeInterface product is
going to be updated ?
And how is it related to zopex3 releases ?

I'm gentoo linux (www.gentoo.org) developer maintaing all zope related
packages, and we are considering inclusion of ZopeInterface as
separate package (we already have zopex3_rc3).

Thank You in advance.

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