Re: [Zope-dev] Python 2.4 Support

2010-09-20 Thread Andre Schubert
Hi,

On Fri, 17 Sep 2010 11:33:09 -0400
Jim Fulton j...@zope.com wrote:

JF On Fri, Sep 17, 2010 at 11:28 AM, Stephan Richter
JF srich...@cosmos.phy.tufts.edu wrote:
JF  On Friday, September 17, 2010, Tres Seaver wrote:
JF   i have a little question.
JF   Is there a chance to not drop Python2.4 Support for ZTK1.1?
JF   I ask because Redhat Enterprise Linux 5 is shipped with Python2.4,
JF   and should have been supported for some years from now.
JF 
JF  At this point, the burden of keeping 2.4 compatibility is too high for
JF  ongoing development.
JF 
JF  I agree. We have to support Python 2.5, 2.6 and 2.7 already. There is 
also a
JF  desire to use newer releases, since they get us closer to Python 3.
JF 
JF To me, the driving factor is that Python 2.4 is no-longer supported by
JF the Python
JF developers.
JF 
JF Jim
JF 

Thank you all for your replies.
I understand that its better to drop Python2.4 support at this point.

Regards,
Andre


pgpOwOpN4YFRk.pgp
Description: PGP signature
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Python 2.4 Support

2010-09-17 Thread Andre Schubert
Hi,

i have a little question.
Is there a chance to not drop Python2.4 Support for ZTK1.1?
I ask because Redhat Enterprise Linux 5 is shipped with Python2.4,
and should have been supported for some years from now.

Regards,
Andre


pgpJ3FjGG17rV.pgp
Description: PGP signature
___
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Zope and streaming

2003-12-16 Thread Andre Schubert
Hi all,

i have a little problem.
I cant find a way howto stream data from a Zope behind Apache.
My coworker was playing a little bit with mod_fastcgi, and found a way
to stream data via the mod_fastcgi module in Apache.
But if we tested this with a fast-cgi enabled Zope it does not work.
It seems that the fast-cgi-server inside Zope sends the data in
8kByte chunks ?!
Could somebody shed some light on this problem or point me to
some documentation where i can read about it.

Thanks in advance, as

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] PCGI-Problem

2003-09-22 Thread Andre Schubert
On Sun, 21 Sep 2003 16:13:55 -0400
Casey Duncan [EMAIL PROTECTED] wrote:

 On Friday 19 September 2003 04:31 am, Andre Schubert wrote:
  On Thu, 18 Sep 2003 14:32:52 +0200
  Andre Schubert [EMAIL PROTECTED] wrote:
  
   Hi all,
   
   i have a little problem.
   We have several Zope's running in our company.
   Versions are 2.5.1,2.6.1,2.6.2. All are running on Redhat Linux.
   All versions have the same problem, if i access them via pcgi and hit the 
 Restart
   button in the Control Panel then the server goes down.
   If i do the same via ZServer port 8080 everything works fine.
   
  Hi all,
  
  i think i have found a solution.
  A patch is included for PCGIServer.py.
  Could anybody check this patch please.
  If there are no problems i could file a bug into the collector.
 
 I would recommend putting it into the collector so that it does not get lost. 
 Please ignore the muted sound of laughter in the background... ;^)
 

Ok,

http://collector.zope.org/Zope/1054

Thanks, as

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] PCGI-Problem

2003-09-19 Thread Andre Schubert
On Thu, 18 Sep 2003 14:32:52 +0200
Andre Schubert [EMAIL PROTECTED] wrote:

 Hi all,
 
 i have a little problem.
 We have several Zope's running in our company.
 Versions are 2.5.1,2.6.1,2.6.2. All are running on Redhat Linux.
 All versions have the same problem, if i access them via pcgi and hit the Restart
 button in the Control Panel then the server goes down.
 If i do the same via ZServer port 8080 everything works fine.
 
Hi all,

i think i have found a solution.
A patch is included for PCGIServer.py.
Could anybody check this patch please.
If there are no problems i could file a bug into the collector.

Thanks, as



--- PCGIServer.py   Wed Aug 14 23:16:50 2002
+++ PCGIServer.py.patched   Fri Sep 19 10:13:05 2003
@@ -394,5 +394,5 @@
 
 def finish(self, response):
 if response._shutdownRequested():
-self._shutdown = 1
+self._shutdown = [sys.ZServerExitCode]
 self._channel.reply_code=response.status

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] PCGI-Problem

2003-09-18 Thread Andre Schubert
Hi all,

i have a little problem.
We have several Zope's running in our company.
Versions are 2.5.1,2.6.1,2.6.2. All are running on Redhat Linux.
All versions have the same problem, if i access them via pcgi and hit the Restart
button in the Control Panel then the server goes down.
If i do the same via ZServer port 8080 everything works fine.

Has anybody found the same problem or is it a misconfiguration ?


Many thanks in advance for your help.

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] ConflictError

2003-03-28 Thread Andre Schubert
Hi all,

i have a little problem with the following log-entry in my logfile.

2003-03-28T10:09:18 INFO(0) ZODB conflict error at /foo/bar/tab_kopf (1 conflicts 
since startup at 2003-03-28T10:09:03).

After searching through several mailinglists i found that this
error seem to occur when using sessions, i'am right ?
But my problem is, that tab_kopf is a ImageFile defined in my Product.

tab_kopf = ImageFile('www/tab_kopf.gif',globals())

I dont understand how there could be a ConflictError on a Image ?
I hope someone could give me a tip whats going on.

Thanks in advance, as

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Security-Problem

2003-02-18 Thread Andre Schubert
Hi all,

i have a little Security-Problem which results in the following Error
reported by Shane Hathaway's nice VerboseSecurity:

Error Type: Unauthorized
Error Value: The owner of the executing script does not have the required permission. 
Access to 'foobar' of (Folder instance at 932b600) denied. Access requires 
View_Permission, granted to the following roles: ['MSAdmin', 'Manager']. The executing 
script is (DTMLMethod instance at 8c8a508), owned by foo, who has the roles 
['Authenticated', 'Owner'].

I try to explain what happens.
Lets say i have a user called foo who has Manager-Roles across a Zope-site.
foo has added 2 DTMLMethods to a folder called bar and foobar.
foobar is called from inside bar (dtml-call foobar).
He also created a Role MSAdmin.
bar is accessible and visible by Anonymous Users.
foobar is accessible and visible by MSAdmin and Manager.
If i view bar and login as a user with MSAdmin-Roles everything works fine.
But if i remove the Manager-Role from foo who has created the two DTMLMethods i get 
the above error.

I have the same problem with a really big Zope-Site where i have the remove 
Manager-Roles
from a specific user. The only solution i have found is to recreate the DTMLMethods, 
but
it is very hard to reacreate all DTMLMethods created by foo.

I hope somebody has another hint for me. :)

Regards, as

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Security-Problem

2003-02-18 Thread Andre Schubert
On Tue, 18 Feb 2003 12:01:45 -0500
Shane Hathaway [EMAIL PROTECTED] wrote:

 On 02/18/2003 09:16 AM, Andre Schubert wrote:
  I try to explain what happens. Lets say i have a user called foo who
  has Manager-Roles across a Zope-site. foo has added 2 DTMLMethods to
  a folder called bar and foobar. foobar is called from inside bar
  (dtml-call foobar). He also created a Role MSAdmin. bar is
  accessible and visible by Anonymous Users. foobar is accessible and
  visible by MSAdmin and Manager. If i view bar and login as a user
  with MSAdmin-Roles everything works fine. But if i remove the
  Manager-Role from foo who has created the two DTMLMethods i get the
  above error.
 
 Do you not want foo to have the Manager role?

No, because he is no longer in our company.

 
  I have the same problem with a really big Zope-Site where i have the
  remove Manager-Roles from a specific user. The only solution i have
  found is to recreate the DTMLMethods, but it is very hard to
  reacreate all DTMLMethods created by foo.
 
 I think you're asking for a find + chown utility, right?  I don't know 
 of one, but it sure would be nice to have. :-)
 

It would be very nice to have such a tool :)

BTW: Thanks for the quick answers, you help me to understand the problem.
 I take the ownership of all objects where foo was the owner
 and the problems should go away :)

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Zope-2.5.1 restart failed

2002-10-14 Thread Andre Schubert

On Fri, 11 Oct 2002 11:24:57 +0100
Chris Withers [EMAIL PROTECTED] wrote:

 Andre Schubert wrote:
  2002-10-11T06:01:00 ERROR(200) ZODB Couldn't load state for 
'\x00\x00\x00\x00\x00\x00\x00T'
  Traceback (innermost last):
File /usr/share/zope/lib/python/ZODB/Connection.py, line 447, in setstate
File /usr/share/zope/lib/python/ZODB/FileStorage.py, line 582, in load
  (Object: /var/zope/var/Data.fs)
File /usr/share/zope/lib/python/ZODB/FileStorage.py, line 558, in _load
  (Object: /var/zope/var/Data.fs)
  ValueError: I/O operation on closed file
 
 Yeah, I've seen this too. Is your zope running in a chroot'ed / jail'ed 
 environment? This is the only time I've seen it, should it be classed as a bug?
 
 cheers,
 
 Chris

I have a installation without chroot or jail, everything is normal.

greets, 
as

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Zope-2.5.1 restart failed

2002-10-10 Thread Andre Schubert

Hi all,

i have a problem restarting my Zope-2.5.1 TTW.
If i hit the Restart-button in the Control_Panel
Zope seems to restart, but if i click on Root-Folder
in the menu i got 
ValueError: I/O operation on closed file

The stupid-log say the following

2002-10-11T06:00:45 INFO(0) ApplicationManager Restart requested by andre
--
2002-10-11T06:01:00 ERROR(200) ZODB Couldn't load state for 
'\x00\x00\x00\x00\x00\x00\x00T'
Traceback (innermost last):
  File /usr/share/zope/lib/python/ZODB/Connection.py, line 447, in setstate
  File /usr/share/zope/lib/python/ZODB/FileStorage.py, line 582, in load
(Object: /var/zope/var/Data.fs)
  File /usr/share/zope/lib/python/ZODB/FileStorage.py, line 558, in _load
(Object: /var/zope/var/Data.fs)
ValueError: I/O operation on closed file

It seems to me the Zope is not starting correctly, or i'am wrong
I'am running Zope-2.5.1 on RedHat 7.2 with python2-2.1.1-2.

Thanks in advance for your help.

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] CallProfiler problem

2002-10-09 Thread Andre Schubert

Hi all,

I have a problem removing the CallProfiler product from my Zope.
After removing the product-directory from /usr/share/zope/lib/python/Products
I got the following error after a restart:

2002-10-09T13:19:05 PROBLEM(100) ZODB Could not import class 'CallProfiler' from 
module 'Products.CallProfiler.CallProfiler

P.S.: I also have removed the CallProfiler from Control_Panel/Products

Who can help me ?

Thanks in advance

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Zope 2.4.3 and Python 2.2

2002-08-20 Thread Andre Schubert

Hi there,

are there any known issues or problem running Zope 2.4.3 under PYthon 2.2
instead of 2.1. I'am asking because my sysadmin has setup a new linux-box
with RH7.3.
RH7.3 only has Python 2.2 installed and there are no RPMs compiled against Python 2.2.
If there are no problems a would try to build a src.rpm for RH 7.3 + Python 2.2.

Thanks in advance,

andre



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Zope 2.4.3 and Python 2.2

2002-08-20 Thread Andre Schubert

On Wed, 21 Aug 2002 07:52:30 +0200
Andreas Jung [EMAIL PROTECTED] wrote:

 Use Python 1.5.2 with Zope 2.4.X and Python 2.1.3 for
 Zope 2.5.X. Any other combination is *not* supported.

Why use Zope 2.4.X with Python 1.5.2 when i could find RPMs
on zoep.org that requires Python 2.1.x ?
And yes i know that this is not supported, but could there anything
incompatible between Python 2.1 + Zope and Python 2.2 + Zope ?

Greets,

 
 -aj
 - Original Message -
 From: Andre Schubert [EMAIL PROTECTED]
 To: zope [EMAIL PROTECTED]
 Sent: Wednesday, August 21, 2002 07:47
 Subject: [Zope-dev] Zope 2.4.3 and Python 2.2
 
 
  Hi there,
 
  are there any known issues or problem running Zope 2.4.3 under PYthon 2.2
  instead of 2.1. I'am asking because my sysadmin has setup a new linux-box
  with RH7.3.
  RH7.3 only has Python 2.2 installed and there are no RPMs compiled against
 Python 2.2.
  If there are no problems a would try to build a src.rpm for RH 7.3 +
 Python 2.2.
 
  Thanks in advance,
 
  andre
 
 
 
  ___
  Zope-Dev maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope-dev
  **  No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope )
 
 
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Memory Leaks

2002-07-23 Thread Andre Schubert

On Tue, 23 Jul 2002 12:37:39 +0200
Stefan H. Holek [EMAIL PROTECTED] wrote:


 I do also see the ZPT expression stuff leaking. In my case in this order:
 
 Products.PageTemplates.Expressions.SubPathExpr
 Products.PageTemplates.Expressions.PathExpr
 Products.PageTemplates.ZRPythonExpr.PythonExpr
 
 This one does *not* go away when setting ZOPE_SECURITY_POLICY=PYTHON. I am 
 also leaking refs to persistent User objects; may be a side effect though - 
 like your DateTimes.
 
 The site in question serves large ZSQL result sets via ZPT to authenticated 
 users. No CMF/Plone involved.

I also have a leaking Zope, i'am also using large ZSQL result sets but no ZPT.
I work with a result set of about 500 rows.
I do a lot of stuff for each row of the result set, e.g. setup new objects in zope.
All my work is done in a own product, if i work the first times with it, i could see
my zope grows up about 500MB
After that a found out, to do a get_transaction.commit(1) after i have done all my work
for each row and the zope was not growing up with such big steps.

I posted this problem some times ago, but no one could give a answer to this problem.
All zope sites a have where we use ZSQL are growing up...

Hope anyone could solve this.

Regards

andre

 
 Stefan
 
 
 --On Montag, 22. Juli 2002 13:45 -0700 Andy McKay [EMAIL PROTECTED] wrote:
 
  Hey all,
 
  A client of mine seems to be plagued with memory leaks. I have a CMF /
  Plone site on We fixed some security issues that caused a major leak this
  is the same I believe as http://collector.zope.org/Zope/421, by jiggling
  settings this no longer an issue. Anyway we are still getting some minor
  leaks that severly limit the amount of the traffic the box is going to be
  able take. Lots of different objects are being leaked, including good old
  DateTime, however I dont believe its this, DateTime just happens to be
  there.
 
  Possible culprits are (trimmed down debug page) ZPT:
  Products.PageTemplates.Expressions.PathExpr,
  Products.PageTemplates.Expressions.SubPathExpr,
  Products.PageTemplates.TALES.TALESError etc...
  or AccessControl AccessControl.unauthorized.Unauthorized,
  AccessControl.SecurityManager.SecurityManager etc...
 
  A quick rummage through LeakFinder hasn't helped too much so Im not sure
  what too recommend. Good old install ZEO and restart Zope every few hours?
  Is anyone else having issues?
 
  Configuration:
 
  Plone 0.99 Almost There
  CMF Beta 1.3 beta 1
  Zope 2.5.1
  Python 2.1.3
  RedHat Linux 7.1
  Using Apache and pcgi to serve...
  --
Andy McKay
 
 
 
 
  ___
  Zope-Dev maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope-dev
  **  No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope )
 
 --
 Those who write software only for pay should go hurt some other field.
 /Erik Naggum/
 
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Memory Leaks

2002-07-23 Thread Andre Schubert

On Tue, 23 Jul 2002 12:37:39 +0200
Stefan H. Holek [EMAIL PROTECTED] wrote:

 I do also see the ZPT expression stuff leaking. In my case in this order:
 
 Products.PageTemplates.Expressions.SubPathExpr
 Products.PageTemplates.Expressions.PathExpr
 Products.PageTemplates.ZRPythonExpr.PythonExpr
 
 This one does *not* go away when setting ZOPE_SECURITY_POLICY=PYTHON. I am 
 also leaking refs to persistent User objects; may be a side effect though - 
 like your DateTimes.
 
 The site in question serves large ZSQL result sets via ZPT to authenticated 
 users. No CMF/Plone involved.
 
 Stefan
 
 
 --On Montag, 22. Juli 2002 13:45 -0700 Andy McKay [EMAIL PROTECTED] wrote:
 
  Hey all,
 
  A client of mine seems to be plagued with memory leaks. I have a CMF /
  Plone site on We fixed some security issues that caused a major leak this
  is the same I believe as http://collector.zope.org/Zope/421, by jiggling
  settings this no longer an issue. Anyway we are still getting some minor
  leaks that severly limit the amount of the traffic the box is going to be
  able take. Lots of different objects are being leaked, including good old
  DateTime, however I dont believe its this, DateTime just happens to be
  there.
 
  Possible culprits are (trimmed down debug page) ZPT:
  Products.PageTemplates.Expressions.PathExpr,
  Products.PageTemplates.Expressions.SubPathExpr,
  Products.PageTemplates.TALES.TALESError etc...
  or AccessControl AccessControl.unauthorized.Unauthorized,
  AccessControl.SecurityManager.SecurityManager etc...
 
  A quick rummage through LeakFinder hasn't helped too much so Im not sure
  what too recommend. Good old install ZEO and restart Zope every few hours?
  Is anyone else having issues?
 
  Configuration:
 
  Plone 0.99 Almost There
  CMF Beta 1.3 beta 1
  Zope 2.5.1
  Python 2.1.3
  RedHat Linux 7.1
  Using Apache and pcgi to serve...
  --
Andy McKay
 
 
 
 
  ___
  Zope-Dev maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope-dev
  **  No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope )
 
 --
 Those who write software only for pay should go hurt some other field.
 /Erik Naggum/
 
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Permission Question

2002-05-13 Thread Andre Schubert

Hi all,

i have i question on the permission-system of zope.
Lets say i have a product which contains a zclass foo and i have created
a role foo_role where every user belonges to this role
is able to add foo instances. This works fine.
But how do i define my permissions so, that all users which belong to
foo_role are able to delete foo-instances.

I created a zope-permission Delete Foo objects, then i mapped this permission
to Delete objects in the zclass foo like the mapping from Add Foos to Create 
class instances.
But this doesnt work.

Can anyone help me...

Thanks in advance


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Permission Question

2002-05-13 Thread Andre Schubert

On Mon, 13 May 2002 21:16:24 +0200
Dieter Maurer [EMAIL PROTECTED] wrote:

 Andre Schubert writes:
   i have i question on the permission-system of zope.
   Lets say i have a product which contains a zclass foo and i have created
   a role foo_role where every user belonges to this role
   is able to add foo instances. This works fine.
   But how do i define my permissions so, that all users which belong to
   foo_role are able to delete foo-instances.
   
   I created a zope-permission Delete Foo objects, then i mapped this permission
   to Delete objects in the zclass foo like the mapping from Add Foos to 
Create class instances.
   But this doesnt work.
 Delete objects is a permission of the container (containing the objects
 to be deleted) and not the objects themselves.
 
 You can make your own object deletion method (script) that applies
 the permission checks you want (give it a Manager proxy role,
 such that it is able to actually delete the objects).
 
 
 Dieter

Thanks for your help, i will try to implement such a method.

Regards..


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Security-Bug

2002-05-12 Thread Andre Schubert

On Wed, 8 May 2002 23:04:08 +0200
Dieter Maurer [EMAIL PROTECTED] wrote:

 Andre Schubert writes:
   could this be a bug in the security-machinery?
   
   Lets say we have a role foo, this role has the permission to view the management 
screens.
   Lets say we have a user bar which has the role foo.
   
   If i login into the ZMI a be able to go to
   Control_Panel/Products.
   And now if i want i be able to add a Zope Permission in every Product-Folder i 
found.
   
   Testet with Zope 2.4.3
   
   Do i have misset any security-permissions or is this really a bug?
 I do not understand what your problem is...
 
   What does not work?
   
 
 Dieter
 
If i have the permission to view the management screens i be able to add Zope 
Permissions... is this a security bug or not ?


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Memory Leak Problem

2002-03-14 Thread Andre Schubert

Hi all,

I have isolated the memory leak problem on a naked 2.3.3 Zope.
I have on ZPsycopgDA and two SQL Methods, one SQL Method contains
DTML-IFs and DTML-ELSEs and REQUEST.sets
the other SQL Method contains the rendered query of the first, this
means there is pure sql in it.
Both methods cache there results 60 secs.
Zope runs with 4 threads.

I wrote a test-script wich opens 4 threads and each thread call the
second SQL Methods manage_test via wget.

After a restart my zope-processes are around 12MB.
Then i start my script and before i receive any result all processes are
grown up to 26MB.

Even if after i start my script nothing happens, but before i receive
the result the processes grow up,
maybe i think this is the time where zope gets the results from the
database and
puts it into the Results-Class( i am right at this point ?).

But is the problem in the ZSQLMethod( where the results were cached ) or
the ZPsycopgDA ??

Regards,

-- 
Andre SchubertEMail:   [EMAIL PROTECTED]
  Tel: 03774 6625-78
km3 teledienst GmbH   Fax: 03774 6625-79

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Memory Leak Problem

2002-03-14 Thread Andre Schubert

Toby Dickenson schrieb:
 
 On Thu, 14 Mar 2002 13:50:13 +0100, Andre Schubert
 [EMAIL PROTECTED] wrote:
 
 After a restart my zope-processes are around 12MB.
 
 Sounds about right.
 
 Then i start my script and before i receive any result all processes are
 grown up to 26MB.
 
 Thats not unreasonable for the working set of zope. I have no reason
 to suspect a leak.
 
 Im not sure what operating system you are using. If its linux then

RedHat Immunix 6.2

 maybe you are misinterpreting the output of ps or top: The 26M is
 listed next to each process, but its the *same* 26M in each row of the
 table. In other words, your system is using 26M total for zope, not
 26*5 (assuming you have 5 processes).
 
 If Zope grows by 12M for each request then thats a different scenario.
 
 12M growth on the *first* request is quite normal.

Yes, i believe, but every time i run that script the memory usage of
zope( all processes ) grows up.
If the script was ended and zope grows up about 1MB would i think that
each request for the ZSQL Methods grows up zope
about 250K and 250K * 4 = 1MB.
My problem is that every time after running the script zope grows up.
Sometimes zope grows up about 1 or 2MB and sometimes only 100K, but zope
is growing up every time a run my test-script.

On our production server the last time zope grows up to 100MB in 6
hours, and maybe thats not so good.

 
 Toby Dickenson
 [EMAIL PROTECTED]
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Memory Leak Problem

2002-03-14 Thread Andre Schubert

Andre Schubert schrieb:

If have changed the that it skips the ZSQLMethod and sends the query
used in the ZSQLMethod direct
to the manage_test function from the ZPsycopgDA with the result that
zope grows up
after running the script.
If it is possible that the mem-leak is somewhere in the DA, then i post
this message to the psycopg mailinglist.

Thanks

 
 Hi all,
 
 I have isolated the memory leak problem on a naked 2.3.3 Zope.
 I have on ZPsycopgDA and two SQL Methods, one SQL Method contains
 DTML-IFs and DTML-ELSEs and REQUEST.sets
 the other SQL Method contains the rendered query of the first, this
 means there is pure sql in it.
 Both methods cache there results 60 secs.
 Zope runs with 4 threads.
 
 I wrote a test-script wich opens 4 threads and each thread call the
 second SQL Methods manage_test via wget.
 
 After a restart my zope-processes are around 12MB.
 Then i start my script and before i receive any result all processes are
 grown up to 26MB.
 
 Even if after i start my script nothing happens, but before i receive
 the result the processes grow up,
 maybe i think this is the time where zope gets the results from the
 database and
 puts it into the Results-Class( i am right at this point ?).
 
 But is the problem in the ZSQLMethod( where the results were cached ) or
 the ZPsycopgDA ??
 
 Regards,
 
 --
 Andre SchubertEMail:   [EMAIL PROTECTED]
   Tel: 03774 6625-78
 km3 teledienst GmbH   Fax: 03774 6625-79
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Memory Leak Problem

2002-03-13 Thread Andre Schubert

Andre Schubert schrieb:
 
 Andy McKay schrieb:
 
  Didnt Shane do a leak finder product that can help debug this?
  http://www.zope.org/Members/hathawsh
 
 I will install the LeakFinder product on the server and look what
 happens

If have installed LeakFinder this morning and restarted zope.
My processes are grown up from 48MB to 78MB in about 4 hours, it never
was so much ( the last time 10MB per week! )
In this time i got the following top 10 refcounts from leakfinder.

OFS.Image.Image 36319
DocumentTemplate.DT_Util.Eval 9802
DateTime.DateTime.DateTime 6539
OFS.DTMLDocument.DTMLDocument 5454
OFS.Folder.Folder 5386
OFS.DTMLMethod.DTMLMethod 4850
DocumentTemplate.DT_In.InClass 1725
Products.ZSQLMethods.SQL.SQL 996
Products.TransparentFolders.TransparentFolder.TransparentFolder 458
DocumentTemplate.DT_Let.Let 398

Hope this list helps ...

Thanks

 
  On March 12, 2002 08:42 am, Chris McDonough wrote:
   Finding memory leaks is an exercise in binary search.  Isolate half of
   the Zope (and Product) code and find out if it leaks.  If it doesn't, you
   know the problem is in the other half. ;-)  Ad infinitum.  I'm sorry this
   is the case, but it almost always boils down to this particular recipe of
   diagnostics.
  --
Andy McKay
 
  ___
  Zope-Dev maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope-dev
  **  No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope )
 
 --
 Andre SchubertEMail:   [EMAIL PROTECTED]
   Tel: 03774 6625-78
 km3 teledienst GmbH   Fax: 03774 6625-79
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

-- 
Andre SchubertEMail:   [EMAIL PROTECTED]
  Tel: 03774 6625-78
km3 teledienst GmbH   Fax: 03774 6625-79

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Memory Leak Problem

2002-03-12 Thread Andre Schubert

Hi all,

i have a little problem with my production server.
The memory usage of the zope processes running on this server are
growing up
100K a day upto 1MB a day.
How can i track down the problem.

Zope is 2.3.3
Python is 1.5.2
OS is RedHat Immunix 6.2

Hope somebody could help... 

Thanks,

-- 
Andre SchubertEMail:   [EMAIL PROTECTED]
  Tel: 03774 6625-78
km3 teledienst GmbH   Fax: 03774 6625-79

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Memory Leak Problem

2002-03-12 Thread Andre Schubert

Andy McKay schrieb:
 
 Didnt Shane do a leak finder product that can help debug this?
 http://www.zope.org/Members/hathawsh

I will install the LeakFinder product on the server and look what
happens

 
 On March 12, 2002 08:42 am, Chris McDonough wrote:
  Finding memory leaks is an exercise in binary search.  Isolate half of
  the Zope (and Product) code and find out if it leaks.  If it doesn't, you
  know the problem is in the other half. ;-)  Ad infinitum.  I'm sorry this
  is the case, but it almost always boils down to this particular recipe of
  diagnostics.
 --
   Andy McKay
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

-- 
Andre SchubertEMail:   [EMAIL PROTECTED]
  Tel: 03774 6625-78
km3 teledienst GmbH   Fax: 03774 6625-79

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Memory Leak Problem

2002-03-12 Thread Andre Schubert

Oliver Bleutgen schrieb:
 
  Hi all,
  
  i have a little problem with my production server.
  The memory usage of the zope processes running on this server are
  growing up
  100K a day upto 1MB a day.
  How can i track down the problem.
 [snip]
 
 Chris McDonough wrote:
  Finding memory leaks is an exercise in binary search.  Isolate half of the
  Zope (and Product) code and find out if it leaks.  If it doesn't, you know
  the problem is in the other half. ;-)  Ad infinitum.  I'm sorry this is the
  case, but it almost always boils down to this particular recipe of
  diagnostics.
 
 A question and one remark.
 Wouldn't staring at the refcounts in the debug panel also give some
 info? At least for selfmade products?
 
 Something like:
 
 Acquisition.ImplicitAcquirerWrapper: 42442
 OFS.DTMLMethod.DTMLMethod: 3989
 ZPublisher.HTTPRequest.HTTPRequest: 3941
 ZServer.HTTPResponse.ZServerHTTPResponse: 3934
 ZPublisher.BaseRequest.RequestContainer: 3931
 AccessControl.DTML.TemplateDict: 3930

The Toprefcounts are:
Acquisition.ImplicitAcquirerWrapper: 2981
DocumentTemplate.DT_Util.Eval: 1379
OFS.Image.Image: 1194
ZPublisher.HTTPRequest.HTTPRequest: 916
ZServer.PCGIServer.PCGIResponse: 906
ZPublisher.BaseRequest.RequestContainer: 906
ExtensionClass: 361
DocumentTemplate.DT_In.InClass: 263
OFS.Folder.Folder: 250
OFS.DTMLDocument.DTMLDocument: 238
DocumentTemplate.DT_Var.Var: 207
OFS.DTMLMethod.DTMLMethod: 196
AccessControl.PermissionRole.PermissionRole: 184
App.special_dtml.DTMLFile: 182
Products.ZGadflyDA.gadfly.kjParser.ParseRule: 161
re.RegexObject: 153
Shared.DC.Scripts.Signature.FuncCode: 143
and so on.

My selfmade products are near the bottom of the list...

Thanks

 
 doesn't surely look too good, heh? ;-)
 Yes this is from a production server, which now get's restarted as it
 occupies 130MB (up from 15MB in 10 days).
 
 The remark, Andre, Chris has written a very nice product, called
 AutoLance which helps by monitoring zope's memory usage and restarting
 if a configurable threshold is reached.
 
 http://www.zope.org/Members/mcdonc/Products/AutoLance
 
 We use it on a production server.
 
 cheers,
 oliver
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

-- 
Andre SchubertEMail:   [EMAIL PROTECTED]
  Tel: 03774 6625-78
km3 teledienst GmbH   Fax: 03774 6625-79

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] sqlvar and longs

2002-03-06 Thread Andre Schubert

Hi all,

I have a little question on dtml-sqlvar 
My problem is, that i want to insert values into a table and the type of
the values
are integer8.
I tried with dtml-sqlvar foo type=long but it doesnt work.
How can i use dtml-sqlvar with longs?
Will this feature be added in further versions?
Is there a product which patches this problem? If not i would write such
a thing myself.

Regards

-- 
Andre SchubertEMail:   [EMAIL PROTECTED]
  Tel: 03774 6625-78
km3 teledienst GmbH   Fax: 03774 6625-79

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] sqlvar and longs

2002-03-06 Thread Andre Schubert

Hmmm ... i have been a bit to fast. 
I wrapped my had around this, and found that long is
handled through the int, by simply stripping the L
of it (pythons string representation of long is 214321L ...)
so it get passed as a valid long string. 

sorry for mixing things up ...

Right, but works only if the string-representation is not greater than
the max-value of an integer.
The following does not work for me.

dtml-let longnumber=24L
update tbl_test set adresse = dtml-sqlvar longnumber type=int
/dtml-let

Greetings

-- 
Andre SchubertEMail:   [EMAIL PROTECTED]
  Tel: 03774 6625-78
km3 teledienst GmbH   Fax: 03774 6625-79

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Zope 2.6 planning - call for contributors!

2002-02-28 Thread Andre Schubert

Hi,

John Ziniti schrieb:
 
Let's get a discussion
  
   started to define 2.6
  
 
 I'd like to see the ZSyncer Product, or a variant thereof, included in
 Zope by default.  That is, I'd like Synchronization, to a be a default
 property of Zope objects, so that objects/content can be pushed and
 pulled between two Zope installations.

I would use ZCVSFolder or somewhat likely that included instead of
ZSyncer.
The problem i see is that we have a development server and more than one
production instances in our organisation.
If a product comes out of its development state it is moved to the
production server.
If you use ZSyncer then all Objects zsynced over all instances have
the same version, but if you use ZCVSFolder instead
then you have a version-control mechanism of all objects on the
different instances.

 
 I venture a guess that the development/production model is common,
 and this helps quite a bit in maintaining this model.
 
 Ziniti
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

-- 
Andre SchubertEMail:   [EMAIL PROTECTED]
  Tel: 03774 6625-78
km3 teledienst GmbH   Fax: 03774 6625-79

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Possible Bug in Helpsys

2002-02-27 Thread Andre Schubert

Hi all,

These days i worked on a Help for my ZClass-based Product and found out,
that
the HelpSys-Topics are unsorted in menu.dtml.
If have changed dtml-tree to dtml-tree sort=id, so it is possible to
sort the HelpTopics
in a logical way.
Should this be changed in further versions of zope or not ??

-- 
Andre SchubertEMail:   [EMAIL PROTECTED]
  Tel: 03774 6625-78
km3 teledienst GmbH   Fax: 03774 6625-79

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Possible Bug in Helpsys

2002-02-27 Thread Andre Schubert

Hi Chris,

done.
Issue #253 Update (Request) Unsorted menu in HelpSys

mfg

Chris McDonough schrieb:
 
 Hi Andre,
 
 Can you supply a bugreport (and maybe a patch) to the Collector?
 http://collector.zope.org/
 
 Thanks,
 
 - C
 
 Andre Schubert wrote:
  Hi all,
 
  These days i worked on a Help for my ZClass-based Product and found out,
  that
  the HelpSys-Topics are unsorted in menu.dtml.
  If have changed dtml-tree to dtml-tree sort=id, so it is possible to
  sort the HelpTopics
  in a logical way.
  Should this be changed in further versions of zope or not ??
 
 
 
 --
 Chris McDonoughZope Corporation
 http://www.zope.org http://www.zope.com
 Killing hundreds of birds with thousands of stones

-- 
Andre SchubertEMail:   [EMAIL PROTECTED]
  Tel: 03774 6625-78
km3 teledienst GmbH   Fax: 03774 6625-79

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Memory Problem with 2.3.3

2002-02-20 Thread Andre Schubert

Hi,

I have a problem with my Zope 2.3.3 running on a redhat immunix 6.2.
The problem is that the zope-threads are growing up.
I have running a top since yesterday.
2 days ago the size of all zope-processes was 44MB, yesterday it was
54MB today it is 64MB.
This means to me, that all threads are growing up 10MB a day.
If have also looked in the debug-information at the top-refcounts.
OFS.Image.Image has a delta of around +1500...
Is there a problem with OFS.Image.Image, are these objects never closed


Please Help

Regards,

-- 
Andre SchubertEMail:   [EMAIL PROTECTED]
  Tel: 03774 6625-78
km3 teledienst GmbH   Fax: 03774 6625-79

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] ZClasses and Python

2002-02-19 Thread Andre Schubert

Hi,

thank you very much, this works perfectly for me... :)

Regards

Tim McLaughlin schrieb:
 
 Take a look at ZClassEvents
 
 Andre Schubert wrote:
 
 Hi all,
 
 i have a little question on ZCLasses and Python.
 Lets Say i have python-base-class foo which is folderish.
 I have a zclass bar which has the class foo as base class.
 Now i have defined as new propertysheet instance in bar called foobar.
 
 If i change the properties of foobar, then manage_editProperties is
 called( i'am right ).
 
 Is there a way to catch the manage_editProperties function(called from
 foobar) in my base-class foo 
 
 Thanks as
 
 P.S.: I hope there is someone understanding this :)
 
 
 --
 Tim McLaughlin
 Iteration ZERO, Inc. - www.iterationzero.com
 703.481.3983

-- 
Andre SchubertEMail:   [EMAIL PROTECTED]
  Tel: 03774 6625-78
km3 teledienst GmbH   Fax: 03774 6625-79

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] ZClasses and Python

2002-02-07 Thread Andre Schubert

Hi all,

i have a little question on ZCLasses and Python.
Lets Say i have python-base-class foo which is folderish.
I have a zclass bar which has the class foo as base class.
Now i have defined as new propertysheet instance in bar called foobar.

If i change the properties of foobar, then manage_editProperties is
called( i'am right ).

Is there a way to catch the manage_editProperties function(called from
foobar) in my base-class foo 

Thanks as

P.S.: I hope there is someone understanding this :)

-- 
Andre SchubertEMail:   [EMAIL PROTECTED]
  Tel: 03774 6625-78
km3 teledienst GmbH   Fax: 03774 6625-79

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Bug Or Feature in ZopeSplitter

2002-01-14 Thread Andre Schubert

Hi all,

After playing with Zope 2.4.3 and TextIndexes i found out that the
TextIndex does not Index Digits( 12345 ).
Thatswhy i looked in the sources and i saw in next_word, that there is
the caracter checked with isalnum, but in check_synstop the caracter
is checked with isalpha?
This means to me that every DIGIT is a stop-word and not a real
character.

If have changed the isalpha with isalnum and it seems to work...

Can anyone explain this...

thanks as

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Bug Or Feature in ZopeSplitter

2002-01-14 Thread Andre Schubert

I hope the changes I made will work. :)

mfg as

Chris McDonough schrieb:
 
 This is correct.  The current splitter implementation ignores digits.
 You can make your own implementation that does not.
 
 Andre Schubert wrote:
 
  Hi all,
 
  After playing with Zope 2.4.3 and TextIndexes i found out that the
  TextIndex does not Index Digits( 12345 ).
  Thatswhy i looked in the sources and i saw in next_word, that there is
  the caracter checked with isalnum, but in check_synstop the caracter
  is checked with isalpha?
  This means to me that every DIGIT is a stop-word and not a real
  character.
 
  If have changed the isalpha with isalnum and it seems to work...
 
  Can anyone explain this...
 
  thanks as
 
  ___
  Zope-Dev maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope-dev
  **  No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope )
 
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Zope Exceptions and translation

2001-12-05 Thread Andre Schubert

Seb Bacon schrieb:
 
 From: Trevor Toenjes [EMAIL PROTECTED]
 
  This proposal is dead-on to make the errors more accessible and
  customizable.  This is the solution to some of my previous error_message
  threads.
 
  How do we move this from proposal to project?
 
 We need to define the scope very clearly.  Please add your ideas to the Wiki 
 :)

I have added my ideas to the wiki, i hope all english-speaking poeple
understand it. :)

thanks

 
  Why not start with a less ambitious first phase of opening up Exceptions
  control as a product.  How about a Folder attribute or a
  standard_error_message controller?
 
 This is a very good idea.  One risk is that because it should work with
 string-based exceptions, it might *encourage* people to continue to work
 with string-based exceptions.
 
 We would also need to fix the 'errors outside html' and 'hardcoded errors'
 problems as part of the project, I think.
 
 seb
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Zope Exceptions and translation

2001-12-03 Thread Andre Schubert

Hi all,

I'am looking for several products to translate zope-site into german.
I have found ZBabel and it works very fine for normal websites.
It always works fine in the standard_error_message if there is an
error_value and an error_type.
But it doesnt work if i get an string exception, because the error_value
is an complete html-site.
Therefore i tryed to patch some Exceptions in HTTPResponse to raise an
class-Exception and a short string
as error_value.
The problem i see is that all exceptions in zope are raised in many
defferent places and thats very difficult
to patch them or to make them translation-able.
I think it is a good way to change all string-exceptions like these in
HTTPResponse to class-exceptions and the error_value
to a normal description. With these changes the standard_error_message
could be raised and there is an ability to
translate the error_value.
Do i think in the right way or did i missing any facts

thanks as

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Security Question

2001-11-28 Thread Andre Schubert

Danny William Adair schrieb:
 
 On Saturday 24 November 2001 01:40, Andre Schubert wrote:
  root/
index_html
foo/
  acl_users/
  bar/
Image
 
  I have a image which could only be view by users with a role named
  foobar, these users are in acl_users.
  If i access the image through the web a must authenticate myself for the
  first time, after that everything works well.
  But if i want to access the Image via dtml-var Image from the
  index_html in the root-folder a got no access.
  After searching at Zope.org i tested with dtml-var
  restrictedTraverse('foo/bar/Image') but this doesnt works.
  How do i authenticate myself in foo if i access the folder via dtml.
 
 In your Image object, give the Access Contents Information to the role
 Anonymous (or whoever usually views index_html), but keep View forbidden
 for Anonymous (allowed only for foobar role owners).
So it is.
 
 This way, the var tag (which could have been called by Anonymous) will be
 able to see the object, and Zope will authenticate automatically, if this
 is necessary in order to view it.
This doesn't work, because the user it not known in root where the
index_html is,
the user is known in the folder view.

 
 For security reasons, your Image object will not even be found, if the
 caller's role does not have the Access Contents Information permission. I
 find this a good idea and reason.
 
 There is no difference whether you climb to Image using restrictedTraverse,
 the with tag, or directly. All these will have identical results.
 
 If you want to avoid the separate permission settings (because you have a lot
 of Image objects you want to behave like that), either give index_html a
 proxy role that has the Access Contents Information permission on Image
 (or the whole bar folder), or use unrestrictedTraverse in index_html.
 
 hth,
 Danny

as

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Authentication Problem with Postgres

2001-11-20 Thread Andre Schubert

Hi all,

sometimes i have a curios problem with my Zope.
Without any errors in any logs Zope could not authenticate himself with
postgres.
The error message is that there is a wrong password.
After a restart of Zope everything works fine until the eror occurs
again.

My sysop has traced the protcols before and after the error.
Zope sends some data and then a crypted password with the salt.
If the error is occured the password that Zope sends is crypted wrong.
After a restart of Zope the password is right crypted.

Could anybody help or explain me this problem, it is very important for
the further use of Zope
for our websites.

Thanks as

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: Was:([Zope-dev] HELP PLEASE)

2001-10-18 Thread Andre Schubert

Hi,

After viewing all log-files, i have found out, that everytime when a
SQL-Method was called
and the SQL-Method takes several minutes to return a result then a erro
code 13 was raised.
Last time i change the DA from ZPygres to ZPsycopg, because of the error
code 13, but that was not the problem.
The problem seems that if a SQL-query takes several time, then the error
is raised.
There was a message from Shai Berger written on Mon, 06 Aug 2001
18:44:06 +0300 which describes(for me) this problem.

thanls as

Andre Schubert schrieb:
 
 The only things i know, are the following lines in the stupid_log_file.
 
 2001-10-14T18:03:21 ERROR(200) zdaemon zdaemon: Sun Oct 14 20:03:21
 2001: Aiieee! 32437 exited with error code: 13
 --
 2001-10-14T18:03:21 INFO(0) zdaemon zdaemon: Sun Oct 14 20:03:21 2001:
 Houston, we have forked
 --
 2001-10-14T18:03:21 INFO(0) zdaemon zdaemon: Sun Oct 14 20:03:21 2001:
 Houston, we have forked
 --
 2001-10-14T18:03:21 INFO(0) zdaemon zdaemon: Sun Oct 14 20:03:21 2001:
 Hi, I just forked off a kid: 588
 
 as
 
 Richard Jones schrieb:
 
  On Monday 15 October 2001 17:09, Andre Schubert wrote:
Hi all,
   
i have serious problems with my zope.
Last time he dies very often with error code 13,and since to today he
slows down extremly.
To view the Control_Panel/DebugForm it takes up to 1 minute and thats
not acceptable.
   
How can i track down these problems.
   
I run Zope-2.2.4 on Immunix-RedHat 6.2
  
   Hi, all
  
   Is there anybody, who can help me tracking down where the Error Code: 13
   comes from,
   it is very important for my Zope Installation.
 
  You probably need to give more information - like where this error code 13
  appears. If it's an OSError or IOError, it's probably an Access Error (as
  defined in the errno module, EACCES). What _that_ means depends entirely on
  the _rest_ of the error, which you haven't supplied. A full traceback of the
  error will go a long way to helping you.
 
   Richard
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] HELP PLEASE

2001-10-12 Thread Andre Schubert

Hi,

i don't no what the problem was, but it was not the swap.
I found out, that if i took lynx on the same machine everything works
fine and fast, but if i
connect over our network everything slows down.
This happens until my sysop was at work.
I think there was a network problem, but i dont know this.
If this error occurs a second time a know what i have to do.

thanks as

Robert Rottermann schrieb:
 
 I had this once (the slowing down) when an other process was eating up all
 memory and zope was constantly paged out.
 
 Robert
 - Original Message -
 From: Andre Schubert [EMAIL PROTECTED]
 To: zope [EMAIL PROTECTED]
 Sent: Friday, October 12, 2001 6:49 AM
 Subject: [Zope-dev] HELP PLEASE
 
  Hi all,
 
  i have serious problems with my zope.
  Last time he dies very often with error code 13,and since to today he
  slows down extremly.
  To view the Control_Panel/DebugForm it takes up to 1 minute and thats
  not acceptable.
 
  How can i track down these problems.
 
  I run Zope-2.2.4 on Immunix-RedHat 6.2
 
  thanks a lot as
 
  ___
  Zope-Dev maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope-dev
  **  No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope )
 
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] HELP PLEASE

2001-10-11 Thread Andre Schubert

Hi all,

i have serious problems with my zope.
Last time he dies very often with error code 13,and since to today he
slows down extremly.
To view the Control_Panel/DebugForm it takes up to 1 minute and thats
not acceptable.

How can i track down these problems.

I run Zope-2.2.4 on Immunix-RedHat 6.2

thanks a lot as

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Database Authentication Problem

2001-10-04 Thread Andre Schubert

Hi,

a have amysterious problem with my database-adapters.
The problem is that sometimes all my database-adapters couldn't connect
to my database.
after a zope-restart everything works fine.
I use Zope-2.2.5
Immunix Redhat 6.2
PostgreSQL 7.1.3
ZopeDA's are ZPygreSQL and ZPsycopg.

If the error happens then all Database-connections are closed.
No error in the stupid-log.
The postgres log say's - Password authentication failed for user 'foo' -
for every ZopeDA.

Could anyone help me ?
Is there a bug which is fixed in a later version of Zope ?

thanks as

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Zope Dying

2001-09-26 Thread Andre Schubert

Hi,

Yesterday our Zope(2.2.5) on redhat 6.2 immunix was dying 3-4 times in
about 2 hours.
There are nothing to report in all the logs zope can produce.
But is there a way that zope makes a core dump when he is dying
unexpectly?

as

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Curiously Zope Hanging

2001-07-13 Thread Andre Schubert

Hi,

Ok, we( my SysAdmin and i ) have found the problem of hanging.
After hours of searching in the python Sources of all the Products which
are involved
we have nothing found.
At this point my SysAdmin has the idea to trace the python processes
with gdb.
After this we could see that Zope was running somewhare in the
gdchart.so module.
After an update of the gdchart.so the problem doesn't occur anymore.
I doesn't know enough to work with gdb, but if my SysAdmin were not able
to work with gdb so very well, i never have found the point were Zope
runs into another universe :)

thanks as

Steve Spicklemire schrieb:
 
 Sorry.. got distracted and forgot where I was!
 
 
  I think I get the basic picture... but
 
 I think maybe we need more details of your system to be of any more help..
 
 -steve
 
  
   as
  
   Steve Spicklemire schrieb:
  
Well, the good news is you have a reproducable symptom!
   
 
  ___
  Zope-Dev maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope-dev
  **  No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope )
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Curiously Zope Hanging

2001-07-12 Thread Andre Schubert

Hi all,

I have a problem with my Zope, he hangs unexpectly if i view a special
Method which generates Diagrams with data from a PostgresDB.
The data are selected by a timespan( default is 24 Hours ).
The Method works as descripted bellow:

First when i call foo, then the HTML-Code is rendered with some
images-tags, which are generated by selects.
The image tags are calling the method foo which returns image data.

If i want my diagrams from 2001-06-01 5:00 to 2001-06-01 12:05
everything works fine.
If i want my diagrams from 2001-06-01 5:00 to 2001-06-01 12:10 Zope
hangs, no exception no log entry, Zope only hangs.
If i want my diagrams from 2001-06-01 5:05 to 2001-06-01 12:10 which is
the same timespan as example 1 Zope hangs too, no exception no log
entry, Zope only hangs.

If i view the postgres logs the nothing happens.

Could anyone help me to find the problem or the place Zope is hanging

thanks as

P.S.: Exact the same problem occurs when i you another PostgresDA 



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Curiously Zope Hanging

2001-07-12 Thread Andre Schubert

No, the problem is not reproduceable, because if move the timespan 5 minutes earlier 
then
Zope crashes. And thats the problem.
If have a select which selects data of a given timespan.
The number of rows is equal, but the start and end is changing.
The queries itself are running withoput problems in my testscripts.
The next is that there are over 23 Million of rows in the DB and there is an btree 
index of
two collumns a and b.
And now comes the curiousity.

If i call my diagrams in the order that a is the same and b is changing everything 
works
well and there are absolutely no hangs,
but if i call my diagrams the other way that a is changing and b is the same then Zope
works if i select data from
2001-06-01 5:00 to
2001-06-20 12:05
and Zope hangs if i select data from
2001-06-01 5:00 to
2001-06-20 12:10
or from
2001-06-01 5:05 to
2001-06-20 12:10

I hope you understand my explanations in my bad german-english.

as


Steve Spicklemire schrieb:

 Well, the good news is you have a reproducable symptom!

 Some suggestions:

 1) Try the quer(y/ies) that cause the hang separately to make sure they return OK.

 2) Create a Python script/Tiny table/Gadfly query that returns data that looks
 just like the result of your postgresql query to test the rest of your system.
 (these two just isolate the problem to postgres or Zope)

 3) Get out the debugger and step through the publisher to see where it's
 hanging.. (in -D mode you can also 'print' in python and the results will appear
 on stdout of the 'start -D' process.

 4) Post some real code so we can see what you're really up to (!?)

 -steve

 Andre Schubert wrote:
 
  Hi Steve,
 
  Immunix Redhat 6.2
  Zope 2.3.3
  Postgres 7.1.2
 
  I'am running Zope with -M -D and with Stupid_log_file. But i don't find a problem.
  When Zope hangs, then there is one Thread Running and if i trace this Thread 
nothing
  happens.
 
  as
 
  Steve Spicklemire schrieb:
 
   Hi Andre,
  
   What OS? I've had lots of trouble with Postgres and threads on FreeBSD. 
Have
   you tried starting Zope with '-D' to see if threads are an issue?
  
   -steve
  
   Andre Schubert wrote:
   
Hi all,
   
I have a problem with my Zope, he hangs unexpectly if i view a special
Method which generates Diagrams with data from a PostgresDB.
The data are selected by a timespan( default is 24 Hours ).
The Method works as descripted bellow:
   
First when i call foo, then the HTML-Code is rendered with some
images-tags, which are generated by selects.
The image tags are calling the method foo which returns image data.
   
If i want my diagrams from 2001-06-01 5:00 to 2001-06-01 12:05
everything works fine.
If i want my diagrams from 2001-06-01 5:00 to 2001-06-01 12:10 Zope
hangs, no exception no log entry, Zope only hangs.
If i want my diagrams from 2001-06-01 5:05 to 2001-06-01 12:10 which is
the same timespan as example 1 Zope hangs too, no exception no log
entry, Zope only hangs.
   
If i view the postgres logs the nothing happens.
   
Could anyone help me to find the problem or the place Zope is hanging
   
thanks as
   
P.S.: Exact the same problem occurs when i you another PostgresDA 
   
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )
  
   ___
   Zope-Dev maillist  -  [EMAIL PROTECTED]
   http://lists.zope.org/mailman/listinfo/zope-dev
   **  No cross posts or HTML encoding!  **
   (Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope )

 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Bug in TransparentFolders ???

2001-07-04 Thread Andre Schubert

Hi,

after searching the soures if found a way the point of disaster.
in TransparentFolderPatch i changed the line:
if tpids and not self._v_no_transparent and name[:3] != '_p_' :
to:
if tpids and not self._v_no_transparent and name[:3] != '_p_' and
name[-11:] != '_Permission':
which means to me the if there is a TransparentFolder then don't acquire
its Permissions only Acquire its Objects.
Is this right or did i forgot something???

thanks as



Andre Schubert schrieb:

 Hi all,

 i think i have found a bug in using TransparentFolders.
 Let it explain step by step.
 First the Structure:

 Folder_A
 Folder_B_Transparent

 You have Folder( Folder_A )  and create a new TransparentFolder
 Folder_B_Transparent in Folder_A.
 Then go to the SecurityManagement of the Folder_B_Transparent  and
 Disable the acquire permission setting of any permission(s),
 maybe Use MailHost Service or so, and save the changes.
 Then go Back to the Folder_A and try to open the SecurityTab of
 Folder_A.
 I got the following error only if any acquire permission setting is
 disabled in Folder_B_Transparent:

 !--
 Traceback (innermost last):
   File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 223,
 in publish_module
   File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 187,
 in publish
   File /usr/share/zope/lib/python/Zope/__init__.py, line 221, in
 zpublisher_exception_hook
 (Object: Traversable)
   File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 171,
 in publish
   File /usr/lib/python1.5/site-packages/ZPublisher/mapply.py, line 160,
 in mapply
 (Object: manage_access)
   File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 112,
 in call_object
 (Object: manage_access)
   File /usr/share/zope/lib/python/AccessControl/Role.py, line 257, in
 manage_access
 (Object: Traversable)
   File /usr/share/zope/lib/python/Shared/DC/Scripts/Bindings.py, line
 324, in __call__
 (Object: _normal_manage_access)
   File /usr/share/zope/lib/python/Shared/DC/Scripts/Bindings.py, line
 354, in _bindAndExec
 (Object: _normal_manage_access)
   File /usr/share/zope/lib/python/App/special_dtml.py, line 236, in
 _exec
 (Object: _normal_manage_access)
   File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_With.py,
 line 146, in render
 (Object: _.namespace(valid_roles=valid_roles()))
   File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_In.py, line
 650, in renderwob
 (Object: permission_settings)
   File /usr/share/zope/lib/python/AccessControl/Role.py, line 182, in
 permission_settings
 (Object: Traversable)
   File /usr/share/zope/lib/python/AccessControl/Role.py, line 177, in
 lambda
 AttributeError: (see above)
 --

 thanks, as

 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] TransparentFolder Problem

2001-06-28 Thread Andre Schubert

Hi,

i have a problem with Acquisition and TransparentFolders.
I have the following structure

/
Transparent_A
Method_A
Folder_B
Transparent_B
Method_A
Folder_C

Folder_B and Folder_C are non-transparent, Transparent_A and
Transparent_B are transparent.

The problem is when i say dtml-var Method_A in a Document which is in
Folder_C i got  the Method_A from Folder_B.Transparent_B and not from
Transparent_A.
Could anyone help me or explain what's wrong.

thanks, as


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] TransparentFolder Problem

2001-06-28 Thread Andre Schubert

I have testet it on a devel server, but on this machine everything works
fine.
I forgot to say, that there is a siteroot in Folder_B and Folder_C and the
Permissions in these Folders are different.
If i have time i try to rebuild the situation step by step and tell you the
Results

thanks, as

Joachim Werner schrieb:

  /
  Transparent_A
  Method_A
  Folder_B
  Transparent_B
  Method_A
  Folder_C
 
  Folder_B and Folder_C are non-transparent, Transparent_A and
  Transparent_B are transparent.
 
  The problem is when i say dtml-var Method_A in a Document which is in
  Folder_C i got  the Method_A from Folder_B.Transparent_B and not from
  Transparent_A.
  Could anyone help me or explain what's wrong.

 Haven't had time to check this in more detail, but maybe it is because you
 start from the ROOT level. ROOT is not real folder/object manager, but
 something that just works similar. Does it work if you create a new folder
 and move your whole folder tree in?

 Joachim

 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] TransparentFolderPatch and Security

2001-06-14 Thread Andre Schubert

Hi all,

I have found a bug with Transp√ľarent FolderPatch and ZopeSecurity.
Let me explain my structure.

root:
folder 1:
foo:
bar:
foobar:
foo 1:
bar 1:
Let me say that folder 1 is a normal Folder, foo and bar and foo 1 and
bar 1 are orignal TransparentFolders and foobar  is my own Product which
is a Foder with
_is_transparent=1.

The problem is, that ONLY if i want view the Security-Tab in folder 1
the following error occurs:

!--
Traceback (innermost last):
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 222,
in publish_module
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 187,
in publish
  File /usr/share/zope/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 171,
in publish
  File /usr/lib/python1.5/site-packages/ZPublisher/mapply.py, line 160,
in mapply
(Object: manage_access)
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 112,
in call_object
(Object: manage_access)
  File /usr/share/zope/lib/python/AccessControl/Role.py, line 257, in
manage_access
(Object: Traversable)
  File /usr/share/zope/lib/python/App/special_dtml.py, line 120, in
__call__
(Object: access)
  File
/usr/share/zope_2.2/Zope-2.2.0-src/lib/python/Products/ZDebug/DTMLLocator.py,
line 103, in __call__
(Object: access)
  File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_String.py,
line 528, in __call__
(Object: access)
  File
/usr/share/zope_2.2/Zope-2.2.0-src/lib/python/Products/ZDebug/DTMLDebug.py,
line 288, in debug_render_blocks
  File
/usr/share/zope_2.2/Zope-2.2.0-src/lib/python/Products/ZDebug/DTMLDebug.py,
line 286, in debug_render_blocks
  File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_With.py,
line 146, in render
(Object: _.namespace(valid_roles=valid_roles()))
  File
/usr/share/zope_2.2/Zope-2.2.0-src/lib/python/Products/ZDebug/DTMLDebug.py,
line 288, in debug_render_blocks
  File
/usr/share/zope_2.2/Zope-2.2.0-src/lib/python/Products/ZDebug/DTMLDebug.py,
line 221, in debugException
(Object: renderwob)
  File
/usr/share/zope_2.2/Zope-2.2.0-src/lib/python/Products/ZDebug/DTMLDebug.py,
line 286, in debug_render_blocks
  File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_In.py, line
630, in renderwob
(Object: permission_settings)
  File /usr/share/zope/lib/python/AccessControl/Role.py, line 183, in
permission_settings
(Object: Traversable)
  File /usr/share/zope/lib/python/AccessControl/Role.py, line 178, in
lambda
AttributeError: (see above)

--

can anyone help or explain me what happens

thanks as


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] using php on zope

2001-06-08 Thread Andre Schubert

Erik Enge schrieb:

 On Fri, 8 Jun 2001, Stian Jenssen wrote:

  Hi there!

 Hello :)

  I wan't to use php with zope, does anybody know how the header syntax
  shall look like? Tried diffrent syntaxes but i get wierd outputs, not
  as expected.

 Try this one: URL:http://www.zope.org/Members/Mamey/PHP.

I want to use PHP too, but are there Zope-Objects which serve PHP like
Script(PHP), which first are rendered and then send trough php back to the
client

as


 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Browser Timeout

2001-05-30 Thread Andre Schubert

Hi all,

I have a very important problem with Zope.
I want to display a html-site with diagramms, the diagrams are from a
sql-db with over 30Mill. entries.
My problem is that when i call the site, then for each diagram to
display a sql-query is executed which costs time.
When 20 or 30 query are executed, then the browser say that the document
contains no data.
Is it right, the the browser send a request and got the response when
the site is completly rendered( all queries executed ) ?
If yes, how can i directly write to the client. First all headers, and
after every query send the data to the client, if i can do this, then
there will be no timeout.

thanks as


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] ZServer, FTP and setVirtualRoot

2001-05-16 Thread Andre Schubert

Hi all,

i have a little problem with FTP.
first i have a folder foo, in this Folder is a dtml-method which
generates a session id add this id after the current path(
http://xxx.yyy.com/foo/98347698234562/ ) and sets the result with
REQUEST.setVirtualRoot as the SiteRoot.
The dtml-method generating the id is th access-rule of this folder.

Now the problem is, if i connect to my Zope via ftp and go to the folder
foo i don't get all the objects. If i remove the access-rule from foo i
see all with ftp.
Q: Is there a way to disable the access-rule for ftp-requests or does
the ftp-server not handle VirtualRoots ??

Thanks - as


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Bug in dtml-in ????

2001-05-02 Thread Andre Schubert

Hi,

I have found a error/bug in the dtml-in tag.
I have an SQL-Query that returns traffic-data grouped by month and year.

Th SQL-query returns 5 rows of data.
I want a page to show only one month.
If i use:
dtml-in foo size=1 orphan=1 start=query_start
dtml-if sequence-start
dtml-if next-sequence
.
/dtml-if
/dtml-if


I got the following result.
The next-statement returns the url to the next row of data( the second
row ).
The context is the current row of data ( first row ).
If i click on the link to the next row( query_start=2 ) i got the the
second row of data, but i don't got a link to the third row of data, i
only got a link back to the first.
If i set size=2 everything works fine.
But when size=1 the the error occurs, i can only switch between the
first to rows of data.
I have testet it with different SQL-query's on Zope-2.2.5 on
Redhat-Immunix-6.2

Please help

Thanks as


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Bug in dtml-in ????

2001-05-02 Thread Andre Schubert

Hi,

i have found a solution in DT_In.py
change this( beginning at line 537 ):

else:
kw['previous-sequence']=0
if index==last:
try:
# The following line is a sneaky way to
# test whether there are more items,
# without actually computing a length:
sequence[end]
pstart,pend,psize=opt(end+1-overlap,0,
  sz,orphan,sequence)
kw['previous-sequence']=0
kw['next-sequence']=1
kw['next-sequence-start-index']=pstart-1
kw['next-sequence-end-index']=pend-1
kw['next-sequence-size']=pend+1-pstart
except: pass

to this:

if index==last:
try:
# The following line is a sneaky way to
# test whether there are more items,
# without actually computing a length:
sequence[end]
pstart,pend,psize=opt(end+1-overlap,0,
  sz,orphan,sequence)
kw['next-sequence']=1
kw['next-sequence-start-index']=pstart-1
kw['next-sequence-end-index']=pend-1
kw['next-sequence-size']=pend+1-pstart
except: pass

and everything works well with size=1

as


Andre Schubert schrieb:

 Hi,

 I have found a error/bug in the dtml-in tag.
 I have an SQL-Query that returns traffic-data grouped by month and year.

 Th SQL-query returns 5 rows of data.
 I want a page to show only one month.
 If i use:
 dtml-in foo size=1 orphan=1 start=query_start
 dtml-if sequence-start
 dtml-if next-sequence
 .
 /dtml-if
 /dtml-if

 I got the following result.
 The next-statement returns the url to the next row of data( the second
 row ).
 The context is the current row of data ( first row ).
 If i click on the link to the next row( query_start=2 ) i got the the
 second row of data, but i don't got a link to the third row of data, i
 only got a link back to the first.
 If i set size=2 everything works fine.
 But when size=1 the the error occurs, i can only switch between the
 first to rows of data.
 I have testet it with different SQL-query's on Zope-2.2.5 on
 Redhat-Immunix-6.2

 Please help

 Thanks as

 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Security Management

2001-04-12 Thread Andre Schubert

Hi all,

I have a question on the security system of zope.

First i have a folder called foo in the root with acl_users and a doc
called foo_doc:

root/
bar_doc
foo/
acl_users/
joe
foo_doc

If Anonymous users could'nt view the foo_doc. This means only logged in
users like joe could wie the foo_doc.
Now my question is: When joe is logged in in foo to view the foo_doc,
and after that he view bar_doc he is authenticated as Anonymous in the
bar_doc REQUEST (right??).
But is there a way to find out that the current REQUEST comes from joe
and joe has no user object in the root acl_users.
I played with getSecurityManager, but it doesn't work
Can anybody help please

as


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Images and Products

2001-03-27 Thread Andre Schubert

Hi,

i have found the error. I had somewhere definded '' in a Permission wich is
the same as index_html. And this permission was not set to Anonymous.

as

Dieter Maurer schrieb:

 Andre Schubert writes:
   I have a little Problem on using Images in my Product.
   If i'am logged in as Manager i can View the Image, but if logged in as
   Anonymous i can't view the Image.
   The View permission is assigned to Anonymous Role and the Image Foo is
   assing to the View Permission, but i can't view the Image as Anonymous.
  
   Source:
   __ac_permissions=(
   
   ('View', ('index_html','Foo'), ('Manager',)),
 As Chris already pointed out:

   ^
 does not work.

   Foo = ImageFile('icons/foo.gif',globals())
  
   Link:
   http://www.somewhere.de/myProduct/Foo
 Access permissions are controlled by the permission
 of "ImageFile.index_html" which requires view permission.

 I expect, you have somehow broken the acquisition chain.
 Does your product inherits "Acquisition.{Ex|Im}plicit"
 or at least "ExtensionClass.Base"?
 If not, Zope's permission machinery will not work.

 Dieter

 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Images and Products

2001-03-26 Thread Andre Schubert

Hi all,

I have a little Problem on using Images in my Product.
If i'am logged in as Manager i can View the Image, but if logged in as
Anonymous i can't view the Image.
The View permission is assigned to Anonymous Role and the Image Foo is
assing to the View Permission, but i can't view the Image as Anonymous.

Source:
__ac_permissions=(
...
('View', ('index_html','Foo'), ('Manager',)),
...)

Foo = ImageFile('icons/foo.gif',globals())

Link:
http://www.somewhere.de/myProduct/Foo

Please Help, Thanks as


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Images and Products

2001-03-26 Thread Andre Schubert

Hi,

My Products Inherits Acquisition.Implicit. Anonymous Users have the View
Permission and it's aquired into my Product.
Is there a bugfix that i have forgot to fix ??

-as

Dieter Maurer schrieb:

 Andre Schubert writes:
   I have a little Problem on using Images in my Product.
   If i'am logged in as Manager i can View the Image, but if logged in as
   Anonymous i can't view the Image.
   The View permission is assigned to Anonymous Role and the Image Foo is
   assing to the View Permission, but i can't view the Image as Anonymous.
  
   Source:
   __ac_permissions=(
   
   ('View', ('index_html','Foo'), ('Manager',)),
 As Chris already pointed out:

   ^
 does not work.

   Foo = ImageFile('icons/foo.gif',globals())
  
   Link:
   http://www.somewhere.de/myProduct/Foo
 Access permissions are controlled by the permission
 of "ImageFile.index_html" which requires view permission.

 I expect, you have somehow broken the acquisition chain.
 Does your product inherits "Acquisition.{Ex|Im}plicit"
 or at least "ExtensionClass.Base"?
 If not, Zope's permission machinery will not work.

 Dieter


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] QuickTime VR Movies

2001-03-12 Thread Andre Schubert

Hi all,

I have found an error or bug in handling QT VR Movies with Zope.
I have uploaded three qt files into Zope as File objects.

I also have installed this files in the normal appache directory.

Now comes the error? If i do a wget with the files from the apache
directory and thi files from Zope i get always two different version of
the same file. That means that a QT File that comes from Zope has a
different content than a file comes from apache.
The problem is that this litte difference makes a qt plugin to crash.

I'am using zope 2.2.4 on Immunix 6.2(redhat).

Who can help???


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] QuickTime VR Movies

2001-03-12 Thread Andre Schubert

Hi,

the content-type of the files is video/quicktime. If i get such a file with
wget i got the correct content-type, but the binaries of the file are
different to a file got from apache.

mfg

Casey Duncan schrieb:

 Andre Schubert wrote:
 
  Hi all,
 
  I have found an error or bug in handling QT VR Movies with Zope.
  I have uploaded three qt files into Zope as File objects.
 
  I also have installed this files in the normal appache directory.
 
  Now comes the error? If i do a wget with the files from the apache
  directory and thi files from Zope i get always two different version of
  the same file. That means that a QT File that comes from Zope has a
  different content than a file comes from apache.
  The problem is that this litte difference makes a qt plugin to crash.
 
  I'am using zope 2.2.4 on Immunix 6.2(redhat).
 
  Who can help???
 

 What is Content-Type you are getting from Zope?
 What is the correct Content-Type?
 What is the extension of the QTVR file that was uploaded (if any).

 Zope uses the file extension or mime type of the uploaded file to try to
 determine the content-type of the file/image object . I don't see QTVR
 files listed specifically (although .mov and .qt are listed and map to
 'video/quicktime'). If you don't have that many files, you can set the
 content-type manually in the Properties tab of the file object.
 --
 | Casey Duncan
 | Kaivo, Inc.
 | [EMAIL PROTECTED]
 `--

 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Zope 2.2.4 Dying

2001-02-19 Thread Andre Schubert

Hi all,

my problems are going on :( and i need help.

2001-02-19T20:21:07 ERROR(200) zdaemon zdaemon: Mon Feb 19 21:21:07 2001: Aiieee!
20154 exited with error code: 13
2001-02-19T20:21:07 INFO(0) zdaemon zdaemon: Mon Feb 19 21:21:07 2001: Houston,
we have forked
2001-02-19T20:21:07 INFO(0) zdaemon zdaemon: Mon Feb 19 21:21:07 2001: Hi, I just
forked off a kid: 938
2001-02-19T20:21:07 INFO(0) zdaemon zdaemon: Mon Feb 19 21:21:07 2001: Houston,
we have forked
2001-02-19T20:21:08 ERROR(200) zdaemon zdaemon: Mon Feb 19 21:21:08 2001: Aiieee!
938 exited with error code: 256
2001-02-20T07:23:48 INFO(0) zdaemon zdaemon: Tue Feb 20 08:23:48 2001: Houston,
we have forked
2001-02-20T07:23:48 INFO(0) zdaemon zdaemon: Tue Feb 20 08:23:48 2001: Hi, I just
forked off a kid: 2100
2001-02-20T07:23:48 INFO(0) zdaemon zdaemon: Tue Feb 20 08:23:48 2001: Houston,
we have forked

as

Shane Hathaway schrieb:

 Andre Schubert wrote:
 
  Hi,
 
  I'am using Zope 2.2.4 with the required patches.
  Python 1.5.2
  Immunix 6.2 (redhat) - Production System - with apache-1.3.14-2.6.2 under a
  Named Virtual Host
  Zope is running with Zope.cgi

 I would guess that Apache is disconnecting its pipe to Zope.cgi somehow,
 which results in a SIGPIPE (or broken pipe).  Unfortunately, I don't
 have much experience with this kind of setup; maybe someone else can
 chime in?

 Shane

  Shane Hathaway schrieb:
 
   Andre Schubert wrote:
   
Hi,
   
since the last time i had some problems with my zope server.
The zope 2.2.4 running under linux dies unexpectly with the following
messages.
   
2001-02-16T01:50:08 ERROR(200) zdaemon zdaemon: Fri Feb 16 02:50:08
2001: Aiieee! 5451 exited with error code: 13
--
2001-02-16T02:29:38 ERROR(200) zdaemon zdaemon: Fri Feb 16 03:29:38
2001: Aiieee! 10313 exited with error code: 13
   
What does the error code 13 say and could anyone help me to solve the
problem
  
   Hmm, according to "kill -l", code 13 is "SIGPIPE".  What's your setup?
  
   Shane

 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] AttributeError

2001-02-16 Thread Andre Schubert

Hi all,

Could anyone help me to solve the following Error that occurs sometimes.

2001-02-16T09:11:42 ERROR(200) ZODB Couldn't load state for
'\000\000\000\000\000\0008\004'
Traceback (innermost last):
  File /usr/share/Zope-2.2.4/lib/python/ZODB/Connection.py, line 443, in
setstate
AttributeError: 'None' object has no attribute 'load'

Q: How can a find out wich object affected, by id or path or somewhat
else ??

as


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] AttributeError

2001-02-16 Thread Andre Schubert

Hi Alex,

i have the following Products installed, and i don't use External Methods

ExternalMethod (Installed product ExternalMethod (External Method-1-0-0))
Hotfix_2000-12-08 (Installed product Hotfix_2000-12-08)
Hotfix_2000-12-15a (Installed product Hotfix_2000-12-15a)
Hotfix_2000-12-18 (Installed product Hotfix_2000-12-18)
MIMETools (Installed product MIMETools)
MailHost (Installed product MailHost (MailHost-1-2-0))
OFSP (Installed product OFSP (OFSP-1-0-0))
SiteAccess (Installed product SiteAccess (SiteAccess-2-0-0))
ZCatalog (Installed product ZCatalog (ZCatalog-2-2-0))
ZGadflyDA (Installed product ZGadflyDA)
ZMySQLDA (Installed product ZMySQLDA (ZMySQLDA-1-1-4))
ZPyGreSQLDA (Installed product ZPyGreSQLDA (ZPyGreSQLDA-0-0-3))
ZRTChat (Installed product ZRTChat)
ZSQLMethods (Installed product ZSQLMethods)
ZopeTutorial (Installed product ZopeTutorial (Zope Tutorial 1.0))
mysqlUserFolder (Installed product mysqlUserFolder
(mysqlUserFolder-0.5.2))

as

Steve Alexander schrieb:

 Andre Schubert wrote:

 
  Could anyone help me to solve the following Error that occurs sometimes.
 
  2001-02-16T09:11:42 ERROR(200) ZODB Couldn't load state for
  '\000\000\000\000\000\0008\004'
  Traceback (innermost last):
File /usr/share/Zope-2.2.4/lib/python/ZODB/Connection.py, line 443, in
  setstate
  AttributeError: 'None' object has no attribute 'load'
 
  Q: How can a find out wich object affected, by id or path or somewhat
  else ??
 Andre,

 What products do you have in your Zope installation?

 Are you using any External methods?

 This sounds like something has written something to the ZODB that
 shouldn't be written there.

 --
 Steve Alexander
 Software Engineer
 Cat-Box limited
 http://www.cat-box.net

 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Zope 2.2.4 Dying

2001-02-16 Thread Andre Schubert

Hi,

I'am using Zope 2.2.4 with the required patches.
Python 1.5.2
Immunix 6.2 (redhat) - Production System - with apache-1.3.14-2.6.2 under a
Named Virtual Host
Zope is running with Zope.cgi

as

Shane Hathaway schrieb:

 Andre Schubert wrote:
 
  Hi,
 
  since the last time i had some problems with my zope server.
  The zope 2.2.4 running under linux dies unexpectly with the following
  messages.
 
  2001-02-16T01:50:08 ERROR(200) zdaemon zdaemon: Fri Feb 16 02:50:08
  2001: Aiieee! 5451 exited with error code: 13
  --
  2001-02-16T02:29:38 ERROR(200) zdaemon zdaemon: Fri Feb 16 03:29:38
  2001: Aiieee! 10313 exited with error code: 13
 
  What does the error code 13 say and could anyone help me to solve the
  problem

 Hmm, according to "kill -l", code 13 is "SIGPIPE".  What's your setup?

 Shane


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Zope 2.2.4 Dying

2001-02-15 Thread Andre Schubert

Hi,

since the last time i had some problems with my zope server.
The zope 2.2.4 running under linux dies unexpectly with the following
messages.

2001-02-16T01:50:08 ERROR(200) zdaemon zdaemon: Fri Feb 16 02:50:08
2001: Aiieee! 5451 exited with error code: 13
--
2001-02-16T02:29:38 ERROR(200) zdaemon zdaemon: Fri Feb 16 03:29:38
2001: Aiieee! 10313 exited with error code: 13

What does the error code 13 say and could anyone help me to solve the
problem

as


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Error Message

2001-01-26 Thread Andre Schubert

Hi all

The last time i get some times the following error:

2001-01-26T08:45:55 ERROR(200) ZODB Couldn't load state for
'\000\000\000\000\000\000\260\256'
Traceback (innermost last):
  File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/ZODB/Connection.py,
line 442, in setstate
AttributeError: 'None' object has no attribute 'load'

My questions are what does that mean and how can a find out from which
Object the error comes from ?
Could anyone help??

as


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] ZCatalog doesnt find Items

2001-01-19 Thread Andre Schubert

Hi all,

I have a problem with my ZCatalog object.
If i have a Folder named Test and inside i create a ZCatalog object and
some DTML-Objects/Methods the ZCatalog finds all Items.
But when i install the ZCatalog in the root folder and start find Items
a got the following error:

Traceback (innermost last):
  File
/usr/share/zope_2.2/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py,
line 222, in publish_module
  File
/usr/share/zope_2.2/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py,
line 187, in publish
  File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/Zope/__init__.py,
line 221, in zpublisher_exception_hook
(Object: Traversable)
  File
/usr/share/zope_2.2/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py,
line 175, in publish
  File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/Zope/__init__.py,
line 235, in commit
  File
/usr/share/zope_2.2/Zope-2.2.0-src/lib/python/ZODB/Transaction.py, line
290, in commit
AttributeError: (see above)

Are there some known conflicts with other Products??

I use Zope 2.2.2 and python 1.5.2 on Linux(i386)

Who can help me

as


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Meta-Types

2000-12-11 Thread Andre Schubert

Hi,

i have a question on using meta_types in my Product.
My Product contains some classes that are Folder, each Folder has
different meta_types.
One of these Folder(Folder4) can be added everywhere. These Folder
should contain only the meta_types of the Parent Folder in which he was
created.

Folder1(mt='a','b')
Folder4(mt='a','b')

Folder2(mt='a','c')
Folder4(mt='a','c')

Folder3(mt='e','f')
Folder4(mt='e','f')

Does anyone understand what i mean and can anyone help me?


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Security Permissions

2000-11-27 Thread Andre Schubert

Hi,

i have found the Security Permission below in the Zope Root that are not
definded by myself.

A
D
G
Z
a
d
h
r
s
t

Who can tell me where these Permissions come from?

as


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] 2 Zopes

2000-10-25 Thread Andre Schubert

Hi,

Can anyone tell me a way to get Zope Objects from the first
Zope-Installation to the second.
I need this because i have to program a Product to putting data into
different Zope Installations from one point of the Web.
My boss want this way because he want a central point for data input,
where the data are of different type and therefore they have to stored
in different locations( different Zope Installations) My idea is to use
ZPublisher.Client, but i don't find a way to use it.

thanks as


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] ConflictError

2000-10-04 Thread Andre Schubert

Hi,

who can tell me a story about the following error.
thanks as

2000-10-04T15:49:35 INFO(0) Z2 CONFLICT Competing writes at,
/Management/Geyer/Cluster_1/Verstaerker_1/Modem_7/chart_images
Traceback (innermost last):
  File
/usr/share/zope_2.2/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py,
line 175, in publish
  File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/Zope/__init__.py,
line 235, in commit
  File
/usr/share/zope_2.2/Zope-2.2.0-src/lib/python/ZODB/Transaction.py, line
251, in commit
  File /usr/share/zope_2.2/Zope-2.2.0-src/lib/python/ZODB/Connection.py,
line 267, in commit
ConflictError: yä



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Question about Labels

2000-09-22 Thread Andre Schubert

Hi,

I have a Product with a Label called Foo. Now what can i do, that when
anyone clicked on the tab Foo first the function bar() is called and
after that the HTML-File is displayed.

as


manage_options =({'label':'Foo', 'action':'manage_propertiesForm'},)

def bar(self):
do anything before displaying the HTMLFile

def manage_propertiesForm(self,REQUEST):
""" doc string """
self.bar()
return HTMLFile('edit_NetzwerkForm', globals())


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] using a DA

2000-09-21 Thread Andre Schubert


Hi,
i have a problem on using a DA in my Product.
I have a Postgresql DA in my root-folder. If my Product is installed
in the root-folder and i use:
self.con_obj = DA.DA('id','','pgsql','',query)
return self.con_obj()
When i install my Product in a sub-folder of the root-folder and i call
the function above the following error occurs.
The database connection pgsql cannot be found.
Who can help me, please
Thanks as


[Zope-dev] Problems with EMarket

2000-08-31 Thread Andre Schubert

Hi,

I'm discovering the EMarket Product and test it to with it in our Firm.
I'm working with Zope 2.2.0 and i have 2 problems.
First I added a MarketItemsFolder to MarketItems then a added 2
MarketItems in the MarketItemsFolder but none of the 2 MarketItems shows
on the website. The Items are enabled and have a quantity of 500. When i
check the option sell as auction nothing happens. Whats the problem ?
Second when i try to sign in the after i submit the siginform i get a
http-authentication request and no login works with it. Whats the
problem ?
I'm searching for everything in the source but i don't find anything

please help

thanks as


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] DB Connection Question

2000-08-08 Thread Andre Schubert

Hi,

I have written a Product the uses a Databaseconnection to MySQL, that
works fine. but the connection in coded into my Product, and now i want
to use a Zope DatabaseConnection added to the same folder.
How does this works, it is very important for me, because we want to
change to another database, and because this fact it is very useful for
me to use an existing DataBaseConnection Object from Zope in my Product
to connect to a DataBase.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] System error

2000-07-24 Thread Andre Schubert

Hi,

I have a problem on deleting a folder.
I have made a product, which has some bugs. After i have added it to a
Folder named test i can't open the Folder and a can't delete the Folder
test because a System Error occurs.

The following Error message occurs:

!--
Traceback (innermost last):
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 214,
in publish_module
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 179,
in publish
  File /usr/share/zope/lib/python/Zope/__init__.py, line 202, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 151,
in publish
  File
/usr/share/zope/lib/python/Products/SiteAccess/ChangeBehaviors.py, line
227, in traverse
  File /usr/lib/python1.5/site-packages/ZPublisher/BaseRequest.py, line
502, in old_validation
  File /usr/share/zope/lib/python/ZODB/Connection.py, line 396, in
setstate
SystemError: Failed to import class ImplicitAcquirerWrapper from module
Acquisition

--

Who can help to delete this Folder.

mfg as


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Uploading a ImageFile

2000-07-13 Thread Andre Schubert

Hi,

i have a question on uploading an image from my Product.
I have a Product in http://server:8080/somewhere/Product.
In my Product i call:
self._setObject(id, File(id,title,'',content_type,
precondition))
self._getOb(id).manage_upload(file)
Now the image is on http://server:8080/somewhere/Product/image right?

But i want the following:

The Product at http://server:8080/somewhere/Product at the uploaded
Image should be stored at
http://server:8080/anotherplace/images/ .

Who could help to program this in my Product.

mfg




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] SQL-Methods

2000-07-12 Thread Andre Schubert

Hi,

i ave a problem, i do some sql-queries in my python product and would
return the results like the ZSQLMethods.
How do i have to return the data and field names from my python product
to an dtml document so that i can work with it like ZMYSQL.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] SQL-Output

2000-07-06 Thread Andre Schubert

Hi,

i have a little problem on outputting data from an SQL-Query. The
Problem is, that the user should select his own Fieldnames
he want to show for output. The input form sends a request to the output
form, with  a query-string and some other stuff and a key named ausgabe.

The key ausgabe is a sequence with all Fielnames the user clicked. Now
in the outputform i have a sequence looking for the search-query. If
sequence starts it prints a table-head with all selected field-names out
of the second sequence ausgabe. The problem is: my table in the
relational database has a column named 'Name'. If i write in the
sequence at bottom dtml-var Name then the result is the the value of
Namne is printed. But if i write dtml-var sequence-item and the
current item is Name then Name is printed out and not the Value of Name
from the DB.
Could anybody help me.

as

P.S.: sorry for my bad english


dtml-in Suche size=10 start=query_start

   dtml-if sequence-start

 table width="560" border="1" bgcolor="#ff"
tr bgcolor="#ff"
  th width="30%"Name/th
  dtml-in "REQUEST.ausgabe"
   thdtml-var sequence-itemnbsp;/th
  /dtml-in

/tr

   /dtml-if sequence-start

tr
 td class="feld"a href="homepage?Firmennr=dtml-var
FirmennrSUBMIT=Query Start"dtml-var Name null=""/anbsp;/td
 dtml-in "REQUEST.ausgabe"
  td class="feld"dtml-var sequence-item null=""nbsp;/td
 /dtml-in
/tr

   dtml-if sequence-end

  /table

   /dtml-if sequence-end
p


/dtml-in



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Searching in a MySQL-Database

2000-07-05 Thread Andre Schubert

Hi,

i have a very important question. Is there a way to search in a
mysql-database with the ZCatalog.
Could i create a temporary file from a table and search it with the
ZCatalog.
If there are any Ideas please tell me.

Thanks, as


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )