[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ fix #2235 for real now

2006-11-14 Thread Leonardo Rochael Almeida
Log message for revision 71127:
  fix #2235 for real now
  

Changed:
  U   Zope/branches/Zope-2_8-branch/doc/CHANGES.txt
  U   Zope/branches/Zope-2_8-branch/lib/python/Products/ZCatalog/ZCatalog.py
  U   
Zope/branches/Zope-2_8-branch/lib/python/Products/ZCatalog/tests/testCatalog.py

-=-
Modified: Zope/branches/Zope-2_8-branch/doc/CHANGES.txt
===
--- Zope/branches/Zope-2_8-branch/doc/CHANGES.txt   2006-11-15 05:32:07 UTC 
(rev 71126)
+++ Zope/branches/Zope-2_8-branch/doc/CHANGES.txt   2006-11-15 07:48:38 UTC 
(rev 71127)
@@ -8,8 +8,10 @@
 
 Bugs fixed
 
-  - Collector #2235: ZCatalog.manage_catalogObject was triggering __len__
-of objects that implement it, like containers.
+  - Collector #2235: A number of ZCatalog methods were doing boolean
+evaluation of objects that implemented __len__ instead of checking
+them against None. Replace a number of if not obj with
+if obj is not None.
 
   - Fix yet another resTructuredText glitch, and add tests (test
 backported from 2.9, which was not in fact vulnerable).

Modified: Zope/branches/Zope-2_8-branch/lib/python/Products/ZCatalog/ZCatalog.py
===
--- Zope/branches/Zope-2_8-branch/lib/python/Products/ZCatalog/ZCatalog.py  
2006-11-15 05:32:07 UTC (rev 71126)
+++ Zope/branches/Zope-2_8-branch/lib/python/Products/ZCatalog/ZCatalog.py  
2006-11-15 07:48:38 UTC (rev 71127)
@@ -232,7 +232,7 @@
 
 for url in urls:
 obj = self.resolve_path(url)
-if obj is not None:
+if obj is None:
 obj = self.resolve_url(url, REQUEST)
 if obj is not None:
 self.catalog_object(obj, url)
@@ -297,7 +297,7 @@
 p = paths[i]
 obj = self.resolve_path(p)
 
-if not obj and hasattr(self, 'REQUEST'):
+if obj is None and hasattr(self, 'REQUEST'):
 obj = self.resolve_url(p, self.REQUEST)
 if obj is not None:
 try:
@@ -615,8 +615,8 @@
 def getobject(self, rid, REQUEST=None):
 Return a cataloged object given a 'data_record_id_'
 
-obj = self.aq_parent.unrestrictedTraverse(self.getpath(rid))
-if not obj:
+obj = self.aq_parent.unrestrictedTraverse(self.getpath(rid), None)
+if obj is None:
 if REQUEST is None:
 REQUEST=self.REQUEST
 obj = self.resolve_url(self.getpath(rid), REQUEST)

Modified: 
Zope/branches/Zope-2_8-branch/lib/python/Products/ZCatalog/tests/testCatalog.py
===
--- 
Zope/branches/Zope-2_8-branch/lib/python/Products/ZCatalog/tests/testCatalog.py 
2006-11-15 05:32:07 UTC (rev 71126)
+++ 
Zope/branches/Zope-2_8-branch/lib/python/Products/ZCatalog/tests/testCatalog.py 
2006-11-15 07:48:38 UTC (rev 71127)
@@ -28,6 +28,7 @@
 from AccessControl.SecurityManagement import setSecurityManager
 from AccessControl.SecurityManagement import noSecurityManager
 from AccessControl import Unauthorized
+from Acquisition import Implicit
 from Products.ZCatalog import Vocabulary
 from Products.ZCatalog.Catalog import Catalog
 from Products.ZCatalog.Catalog import CatalogError
@@ -159,7 +160,32 @@
 def __nonzero__(self):
 return False
 
+# make objects with failing __len__ and __nonzero__
+class dummyLenFail(zdummy):
+def __init__(self, num, fail):
+zdummy.__init__(self, num)
+self.fail = fail
 
+def __len__(self):
+self.fail(__len__() was called)
+
+class dummyNonzeroFail(zdummy):
+def __init__(self, num, fail):
+zdummy.__init__(self, num)
+self.fail = fail
+
+def __nonzero__(self):
+self.fail(__nonzero__() was called)
+
+class fakeparent(Implicit):
+# fake parent mapping unrestrictedTraverse to
+# catalog.resolve_path as simulated by TestZCatalog
+def __init__(self, d):
+self.d = d
+
+def unrestrictedTraverse(self, path, default=None):
+return self.d.get(path, default)
+
 class TestZCatalog(unittest.TestCase):
 
 def setUp(self):
@@ -246,28 +272,30 @@
 result = self._catalog(title='')
 self.assertEquals(1, len(result))
 
-def test_manage_catalogObject_does_not_trigger_boolean_eval(self):
-# make objects with __len__ and __nonzero__
-class mydummy1:
-def __init__(self, fail):
-self.fail = fail
-def __len__(self):
-self.fail(__len__() was called)
-class mydummy2:
-def __init__(self, fail):
-self.fail = fail
-def __nonzero__(self):
-self.fail(__nonzero__() was called)
-# store them to be found by the catalog
-self.d['0'] = mydummy1(self.fail)
-

Re: [Zope-dev] Re: Windows Installer Nice-to-have

2006-11-14 Thread Chris Withers

Sidnei da Silva wrote:

Because 'finding the python being used by Zope' is a registry key. If
you look at Zope - Python in the start menu there are two shortcuts
there that will do register/unregister.


That being Set Installpath and Restore InstallPath?

Cool :-)

(although the latter implies that settign installpath does something bad?)

cheers,

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: Windows Installer Nice-to-have

2006-11-14 Thread Sidnei da Silva

Set InstalPath backs up the current setting. Restore InstallPath
restores the previous setting. Of course if you run Set InstallPath
twice from different installs you will stomp over the initial setting
:)

--
Sidnei da Silva
Enfold Systemshttp://enfoldsystems.com
Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214
___
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] Zope Tests: 8 OK, 1 Failed

2006-11-14 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Mon Nov 13 12:00:00 2006 UTC to Tue Nov 14 12:00:00 2006 UTC.
There were 9 messages: 9 from Zope Unit Tests.


Test failures
-

Subject: FAILED (failures=2) : Zope-2.8 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Mon Nov 13 21:34:45 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006562.html


Tests passed OK
---

Subject: OK : Zope-2.6 Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Mon Nov 13 21:27:14 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006557.html

Subject: OK : Zope-2.6 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Mon Nov 13 21:28:44 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006558.html

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Mon Nov 13 21:30:14 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006559.html

Subject: OK : Zope-2.7 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Mon Nov 13 21:31:45 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006560.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Mon Nov 13 21:33:15 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006561.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Mon Nov 13 21:36:15 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006563.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Mon Nov 13 21:37:45 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006564.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Mon Nov 13 21:39:15 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-November/006565.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] Zope Foundation membership drive

2006-11-14 Thread sathya

Hello folks

As some of you may know,

The Zope foundation is set up and more details are available at

www.zopefoundation.org

Some of the membership rosters (especially solution providers,associate 
members, consumer members  ) looks bare and not reflective of the 
community we have.


Lets try to make the foundation stronger by growing the membership and 
show our support for Zope !


Best Regards
Sathya

___
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: [ZWeb] Fwd: [ZF] foundation site confusion

2006-11-14 Thread Martijn Faassen

Andrew Sawyers wrote:

Looks like it's working right herebut the redirect isn't going to the
beta pages.


Yeah, let's redirect it to foundation.zope.org, that's better than 
what's in the original place.


We should also make www.zope.org/foundation point to 
foundation.zope.org. I do not believe there's anything in /foundation 
that isn't represented in foundation.zope.org.


Regards,

Martijn
___
Zope-web maillist  -  Zope-web@zope.org
http://mail.zope.org/mailman/listinfo/zope-web


Re: [Zope] Re: Mail Boxer On Qmail, Anyone?

2006-11-14 Thread Chris Withers

Nancy Donnelly wrote:


Now, *that* is sweet! Just one problem...where can I d/l it? I looked it up in 
the plone products and the d/l link yields a 404 error!!


Yes, just be careful you don't end up with another dead-end product that 
doesn't end up being maintained in six months time...


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] Zope Alternative

2006-11-14 Thread Dario Lopez-Kästen
For the record: my original response was not aimed at you personally
Chris, it was just that your mail triggered the whole thing. I apologize
for making you the target (and for feeding some trolls :).

Chris Withers said the following on 11/13/2006 04:38 PM:
 
 Well, he's treating us like dirt, Dario. Rather than spending time
 helping to document Zope, he's gone off and built a wiki slating it.
 Thanks, but no thanks...

hm... ok, point taken. However: he is not treating us like dirt. Not all
zope-users have the historical baggage where zope gets treated like a
second class citizen in the Python community, usually with some gross
misconception about what zope does as a basis for that.

If he publishes a wiki with some misconceptions, so what? Will it have
more impact than all the other sites that don't grok zope and therefore
dismisses it? No, probably not.

But us going on like you obviously don't get it, do you? In fact, you
dont seem to get anything about the web, even. Go away! is not the way
either: instead of getting an enlightened zope user, we get yet another
zope sucks-person with a bunch of misconceptions about zope out in the
wild.

I am not defending his misconceptions (if there are any - i haven't
spent much time reading his wiki, really) and I generally agree that
spending time thinking about a fork is futile. I somehow can understand
his position, though, having rewritten some of our systems based on what
they should do, instead of trying to understand the original spaghetti
code (but my code is nowhere near the complexity of Zope, on the other
hand).

Nevertheless, I think we as a community could show some class and style.
Everybody needs to be treated with some degree of respect, and it's not
like he's going to write a zope fork, in real life; and so what if he
did, if it was better, then we could probably learn something, if it
isn't better, nothing will have changed for us.

 This certainly isn't the case. People who expect their work to get doen
 for them for free will get a hard time. I'd suggest that people who come
 with particularly unconstructive approaches to how zope may be improved
 will also come in for a similarly hard time...

Yes, in general, but in our case, I get the feeling that *anyone* that
does not agree with the zope-philosophy, or questions the way zope
works, gets a smack in the head. This is just the latest example.

I am not trying to tell people how to behave, though, even if it may
sound like it - I am just trying to point out some things about our
attitude that we should be aware of as a community.

/dario

-- 
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
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] Zope Alternative

2006-11-14 Thread robert rottermann

 
 Nevertheless, I think we as a community could show some class and style.
+100

the entertaining value of rude mails wear off quickly..
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 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 in install ?

2006-11-14 Thread Andreas Jung



--On 14. November 2006 17:02:04 +0700 Luc Van Tien [EMAIL PROTECTED] 
wrote:



Hi everyone,
I have some problems in install Zope 2.10.0 final.
My situation :
I use Solaris 10 operating system.
I have just downloaded Zope from homepage and I setup to :
/usr/local/Zope/Zope-2.10.0   I type command ./configure in terminal :
Monitor displays :

Configuring Zope installation
Testing for an acceptable Python interpreter...
Python version 2.4.3 found at /usr/sfw/bin/python
The optimum Python version (2.4.3) was found at /usr/sfw/bin/python.
  - Zope top-level binary directory will be /opt/Zope-2.9.
  - Makefile written.
  Next, run make.

It's quite seem as working fine.
and then i perform as program's guide :
== make command.

  Monitor displays :
=
make: Fatal error in reader: makefile, line 75: Macro assignment on
dependency line =
What is mistake ? which steps are wrong ?



Are you 100% sure that your 'make' is GNUmake?

-aj

pgpQqIZVCJFt5.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] matplotlib and zope problem

2006-11-14 Thread Marek Szczypiński
Hello All,

  I've been using zope and matplotlib for some time now, and I want to
connect them. I'am using the example code from page:
http://www.scipy.org/Cookbook/Matplotlib/Matplotlib_and_Zope ,
but whenever I try to import matplotlib, and/or pylab packages i get
this error from zope:

Error Type: RuntimeError
Error Value: '/' is not a writable dir; you must set environment
variable HOME to be a writable dir

Have You got any ideas, on what might go wrong? I'am using matplotlib
0.87.4, and zope 2.9.5 with python 2.4.3 on gentoo linux box.

Thanks in advance for any help.

Marek Szczypinski



___
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 in install ?

2006-11-14 Thread Luc Van Tien
Hi everyone,I have some problems in install Zope 2.10.0 final.My situation :I use Solaris 10 operating system.I have just downloaded Zope from homepage and I setup to : /usr/local/Zope/Zope-2.10.0  I type command ./configure in terminal :Monitor displays :Configuring Zope installationTesting for an acceptable Python interpreter...Python version 2.4.3 found at /usr/sfw/bin/pythonThe optimum Python version (2.4.3) was found at /usr/sfw/bin/python. - Zope top-level binary directory will be /opt/Zope-2.9. - Makefile written. Next, run make.It's quite seem as working fine.and then i perform as program's guide :== make command.Monitor displays :=make: Fatal error in reader: makefile, line 75: Macro assignment on dependency
 line=What is mistake ? which steps are wrong ?Anyone explain for me ?Thank you very much. 
		Hãy ghé qua trang chủ Yahoo! Việt Nam!___
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] matplotlib and zope problem

2006-11-14 Thread Tino Wildenhain

Marek Szczypiński schrieb:

Hello All,

  I've been using zope and matplotlib for some time now, and I want to
connect them. I'am using the example code from page:
http://www.scipy.org/Cookbook/Matplotlib/Matplotlib_and_Zope ,
but whenever I try to import matplotlib, and/or pylab packages i get
this error from zope:

Error Type: RuntimeError
Error Value: '/' is not a writable dir; you must set environment
variable HOME to be a writable dir


*wild guess*

you are starting Zope as root (via init) so $HOME
points to root's home directory (usually /root)
Now zope switches to another user (configured or
default to nouser and thus cannot write to
root's home anymore.

You can either set another value for $HOME in your
zope.cfg - there is a section for custom environment
vars or modify mathplotlib to _not_ write to $HOME.

(Sounds like a bad idea anyway - whats wrong with temp?)

Zope Products use ZOPEHOME and INSTANCE_HOME

Regards
Tino
___
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 in install ?

2006-11-14 Thread Maciej Wisniowski
 I have some problems in install Zope 2.10.0 final.
(...)
   - Zope top-level binary directory will be /opt/Zope-2.9.
Seems strange to me that you're installing Zope 2.10.0 and
there is a message about /opt/Zope-2.9.
Maybe you've messed something, or try something like

./configure --prefix path

It's just a guess. I'm not sure what the real problem is.

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


Re: [Zope] Zope Alternative

2006-11-14 Thread michael nt milne
For the record: my original response was not aimed at you personallyChris, it was just that your mail triggered the whole thing. I apologize
for making you the target (and for feeding some trolls :).
You make some very valid, correct points but then also make a very incorrect assumption as well. I don't believe the original poster is a troll and neither am I or anyone else who has agreed that this list needs to have some more class and enlightenment. I've been saying that for quite a while and if that gets me labelled a troll for some reason then it proves the need for an attitude change. I think you're flattering yourselves to be honest, if you believe you have so many 'trolls' posting to your list. 
On 11/14/06, Dario Lopez-Kästen [EMAIL PROTECTED] wrote:
For the record: my original response was not aimed at you personallyChris, it was just that your mail triggered the whole thing. I apologizefor making you the target (and for feeding some trolls :).Chris Withers said the following on 11/13/2006 04:38 PM:
 Well, he's treating us like dirt, Dario. Rather than spending time helping to document Zope, he's gone off and built a wiki slating it. Thanks, but no thanks...hm... ok, point taken. However: he is not treating us like dirt. Not all
zope-users have the historical baggage where zope gets treated like asecond class citizen in the Python community, usually with some grossmisconception about what zope does as a basis for that.If he publishes a wiki with some misconceptions, so what? Will it have
more impact than all the other sites that don't grok zope and thereforedismisses it? No, probably not.But us going on like you obviously don't get it, do you? In fact, youdont seem to get anything about the web, even. Go away! is not the way
either: instead of getting an enlightened zope user, we get yet anotherzope sucks-person with a bunch of misconceptions about zope out in thewild.I am not defending his misconceptions (if there are any - i haven't
spent much time reading his wiki, really) and I generally agree thatspending time thinking about a fork is futile. I somehow can understandhis position, though, having rewritten some of our systems based on what
they should do, instead of trying to understand the original spaghetticode (but my code is nowhere near the complexity of Zope, on the otherhand).Nevertheless, I think we as a community could show some class and style.
Everybody needs to be treated with some degree of respect, and it's notlike he's going to write a zope fork, in real life; and so what if hedid, if it was better, then we could probably learn something, if it
isn't better, nothing will have changed for us. This certainly isn't the case. People who expect their work to get doen for them for free will get a hard time. I'd suggest that people who come with particularly unconstructive approaches to how zope may be improved
 will also come in for a similarly hard time...Yes, in general, but in our case, I get the feeling that *anyone* thatdoes not agree with the zope-philosophy, or questions the way zopeworks, gets a smack in the head. This is just the latest example.
I am not trying to tell people how to behave, though, even if it maysound like it - I am just trying to point out some things about ourattitude that we should be aware of as a community./dario
 ---Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.Lyrics applied to programming  application design:emancipate yourself from mental slavery - redemption song, b. marley
___Zope maillist-Zope@zope.orghttp://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 )-- michael
___
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] matplotlib and zope problem

2006-11-14 Thread Andreas Jung



--On 14. November 2006 12:16:40 +0100 Marek Szczypiński 
[EMAIL PROTECTED] wrote:



Hello All,

  I've been using zope and matplotlib for some time now, and I want to
connect them. I'am using the example code from page:
http://www.scipy.org/Cookbook/Matplotlib/Matplotlib_and_Zope ,
but whenever I try to import matplotlib, and/or pylab packages i get
this error from zope:

Error Type: RuntimeError
Error Value: '/' is not a writable dir; you must set environment
variable HOME to be a writable dir


This is unlikely a Zope core issue. You must provide the *full traceback*
in order to get help. Otherwise contact the authors of the related
packages/products. And as the error message indicates your environment
variable $HOME is not set properly or unset.

-aj

pgp9Ssg4OGAwg.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 )


Re: [Zope] Re: adding a python library

2006-11-14 Thread Andreas Jung



--On 14. November 2006 09:32:38 -0700 David Bear [EMAIL PROTECTED] wrote:



What if I created a zope script and just pasted the feedparser.py
modules contents into it.


That would be a stupid idea.


Do python scripts that live inside zodb
become importatable?


Zope PythonScripts are *objects* that are callable through acquisition.

-aj

pgpT0TCYJ3AcL.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 )


Re: [Zope] Zope Alternative

2006-11-14 Thread Dario Lopez-Kästen
michael nt milne said the following on 11/14/2006 10:59 AM:

 You make some very valid, correct points but then also make a very
 incorrect assumption as well. I don't believe the original poster is a
 troll and neither am I or anyone else who has agreed that this list
 needs to have some more class and enlightenment.

agreed, but I meant this jokingly, and besides: perhaps we *all* could
characterise ourselves as trolls we when spend 8 more or less
consecutive mails on the list for name calling of various sorts :-)

/dario

-- 
-- ---
Dario Lopez-Kästen, IT Systems  Services Chalmers University of Tech.
Lyrics applied to programming  application design:
emancipate yourself from mental slavery - redemption song, b. marley

___
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] matplotlib and zope problem

2006-11-14 Thread Marek Szczypiński
Here is the traceback. Looks like problem with matplotlib it self,
doesn't it? Did anyone have the same problems?
Thanks for any help.

Marek


Traceback (innermost last):
  Module ZPublisher.Publish, line 115, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 41, in call_object
  Module Products.ExternalMethod.ExternalMethod, line 59, in
manage_addExternalMethod
  Module Products.ExternalMethod.ExternalMethod, line 111, in __init__
  Module Products.ExternalMethod.ExternalMethod, line 134, in manage_edit
  Module Products.ExternalMethod.ExternalMethod, line 141, in getFunction
  Module App.Extensions, line 148, in getObject
   - __traceback_info__:
('/var/lib/zope/zope-markacy/Extensions/mpl.py', 'mpl')
  Module /var/lib/zope/zope-markacy/Extensions/mpl.py, line 1, in ?
  Module None, line 1011, in ?
  Module None, line 968, in rc_params
  Module None, line 914, in matplotlib_fname
  Module None, line 273, in wrapper
  Module None, line 324, in _get_configdir
RuntimeError: '/' is not a writable dir; you must set environment
variable HOME to be a writable dir


Marek Szczypiński wrote:
 Hello All,
 
   I've been using zope and matplotlib for some time now, and I want to
 connect them. I'am using the example code from page:
 http://www.scipy.org/Cookbook/Matplotlib/Matplotlib_and_Zope ,
 but whenever I try to import matplotlib, and/or pylab packages i get
 this error from zope:
 
 Error Type: RuntimeError
 Error Value: '/' is not a writable dir; you must set environment
 variable HOME to be a writable dir
 
 Have You got any ideas, on what might go wrong? I'am using matplotlib
 0.87.4, and zope 2.9.5 with python 2.4.3 on gentoo linux box.
 
 Thanks in advance for any help.
 
 Marek Szczypinski
 
 
 
 ___
 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] Re: adding a python library

2006-11-14 Thread David Bear
On Mon, Nov 13, 2006 at 08:32:11PM -0500, Tres Seaver wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 David Bear wrote:
  I would like to add Mark Pilgrims feedparser to the available modules
  that I can use in zope. I have installed the feedparser into the
  python instance that zope uses. However, when I attempt to import it,
  I get an error that I'm not authorized. How might I make the
  feedparser available to zope?
 
 Check the examples in
 $SOFTWARE_HOME/lib/python/Products/PythonScripts/module_access_examples.py
 

Thanks. This seems straightforward. However, I am now rethinking this.

What if I created a zope script and just pasted the feedparser.py
modules contents into it. Do python scripts that live inside zodb
become importatable?

 
 Tres.
 - --
 ===
 Tres Seaver  +1 202-558-7113  [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
 
 iD8DBQFFWRyb+gerLs4ltQ4RAkJYAKCOkGX3CKz+aNTvhtRTHdk8FAzPlgCgkk29
 xt7g8f92Lo6zOjLG4w/yYH4=
 =71Qs
 -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 )

-- 
David Bear
phone:  602-496-0424
fax:602-496-0955
College of Public Programs/ASU
University Center Rm 622
411 N Central
Phoenix, AZ 85007-0685
 Beware the IP portfolio, everyone will be suspect of trespassing
___
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] matplotlib and zope problem

2006-11-14 Thread David H

Marek Szczypiński wrote:


Here is the traceback. Looks like problem with matplotlib it self,
doesn't it? Did anyone have the same problems?
Thanks for any help.

Marek


Traceback (innermost last):
 Module ZPublisher.Publish, line 115, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 41, in call_object
 Module Products.ExternalMethod.ExternalMethod, line 59, in
manage_addExternalMethod
 Module Products.ExternalMethod.ExternalMethod, line 111, in __init__
 Module Products.ExternalMethod.ExternalMethod, line 134, in manage_edit
 Module Products.ExternalMethod.ExternalMethod, line 141, in getFunction
 Module App.Extensions, line 148, in getObject
  - __traceback_info__:
('/var/lib/zope/zope-markacy/Extensions/mpl.py', 'mpl')
 Module /var/lib/zope/zope-markacy/Extensions/mpl.py, line 1, in ?
 Module None, line 1011, in ?
 Module None, line 968, in rc_params
 Module None, line 914, in matplotlib_fname
 Module None, line 273, in wrapper
 Module None, line 324, in _get_configdir
RuntimeError: '/' is not a writable dir; you must set environment
variable HOME to be a writable dir
 


Hi Marek,
Never heard of matplotlib.  But your traceback is saying that the 
product is trying to write to root - without sufficient permission.  I'd 
look at the source (see _get_configdir) and see if its reading some sort 
of config file or maybe its parsing the enviromental var HOME..  You 
probably can modify that.  Anyway, writing to / doesnt seem to be a 
good idea in any case.


You have set variable HOME? 


Best,
David H



___
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] matplotlib and zope problem

2006-11-14 Thread David H

David H wrote:


Marek Szczypiński wrote:


Here is the traceback. Looks like problem with matplotlib it self,
doesn't it? Did anyone have the same problems?
Thanks for any help.

Marek


Traceback (innermost last):
 Module ZPublisher.Publish, line 115, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 41, in call_object
 Module Products.ExternalMethod.ExternalMethod, line 59, in
manage_addExternalMethod
 Module Products.ExternalMethod.ExternalMethod, line 111, in __init__
 Module Products.ExternalMethod.ExternalMethod, line 134, in manage_edit
 Module Products.ExternalMethod.ExternalMethod, line 141, in getFunction
 Module App.Extensions, line 148, in getObject
  - __traceback_info__:
('/var/lib/zope/zope-markacy/Extensions/mpl.py', 'mpl')
 Module /var/lib/zope/zope-markacy/Extensions/mpl.py, line 1, in ?
 Module None, line 1011, in ?
 Module None, line 968, in rc_params
 Module None, line 914, in matplotlib_fname
 Module None, line 273, in wrapper
 Module None, line 324, in _get_configdir
RuntimeError: '/' is not a writable dir; you must set environment
variable HOME to be a writable dir
 


Hi Marek,
Never heard of matplotlib.  But your traceback is saying that the 
product is trying to write to root - without sufficient permission.  
I'd look at the source (see _get_configdir) and see if its reading 
some sort of config file or maybe its parsing the enviromental var 
HOME..  You probably can modify that.  Anyway, writing to / doesnt 
seem to be a good idea in any case.


You have set variable HOME?
Best,
David H



Marek,

I gave bad advise.  Don't mess with (set) your HOME enviro var.

David


___
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: adding a python library

2006-11-14 Thread David Bear
On Tue, Nov 14, 2006 at 05:50:36PM +0100, Andreas Jung wrote:
 
 
 --On 14. November 2006 09:32:38 -0700 David Bear [EMAIL PROTECTED] wrote:
 
 
 What if I created a zope script and just pasted the feedparser.py
 modules contents into it.
 
 That would be a stupid idea.
 
 Do python scripts that live inside zodb
 become importatable?
 
 Zope PythonScripts are *objects* that are callable through acquisition.

thanks for all the replies.

I am now looking at the modules feedparser imports. These include

sgmllib
re
sys
copy
urlparse
time
rfc822
types
cgi
urllib
urllib2
cStringIO
xml.sax

It seems that sys would be a bad one to allow zope to import.

Are there others in this list that I should not allow?


 
 -aj



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


-- 
David Bear
phone:  602-496-0424
fax:602-496-0955
College of Public Programs/ASU
University Center Rm 622
411 N Central
Phoenix, AZ 85007-0685
 Beware the IP portfolio, everyone will be suspect of trespassing
___
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] zope replacement for sys module

2006-11-14 Thread David Bear
I wonder if there is a zope replacement for the sys module?

It would be wonderfully easy if I could

import zopesys as sys

Then, the zopesys module could mape stderr, stdin, stdout to safe zope
equivelents.

-- 
David Bear
phone:  602-496-0424
fax:602-496-0955
College of Public Programs/ASU
University Center Rm 622
411 N Central
Phoenix, AZ 85007-0685
 Beware the IP portfolio, everyone will be suspect of trespassing
___
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] zope replacement for sys module

2006-11-14 Thread Andreas Jung



--On 14. November 2006 10:54:31 -0700 David Bear [EMAIL PROTECTED] wrote:


I wonder if there is a zope replacement for the sys module?

It would be wonderfully easy if I could

import zopesys as sys

Then, the zopesys module could mape stderr, stdin, stdout to safe zope
equivelents.


Why would one need that?

-aj


pgp4SscDbRJib.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 )


Re: [Zope] Re: adding a python library

2006-11-14 Thread Andreas Jung



--On 14. November 2006 10:52:31 -0700 David Bear [EMAIL PROTECTED] wrote:


I am now looking at the modules feedparser imports. These include

sgmllib
re
sys
copy
urlparse
time
rfc822
types
cgi
urllib
urllib2
cStringIO
xml.sax




What are you trying to accomplish? Put your code into an external method 
which is unrestricted (*hint*: look at the Zope Book 2.7 edition).


-aj

pgpjePGJGU37D.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] Re: adding a python library

2006-11-14 Thread Josef Meile

Hi,


I am now looking at the modules feedparser imports. These include

sgmllib
re
sys
copy
urlparse
time
rfc822
types
cgi
urllib
urllib2
cStringIO
xml.sax

It seems that sys would be a bad one to allow zope to import.
Well, you don't have to allow all of them. You only need to allow the 
feeparser module and use it from your python scripts or classes, zpt, 
and from dtml (if you still use it)


Regards
Josef
___
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: adding a python library

2006-11-14 Thread David Bear
On Tue, Nov 14, 2006 at 07:12:51PM +0100, Andreas Jung wrote:
 
 
 --On 14. November 2006 10:52:31 -0700 David Bear [EMAIL PROTECTED] wrote:
 
 I am now looking at the modules feedparser imports. These include
 
 sgmllib
 re
 sys
 copy
 urlparse
 time
 rfc822
 types
 cgi
 urllib
 urllib2
 cStringIO
 xml.sax
 
 
 
 What are you trying to accomplish? Put your code into an external method 
 which is unrestricted (*hint*: look at the Zope Book 2.7 edition).

excellent. I think this is really what I wanted to do.

 
 -aj



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


-- 
David Bear
phone:  602-496-0424
fax:602-496-0955
College of Public Programs/ASU
University Center Rm 622
411 N Central
Phoenix, AZ 85007-0685
 Beware the IP portfolio, everyone will be suspect of trespassing
___
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] Zope Alternative

2006-11-14 Thread Philip Kilner
Michael,

michael nt milne wrote:
 Is there a reason that the Plone list gets 3 times the level of postings
 that the Zope list gets? Yes. because it is a more mature and
 constructive support environment which actually helps promote the product.
 

Bollocks.

:-)


-- 

Regards,

PhilK

Say what you mean. Bear witness. Iterate. -John M. Ford
___
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] Emergency Meltdown! Help!

2006-11-14 Thread Nancy Donnelly
108Hi;I have two Zope instances. I user a web server called LightTPD. I was trying to hook up an SSL cert to one of the instances, so I made some modifications in it's conf file. Suddenly, I discovered that I couldn't pull up any of the Web pages on that instance! I also found that the MySQL connection to the database for one of the clients on that instance was broken. I edited out my changes in the LightTPD config file. Nothing. I still had my Apache configuration working, so I tried with that. Same problem. I could still get into the ZMI all this time using the IP address; however, I couldn't pull down
 Web pages, even typing out the whole path with the port number. I thought maybe the Data.fs somehow got corrupted, so I swapped it out with a backup. I could boot it, but I couldn't log into the ZMI at all! So, then I swapped it back for the current one, tried to get into the ZMI, but it kept trying to authenticate and wouldn't take my p/w! So I figured I'd just reboot the machine again. Now, it just pretends to load the ZMI page but never loads it! Meanwhile, everything, including database connections, work fine on the other instance. What on earth could be going on here??? HELP!!!Nancy___
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] Emergency Meltdown! Help!

2006-11-14 Thread Paul Winkler
On Tue, Nov 14, 2006 at 04:06:39PM -0800, Nancy Donnelly wrote:
 HELP!

First thing I'd do is find the event log and see what's in it
recently...

-- 

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 )


[Zope] Re: Emergency Meltdpwn! Help!

2006-11-14 Thread Nancy Donnelly
77Paul Winkler wrote: First thing I'd do is find the event log and see what's in it recently...Nothing unusual!Nancy___
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] Password expiration

2006-11-14 Thread Sinang, Danny



Hello,

"Out of the box", is 
Zope able to do password-expiration ?

Or do I needan 
authentication product to do this ? Will this external product be 
able to effectpassword expirationon existing acl_user folder users 
?


Regards,

Danny

___
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] Password expiration

2006-11-14 Thread Andreas Jung



--On 15. November 2006 11:11:53 +0800 Sinang, Danny 
[EMAIL PROTECTED] wrote:



Hello,

Out of the box, is Zope able to do password-expiration ?



No

-aj

pgp0gIxrDues4.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 )


Re: [Zope] Emergency Meltdown! Help!

2006-11-14 Thread Nancy Donnelly
109All is back to normal. Apparently, an obsolete script I had running went haywire, probably because of some obsolete server call to another server that got tweaked, and that sent everything crazy.Thanks,Nancy___
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] Password expiration

2006-11-14 Thread robert rottermann
zope by it self can not do such an expiration.

there is a product for plone cmfmeber (now in transition to
become obsolete and replaced by membrane) that treats a user
like some portal content that can be controlled by a workflow,
expiration date and so on.

I do not know whet the state of membrane is.
robert

Sinang, Danny wrote:
 Hello,
  
 Out of the box, is Zope able to do password-expiration ?
  
 Or do I need an authentication product to do this ? Will this external
 product be able to effect password expiration on existing acl_user
 folder users ?
  
  
 Regards,
  
 Danny
  
 
 
 
 
 ___
 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 )