[Zope-dev] Bug in Traversable.py

2007-03-23 Thread Roché Compaan
Looks like there is a bug in Zope 2.10.2 with OFS/Traversable.py on line 228: if not ok: if (container is not None or guarded_getattr(obj, name, _marker) is not

[Zope-dev] Zope Tests: 5 OK

2007-03-23 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list. Period Thu Mar 22 12:00:00 2007 UTC to Fri Mar 23 12:00:00 2007 UTC. There were 5 messages: 5 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.7 Python-2.3.6 : Linux From: Zope Unit Tests Date: Thu Mar 22 21:52:36 EDT 2007

[Zope] Help me some error when I complie Zope!

2007-03-23 Thread Duc Toan
I'm using WindowsXP, Python 2.4.3, Visual Studio 2005. When I complie Zope 2.9.6 from source, it alway alert: running build_ext creating zope.proxy copying zope/proxy\proxy.h - zope.proxy error: The .NET Framework SDK needs to be installed before building extensions for Python. NMAKE : fatal

Re: [Zope] How can I reset zope time???

2007-03-23 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23 Mar 2007, at 07:41, Flemming Bjerke wrote: But, now, not only have all my changes the date 12/12-2007 in the undo history, every object I have changed gets this date as well! Apparently, zope won't accept to go backward in time. How do I

Re: [Zope] How can I reset zope time???

2007-03-23 Thread robert rottermann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jens Vagelpohl schrieb: On 23 Mar 2007, at 07:41, Flemming Bjerke wrote: But, now, not only have all my changes the date 12/12-2007 in the undo history, every object I have changed gets this date as well! Apparently, zope won't accept to go

Re: [Zope] How can I reset zope time???

2007-03-23 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23 Mar 2007, at 09:01, robert rottermann wrote: I am not absolutely sure I understand you. I succeeded in undoing. My problem is that zope keeps on with the date 12/12-07. The zodb does not seem to accept a timestamp that is earlier than the

[Zope] Re: Help me some error when I complie Zope!

2007-03-23 Thread Michael Haubenwallner
Duc Toan schrieb: I'm using WindowsXP, Python 2.4.3, Visual Studio 2005. When I complie Zope 2.9.6 from source, it alway alert: running build_ext creating zope.proxy copying zope/proxy\proxy.h - zope.proxy error: The .NET Framework SDK needs to be installed before building extensions for

Re: [Zope] How can I reset zope time???

2007-03-23 Thread flem
On Fri, 23 Mar 2007 09:03:55 +0100 Jens Vagelpohl [EMAIL PROTECTED] wrote: No. Import will also generate new database modification times. It will only make things worse. This issue appears when product authors naively use the database modification time instead of defining their own

[Zope] Re: open image in a fitted new window

2007-03-23 Thread Alan
Thanks Tres and Tino. BTW Tino, what do you mean with ...or uses layers the big view on top with little DOM action (preferred)... something like passing the mouse point over the picture and have the full-size version of the image? Cheers, Alan On 22/03/07, [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [Zope] How can I reset zope time???

2007-03-23 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23 Mar 2007, at 12:20, flem wrote: I am a bit confused. My zopeserver runs fine, and all undos have been erased. What I want is to be able to create an object in the zmi which has the correct creation date (e.g. 23rd March 12.20 pm) in the

Re: [Zope] Re: mass editing timeout problem

2007-03-23 Thread Chris Withers
Laurence Rowe wrote: Use Firefox, it won't time out. That depends on the version... I written my code so it informs me on dos command prompt about what picture it is processing and how long it took until starts the next one. The process started fast, but it gradually slows down and I'd

Re: [Zope] context.user at ImplPython.py

2007-03-23 Thread Garito
Hi, Martijn! I think I understand what you say but I have a problem: I don't use any view or object to the render time. Is a method (__call__). Then I can't return the view object at traversal time. How can I then avoid this problem? And If this is correct, why don't work the same with the

Re: [Zope] context.user at ImplPython.py

2007-03-23 Thread Martijn Pieters
On 3/23/07, Garito [EMAIL PROTECTED] wrote: I don't use any view or object to the render time. Is a method (__call__). Then I can't return the view object at traversal time. How can I then avoid this problem? At traversal time you indeed cannot rely on the right security context. And If this

[Zope] Corrupted ZPT Locks Me Out Of Folder

2007-03-23 Thread Mark, Jonathan (Integic)
Somehow a ZPT got corrupted inside one of my Zope 2.62/RedHat 7.3 folders. Now when I try to use the ZMI to open the folder containing the ZPT I get: Site Error An error was encountered while publishing this resource. ImportError Sorry, a site error occurred. Traceback (innermost last):

[Zope] Apache-Rewrite - Firewall - Problem

2007-03-23 Thread Andreas Tille
Hi, I'm using an often recommended Apache-Zope rewrite setup to mask the internal folder structure in Zope. The cruxial line in my apache (Debian Etch packaged version 2.2.3) is RewriteRule ^(.*) http://a.b.c.d:9673/VirtualHostBase/http/a.b.c.d:80/myfolder/VirtualHostRoot$1 [P,L] where

Re: [Zope] How can I reset zope time???

2007-03-23 Thread flem
On Fri, 23 Mar 2007 14:04:51 +0100 Jens Vagelpohl [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23 Mar 2007, at 12:20, flem wrote: I am a bit confused. My zopeserver runs fine, and all undos have been erased. What I want is to be able to create an object

Re: [Zope] How can I reset zope time???

2007-03-23 Thread Andreas Jung
--On 23. März 2007 16:09:15 +0100 flem [EMAIL PROTECTED] wrote: I think this kind af date-deadlock is a vulnerability of the zope architecture. Is it the same thing with zope3? Isn't it an unnecessary vulnerability that an open zwiki comments field - or any other object making act open to

Re: [Zope] Corrupted ZPT Locks Me Out Of Folder

2007-03-23 Thread Martijn Pieters
On 3/23/07, Mark, Jonathan (Integic) [EMAIL PROTECTED] wrote: Module TAL.XMLParser, line 48, in __init__ Module TAL.XMLParser, line 72, in createParser Nothing got corrupted, your python lost it's expat XML parser: def createParser(self, encoding=None): global XMLParseError

Re: [Zope] context.user at ImplPython.py

2007-03-23 Thread Martijn Pieters
Please keep the mailing list in the loop, others may have insights too. On 23. mar. 2007, at 15.37, Garito wrote: If you read the link I put, you could read I can create (with CrearFuncionalidad) but not delete it (with BorrarFuncionalidad) that seems to have the same security necessities

Re: [Zope] context.user at ImplPython.py

2007-03-23 Thread Garito
I don't know if I understand what you say This is the code of one of my wrappers (str one): class WrapperStr(str): __roles__ = None def __bobo_traverse__(self, REQUEST, nombre): obj = getattr(self, nombre, None) if obj is None: return self else: return obj How

Re: [Zope] context.user at ImplPython.py

2007-03-23 Thread Martijn Pieters
On 3/23/07, Garito [EMAIL PROTECTED] wrote: I don't know if I understand what you say This is the code of one of my wrappers (str one): class WrapperStr(str): __roles__ = None def __bobo_traverse__(self, REQUEST, nombre): obj = getattr(self, nombre, None) if obj

Re: [Zope] context.user at ImplPython.py

2007-03-23 Thread Garito
Wow! Now I' more confused than before I create WrapperStr class because the __bobo_traverse__ of my product has problems to return a str But when I try to use it it has an error (I don't remember what, sorry) that dissapears when I create the wrapper's __bobo_traverse__. I copy the behavior

Re: [Zope] context.user at ImplPython.py

2007-03-23 Thread Martijn Pieters
On 3/23/07, Garito [EMAIL PROTECTED] wrote: But when I try to use it it has an error (I don't remember what, sorry) that dissapears when I create the wrapper's __bobo_traverse__. I copy the behavior from my product's __bobo_traverse__ (I don't know so much what I'm doing I confess) Then my

Re: [Zope] context.user at ImplPython.py

2007-03-23 Thread Garito
Thanks Martijn! I think if I'm not familiar with zope book I can't program what I'm programming But, no problem I try and try to find a solution to my problem Thanks for your clues 2007/3/23, Martijn Pieters [EMAIL PROTECTED]: On 3/23/07, Garito [EMAIL PROTECTED] wrote: But when I try

[Zope] V iewlet in rotterdam?

2007-03-23 Thread Derek Richardson
Zope 3.3 I want to add a viewlet to the rotterdam skin. I don't want to create my own skin. is there an accepted way of doing this? I'm surprised that the left sidebar in rotterdam doesn't appear to have a viewlet manager. I have been unable to find any declarations in zcml (grepped for

Re: [Zope] context.user at ImplPython.py

2007-03-23 Thread Garito
Do you refer something like this?: class WrapperUnicode(unicode): __roles__ = None def __init__(self, cadena): self.cadena = cadena def __bobo_traverse__(self, REQUEST, nombre): obj = getattr(self, nombre, None) if obj is None: return self else: return

Re: [Zope] V iewlet in rotterdam?

2007-03-23 Thread Martin Aspeli
Derek Richardson-2 wrote: Zope 3.3 I want to add a viewlet to the rotterdam skin. I don't want to create my own skin. is there an accepted way of doing this? I'm surprised that the left sidebar in rotterdam doesn't appear to have a viewlet manager. I have been unable to find any

Re: [Zope] Attribute error

2007-03-23 Thread Maciej Wisniowski
Hi, I'm pretty new to Zope; I inherited the system when I started my new job. We use it to manage a college web site. I noticed yesterday that several pages in our Student Services section will no longer load. Every time I try, I get this: Error Type: AttributeError Error Value:

Re: [Zope] Attribute error

2007-03-23 Thread Paul Winkler
On Fri, Mar 23, 2007 at 02:56:31PM -0500, Catherine E. Reinehr wrote: Hi, I'm pretty new to Zope; I inherited the system when I started my new job. We use it to manage a college web site. I noticed yesterday that several pages in our Student Services section will no longer load. Every time

RE: [Zope] Attribute error

2007-03-23 Thread Catherine E. Reinehr
I knew as soon as I asked for help, I would figure it out. Turns out when I added a folder in that section, I forgot to add the attributes visible and order. All better now. Thank you anyway! Catherine - Webmaster Publications Designer Huntingdon College 1500 E. Fairview Ave. Montgomery,

Re: [Zope] Problem with __before_publishing_traverse__

2007-03-23 Thread Dieter Maurer
Peter Bengtsson wrote at 2007-3-23 13:29 +: I have a product that looks like this:: class MyApp(Something): meta_type = 'x' def foobar(self): doc str return xxx def __before_publishing_traverse__(self, object, request=None): print HOUSTON ... When I view