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
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, but I would expect that it is Aqcuisition.Implicit.
The
Andreas Kostyrka [EMAIL PROTECTED] wrote:
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
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.
Some things to check for:
1. Do the classes of you object (and containing objects) inherit for
Acquisition.Implicit?
2. Are you getting hold of
From: Andreas Jung [EMAIL PROTECTED]
I assume, it should...smeels like a but - file a collector issue please
to remind me.
Done! I brutally assigned it to you directly. Hope that's OK. :-)
Best Regards
Lennart Regebro, Torped
http://www.easypublisher.com/
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, but
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
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
From: Andreas Kostyrka [EMAIL PROTECTED]
Well, where do you intenden your getattr to get the attribute from?
As I said, this is an example. This getattr part is supposed to be replaced
with whatever you do to get the attribute. Otehrwise it would be rather
useless, since it wouldn't do anything
At 16:29 2002-09-23 +, Florent Guillaume said:
You didn't look a the code I pointed to you. Look at CMFCore/Skinnable
to be precise (not everything is to be used of course).
* In __of__ you store the parent in a volatile attribute,
* in __getattr__ you lookup the volatile attribute
This
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,
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:
I would like to make a Monkey Patch to the Zeo Server. This will alter the
way that Undos are handled in FileStorage.
The monkey patch I have doesn't work because the Products are not
initialized in the server. Any ideas?
-Brian
___
Zope-Dev
On Monday, September 23, 2002, at 09:14 AM, Andreas Kostyrka 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, as I do NOT know my container :(
Hello:
I have defined a __before_publishing__traverse__() method in my Zope product.
Its job is to redirect the URL displayed in the browser to a nice looking
URL, something like
../myapp/invoices/123
instead of
../myapp/execute
That way all my ZPT forms can call the same method: execute(),
- Original Message -
From: Craeg K Strong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 23, 2002 10:59 PM
Subject: [Zope-dev] __before_publishing_traverse__ calls
RESPONSE.redirect(): is there another way to change the browser URL?
Hello:
I have defined a
16 matches
Mail list logo