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
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
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
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,
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
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
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
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
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
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
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
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 --
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
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 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
- 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
- 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
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
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 =
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
-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,
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(
-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
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
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
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
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
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
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
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
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
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:
- 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
- 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
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 -
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
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
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
+---[ 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
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?
+---[ 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
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
+---[ 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
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
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
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
+---[ 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
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
+---[ Roman Klesel ]--
| Hello,
| class ZLTMS(Lasttest,Implicit, Persistent, PropertyManager, ObjectManager,
SimpleItem):
| ZLMTS object
|
| ... has an import method
|
| def newLasttest(self, REQUEST=None):
|new
|
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') ]
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 ==
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
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
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 -
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
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
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
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,
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
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
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
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
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:
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
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
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
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).
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
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
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
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
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
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
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
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
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
=?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
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
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
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
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
___
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
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
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
84 matches
Mail list logo