[Zope] Reg Zope service starting problem

2005-07-24 Thread praba kar
Dear All,

I try to install Zope 2.7.0 in my machine.
This version is  installed successfully but after the
installation I try to run zope service using
runzope command. But I got below error. I am
using gobolinux and Python 2.3.3 for this zope
version.
I try to install some other zope version eg
(2.7.6,2.8.0 and 3.0.0) all the different
version of zope have the same problem.
Kindly let me know what is the problem of
zope installation.

regards
Prabahar

[EMAIL PROTECTED] /Users/enmail/tes]bin/runzope
--
2005-07-25T10:39:52 INFO(0) ZServer HTTP server
started at Mon Jul 25 10:39:52 2005
Hostname: localhost.localdomain
Port: 8080
--
2005-07-25T10:39:52 INFO(0) ZServer FTP server started
at Mon Jul 25 10:39:52 2005
Hostname: prabahar
Port: 8021
--
2005-07-25T10:39:52 INFO(0) Zope Set effective user to
"enmail"
Traceback (most recent call last):
  File
"/Programs/Zope/2.7.0/lib/python/Zope/Startup/run.py",
line 49, in ?
run()
  File
"/Programs/Zope/2.7.0/lib/python/Zope/Startup/run.py",
line 19, in run
start_zope(opts.configroot)
  File
"/Programs/Zope/2.7.0/lib/python/Zope/Startup/__init__.py",
line 51, in start_zope
starter.startZope()
  File
"/Programs/Zope/2.7.0/lib/python/Zope/Startup/__init__.py",
line 230, in startZope
Zope.startup()
  File
"/Programs/Zope/2.7.0/lib/python/Zope/__init__.py",
line 45, in startup
from Zope.App.startup import startup as _startup
  File
"/Programs/Zope/2.7.0/lib/python/Zope/App/startup.py",
line 30, in ?
import OFS.Application
  File
"/Programs/Zope/2.7.0/lib/python/OFS/Application.py",
line 18, in ?
import Globals,Folder,os,sys,App.Product,
App.ProductRegistry, misc_
  File
"/Programs/Zope/2.7.0/lib/python/App/Product.py", line
44, in ?
from HelpSys.HelpSys import ProductHelp
  File
"/Programs/Zope/2.7.0/lib/python/HelpSys/__init__.py",
line 15, in ?
import HelpSys
  File
"/Programs/Zope/2.7.0/lib/python/HelpSys/HelpSys.py",
line 18, in ?
from Products.ZCatalog.ZCatalog import ZCatalog
  File
"/Programs/Zope/2.7.0/lib/python/Products/ZCatalog/__init__.py",
line 16, in ?
import ZCatalog, Catalog, CatalogAwareness,
CatalogPathAwareness, ZClasses
  File
"/Programs/Zope/2.7.0/lib/python/Products/ZCatalog/ZCatalog.py",
line 39, in ?
from IZCatalog import IZCatalog
  File
"/Programs/Zope/2.7.0/lib/python/Products/ZCatalog/IZCatalog.py",
line 236, in ?
__doc__ = IZCatalog.__doc__ + __doc__
TypeError: unsupported operand type(s) for +:
'NoneType' and 'NoneType'







__
Free antispam, antivirus and 1GB to save all your messages
Only in Yahoo! Mail: http://in.mail.yahoo.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] Re: Zope Foundation Update

2005-07-24 Thread Dieter Maurer
Andreas Jung wrote at 2005-7-21 08:29 +0200:
> ... ZEA "silently" registering the Zope logo ...

>If it wasn't a secret I am sure that ZC would know about the secret.

This reminds me a discussion between two business students:

  They planned how to make money with little effort.
  Their business plan looked like this:

Check in which countries Coca Cola (or some other large quickly
expanding company) has not registered its trademarks.
Register them and wait until Coca Cola recognizes its error.
Let them pay for the transferal of the trademark rights.

This discussion convinced me that the trademark laws are almost
as bad as the patent laws...


I do not know ZEA and do not know whether they hired business students
like the above

But it looks very suspicious when they say that they registered
logos they did not design for protective reasons *without*
informing the company that officially use these logos (and paid for the
design) *before* the registration...

-- 
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] Traceback Lines for Send Mail Error

2005-07-24 Thread Dieter Maurer
Asad Habib wrote at 2005-7-22 09:19 -0400:
>If it helps, the last lines in the traceback are as follows:
>
>Module DocumentTemplate.DT_String, line 474, in __call__
>Module Products.MailHost.SendMailTag, line 116, in render
>Module Products.MailHost.MailHost, line 125, in send
>Module Products.MailHost.MailHost, line 144, in _send
>Module smtplib, line 254, in __init__
>gaierror: (7, 'No address associated with nodename')

This error comes from your mail server.
Checks its (the mail server's) documentation to make sense of it.


-- 
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] FW: Problem downloading large files

2005-07-24 Thread Dieter Maurer
Laurikainen, Tuukka wrote at 2005-7-22 11:25 +0200:
>We're having some problems downloading large files from Zope/Plone
>running
>on win32, through an SSL connection. Uploads seem work ok.

By itself, Zope does not support SSL.

Thus, the problem might be in "ZServerSSL". Consider to contact its author.

-- 
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] ZopeProfiler (python profiler) - strange results

2005-07-24 Thread Dieter Maurer
Maciej Wisniowski wrote at 2005-7-19 23:31 +0200:
> ...
>This seemed good till I've used "print_callees" format which
>showed me that function X is calling function Y and Z and
>their execution times are:
>
>functions_time = Y_call_time + Z_call_time.
>
>
>As far as I understand it "tottime" is the time without
>subfunctions' call times and "cumtime" is with subfunctions'
>call times, so I supposed that:
>
>cumulative_x - functions_time = total_x
>
>but this is not true... in almost every case I've checked it is
>rather:
>
>total_x + functions_time > cumulative_x
>
>Why?

The complete calling statistics is very complex.
Therefore, the profiler does not record the complete information
but only summary information.

Especially, it only records the time spend in a given function (say "X")
but not the different times when "X" is called in different
contexts (e.g. by "A" and "B").
As a consequence, the timings given by the "callees" view are usually
too large for the given context (they show the "X" is called by "A"
but the time given for "X" is the total time spend during any call of
"X" and not only any call from "A").

-- 
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] Error in treating custom exception

2005-07-24 Thread Dieter Maurer
Marco Bizzarri wrote at 2005-7-19 10:31 +0200:
> ...
>I've a custom standard_error_html page, made with a Zope Page Template. 
>I'm trying to provide a custom __str__ for a custom exception. This 
>works, most of the time, but in some cases I encounter the following error:
>
>TypeError: unbound method __str__() must be called with InvalidFolderId 
>instance as first argument (got nothing instead)

As usual, you must get and look at the corresponding traceback.
It will tell you where "__str__" is inappropriately used.


If the error is generated from your "standard_error_message" (what
you might call "standard_error_html" -- Note: it is very important
to use the precise names!), then it may not be that easy to
get the traceback. In our Zope copy, I have introduced a log
call in case "standard_error_message" raises an exception to get
at this traceback.
The place for this measure is in
"OFS.SimpleItem.SimpleItem.raise_standard_error" (or similarly named).

-- 
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] Running more than one instance on windows often block each other

2005-07-24 Thread Dieter Maurer
Sune B. Woeller wrote at 2005-7-21 13:16 +0200:
> ...
>I can see (with the excellent (and free) 'Process 
>Explorer' from sysinternals) that the python 
>processes always opens port 1, and connects by 
>that port to themselves on another port (for 
>instance 2550).

You can find the relevant code in
"ZServer.medusa.thread.select_trigger.trigger.__init__"

In principle, the code should try all sockets between
"1" down to "19950" and fail only when none of them
could be bound to...

-- 
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] Re: Getting a methods parent (in a product)

2005-07-24 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jens Vagelpohl wrote:
> 
> On 23 Jul 2005, at 16:12, Peter Bengtsson wrote:
> 
>>> from Acquisition import aq_inner, aq_parent
>>>
>>> parent = aq_parent(aq_inner(self))
>>>
>>> This will return the true container the instance is set in, not just
>>> the acquisition parent.
>>>
>>>
>> What's so bad about
>> parent = self.aq_parent
> 
> 
> Two things:
> 
> - simply using aq_parent does not guarantee giving you the real 
> containment parent. Depending on the path used to access the object  it
> could be something different from the true containment parent.  That's
> the power of acquisition...

Which is why the 'aq_inner()' call is in there:  it strips away
non-contaiment wrappers.

> - direct attribute access like that makes me feel dirty. I prefer the 
> true object-oriented style where you use methods to get at stuff.

The actual issue is that attribute access will break if you have an
unwrapped object;  'aq_parent(foo)' will return 'None' in that case.

(A tiny nit, 'aq_parent()' and the related 'aq_base()' and 'aq_inner()'
are module-scope functions, rather than methods).


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC5EZx+gerLs4ltQ4RAk9+AKCsb9wg7edRq4HfFcHn/FwBvpSmCwCeK8Ke
zt8foauYT7v9DRf2TYbqMjE=
=eU4v
-END PGP 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 )


[Zope] Re: getting atachments with python - pop3

2005-07-24 Thread Peter Bengtsson
Study the source code of the IssueTrackerProduct (www.issuetrackerproduct.com)
http://cvs.sourceforge.net/viewcvs.py/issuetracker/IssueTrackerProduct/IssueTracker.py?rev=1.268&view=auto
because it uses poplib to download and deal with attachments.


On 7/25/05, Jonathan Salazar Santos <[EMAIL PROTECTED]> wrote:
> Hi, im making a email client in python for zope, but a im stopped
> because i cant find the way to get the attacments with python, do you
> have a idea how can i do this?, i have studied the email package
> already but is a little confused.
> 
> --
> Lic. Jonathan Salazar
> Visita: www.jonathansalazar.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 )
> 


-- 
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] getting atachments with python - pop3

2005-07-24 Thread Jonathan Salazar Santos
Hi, im making a email client in python for zope, but a im stopped
because i cant find the way to get the attacments with python, do you
have a idea how can i do this?, i have studied the email package
already but is a little confused.

--
Lic. Jonathan Salazar
Visita: www.jonathansalazar.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] getting atachments with python - pop3

2005-07-24 Thread Jonathan Salazar Santos
Hi, im making a email client in python for zope, but a im stopped
because i cant find the way to get the attacments with python, do you
have a idea how can i do this?, i have studied the email package
already but is a little confused.

-- 
Lic. Jonathan Salazar
Visita: www.jonathansalazar.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] Re: ZTUtils.Iterator value in ZPT

2005-07-24 Thread David Pratt
Hi Chris. I believe the purpose of ZTUtils are utility functions for 
page templating. That said, the Iterator class could be more useful by 
exposing its values based on its state -  the point I had made.  
Versatility is the beautiful thing about python  - it rarely matters to 
me what intention there is or may have been for a class so long as it 
supplies the methods I am after.  In the end, there's really nothing 
here that can't be solved with a simple tool and a bit of flexibility 
on my part. Many thanks.


Regards,
David

On Friday, July 22, 2005, at 02:08 PM, Chris Withers wrote:


David Pratt wrote:
Ah, I see what you're after, something akin to an SQL sequence, 
right?

Well, Iterator ain't that ;-)

I guess something like that but that is what an iterator does.


Why makes you think ZTUtils Iterators were designed for this?

Well, by hand is not the solution either.  It is not as simple as 
that since I am using portlets in CMF


You meean portlets in Plone, right? ;-)

You can't just number them like 1,2,3 etc because you end up with 
conflicts in tabindex values when your templates are rendered.


So give them each their own numbers based on the worst case of all 
portlets being present on one page...


your ZPT (that doesn't require you to write one with all the security 
bypasses to make it work).


They are not "security bypasses", they are appropriate security 
declarations based on the work the ZTUtils code does when executing...


Looks like you're on your own...

Chris

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


___
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: ZTUtils.Iterator value in ZPT

2005-07-24 Thread Chris Withers

David Pratt wrote:

Ah, I see what you're after, something akin to an SQL sequence, right?
Well, Iterator ain't that ;-)


I guess something like that but that is what an iterator does.  


Why makes you think ZTUtils Iterators were designed for this?

Well, by hand is not the solution either.  It is not as simple as that 
since I am using portlets in CMF 


You meean portlets in Plone, right? ;-)

You can't just number them like 1,2,3 etc because you end up with 
conflicts in tabindex values when your templates are rendered. 


So give them each their own numbers based on the worst case of all 
portlets being present on one page...


your ZPT (that doesn't require you to write one with all the security 
bypasses to make it work). 


They are not "security bypasses", they are appropriate security 
declarations based on the work the ZTUtils code does when executing...


Looks like you're on your own...

Chris

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

___
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] FW: Problem downloading large files

2005-07-24 Thread Chris Withers

Laurikainen, Tuukka wrote:

We're having some problems downloading large files from Zope/Plone
running
on win32, through an SSL connection. Uploads seem work ok.


Then stop being dense and just use Apache as an https proxy. Works a 
treat, unlike ZServerSSL, which feels like a horrible hack to me...


Chris

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

___
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] Follow-up to aq_parent(aq_inner(self))-question

2005-07-24 Thread Andreas Jung



--On 24. Juli 2005 15:27:32 +0200 Jan-Ole Esleben <[EMAIL PROTECTED]> wrote:


Hi!

How can I get the product's path while instantiating it? Shouldn't
this information exist somewhere? aq_parent(aq_inner(self)) returns
None, which isn't totally unexpected since __init__ isn't strictly a
Zope method and thus doesn't necessarily have a Zope method's context.

(I need, from the __init__ method of a product, to find out its
instantiation path in the ZODB.)



Use manage_afterAdd(). There is no acquistion context available during the
construction phase where __init__() is used.

-aj

pgpnAnGEp6JyC.pgp
Description: PGP 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 )


[Zope] Follow-up to aq_parent(aq_inner(self))-question

2005-07-24 Thread Jan-Ole Esleben
Hi!

How can I get the product's path while instantiating it? Shouldn't
this information exist somewhere? aq_parent(aq_inner(self)) returns
None, which isn't totally unexpected since __init__ isn't strictly a
Zope method and thus doesn't necessarily have a Zope method's context.

(I need, from the __init__ method of a product, to find out its
instantiation path in the ZODB.)

TIA,
Ole
___
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 do I check if an object have being recently updated??

2005-07-24 Thread Tino Wildenhain
Am Samstag, den 23.07.2005, 19:17 -0700 schrieb Allen Huang:
> I want to post a update date that will change when any of the objects
> in a folder has been updated.
>  
> So far, I only know the command bobobase_modification_time, but it
> only works again the object I I enter the command with.. 

This is not a command. This is a method!
Methods are called "on" an object.

so if o is your object,

o.bobobase_modification_time()

returns the internal storage time of that object.

Maybe its a good start if you read the python
tutorial (www.python.org) to get an idea on all
that object, method, attribute stuff.



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