Confusion about an unreachable object
I have the following structure (in part) in my Zope server: /dcII /worker /edit /index_html /worker /add /index_html /sql /get_worker_names In /dcII/worker/edit/index_html I have this page template snippet: <span tal:repeat="item here/sql/get_worker_names"> <option tal:content="python: '%s %s' % (item['first_name'],item['last_name'])" tal:attributes="value python:item['id']">name</option> </span> /dcII/sql had previously been named /dcII/utils. At that time, the here/utils/get_worker_names reference worked. After renaming the folder and changing the folder reference from "utils" to "sql" I get a KeyError for here/sql/get_worker_names. If I change the reference to here/dcII/sql/get_worker_names, it works. If I copy /dcII/worker/edit/index_html to /dcII/worker/add/copy_of_index_html, it also works. As far as I've been able to tell, worker/add and worker/edit have the same security permissions. In fact, everything View-wise looks like the defaults. I'm logged in as the owner/manager. I've stopped and restarted both Zope and Internet Explorer. I'm stumped. Any suggestions? Thx, -- Skip Montanaro - skip@pobox.com http://www.mojam.com/ http://www.musi-cal.com/
On Wed, Nov 13, 2002 at 07:20:05PM -0600, Skip Montanaro wrote:
/dcII/sql had previously been named /dcII/utils. At that time, the here/utils/get_worker_names reference worked. After renaming the folder and changing the folder reference from "utils" to "sql" I get a KeyError for here/sql/get_worker_names.
There must be something else named sql that gets acquired first. -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!"
>> /dcII/sql had previously been named /dcII/utils. At that time, the >> here/utils/get_worker_names reference worked. After renaming the >> folder and changing the folder reference from "utils" to "sql" I get >> a KeyError for here/sql/get_worker_names. Paul> There must be something else named sql that gets acquired first. Ah, right you are. Thanks. I knew it had to be something simple. There was an object named "sql" in the /dcII/worker/edit folder. Is there a way to get Zope to tell me what object it found via acquisition? -- Skip Montanaro - skip@pobox.com http://www.mojam.com/ http://www.musi-cal.com/
participants (2)
-
Paul Winkler -
Skip Montanaro