Re: [Zope-dev] Re: [Zope3-dev] Need help with http://dev.zope.org/Subversion

2004-04-25 Thread Andreas Kostyrka
On Sun, Apr 25, 2004 at 12:48:30PM -0400, Fred Drake wrote: On Sunday 25 April 2004 12:29 pm, Jim Fulton wrote: cvs co svn+ssh://svn.zope.org/repos/Zope3/trunk Zope3 That should be: svn co svn+ssh://svn.zope.org/repos/Zope3/trunk Zope3 cvs co

Re: [Zope-dev] Product directory?

2004-03-09 Thread Andreas Kostyrka
On Tue, Mar 09, 2004 at 01:58:17PM -0500, Ian Beatty wrote: Greetings again. This has to be an easy one. From within my Python-based product's code, how do I get access to the product's directory on the filesystem? os.getcwd() seems to provide the working directory of the shell used to

Re: [Zope-dev] __before_publishing_traverse__problem

2003-11-21 Thread Andreas Kostyrka
On Fri, Nov 21, 2003 at 11:41:53AM -0500, Casey Duncan wrote: On Fri, 21 Nov 2003 17:33:43 +0100 lukasz [EMAIL PROTECTED] wrote: I have a problem.When I import my plone site from one server to other I got : AttributeError: __before_publishing_traverse__ What should I do with

Re: [Zope-dev] Zope - Document Management Integration

2003-01-07 Thread Andreas Kostyrka
Am Mittwoch, 8. Januar 2003 02:51 schrieb Sameer Maggon: Hi all, We have our own proprietary Document Management Product. Lot of our clients have their valuable data (images, web-pages, other documents) in our repository (powered by our DM product). Now is there a way we can incorporate CMS

Re: [Zope-dev] allowable object ids

2002-11-23 Thread Andreas Kostyrka
Am Sam, 2002-11-23 um 18.30 schrieb Jamie Heilman: Turns out you can create objects with an id of . or .. although you Well, you can access these properties/objects from DTML/Python. Not from ZPublisher (the URL-Object Request Broker). can't access them. (which is to say I couldn't figure out

Re: [Zope-dev] __before_publishing_traverse__calls RESPONSE.redirect(): is there another way to change the browser URL?

2002-09-27 Thread Andreas Kostyrka
are passed via the url or stdin, ...) Andreas -- Andreas Kostyrka [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http

RE: [Zope-dev] [ZOPE 2.6 B1] Unicode/locale problems withOFS/dtml/properties.dtml

2002-09-26 Thread Andreas Kostyrka
with Umlaute, ... I've used wget and less result to verify that the umlaute display correctly. Andreas -- Andreas Kostyrka [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts

Re: [Zope-dev] how to change to another authenticated userprogrammatically?

2002-09-25 Thread Andreas Kostyrka
. Andreas -- Andreas Kostyrka [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

Re: [Zope-dev] __getattr__ and Acquisition

2002-09-25 Thread Andreas Kostyrka
Am Mit, 2002-09-25 um 10.06 schrieb Lennart Regebro: From: Andreas Kostyrka [EMAIL PROTECTED] And how do I return an attribute that is acquired (but not down th main acquisition path, but on a side line?) You shouldn't, really. Why not? I assume that I could probably play some silly

Re: [Zope-dev] __getattr__ and Acquisition

2002-09-25 Thread Andreas Kostyrka
Am Mit, 2002-09-25 um 12.44 schrieb Lennart Regebro: From: Andreas Kostyrka [EMAIL PROTECTED] To: Lennart Regebro [EMAIL PROTECTED] You shouldn't, really. Why not? Because that's not how it's supposed to work. You can override __getattr__ to have special magick attributes

Re: [Zope-dev] __getattr__ and Acquisition

2002-09-23 Thread Andreas Kostyrka
Am Mon, 2002-09-23 um 00.18 schrieb Lennart Regebro: From: Andreas Kostyrka [EMAIL PROTECTED] I've just discovered, that Acquisition does not work with __getattr__, right? That depends on what you mean with does not work. :-) (I assume that this is so because something like getattr

Re: [Zope-dev] __getattr__ and Acquisition

2002-09-23 Thread Andreas Kostyrka
Am Mon, 2002-09-23 um 10.35 schrieb Lennart Regebro: From: Andreas Kostyrka [EMAIL PROTECTED] Nope it is not. In a normal method you can access something acquired like this: self.acquired_value. I often do just that. :-) I'm not 100% sure what you need to include for that to work

Re: [Zope-dev] __getattr__ and Acquisition

2002-09-23 Thread Andreas Kostyrka
Am Mon, 2002-09-23 um 13.10 schrieb Chris Withers: Andreas Kostyrka wrote: The problem is, that __getattr__ does not have access to the acquisition chain. I think it does, but I may be corrected. Well, it's definitly not wrapped. I know because I had to work around that. And it's

Re: [Zope-dev] __getattr__ and Acquisition

2002-09-23 Thread Andreas Kostyrka
Am Mon, 2002-09-23 um 11.12 schrieb Florent Guillaume: Anoter way to do that is to play games with __of__. Look at the implementation of the skins tool in CMF for an example. Doesn't help, as I do NOT know my container :( Basically __getattr__ when called does not know it's containment

Re: [Zope-dev] __getattr__ and Acquisition

2002-09-23 Thread Andreas Kostyrka
Am Mon, 2002-09-23 um 18.29 schrieb Florent Guillaume: Andreas Kostyrka [EMAIL PROTECTED] wrote: Am Mon, 2002-09-23 um 11.12 schrieb Florent Guillaume: Anoter way to do that is to play games with __of__. Look at the implementation of the skins tool in CMF for an example. Doesn't help

[Zope-dev] small patch to cDocumentTemplate.c to ease debugging

2002-09-23 Thread Andreas Kostyrka
Hi! As pDocumentTemplate.py is out-of-order at the moment, here is a small patch to make cDocumentTemplate show more attributes (to help debugging). Andreas Index: lib/python/DocumentTemplate/cDocumentTemplate.c === RCS file:

[Zope-dev] __getattr__ and Acquisition

2002-09-22 Thread Andreas Kostyrka
Hi! I've just discovered, that Acquisition does not work with __getattr__, right? (I assume that this is so because something like getattr(mybase,attr) is called during the acquisition process to prevent infinite recursion.) Anyway to get around that? (To basically get a wrapped self from

[Zope-dev] Namespaces, ZPublisher, DocumentTemplate question

2002-09-21 Thread Andreas Kostyrka
Hi! I've got a product that inherits from Folder, and creates some magic content by overriding __bobo_traverse__. Now I've got the problem that I cannot access the magic items from within a DocumentTemplate like in dtml-var special. The interesting thing is, that I've overloaded __getattr__