[Zope-dev] Zope Tests: 5 OK

2007-04-10 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Mon Apr  9 12:00:00 2007 UTC to Tue Apr 10 12:00:00 2007 UTC.
There were 5 messages: 5 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Mon Apr  9 20:49:53 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-April/007568.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Mon Apr  9 20:51:23 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-April/007569.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Mon Apr  9 20:52:53 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-April/007570.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Mon Apr  9 20:54:23 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-April/007571.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Mon Apr  9 20:55:53 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-April/007572.html

___
Zope-Dev maillist  -  Zope-Dev@zope.org
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] What's the deal with sublocations?

2007-04-10 Thread Stefan H. Holek
Most ObjectEvents are dispatched to sublocations. I was wondering  
whether it is ok for me to expect a certain dispatch order, i.e. top- 
down (container before sublocation) or bottom-up (sublocation before  
container)?


What I find is that this order depends on things like the exact  
interface a handler is registered for and, in Zope 2.9 (+3.2), even  
on the way I run tests (!).


I can only conclude that there is no guaranteed dispatch order. Now,  
should there be? Where can I learn about this contract?


Also see http://www.zope.org/Collectors/Zope/2308

Thanks,
Stefan

--
It doesn't necessarily do it in chronological order, though.
  --Douglas Adams


___
Zope-Dev maillist  -  Zope-Dev@zope.org
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: What's the deal with sublocations?

2007-04-10 Thread Philipp von Weitershausen

Stefan H. Holek wrote:

Most ObjectEvents are dispatched to sublocations.


Well, the ones that deal with the object hierarchy. This mostly concerns 
IObjectMovedEvents and their sub-event types (added, removed). I don't 
think it makes a lot of sense to dispatch other object events.


I was wondering 
whether it is ok for me to expect a certain dispatch order, i.e. 
top-down (container before sublocation) or bottom-up (sublocation before 
container)?


No. The dispatch to sublocations is an event handler itself. One should 
not depend on the execution order of event handlers, therefore you 
should not depend on this dispatch happening before or after your own 
event handler(s) for IObjectMovedEvent.


What I find is that this order depends on things like the exact 
interface a handler is registered for and, in Zope 2.9 (+3.2), even on 
the way I run tests (!).


I can only conclude that there is no guaranteed dispatch order. Now, 
should there be? Where can I learn about this contract?


Again, the contract is don't expect an order.


--
http://worldcookery.com -- Professional Zope documentation and training
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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: What's the deal with sublocations?

2007-04-10 Thread Philipp von Weitershausen

Philipp von Weitershausen wrote:

Stefan H. Holek wrote:

Most ObjectEvents are dispatched to sublocations.


Well, the ones that deal with the object hierarchy. This mostly concerns 
IObjectMovedEvents and their sub-event types (added, removed). I don't 
think it makes a lot of sense to dispatch other object events.


I was wondering whether it is ok for me to expect a certain dispatch 
order, i.e. top-down (container before sublocation) or bottom-up 
(sublocation before container)?


No. The dispatch to sublocations is an event handler itself. One should 
not depend on the execution order of event handlers, therefore you 
should not depend on this dispatch happening before or after your own 
event handler(s) for IObjectMovedEvent.


What I find is that this order depends on things like the exact 
interface a handler is registered for and, in Zope 2.9 (+3.2), even on 
the way I run tests (!).


I can only conclude that there is no guaranteed dispatch order. Now, 
should there be? Where can I learn about this contract?


Again, the contract is don't expect an order.


I've rejected http://www.zope.org/Collectors/Zope/2308 therefore.
___
Zope-Dev maillist  -  Zope-Dev@zope.org
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: What's the deal with sublocations?

2007-04-10 Thread Stefan H. Holek

Thanks!

On 10. Apr 2007, at 18:34, Philipp von Weitershausen wrote:

No. The dispatch to sublocations is an event handler itself. One  
should not depend on the execution order of event handlers,  
therefore you should not depend on this dispatch happening before  
or after your own event handler(s) for IObjectMovedEvent.


--
Anything that, in happening, causes itself to happen again,
happens again.  --Douglas Adams


___
Zope-Dev maillist  -  Zope-Dev@zope.org
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-PAS] using Session Auth Helper, sequence of active plugins

2007-04-10 Thread robert rottermann
Hi there,

I would like to use Session Auth Helper to authenticate a user after he
has logged into a site using Active Directory.

this are the steps I use to create the setup:
- add an ActiveDirectory Multiplugin
- activate all services
- apply patches to have the groups working
according instructions on Plone I install
LDAPMultiPlugins-plone.org.patch from antiloop.plone.org
- add an Session Auth Helper
- activate all three services (Reset Credentials, UpdateCredentials,
Extraction)
- Up the session timeout of the site to 5 hours

Now my questions:
- do I have to change the sequence of the active plugins to avoid
contacting the AD server after a successful login
  (as long the session is active)
it is like this now
credentials_cookie_auth
   AD Multiplugin
   Session Auth Helper
  
- is there something else I have to take care of?

thanks for your advice
robert

 
begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas


[Zope-PAS] Re: using Session Auth Helper, sequence of active plugins

2007-04-10 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

robert rottermann wrote:
 Hi there,
 
 I would like to use Session Auth Helper to authenticate a user after he
 has logged into a site using Active Directory.
 
 this are the steps I use to create the setup:
 - add an ActiveDirectory Multiplugin
 - activate all services
 - apply patches to have the groups working
 according instructions on Plone I install
 LDAPMultiPlugins-plone.org.patch from antiloop.plone.org
 - add an Session Auth Helper
 - activate all three services (Reset Credentials, UpdateCredentials,
 Extraction)
 - Up the session timeout of the site to 5 hours
 
 Now my questions:
 - do I have to change the sequence of the active plugins to avoid
 contacting the AD server after a successful login

   (as long the session is active)
 it is like this now
 credentials_cookie_auth
AD Multiplugin
Session Auth Helper
   
 - is there something else I have to take care of?


Yes, you want the session auth plugin to be registered *ahead* of the AD
/ LDAP plugin, in the registration for IAuthenticateCredentials.  That
list looks like the one for IExtractCredentials (the cookie plugin can't
actually authenticate, it only retrieves credentials from the request).


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGHAz9+gerLs4ltQ4RAo5JAJ4kVxTZ9badjK0VhVjGrKScqhocmgCcDYu8
RjQursJjH2PLjN7MNTZpvSs=
=dLj/
-END PGP SIGNATURE-

___
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas


Re: [Zope-PAS] Re: using Session Auth Helper, sequence of active plugins

2007-04-10 Thread robert rottermann
Tres Seaver wrote:
 robert rottermann wrote:
  Hi there,
 
  I would like to use Session Auth Helper to authenticate a user after he
  has logged into a site using Active Directory.
 
  this are the steps I use to create the setup:
  - add an ActiveDirectory Multiplugin
  - activate all services
  - apply patches to have the groups working
  according instructions on Plone I install
  LDAPMultiPlugins-plone.org.patch from antiloop.plone.org
  - add an Session Auth Helper
  - activate all three services (Reset Credentials,
 UpdateCredentials,
  Extraction)
  - Up the session timeout of the site to 5 hours
 
  Now my questions:
  - do I have to change the sequence of the active plugins to avoid
  contacting the AD server after a successful login

(as long the session is active)
  it is like this now
  credentials_cookie_auth
 AD Multiplugin
 Session Auth Helper

  - is there something else I have to take care of?


 Yes, you want the session auth plugin to be registered *ahead* of the AD
 / LDAP plugin, in the registration for IAuthenticateCredentials.  That
 list looks like the one for IExtractCredentials (the cookie plugin can't
 actually authenticate, it only retrieves credentials from the request).


 Tres.
 --
thanks Tres,
a stupid follow up question: what is ahead?
(from the context of this mail) I assume this means above of AD?

robert
begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas


Re: [Zope-PAS] Re: using Session Auth Helper, sequence of active plugins

2007-04-10 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

robert rottermann wrote:
 Tres Seaver wrote:
 robert rottermann wrote:
 Hi there,

 I would like to use Session Auth Helper to authenticate a user after he
 has logged into a site using Active Directory.

 this are the steps I use to create the setup:
 - add an ActiveDirectory Multiplugin
 - activate all services
 - apply patches to have the groups working
 according instructions on Plone I install
 LDAPMultiPlugins-plone.org.patch from antiloop.plone.org
 - add an Session Auth Helper
 - activate all three services (Reset Credentials,
 UpdateCredentials,
 Extraction)
 - Up the session timeout of the site to 5 hours

 Now my questions:
 - do I have to change the sequence of the active plugins to avoid
 contacting the AD server after a successful login
   (as long the session is active)
 it is like this now
 credentials_cookie_auth
AD Multiplugin
Session Auth Helper
   
 - is there something else I have to take care of?

 Yes, you want the session auth plugin to be registered *ahead* of the AD
 / LDAP plugin, in the registration for IAuthenticateCredentials.  That
 list looks like the one for IExtractCredentials (the cookie plugin can't
 actually authenticate, it only retrieves credentials from the request).


 Tres.
 --
 thanks Tres,
 a stupid follow up question: what is ahead?
 (from the context of this mail) I assume this means above of AD?

Yes.  You want the session auth plugin to succeed before the PAS
consults the AD plugin.  As an alternative, you might look into enabling
caching for the AD plugin.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGHGJ4+gerLs4ltQ4RAiC3AKCl4sd3crLSO+3SkxfqZ/JjzrQsOgCgv1dx
zNZ4tRjZxQsEkYRvS4u33eQ=
=lqRW
-END PGP SIGNATURE-
___
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas


[Zope] Simple ZODB Search and Edit

2007-04-10 Thread Peppe Top

Hi all,

I'm new to Zope and I'm reading through a few tutorials
and the Zope book. I need to do a text string search on
a ZODB and I need to know which objects contain the string.

Example: I have a site running up, and I need to know
where my mail is mentioned, so I can edit each object
and update the mail. (I think using ZMI)


From the documentation I think that ZCatalog might do

the trick, but I'm not sure it's the easier solution.

Am I on the right path?

Can you get me started?

I just need a fixed string search, returning the name
(maybe the path too) of the object inside the ZODB, so
I can later edit.

Is ZMI the right tool to do simple editing?

Also is ZCatalog already included in Zope, or do I need
to install it?

Thanks a lot for your time
-- Peppe
___
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] what if the query gives no records?

2007-04-10 Thread siva k

Hi,

A very basic question: a dtml-in loop calls an zsql method
it works fine when there is data but when there is no data
it should display no records found. But it displays nothing when
there are no records. Please suggest a soultion


dtml-in select_something(parameter=parameter ,parameter1=parameter1)

 dtml-if _['sequence-start']==_['sequence-end']
no records found

  dtml-else
dtml-var fieldname

/dtml-if

/dtml-in

thanks,

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


___
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 )


Re: [Zope] what if the query gives no records?

2007-04-10 Thread Jonathan


- Original Message - 
From: siva k [EMAIL PROTECTED]

To: zope@zope.org
Sent: Tuesday, April 10, 2007 7:36 AM
Subject: [Zope] what if the query gives no records?

A very basic question: a dtml-in loop calls an zsql method
it works fine when there is data but when there is no data
it should display no records found. But it displays nothing when
there are no records. Please suggest a soultion


dtml-in select_something(parameter=parameter 
,parameter1=parameter1)


 dtml-if _['sequence-start']==_['sequence-end']
no records found

  dtml-else
dtml-var fieldname

/dtml-if

/dtml-in



dtml-in
work with content here
dtml-else
if no content, dtml-in passes control here
/dtml-in


hth

Jonathan

___
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] Access to list items with path expression

2007-04-10 Thread Garito

Hi!

Is there any way to access to some list index with TALES expression?

I would like to use something like here/list/0 or here/list/int:0

Is this possible?

Thanks!

--
Mis Cosas
http://blogs.sistes.net/Garito
___
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 )


Re: [Zope] ZEO clients going zombie

2007-04-10 Thread Dieter Maurer
Bengt Giger wrote at 2007-4-10 15:36 +0200:
with our new ZEO client systems, we frequently observe this problem:

a ZEO process starts to use 100% CPU time (user) without a significant
increase of requests. Sometimes (but not always) the process stops answering
requests, still using 100% CPU.

When we kill such a process, it changes to zombie state (shown in top as 'Z'
and 'defunct'), still using 100% CPU, but now its system time, not user. The
HTTP port is still in use, so we have to reboot this node to restart the ZEO
client. This usually fails because some filesystems cannot be unmouted, there
are still files locked.

I tried both start modes, runzope and zopectl, but no difference.

All that is in opposition of what I know about zombie processes, they should
use no CPU time.

I may have seen a similar problem (though I am not sure about the details):

  The problem was a buggy Python signal handling together with
  a doubtful Linux thread implementation (2.4 kernel).

  When a fatal signal occured, the signal killed the main thread
  but all other threads were in a strange state. Only a SIGKILL
  could get them out of this state. Of course, the ports
  remained open although nobody serviced them.

  I am not sure whether the threads were in zombie state or used
  CPU. Probably not.



-- 
Dieter
___
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] [Ann] analyseObjects: analyse live objects

2007-04-10 Thread Dieter Maurer
With ExtensionClass becoming a Python new style class (i.e. with Zope 2.8), 
Zope's main tool to analyse memory leaks (the Refcounts display in 
Control_Panel -- Debug information) lost most of its value as it now only 
reports refcounts for old style classes and acquistion wrappers. Therefore, I 
developped analyseObjects. It can be used as an External Method.

analyseObjects analyses the objects known to the garbage collector. Usually, 
these include only objects that can contain links to other objects (such as 
tuples, lists, dicts, class instances, ...). Therefore, it can not detect all 
memory leaks (e.g. an old leak losing string objects in the session machinery 
could not have been detected). Nevertheless, it is a valuable aid.

More information and download:

  http://www.dieter.handshake.de/pyprojects/zope#analyseObjects



-- 
Dieter
___
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 )


Re: [Zope] [Ann] analyseObjects: analyse live objects

2007-04-10 Thread Marco Bizzarri

On 4/10/07, Dieter Maurer [EMAIL PROTECTED] wrote:



More information and download:

  http://www.dieter.handshake.de/pyprojects/zope#analyseObjects




Hi Dieter,

am I missing something, or the code is not on the web?

Regards
Marco

--
Marco Bizzarri
http://iliveinpisa.blogspot.com/
___
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 )


Re: [Zope] [Ann] analyseObjects: analyse live objects

2007-04-10 Thread Maciej Wisniowski

 Hi Dieter,
 
 am I missing something, or the code is not on the web?
I'm able to get the code from here:
http://www.dieter.handshake.de/pyprojects/zope/analyseObjects.py

-- 
Maciej Wisniowski
___
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] Z Search Interface returns numbers

2007-04-10 Thread Peppe Top

I've diligently followed the tutorial about searching in the Zope book:

http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/SearchingZCatalog.stx

You basically:
- create a ZCatalog object
- create a Lexicon and an Index
- finding objects and cataloging them
- create a web interface (with Z Search Interface) to search the ZCatalog.

When I search something in the SearchForm (via the test tab)
I just get numbers. I mean the ReportForm correctly reports the
objects containing the searched string, but lists handles (I guess).

Is this normal?

What can I do in order to get something like:

/Zoo/Serpents
/Zoo/Reptiles

(the above are imaginary DTML documents matching
the search criteria, and their path to ZODB root)

instead of:

4567489
4567480

???

Thanks a lot
-- Peppe

(Plone 2.1.2, Zope 2.8.7, Python 2.3.5, Red Hat Linux)
___
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 )


Re: [Zope] Z Search Interface returns numbers

2007-04-10 Thread Luciano Ramalho

You missed a step: you must use the Metadata tab of the ZCatalog to
define which fields of the indexed objects should be returned with the
results from the search. After you do that, you'll have to update the
catalog (Advanced tab) and then regenerate your search interface.

For instance, to return the ids of the objects, add id as a metadata.
If you'd like to show the URL of each item, there is no need to set
metadata for that, since the records returned form the catalog have a
method called getUrl which gives you that. So you can use
record/getUrl, where record is the variable name used in the
tal:repeat statement which invokes the catalog search results.

Cheers,

Luciano

On 4/10/07, Peppe Top [EMAIL PROTECTED] wrote:

I've diligently followed the tutorial about searching in the Zope book:

http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/SearchingZCatalog.stx

You basically:
- create a ZCatalog object
- create a Lexicon and an Index
- finding objects and cataloging them
- create a web interface (with Z Search Interface) to search the ZCatalog.

When I search something in the SearchForm (via the test tab)
I just get numbers. I mean the ReportForm correctly reports the
objects containing the searched string, but lists handles (I guess).

Is this normal?

What can I do in order to get something like:

/Zoo/Serpents
/Zoo/Reptiles

(the above are imaginary DTML documents matching
the search criteria, and their path to ZODB root)

instead of:

4567489
4567480

???

Thanks a lot
-- Peppe

(Plone 2.1.2, Zope 2.8.7, Python 2.3.5, Red Hat Linux)
___
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 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] Problem with using versions.

2007-04-10 Thread Catherine E. Reinehr
Hi,

I've been working in a version for over a week and finally finished my
changes today.  I saved them and quit the version, but the affected folder
still has a lock on it.  I've tried four times now to save my changes, and
it's just not working.  The first time, it seemed to publish the changes but
the folder was still locked.  On later tries, I encounter an error when I
try to access the page after saving changes.  Any suggestions?

Thanks,
Cathy

-

Catherine E. Reinehr
Webmaster  Publications Designer
Huntingdon College
1500 E. Fairview Ave.
Montgomery, AL 36106
(334) 833-4429 / Flowers 103

___
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 )


Re: [Zope] Problem with using versions.

2007-04-10 Thread robert rottermann
catherine,
what do you mean by version?
what zope and additional products are you using?

robert

Catherine E. Reinehr wrote:
 Hi,

 I've been working in a version for over a week and finally finished my
 changes today.  I saved them and quit the version, but the affected folder
 still has a lock on it.  I've tried four times now to save my changes, and
 it's just not working.  The first time, it seemed to publish the changes but
 the folder was still locked.  On later tries, I encounter an error when I
 try to access the page after saving changes.  Any suggestions?

 Thanks,
 Cathy

 -

 Catherine E. Reinehr
 Webmaster  Publications Designer
 Huntingdon College
 1500 E. Fairview Ave.
 Montgomery, AL 36106
 (334) 833-4429 / Flowers 103

 ___
 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 )

   

begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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: VirtualHostBase VHM keyword doesn't work.

2007-04-10 Thread Dilley, Hara

are you loading the proxy modules?

here is part of the http.config file that is working for me, however with that 
configuration all request are going to zope.  Is there a way to have part of 
the requests going to zope and others being served by apache?

--
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
--

VirtualHost *:80
 ServerAlias   someName

 ServerSignature On

 CustomLog myLog.log
 ErrorLog  myError.log
 LogLevel warn
 IfModule mod_rewrite.c
   RewriteEngine On
   RewriteRule ^/(.*) \
  
http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/myVHM/VirtualHostRoot/$1
 [L,P]
  /IfModule
/VirtualHost
 

-Original Message-
From: [EMAIL PROTECTED] on behalf of Mark, Jonathan (Integic)
Sent: Tue 4/10/2007 9:23 PM
To: zope@zope.org
Subject: VirtualHostBase VHM keyword doesn't work.
 
Zope 2.9 says in the Virtual Host Monster About Tab: For example, suppose Zope 
is running on port 8080 behind an Apache running on port 80. You place a 
Virtual Host Monster in the Zope root Folder, and use Apache to rewrite /(.*) 
to 
http://localhost:8080/VirtualHostBase/http/www.buystuff.com:80/buystuff.com/VirtualHostRoot/$1.;

However, the following in my Apache 2.2 httpd file does not work:

VirtualHost *:80
RewriteEngine on
DocumentRoot /var/www
Servername goodbyeken.com
RewriteRule /(.*)  
http://goodbyeken.com:8080/VirtualHostBase/http/www.goodbyeken.com:80/goodbyeken.com/VirtualHostRoot/$1
/VirtualHost

The above directive results in a Zope resource not found error. I have a 
Virtual Host Monster called myVHM in my Zope root directory. myVHM is able to 
do redirections that do not include the VirtualHostBase keyword.

Why doesn't the VirtualHostBase keyword work?


___
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] manipulating zodb from independent database connection

2007-04-10 Thread Tim Nash

Does anybody have a script available that shows how to insert objects
into the ZODB root['Application'] from a non-zope process outside the
Zope application? Everytime I try to read root['Application'] I get a
page template error.

I'm using zope 2.5 (matches a book I like) and doing like so:

 from ZODB import FileStorage, DB

storage = FileStorage.FileStorage('Data.fs')
db = DB(storage)
connection = db.open()
root = connection.root()


Also, can the ZODB be altered this way on a running Zope instance? I
would like to have a script run on cron and insert objects and remove
objects from the ZODB while the zope instance application is running.
I'd like these newly inserted objects to be Zpublishable as well.

Thanks!
Tim
___
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 )


Re: [Zope] VirtualHostBase VHM keyword doesn't work.

2007-04-10 Thread Paul Winkler
On Wed, Apr 11, 2007 at 12:23:14AM -0400, Mark, Jonathan (Integic) wrote:

 Zope 2.9 says in the Virtual Host Monster About Tab: For example,
 suppose Zope is running on port 8080 behind an Apache running on
 port 80. You place a Virtual Host Monster in the Zope root Folder,
 and use Apache to rewrite /(.*) to
 http://localhost:8080/VirtualHostBase/http/www.buystuff.com:80/buystuff.com/VirtualHostRoot/$1.;
 
 However, the following in my Apache 2.2 httpd file does not work:
 
 VirtualHost *:80
 RewriteEngine on
 DocumentRoot /var/www
 Servername goodbyeken.com
 RewriteRule /(.*)  
 http://goodbyeken.com:8080/VirtualHostBase/http/www.goodbyeken.com:80/goodbyeken.com/VirtualHostRoot/$1
 /VirtualHost
 
 The above directive results in a Zope resource not found error.

It would be useful if you could tell us WHAT resource is not found.
Check your logs.  Your zope access log is very useful when trying to
configure rewrite rules; you can see exactly what path Apache request.

 I have a Virtual Host Monster called myVHM in my Zope root
 directory. myVHM is able to do redirections that do not include the
 VirtualHostBase keyword.  Why doesn't the VirtualHostBase keyword
 work?

It does.  My first guess would be that you don't have a folder named
goodbyeken.com.

-- 

Paul Winkler
http://www.slinkp.com
___
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 )


Re: [Zope] manipulating zodb from independent database connection

2007-04-10 Thread Paul Winkler
On Tue, Apr 10, 2007 at 10:19:43PM -0700, Tim Nash wrote:
 Does anybody have a script available that shows how to insert objects
 into the ZODB root['Application'] from a non-zope process outside the
 Zope application? Everytime I try to read root['Application'] I get a
 page template error.
 
 I'm using zope 2.5 (matches a book I like)

You can do whatever you like, but you're not likely to find many
people still running 2.5 on this list... so you might get less useful
help than you would like.

 and doing like so:
 
  from ZODB import FileStorage, DB
 storage = FileStorage.FileStorage('Data.fs')
 db = DB(storage)
 connection = db.open()
 root = connection.root()
 
 Also, can the ZODB be altered this way on a running Zope instance?

Not with FileStorage. Only one process at a time can open a
FileStorage.

If you would use ZEO instead, then it would be possible. Your code
above would then be modified to use ClientStorage instead of
FileStorage.  But I don't know exactly what the code would look like
in zope 2.5, I haven't run that version in years.  I vaguely remember
needing a custom_zodb.py file to set up ClientStorage.  If you would
upgrade to a more recent Zope (2.7 or later), then ZEO is available
out of the box just by uncommenting some lines in the example
zope.conf.  And you would also get a script at bin/zopectl that's
perfect for this kind of job.  Your own script would be invoked as an
argument to zopectl, like:

 ./bin/zopectl run path/to/my/script

... and you would get the root application automatically set up for
you and bound as app.

But you still need to use ZEO.

-- 

Paul Winkler
http://www.slinkp.com
___
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 )