[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/lib/python/Products/Five/browserconfigure.py - Missing import

2005-09-21 Thread Sidnei da Silva
Log message for revision 38562:
  
  - Missing import
  

Changed:
  U   Zope/branches/Zope-2_8-branch/lib/python/Products/Five/browserconfigure.py

-=-
Modified: 
Zope/branches/Zope-2_8-branch/lib/python/Products/Five/browserconfigure.py
===
--- Zope/branches/Zope-2_8-branch/lib/python/Products/Five/browserconfigure.py  
2005-09-22 01:44:39 UTC (rev 38561)
+++ Zope/branches/Zope-2_8-branch/lib/python/Products/Five/browserconfigure.py  
2005-09-22 02:55:46 UTC (rev 38562)
@@ -27,6 +27,7 @@
 from zope.publisher.interfaces.browser import IBrowserRequest
 from zope.app.publisher.browser.viewmeta import pages as zope_app_pages
 from zope.app.publisher.browser.viewmeta import view as zope_app_view
+from zope.app.publisher.browser.viewmeta import providesCallable
 from zope.app.publisher.browser.globalbrowsermenuservice import\
  menuItemDirective
 from zope.app.component.metaconfigure import handler
@@ -261,9 +262,9 @@
 cname = str(name)
 except:
 cname = GeneratedClass
-
+
 newclass = makeClass(cname, bases, cdict)
-
+
 _handle_for(_context, for_)
 
 if self.provides is not None:

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-Coders] Zope tests: 8 OK

2005-09-21 Thread Zope tests summarizer
Summary of messages to the zope-tests list.
Period Tue Sep 20 11:01:02 2005 UTC to Wed Sep 21 11:01:02 2005 UTC.
There were 8 messages: 8 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Tue Sep 20 22:33:23 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-September/003135.html

Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Tue Sep 20 22:34:53 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-September/003136.html

Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Tue Sep 20 22:36:23 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-September/003137.html

Subject: OK : Zope-2_7-branch Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Tue Sep 20 22:37:53 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-September/003138.html

Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Tue Sep 20 22:39:23 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-September/003139.html

Subject: OK : Zope-2_8-branch Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Tue Sep 20 22:40:53 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-September/003140.html

Subject: OK : Zope-trunk Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Tue Sep 20 22:42:23 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-September/003141.html

Subject: OK : Zope-trunk Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Tue Sep 20 22:43:53 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-September/003142.html

___
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders


Re: [Zope-dev] Weird IndexableObjectWrapper + TopicIndex + aq_acquired interactions.

2005-09-21 Thread Lennart Regebro
Dieter, my man!

 Now, in our case, the object is an IndexableObjectWrapper, wrapping an
 Acquisition wrapped object. So, aq_acquire will Acquicision wrap the
 IndexableObjectWrapper, with the result that the object being used now
 has no context!
 
 Really?

No?

What is the aq_parent that was used when wrapping the object?

Eh, which one? The aq_chain of both the original aq wrapper and the
indexableobjectrapper is correct. The aq_chain of the outside
aq_wrapper is just [self]. Which seems expected, since aq_acquire
think it got an object without acquisition, right?


It is context of the IndexableObjectWrapper.
The context of the indexable wrapped object does not change.

Right...

 Then, it passes this to validate, who in turn passes it to allowed,
 who check that the object has the users user folder in it's context.
 
 And it hasn't, because it has no context. *blam* You get an
 AuthorizedError, and the object does not get indexed.
 
 Where does the context come from used when aq_acquire acquisition
 wrapped the IndexableObjectWrapper?

I don't think there is any context involved.

 The best way around such problems would probably by to make
 IndexableObjectWrapper a public class.

Public?

-- 
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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: [Zope-Checkins] SVN: Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py added FilelogHandler

2005-09-21 Thread Chris Withers

Is there any way this could use normal python loggers?

logger = getLogger('progress')

?

(and then with a more generic section in zope.conf for having more 
loggers configured...)


Andreas Jung wrote:

Log message for revision 38482:
  added FilelogHandler
  


Changed:
  U   Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py

-=-
Modified: Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py
===
--- Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py  2005-09-15 
13:22:20 UTC (rev 38481)
+++ Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py  2005-09-16 
08:29:14 UTC (rev 38482)
@@ -95,3 +95,16 @@
 def output(self, text):
 LOG(self._ident, INFO, text)
 
+

+class FilelogHandler(StdoutHandler)
+ Use a custom file for logging 
+
+__implements__ = IProgressHandler
+
+def __init__(self, filename, steps=100):
+StdoutHandler.__init__(self, steps)
+self.filename = filename
+
+def output(self, text):
+open(self.filename, 'a').write(text + '\n')
+

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins



--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

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


Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py added FilelogHandler

2005-09-21 Thread Chris Withers

Andreas Jung wrote:
This is basically a backport of ongoing work where we can't and want use 
the Zope logger.


How come?

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
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 )


Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py added FilelogHandler

2005-09-21 Thread Chris Withers

Andreas Jung wrote:
This is basically a backport of ongoing work where we can't and want use 
the Zope logger.


How come?

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
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 )


Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/trunk/lib/python/Products/ZCatalog/ProgressHandler.py added FilelogHandler

2005-09-21 Thread Andreas Jung



--On 21. September 2005 13:29:26 +0200 Chris Withers 
[EMAIL PROTECTED] wrote:



Andreas Jung wrote:

This is basically a backport of ongoing work where we can't and want use
the Zope logger.


How come?



Basically a co-worker had the requirement to do some maintenance  work on 
the ZCatalog and he did not want to configure a new logger or to mess up 
the existing logfile.


-aj



pgp3LAhzPmPi9.pgp
Description: PGP signature
___
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 )


Re: [Zope-dev] Weird IndexableObjectWrapper + TopicIndex + aq_acquired interactions.

2005-09-21 Thread Dieter Maurer
Lennart Regebro wrote at 2005-9-21 08:18 +0200:
 ...
What is the aq_parent that was used when wrapping the object?

Eh, which one? The aq_chain of both the original aq wrapper and the
indexableobjectrapper is correct. The aq_chain of the outside
aq_wrapper is just [self]. Which seems expected, since aq_acquire
think it got an object without acquisition, right?

Depending of what self is.

When an acquisition wrapper is formed, there always must some context
(which is put into aq_parent).

Almost all contexts contain a full acquisition chain.

Maybe, we should wrap the IndexableObjectWrapper into the
context of the catalog?

 ...
 Where does the context come from used when aq_acquire acquisition
 wrapped the IndexableObjectWrapper?

I don't think there is any context involved.

When an acquisition wrapper is formed, there is a context -- the
one put as parent argument of the acquisition wrapper constructor.

 The best way around such problems would probably by to make
 IndexableObjectWrapper a public class.

Public?

Yes, public (to let all security checks succeed).

   Of course, this means that someone with the permission to
   customize a catalog can obtain information he may not
   gain in a different way.


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


Re: [Zope-dev] Weird IndexableObjectWrapper + TopicIndex + aq_acquired interactions.

2005-09-21 Thread Lennart Regebro
 When an acquisition wrapper is formed, there always must some context
 (which is put into aq_parent).

Well, as I can figure out this is the code that does the wrapping:

  /* Crap, we've got to construct a wrapper so we can use Wrapper_findattr */
  UNLESS (self=newWrapper(self, Py_None, (PyTypeObject*)Wrappertype))
return NULL;

And that has None as the container/context.


http://svn.zope.org/Zope/tags/Zope-2-8-1/lib/python/Acquisition/_Acquisition.c?rev=37855view=markup
___
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] Title or ID question

2005-09-21 Thread Phil Beardmore
Hi All, this may be a simple question, and I'm still trying to get to 
grips with Plone so I hope you can help.  I want to add the page title 
into a Plone Document, and also a Zope Page Template.


I know in DTML is just a case of inserting the following line:
dtml-var title_or_id

But I'm unsure of how to do it in ZPT and Plone Document.

Hope you understand my question and can help.

All the best
Phil


smime.p7s
Description: S/MIME Cryptographic Signature
___
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] Title or ID question

2005-09-21 Thread Peter Bengtsson
Try 
h2 tal:content=context/title_or_id/h2

2005/9/21, Phil Beardmore [EMAIL PROTECTED]:
 Hi All, this may be a simple question, and I'm still trying to get to
 grips with Plone so I hope you can help.  I want to add the page title
 into a Plone Document, and also a Zope Page Template.
 
 I know in DTML is just a case of inserting the following line:
 dtml-var title_or_id
 
 But I'm unsure of how to do it in ZPT and Plone Document.
 
 Hope you understand my question and can help.
 
 All the best
 Phil
 
 
 ___
 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 )
 
 
 
 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.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 )


[Zope] reading values from radio buttons (python script)

2005-09-21 Thread Georgakopoulos Nicolas
I have made a form with various quetions . The answers are given by 
radio buttons and check boxes.

When the user submit the form it is send to my e-mail by zope mailhost.
How can I get the radio and checkbox values ?
I only know to get values from text boxes...
my code for the form is form action=mailAction.py method=POST , I 
use ZPT for the form and python script to get the values and send the mail.



___
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] reading values from radio buttons (python script)

2005-09-21 Thread Lennart Regebro
On 9/21/05, Georgakopoulos Nicolas [EMAIL PROTECTED] wrote:
 I have made a form with various quetions . The answers are given by
 radio buttons and check boxes.
 When the user submit the form it is send to my e-mail by zope mailhost.
 How can I get the radio and checkbox values ?
  I only know to get values from text boxes...

Because the people who designed the HTML form functionality are brain
dead morons, Not checked and not existing is the same thing.
Therefore you need to do this:

request.form.get('fieldname', False)

-- 
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] No access to ZMI but plone instances work

2005-09-21 Thread Michael Zimmermann
Hi there,

after an upgrade from debian woody to debian sarge I do have the problem
that I can not access the ZMI any more. I. e. if I do
some.domain.com:8080/manage my browser is unable to show the page and
complains about: text/x-unknown-content-type.

But if I access a plone instance located in
some.domain.com:8080/ploneInstance all works as expected.

It seems that the zmi page in zope does not deliver the right content
type for the browser to handle while the plone instances do... This I
tested with different browsers on different machines. So I think it is a
zope issue.

But what to do now?

Zope and python is compiled from source and was just not changed during
the woody to sarge upgrade.
Using:
python 2.3.5
zope 2.7.6

-- 
cu,
   Michael

---
|  [EMAIL PROTECTED] |
--


___
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] how to programmatically control zope?

2005-09-21 Thread bruno modulix
David Pratt wrote:
 Hi. This discussion has really helped me with my question about running
 asynchronous methods also since these kinds of requests could be cronned
 at the very least.  But what about triggering this kind of script from
 the running zope instance.  Is this possible?
 

Two solutions a priori:
- call an external method that launch a thread that do the job
- fork and launch the script as a new process with os.execXXX

You'll find documentations about threads and os.execXX in the Python's
manual. Now there can be Zope-specific gotchas, but there I can't help you.



-- 
Bruno Desthuilliers
Développeur
[EMAIL PROTECTED]
___
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] Title or ID question

2005-09-21 Thread Paul Winkler
 Try
 h2 tal:content=context/title_or_id/h2

 2005/9/21, Phil Beardmore [EMAIL PROTECTED]:
 Hi All, this may be a simple question, and I'm still trying to get to
 grips with Plone so I hope you can help.  I want to add the page title
 into a Plone Document, and also a Zope Page Template.

 I know in DTML is just a case of inserting the following line:
 dtml-var title_or_id

 But I'm unsure of how to do it in ZPT and Plone Document.

Peter answered already for ZPT; but for Plone Documents, the answer
is: You can't do that  Documents contain only static content.
Presentation is handled entirely by the skin tool.
If you want to change the way they appear, you need to customize
the document_view template that lives somewhere in your plone skins.
It should already include the title so I'm not sure why you
want to change this.

If you already knew all that, then, I didn't understand your question :-)

-PW


___
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] Multiple ZODB for virtual hosts with ZEO

2005-09-21 Thread David Pratt
Hi Dieter!  This is really nice to know.  Zope is really flexible and 
so awesome as a result.  If I wanted to configure with multiple zodb 
for a single ZEO server you say there may be a possible downside in 
requiring a single ZEO server per database instance further down the 
road.  Is this something that is currently planned so I don't implement 
something that will  not be supported later?  It could be also be a bit 
of a problem since each ZEO server requires its own RAM.  RAM is a 
valuable commodity.


My goal is to ensure that customers I work with are working exclusively 
in their own zodb.  It seems preferable for these zodb's to be 
associated with a single ZEO server (instead of each zodb mounted in a 
single zope instance) to make maintenance tasks smooth and handled 
asynchronously.  Would you agree? I realize that if resources were 
unlimited, it would be best for a single ZEO server to use a single 
zodb and have one or more ZEO clients.  My circumstance is that the 
virtual sites are relatively small, they make heavy use of the 
filesystem blobs and relational database storages to deliberately 
minimize the size and demand on zodb.  I can't see the zodb per virtual 
site growing to any more than 50MB in size for example.


I guess I see the possibility of single ZEO  for a number of virtual 
hosted sites as a plus (since it means also that I could add additional 
ZEO clients to provide more threads for serving the group of virtual 
sites). I guess I am just trying to determine the sanity of doing it.  
I see also with this possible arrangement I could move a zodb out into 
its own ZEO server and ZEO client situation if it was needed.  Many 
thanks.


Regards,
David

On Tuesday, September 20, 2005, at 02:23 PM, Dieter Maurer wrote:

You can do this -- without ZEO, with a single ZEO (and multiple 
storages)

and with many ZEOs.

___
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] Multiple databases/instances

2005-09-21 Thread David Pratt
Hi Eric.  I am in the same boat and trying to determine a similar issue.  I want to use ZEO because of what I can to to perform maintenance and testing without affecting production sites.  I know it is not a problem to work with a mount point (separate database) for each virtual site in a single zope instance (but whether it is recommended to run a single zeo instance with multiple databases so each virtual site running under a ZEO client can still use its own zodb I would like to know more about).  It is imperative for me to keep each clients' data in its own zodb for a variety of reasons (ie. backup, portability,  scalability).  I hope there are those with experience to comment on whether an approach like this is advised also.  Dieter responded to my message yesterday about it being possible to run multiple zodb behind a single ZEO but whether or not it is recommended, I would like to know more about also.

For me, the databases are small but nonetheless I want to keep them separate (and associated with each virtual site) regardless of whether they are being managed out of a single ZEO server or Zope instance.  I would also like to keep this with a single ZEO if possible since a one to one ZEO server instance to zodb would not be so great on RAM resources of the server and in my opinion would be like using a cannon when you may only need a slingshot.

Regards,
David

On Tuesday, September 20, 2005, at 03:36 PM, Eric Wohnlich wrote:

I'm working on the scalability aspect of Zope, and am trying to see what the best practices are for creating multiple databases or multiple Zope instances. I am using ZEO and have allowed for multiple databases (Data.fs files) by editing zeo.conf just to try that out, because our current database is getting very large. The way I understand it, ZEO allows the work load to be distributed among multiple clients when you are getting a lot of hits, but does not address the issue of having a very large database for which it may slow down. So for this you would either create multiple instances of Zope/ZEO which each have their own database, or you would just create multiple databases within a single Zope/ZEO instance. Is there what is considered a best practice as far as choosing one of these options? Is there a database size I should try to maintain by distributing my Plone sites among different databases - or maybe just have a separate database for each? Or perhaps I am way off...
 
Eric
___
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 )


Re: [Zope] how to programmatically control zope?

2005-09-21 Thread David Pratt
Hi Bruno.  Many thanks you for your reply.  Yes, I have been looking at 
this more.  With the help of Ron a few days back I am going to try a 
signaling process working with a daemon that uses a queue. So I am 
hoping for user to get response so zope thread is freed up, an 
asynchronous python method / daemon gets signal to run if not already 
running,  job gets added to queue and jobs run queue is empty (then 
daemon goes to sleep).


Regards,
David

On Wednesday, September 21, 2005, at 10:13 AM, bruno modulix wrote:


David Pratt wrote:
Hi. This discussion has really helped me with my question about 
running
asynchronous methods also since these kinds of requests could be 
cronned

at the very least.  But what about triggering this kind of script from
the running zope instance.  Is this possible?



Two solutions a priori:
- call an external method that launch a thread that do the job
- fork and launch the script as a new process with os.execXXX

You'll find documentations about threads and os.execXX in the Python's
manual. Now there can be Zope-specific gotchas, but there I can't help 
you.




--
Bruno Desthuilliers
Développeur
[EMAIL PROTECTED]
___
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] CPSSkins perfs

2005-09-21 Thread Jean-Marc Orliaguet


Hi!

I usually don't read the posts on zope-list,  but I found this one:
http://mail.zope.org/pipermail/zope/2005-September/161330.html

sorry this is a bit old, but ...

M. Davis, what are your benchmark figures based on?

I just ran a quick benchmark on Plone's front page and found:

siege -v -r 10 -c 1 http://localhost:8080/plone
** siege 2.61
** Preparing 1 concurrent users for battle.
The server is now under siege...
...

done. 

Transactions:  10 hits
Availability: 100.00 %
Elapsed time:   2.43 secs
Data transferred: 258630 bytes
Response time:  0.24 secs
Transaction rate:   4.12 trans/sec
Throughput:106432.10 bytes/sec
Concurrency:1.00
Successful transactions:  10
Failed transactions:   0
Longest transaction:0.29  
Shortest transaction:   0.23 



then installed CPSSkins, replaced the calendar portlet with a calendar
templet and placed it in the cache and I got:

siege -v -r 10 -c 1 http://localhost:8080/plone
** siege 2.61
** Preparing 1 concurrent users for battle.
The server is now under siege...
...
done. 

Transactions:  10 hits
Availability: 100.00 %
Elapsed time:   2.00 secs
Data transferred: 247360 bytes
Response time:  0.20 secs
Transaction rate:   5.00 trans/sec
Throughput:123680.00 bytes/sec
Concurrency:1.00
Successful transactions:  10
Failed transactions:   0
Longest transaction:0.23   -
Shortest transaction:   0.19  --


which makes Plone with CPSSkins faster than Plone without CPSSkins by
caching just one portlet. And this is still far above the figures you
can get by caching all portlets (cf. CPSPortlets), in that case a
request will not take more than 0.1 seconds to complete.

Also, putting most of the page content in the RAM cache has made it
possible on sites with a lot of access to minimize the zope-2.7 read
conflict errors which has now be solved in zope-2.8.

regards /JM
___
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] No access to ZMI but plone instances work

2005-09-21 Thread Dieter Maurer
Michael Zimmermann wrote at 2005-9-21 12:57 +0200:
after an upgrade from debian woody to debian sarge I do have the problem
that I can not access the ZMI any more. I. e. if I do
some.domain.com:8080/manage my browser is unable to show the page and
complains about: text/x-unknown-content-type.

Use a TCP-Logger (e.g. Shanes tcpwatch) to see precisely
what data is exchanged between the browser and Zope.

-- 
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] Re: Getting at third-party modules in dtml?

2005-09-21 Thread Dieter Maurer
Paul Winkler wrote at 2005-9-20 14:02 -0500:
 ...
I have to say that's pretty darn obscure behavior.
It's the antithesis of self-documenting, and I've never seen it used
before.  Is this documented somewhere?

It is the ancient product initialization -- used by the first
products: e.g. DTML Document and Method and ZSQL Method.

It was superceeded by product local constructors -- for the obvious
reason to avoid name clashes.

 ...
Also, AFAICT there's no way to declare security on that function.
(which is OK in this case since I wanted something 'public' anyway).

It is -- if you know and use the implementation details
of Zope's security subsystem:

   To protect a method m with permission p,
   you assign PermissionRole(p) to m__roles__.

Not that a maintainer (without the same detailed knowledge
about the security subsystem) would understand such
a method -- unless you had put in an explaining comment...

-- 
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] schema won't update - persistant .pyc files??

2005-09-21 Thread michael nt milne
I've been trying to edit basic text information in a product schema, the member.py of the Samplex tutorial but the text I enter simply won't update through to the form on the website. I've tried everything, including flushing the cache and refreshing the product, re-starting etc. Seems like Zope is holding the old information somewhere and won't let go of it. Does anyone know of any issues with .pyc files that won't replace etc and seem to be cached indefinitely? Totally infuriating. I've tried running in debug mode but I couldn't get any ZMI inferface that way.


This is my set-up:






Zope Version 

(Zope 2.8.0-final, python 2.3.5, linux2) 


Python Version 

2.3.5 (#1, Jul 27 2005, 00:45:20) [GCC 3.3.2 20031022 (Red Hat Linux 3.3.2-1)] 


System Platform 

linux2 


SOFTWARE_HOME 

/opt/Zope-2.8/lib/python 


ZOPE_HOME 

/opt/Zope-2.8 


INSTANCE_HOME 

/home/zopeinstance 


CLIENT_HOME 

/home/zopeinstance/var 


Network Services 

ZServer.HTTPServer.zhttp_server (Port: 8080)


Process Id 

1401 (49156) 


Running For 

29 min 33 sec 
___
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] Problems getting server running in debug mode

2005-09-21 Thread michael nt milne
Has anyone had any problems running in debug mode? I took out the # in the zope.conf file next to - debug-mode on which would set it to be on. However my server wouldn't come back up so I had to turn it off.






Zope Version 

(Zope 2.8.0-final, python 2.3.5, linux2) 


Python Version 

2.3.5 (#1, Jul 27 2005, 00:45:20) [GCC 3.3.2 20031022 (Red Hat Linux 3.3.2-1)] 


System Platform 

linux2 


SOFTWARE_HOME 

/opt/Zope-2.8/lib/python 


ZOPE_HOME 

/opt/Zope-2.8 


INSTANCE_HOME 

/home/zopeinstance 


CLIENT_HOME 

/home/zopeinstance/var 


Network Services 

ZServer.HTTPServer.zhttp_server (Port: 8080)


Process Id 

1401 (49156) 


Running For 

29 min 33 sec 
___
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] schema won't update - persistant .pyc files??

2005-09-21 Thread Peter Bengtsson
Is this a plone site? If so, try going to
localhost:8080/plone1/portal_memberdata/base_edit
and press the Save button.

2005/9/21, michael nt milne [EMAIL PROTECTED]:
 I've been trying to edit basic text information in a product schema, the
 member.py of the Samplex tutorial but the text I enter simply won't update
 through to the form on the website. I've tried everything, including
 flushing the cache and refreshing the product, re-starting etc. Seems like
 Zope is holding the old information somewhere and won't let go of it. Does
 anyone know of any issues with .pyc files that won't replace etc and seem to
 be cached indefinitely? Totally infuriating. I've tried running in debug
 mode but I couldn't get any ZMI inferface that way.

 This is my set-up:



 Zope Version
 (Zope 2.8.0-final, python 2.3.5, linux2)

 Python Version
 2.3.5 (#1, Jul 27 2005, 00:45:20) [GCC 3.3.2 20031022 (Red Hat Linux
 3.3.2-1)]

 System Platform
 linux2

 SOFTWARE_HOME
 /opt/Zope-2.8/lib/python

 ZOPE_HOME
 /opt/Zope-2.8

 INSTANCE_HOME
 /home/zopeinstance

 CLIENT_HOME
 /home/zopeinstance/var

 Network Services
 ZServer.HTTPServer.zhttp_server (Port: 8080)


 Process Id
 1401 (49156)

 Running For
 29 min 33 sec
 ___
 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 )





--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.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] Problems getting server running in debug mode

2005-09-21 Thread Peter Bengtsson
When you switch debug-mode on, do you start zope with ./bin/runzope ?
and if so, what are the error messages if any?


2005/9/21, michael nt milne [EMAIL PROTECTED]:
 Has anyone had any problems running in debug mode? I took out the # in the
 zope.conf file next to  - debug-mode on which would set it to be on. However
 my server wouldn't come back up so I had to turn it off.



 Zope Version
 (Zope 2.8.0-final, python 2.3.5, linux2)

 Python Version
 2.3.5 (#1, Jul 27 2005, 00:45:20) [GCC 3.3.2 20031022 (Red Hat Linux
 3.3.2-1)]

 System Platform
 linux2

 SOFTWARE_HOME
 /opt/Zope-2.8/lib/python

 ZOPE_HOME
 /opt/Zope-2.8

 INSTANCE_HOME
 /home/zopeinstance

 CLIENT_HOME
 /home/zopeinstance/var

 Network Services
 ZServer.HTTPServer.zhttp_server (Port: 8080)


 Process Id
 1401 (49156)

 Running For
 29 min 33 sec
 ___
 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 )





--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.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 )


[Zope] Membership website

2005-09-21 Thread Javier Godinez
Anyone,

Hi, noo-bee here, I need some direction, not sure if I should build my
site from the ground up, or if there are templates that I can use out
there.

I am trying to decide how to go about building site where users can
signup for an account by confirming their email address. They will also
have profiles and a rating system. 

If anyone can direct me where to start, I will really appreciate it,
the tutorials where really basic and didnt get into the details of
sending emails or how to keep a user database with encrypted passwords
to authenticate users.

Thank you so much, Javier Godinez
___
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 )