Re: [Zope] Acquisition / proxying object

2008-02-27 Thread Dieter Maurer
Joerg Baach wrote at 2008-2-25 19:45 +: ... I am trying to have a folderish object that acquires from a user object (ldapuserfolder). It should have its own properties and contents, but fall back to the ones of the ldap user. I have created an object, extending Folder, and it behaves nicely

Re: [Zope] Acquisition / proxying object

2008-02-27 Thread Dieter Maurer
Joerg Baach wrote at 2008-2-25 22:03 +: ... Error Type: Unauthorized Error Value: Your user account is defined outside the context of the object being accessed. This is a different spelling for what I called in the last message object not covered by the user folder identifying the current

Re: [Zope] Acquisition / proxying object

2008-02-26 Thread Peter Sabaini
On Monday 25 February 2008 23:52:26 Joerg Baach wrote: Hi *, But somehow I have the feeling it has more to do with the 'and the container is not wrapped' part of the message. Not that I can make sense of it ;-) Mmm, after even more searching, and not understanding I found

Re: [Zope] Acquisition / proxying object

2008-02-26 Thread Joerg Baach
Hi Peter, acl = parent.unrestrictedTraverse(folder) when changing to acl = parent.restrictedTraverse(folder) I still don't get the Unauthorized exceptions. Anyhow, I will have to do a bit more wrapping, and then see if the solutions survive the security testing ;-) Cheers,

Re: [Zope] Acquisition / proxying object

2008-02-26 Thread Peter Bengtsson
This is maybe a naive suggestion but if Zope's TTW execution (e.g. Python Scripts) can't find a __roles__ on the object at hand doesn't that just mean that the class wasn't initialized with any security. class LDAPProxy(Folder): ... from Globals import InitializeClass

[Zope] Acquisition / proxying object

2008-02-25 Thread Joerg Baach
Hi *, I am trying to have a folderish object that acquires from a user object (ldapuserfolder). It should have its own properties and contents, but fall back to the ones of the ldap user. I have created an object, extending Folder, and it behaves nicely in zopectl debug. When I try to access it

Re: [Zope] Acquisition / proxying object

2008-02-25 Thread Peter Sabaini
On Monday 25 February 2008 20:45:37 Joerg Baach wrote: Hi *, I am trying to have a folderish object that acquires from a user object (ldapuserfolder). It should have its own properties and contents, but fall back to the ones of the ldap user. I have created an object, extending Folder, and

Re: [Zope] Acquisition / proxying object

2008-02-25 Thread Joerg Baach
Hi Peter, I'm not familiar with LDAPUserFolder (its not really a user object but a user container, isn't it?) but the error you're getting is a security error -- the Python Script checks for security attributes before it accesses attributes. You need to add the appropriate security

Re: [Zope] Acquisition / proxying object

2008-02-25 Thread Joerg Baach
I should have mentioned that in order for verbose-security to work you also need to switch to the python security implementation -- did you do that? Yes, I did. If yes, you should see lines like these in your event.log: No, don't :-( But somehow I have the feeling it has more to do with

Re: [Zope] Acquisition / proxying object

2008-02-25 Thread Peter Sabaini
On Monday 25 February 2008 22:45:24 Joerg Baach wrote: I should have mentioned that in order for verbose-security to work you also need to switch to the python security implementation -- did you do that? Yes, I did. If yes, you should see lines like these in your event.log: No, don't

Re: [Zope] Acquisition / proxying object

2008-02-25 Thread Peter Sabaini
On Monday 25 February 2008 21:31:46 Joerg Baach wrote: Hi Peter, I'm not familiar with LDAPUserFolder (its not really a user object but a user container, isn't it?) but the error you're getting is a security error -- the Python Script checks for security attributes before it accesses

Re: [Zope] Acquisition / proxying object

2008-02-25 Thread Peter Sabaini
ps.: http://www.zope.org/Documentation/Books/ZDG/current/Security.stx has old but AFAIK still good info On Monday 25 February 2008 22:45:24 Joerg Baach wrote: I should have mentioned that in order for verbose-security to work you also need to switch to the python security implementation --

Re: [Zope] Acquisition / proxying object

2008-02-25 Thread Joerg Baach
Hi again, 2008-02-25T22:30:18 DEBUG ImplPython Unauthorized: Your user account does not have the required permission. Access to 'manage' of (Application at ) denied. Your user account, Anonymous User, exists at /acl_users. Access requires one of the following roles: ['Manager']. Your

Re: [Zope] Acquisition / proxying object

2008-02-25 Thread Joerg Baach
Hi *, But somehow I have the feeling it has more to do with the 'and the container is not wrapped' part of the message. Not that I can make sense of it ;-) Mmm, after even more searching, and not understanding I found http://www.mail-archive.com/[EMAIL PROTECTED]/msg11438.html and changed

[Zope] acquisition failure puuzzle or maybe something else

2007-07-27 Thread Dennis Allison
Zope 2.9.X Python 2.4 Centos 4.4 Linux Firefox 2.0.0.5 (Linux and Win XP) I have a dtml method is a folder C and a folder setup / A B C scripts In the dtml method, there is a call to a script passing in a composed string made up of variables passed in through request inside of a

Re: [Zope] acquisition failure puuzzle or maybe something else

2007-07-27 Thread Jonathan
- Original Message - From: Dennis Allison [EMAIL PROTECTED] To: zope@zope.org Sent: Friday, July 27, 2007 1:18 PM Subject: [Zope] acquisition failure puuzzle or maybe something else I have a dtml method is a folder C and a folder setup / A B C scripts In the dtml method

Re: [Zope] acquisition failure puuzzle or maybe something else

2007-07-27 Thread Jonathan
- Original Message - From: Dennis Allison [EMAIL PROTECTED] To: Jonathan [EMAIL PROTECTED] Cc: zope@zope.org Sent: Friday, July 27, 2007 2:35 PM Subject: Re: [Zope] acquisition failure puuzzle or maybe something else The values are validated and are simple strings. For our testing

Re: [Zope] acquisition failure puuzzle or maybe something else

2007-07-27 Thread Dennis Allison
the catenation with a static string but still get the error. On Fri, 27 Jul 2007, Jonathan wrote: - Original Message - From: Dennis Allison [EMAIL PROTECTED] To: zope@zope.org Sent: Friday, July 27, 2007 1:18 PM Subject: [Zope] acquisition failure puuzzle or maybe something else I

Re: [Zope] acquisition

2006-12-14 Thread Peter Bengtsson
Dennis Schulz wrote: I found no example how to define it in the class generally for all instances i would like to access the supplier container under a different name inside one instance of Purchase Requisition. class PurchaseRequisition( SimpleItem, Implicit ): suppliers =

[Zope] acquisition

2006-12-13 Thread Dennis Schulz
Hi I want to acquire an persistent zope object (supplier) that is inside my productfolder myproductfolder/supplier How to get a reference to this object? Also, Is there a method to get the product root? I would like to have that all instances of my class can be traversed like

Re: [Zope] acquisition

2006-12-13 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On 13. Dezember 2006 19:12:13 +0100 Dennis Schulz [EMAIL PROTECTED] wrote: Hi I want to acquire an persistent zope object (supplier) that is inside my productfolder myproductfolder/supplier How to get a reference to this object? Also,

Re: [Zope] acquisition

2006-12-13 Thread Dennis Schulz
I found no example how to define it in the class generally for all instances i would like to access the supplier container under a different name inside one instance of Purchase Requisition. class PurchaseRequisition( SimpleItem, Implicit ): suppliers = property ( lambda self: str(

Re: [Zope] acquisition

2006-12-13 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 - --On 13. Dezember 2006 19:56:40 +0100 Dennis Schulz [EMAIL PROTECTED] wrote: I found no example how to define it in the class generally for all instances i would like to access the supplier container under a different name inside one

Re: [Zope] Acquisition question

2006-08-29 Thread Chris Withers
Ferhat Ayaz wrote: http://localhost:8080/employee_by_id/emp_id/2/viewEmployee here the result of employee_by_id (param is emp_id=2) is used by viewEmployee. But I want to use it in a page template like td tal:content= structure mployee_by_id/emp_id/2/viewEmployee /td Unfortunatly this

Re: [Zope] Acquisition question

2006-08-29 Thread Garito
Ferhat Ayaz escribió: Hi list, I'm a newby to zope. Sorry if the question is to dummy. Here my question: You can do acquisition on URL like http://localhost:8080/employee_by_id/emp_id/2/viewEmployee here the result of employee_by_id (param is emp_id=2) is used by viewEmployee. But I want to

Re: [Zope] Acquisition question

2006-08-29 Thread Ferhat Ayaz
Thanks for the answers. The example was from the Zope Book. employee_by_id - Z SQL Method emp_id - Parameter key for employee_by_id 2 - Parameter value for emp_id The result of employee_by_id(emp_id=2) is a SQL result. viewEmployee - DTML Method viewEmployee will use the result of the above

Re: [Zope] Acquisition question

2006-08-29 Thread Dieter Maurer
Ferhat Ayaz wrote at 2006-8-28 11:06 -0700: Here my question: You can do acquisition on URL like http://localhost:8080/employee_by_id/emp_id/2/viewEmployee here the result of employee_by_id (param is emp_id=2) is used by viewEmployee. But I want to use it in a page template like td

Re: [Zope] Acquisition question

2006-08-29 Thread Ferhat Ayaz
wow. Thanks. This is exactly that what I need. :) --- Dieter Maurer [EMAIL PROTECTED] wrote: Ferhat Ayaz wrote at 2006-8-28 11:06 -0700: Here my question: You can do acquisition on URL like http://localhost:8080/employee_by_id/emp_id/2/viewEmployee here the result of employee_by_id

[Zope] Acquisition question

2006-08-28 Thread Ferhat Ayaz
Hi list, I'm a newby to zope. Sorry if the question is to dummy. Here my question: You can do acquisition on URL like http://localhost:8080/employee_by_id/emp_id/2/viewEmployee here the result of employee_by_id (param is emp_id=2) is used by viewEmployee. But I want to use it in a page

Re: [Zope] Acquisition? problem

2006-08-15 Thread Hans Then
Hi Jonathan, if you have a python script in the middle of your path, eg: folder/pythonscript/somethingelse then the pythonscript routine will get executed and 'somethingelse' will be passed in a variable called 'traverse_subpath' Create a test python script and try it out (look for

[Zope] Acquisition and self arguements of methods

2006-07-22 Thread Mohsen Moeeni
Hello; As far as I see, the `self` argument, when a method is called, is not dependent on how the method was acquired. Consider I have an instance of class B which is named b and has a method named `method_b`. In either of these calls: a.b.c.method_b() a.b.method_b() `self` argument will be

[Zope] Acquisition? problem

2006-06-30 Thread Hans Then
Hi all, I am writing a small object browser for the EPOZ toolbox. In the browser I have a tree of object references. Clicking on the tree should show more details of the selected object. I have created a template details that should show the details of the object, like this:

Re: [Zope] Acquisition? problem

2006-06-30 Thread Jonathan
- Original Message - From: Hans Then [EMAIL PROTECTED] I am writing a small object browser for the EPOZ toolbox. In the browser I have a tree of object references. Clicking on the tree should show more details of the selected object. I have created a template details that should show

Re: [Zope] Acquisition? problem

2006-06-30 Thread Jonathan
- Original Message - From: Hans Then [EMAIL PROTECTED] if you have a python script in the middle of your path, eg: folder/pythonscript/somethingelse then the pythonscript routine will get executed and 'somethingelse' will be passed in a variable called 'traverse_subpath' Create a

[Zope] acquisition uml modelisation

2006-03-20 Thread thomas desvenain
hello, do you know where i may find tools for acquisition representation in uml ? thanks thomas desvenain ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] acquisition uml modelisation

2006-03-20 Thread Dieter Maurer
thomas desvenain wrote at 2006-3-20 15:43 +0100: do you know where i may find tools for acquisition representation in uml ? I fear, UML does not know about this type of relation (and therefore, tools will not support it). You will need to look for an UML extension mechanism and use it to

Re: [Zope] Acquisition not working as expected

2006-03-04 Thread Dieter Maurer
Roman Klesel wrote at 2006-3-3 10:26 +0100: ... Yes, this is what I understood (at least I think so) now. So the question is: How will the method find out what object I want it to operate on if I call it in this way context/genGraphs or objref/genGraphs It cannot. It works for a PythonScript

Re: [Zope] Acquisition not working as expected

2006-03-03 Thread Roman Klesel
Andrew Milton schrieb: Perhaps if you describe the problem you're trying to solve, we can actually help you. Yes, thank you! I just want to be able to do what I'm used to do from TTW: - There is a hirarchy of Folder/File objects - In the root directory there is an python script

Re: [Zope] Acquisition not working as expected

2006-03-03 Thread Andrew Milton
+---[ Roman Klesel ]-- | Andrew Milton schrieb: | | Perhaps if you describe the problem you're trying to solve, we can actually | help you. | | | Yes, thank you! | just as in my example above I want to be able to call this methods on any File objects from a ZPT

Re: [Zope] Acquisition not working as expected

2006-03-03 Thread Roman Klesel
Andrew Milton schrieb: | ul | li tal:repeat=elem context/objectValues | img tal:attributes=src string: ${elem/absolute_url}/genGraph plot /img | /li | ul In what way doesn't this work? I've certainly used this pattern in my FS products without problems. Hmm? Did I miss something?

Re: [Zope] Acquisition not working as expected

2006-03-03 Thread Andrew Milton
+---[ Roman Klesel ]-- | Andrew Milton schrieb: | | ul | | li tal:repeat=elem context/objectValues | | img tal:attributes=src string: ${elem/absolute_url}/genGraph plot /img | | /li | | ul | | In what way doesn't this work? I've certainly used this pattern in

Re: [Zope] Acquisition not working as expected

2006-03-03 Thread Roman Klesel
Andrew Milton schrieb: How about you forget about Acquisition for now. Well, hmmm ... this will be hard ... I was just about to fall in love with it ... Define the method in the class you want to call it on. Then I will have to subclass from OFS.Image.File and I was told that this is

Re: [Zope] Acquisition not working as expected

2006-03-03 Thread Andrew Milton
+---[ Roman Klesel ]-- | Andrew Milton schrieb: | How about you forget about Acquisition for now. | | | Well, hmmm ... this will be hard ... I was just about to fall in love with it ... It's definitely useful, but, you have to pick your moments to use it. | Define

Re: [Zope] Acquisition not working as expected

2006-03-03 Thread Dieter Maurer
Roman Klesel wrote at 2006-3-3 08:20 +0100: ... In your case, the method test3 is not defined by Folder but by what you call your product instance (still a wrong term!). Therefore, its self is necessarily an instance of your product (I keep your wrong term). And self.getId() gives

Re: [Zope] Acquisition not working as expected

2006-03-02 Thread Roman Klesel
Hello, Roman Klesel schrieb: I can call this method on whatever folder inside the product instance I want, it will always return the id of the product and not the id of the product I call it on. In order to make my problem more obvious I created a minimal product. See attachmet. It

Re: [Zope] Acquisition not working as expected

2006-03-02 Thread Dieter Maurer
Roman Klesel wrote at 2006-3-2 08:13 +0100: ... I can call this method on whatever folder inside the product instance (instance of the base class ZLTMS) I want, it will always return the id of the instace of the base class (where the method is defined) and not the id of the object (Folder

Re: [Zope] Acquisition not working as expected

2006-03-02 Thread Andrew Milton
+---[ Roman Klesel ]-- | Hello, | | Roman Klesel schrieb: | I can call this method on whatever folder inside the product instance I want, it will always return the id of the | product and not the id of the product I call it on. | | In order to make my problem more

[Zope] Acquisition not working as expected

2006-03-01 Thread Roman Klesel
Hello, sorry to come up with this again. I startet 2 pretty confused threads on the same problem allready: [Zope] Error Value: 'File' object has no attribute 'manage_fixupOwnershipAfterAdd' Re: [Zope] context in fs product Unfortunatly I'm still not getting it right. I

Re: [Zope] Acquisition not working as expected

2006-03-01 Thread Andrew Milton
+---[ Roman Klesel ]-- | Hello, | class ZLTMS(Lasttest,Implicit, Persistent, PropertyManager, ObjectManager, SimpleItem): | ZLMTS object | | ... has an import method | | def newLasttest(self, REQUEST=None): |new |

Re: [Zope] Acquisition not working as expected

2006-03-01 Thread Roman Klesel
Hello Andrew, Andrew Milton schrieb: Are you sure your genId() method works? Well, yes, it does what it's ment to do. It generates an id, a string. Here it is: def genId(self,context): asdf items = [ int(e[2:]) for e in context.objectIds('Folder') ]

Re: [Zope] Acquisition not working as expected

2006-03-01 Thread Roman Klesel
Andrew Milton schrieb: Did you paste this code, because it has errors... Ahh sorry, I missed the last charakter, a ). Here it is again: def genId(self,context): asdf items = [ int(e[2:]) for e in context.objectIds('Folder') ] if items ==

Re: [Zope] Acquisition not working as expected

2006-03-01 Thread Dieter Maurer
Roman Klesel wrote at 2006-3-1 13:24 +0100: ... I can call this method on whatever folder inside the product instance I want, it will always return the id of the product and not the id of the product I call it on. I fear you will need to more clearly describe what you mean with the product (on

Re: [Zope] Acquisition not working as expected

2006-03-01 Thread Roman Klesel
Dieter Maurer schrieb: I can call this method on whatever folder inside the product instance I want, it will always return the id of the product and not the id of the product I call it on. I fear you will need to more clearly describe what you mean with the product (on one hand) and the

[Zope] acquisition probleme

2005-09-16 Thread chetzacoalt
hello I'm trying an aquisition, but I must be doing something wrong.. I'd got a setting like this : /dir1/dir2 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] Acquisition Algebra; interaction of containment and acquisition is confusing

2001-01-26 Thread Evan Simpson
From: Fred Yankowski [EMAIL PROTECTED] for the very last case, "a.b.c.x". I just can't follow why the equivalent expression isn't x.__of__(a).__of__(c.__of__(b.__of__(a))) rather than the more complex answer given: x.__of__(a).__of__(b.__of__(a)).__of__(c.__of__(b.__of__(a))) You can

Re: [Zope] Acquisition Algebra; interaction of containment and acquisition is confusing

2001-01-26 Thread Fred Yankowski
Thank you for describing the transformation rules in detail. With those I can mechanically create the same acquisition expression that you get. Working some further examples with this knowledge [and how can I use this knowledge to make mo' money?], I find that given a containment tree like

Re: [Zope] Acquisition Algebra; interaction of containment and acquisition is confusing

2001-01-26 Thread Evan Simpson
From: Fred Yankowski [EMAIL PROTECTED] Now, does that bother anyone besides me? Since acquisition is intrinsic and ubiquitous in Zope, shouldn't we be concerned that it is hard to control or predict? Keep in mind that it is only the *order after containment* that has this problem. For

[Zope] Acquisition Algebra; interaction of containment and acquisition is confusing

2001-01-25 Thread Fred Yankowski
Can anyone help me understand what's going on in the last example of the main "Acquisition" document, http://www.digicool.com/releases/ExtensionClass/Acquisition.html? I think I understand how the various "complex expressions" relate to the equivalent expression in terms of the '__of__' operator,

[Zope] Acquisition loops and web robots

2001-01-11 Thread Andrews, Martin
I have run into several cases where authors at our site have accidentally employed acquisition to link documents in such a way that an infinite tree of URLS are possible - for example: /a/foo contains a link to "b/bar" /b/bar contains a link to "a/foo" This really causes a problem with our web

Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-09 Thread Oleg Broytmann
Hello! Many thanks to all who replied! Sorry for late answer - twas XMas holidays in Russia (Russian Orthodox church celebrates XMas Jan 7). On Fri, 5 Jan 2001, Rik Hoekstra wrote: If I call http://machine:port/top/middle/AFolder/ADocument (in terms of this HOWTO), and ADocument calls

Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-06 Thread Tim Cook
Oleg Broytmann wrote: There are many Documents on my site, not only index_html. Should I make them all Methods? Why after this I need Documents at all? The ONLY time I use a Document is, as a container for properties. For example a patient is seen by a doctor. The date/time, vital signs

[Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Oleg Broytmann
Hello! Can anyone here explain clearly what is the difference between DTML Methods and DTML Documents regarding acquisition? Well, in simple cases I think I understand it. When I call a Method through the web, it use dynamic (based on current URL) acquisition path. A Document uses static

Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Stephane Bortzmeyer
On Friday 5 January 2001, at 12 h 26, the keyboard of Oleg Broytmann [EMAIL PROTECTED] wrote: Can anyone here explain clearly what is the difference between DTML Methods and DTML Documents regarding acquisition? Not me but this HOWTO:

Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Oleg Broytmann
On Fri, 5 Jan 2001, Stephane Bortzmeyer wrote: http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo saved my life. Thanks. I'be read it yesterday. It does not help much because it does not answer my question: If I call http://machine:port/top/middle/AFolder/ADocument (in

Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Oleg Broytmann
On Fri, 5 Jan 2001, Stephane Bortzmeyer wrote: http://phd.russ.ru/pcgi/TEST/2/index_html WOW! It show foobar again from root, not from /TEST/2! standard_html_header acquires using static path provided by index_html! You started acquisition from index_html. Since it has no foobar, it

Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Stephane Bortzmeyer
On Friday 5 January 2001, at 12 h 26, the keyboard of Oleg Broytmann [EMAIL PROTECTED] wrote: When I call standard_html_header directly through the web, it acquires foobar using dynamic acquisition path: Actually, if I understand it myself :-) it acquires foobar because a method has no

Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Stephane Bortzmeyer
On Friday 5 January 2001, at 17 h 58, the keyboard of Oleg Broytmann [EMAIL PROTECTED] wrote: There are many Documents on my site, not only index_html. Should I make them all Methods? Why after this I need Documents at all? Because not all documents are acquired (from an above folder).

Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Dario Lopez-Kästen
Hello! I think hade a similar problem. It seems that you can only use methods for acquisition, not documents. I had an index_html DOC where I specified the structure of my site. In index_html I used dtml-var some_doc that and in some_doc I once dtml-var other_doc. The idea was that in my

Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Rik Hoekstra
On Fri, 5 Jan 2001, Stephane Bortzmeyer wrote: http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo saved my life. Thanks. I'be read it yesterday. It does not help much because it does not answer my question: If I call http://machine:port/top/middle/AFolder/ADocument

Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Dieter Maurer
Oleg Broytmann writes: Can anyone here explain clearly what is the difference between DTML Methods and DTML Documents regarding acquisition? I think, I gave a good answer to a similar question in zope-dev recently -- searchable list archive. Dieter

[Zope] acquisition/acl_users/permissions: is something broken? 2e post on this pb.

2000-11-27 Thread Gilles Lavaux
Hello, That's the second time I have this problem, I report it again because the answer I got the last time was not 'sure' (see bottom of mail) and I would like to have an 'definitive' explanation from some Zope guru. I hope my explanation will be clear: I have 3 folders for a project called

Re: [Zope] acquisition/acl_users/permissions: is something broken? 2e post on this pb.

2000-11-27 Thread Dieter Maurer
Gilles Lavaux writes: My problem: I am logged in as 'operator'. Sometime, accessing '/sms/shtml/stations/check' show me: -Logged in as: Anonymous User and has role(s):Anonymous instead of: -Logged in as: operator and has role(s): sms_admin why (this with IE and

[Zope] Acquisition beahviour ... static/shared vs local instance

2000-11-08 Thread Matt
This is more a philosophical question about what is the better way to organize a Zope utility. The feeling of acquisition is a nice one, and is a joy to program with, but there seems to be one scenario that troubles me a little. Am I correct in assuming that objects and their properties(if they

[Zope] Acquisition, Not! How?

2000-08-24 Thread Júlio Dinis Silva
I know this sound strange but is there a way to, during execution of a dtml method, when a with tag is used one force acquisition not to be used? example: /root/a/b/c /root/c say dtml-with "root.a.c" was a mistake so I dont want the root.c namespace to be imported due to acquisition and

Re: [Zope] Acquisition, Not! How?

2000-08-24 Thread Jeff Hoffman
On Thu, 24 Aug 2000, Júlio Dinis Silva wrote: I know this sound strange but is there a way to, during execution of a dtml method, when a with tag is used one force acquisition not to be used? example: /root/a/b/c /root/c say dtml-with "root.a.c" was a mistake so I dont want the

Re: [Zope] Acquisition, Not! How?

2000-08-24 Thread Júlio Dinis Silva
I know this sound strange but is there a way to, during execution of a dtml method, when a with tag is used one force acquisition not to be used? example: /root/a/b/c /root/c say dtml-with "root.a.c" was a mistake so I dont want the root.c namespace to be imported due to

Re: [Zope] Acquisition, Not! How?

2000-08-24 Thread Dieter Maurer
=?ISO-8859-1?Q?J=FAlio?= Dinis Silva writes: I know this sound strange but is there a way to, during execution of a dtml method, when a with tag is used one force acquisition not to be used? It is possible -- with an external method. But probably, you should not do it. It may have strange

Re: [Zope] acquisition vs. inheritance

2000-08-04 Thread Chris Withers
Jonothan Farr wrote: Is it possible to have just one top level object that refers to other objects that get overridden as you go into other folders? Acquisition works the other way around. You can create objects in subfolders whose contents are overriden higher up. You can't have an

Re: [Zope] acquisition vs. inheritance

2000-08-04 Thread Jonothan Farr
TECTED] Cc: Bob Horvath [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, August 04, 2000 1:54 AM Subject: Re: [Zope] acquisition vs. inheritance Jonothan Farr wrote: Is it possible to have just one top level object that refers to other objects that get overridden as you go into oth

[Zope] acquisition vs. inheritance

2000-08-03 Thread Bob Horvath
I am slowly getting the hang of Zope, but am confused about something. Either I don't understand how acquisition works, or there is something special about how index_html is treated. I had a folder with a index_html that had something like: dtml-var standard_html_header dtml-var content

Re: [Zope] acquisition vs. inheritance

2000-08-03 Thread Chris Withers
Bob Horvath wrote: I would have thought it would have gone up a layer for index_html, but then would have discovered content at the lower layer. Sounds like your index_html is a DTML Document when it should be a DTML method... cheers, Chris ___

Re: [Zope] acquisition vs. inheritance

2000-08-03 Thread Jonothan Farr
Is it possible to have just one top level object that refers to other objects that get overridden as you go into other folders? Acquisition works the other way around. You can create objects in subfolders whose contents are overriden higher up. You can't have an object at the top whose

Re: [Zope] Acquisition problems?

2000-07-13 Thread Stephen Harrison
Curtis Maloney wrote: [snip] Well, here's the details: / standard_html_header register /internal/ standard_html_header register works fine if invoked as /register however, it spits the dummy if invoked as /internal/register Complaining loudly about TypeError: too many

Re: [Zope] Acquisition problems?

2000-07-13 Thread Curtis Maloney
On Thu, 13 Jul 2000, Stephen Harrison wrote: Curtis Maloney wrote: [snip] Well, here's the details: / standard_html_header register /internal/ standard_html_header register works fine if invoked as /register however, it spits the dummy if invoked as