[Zope] Disappearing 'names' in tree view
chrisf
chrisf@fagmed.uit.no
Wed, 06 Mar 2002 13:45:27 +0100
--------------31C6FA30FBB2367D19A259AC
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
The following is python code for a generic folderish object.
This is my first attempt so there are bound to be errors.
This code works.
The only thing is that in the id does not show up in the menu.
What is wrong ?
[Image]
import blah blah
manage_addSeqForm=DTMLFile('dtml/addSeqForm',globals())
def manage_addSeq(self,id,title,REQUEST=None):
"""docstring"""
id=str(id)
title=str(title)
c=Seq(id, title)
self._setObject(id, c)
if REQUEST is not None:
return self.manage_main(self,
REQUEST,update_menu=1)
class Seq(Acquisition.Implicit,
Override.ObjectManager,
Persistent,
PropertyManager.PropertyManager,
AccessControl.Role.RoleManager,
SimpleItem.Item,):
"""docstring"""
meta_type='Seq'
manage_options=(
(
)
+Override.ObjectManager.manage_options
+PropertyManager.PropertyManager.manage_options
+AccessControl.Role.RoleManager.manage_options
+SimpleItem.Item.manage_options
)
def __init__(self,id,title):
"""docstring"""
self.id = id
self.title = title
Weird Huh ?
Chris
--------------31C6FA30FBB2367D19A259AC
Content-Type: multipart/related;
boundary="------------1A424A58A7415A98C4CE7978"
--------------1A424A58A7415A98C4CE7978
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
The following is python code for a generic folderish object.
<br>This is my first attempt so there are bound to be errors.
<br>This code works.
<br>The only thing is that in the id does not show up in the menu.
<br>What is wrong ?
<br>
<br>
<br>
<p><img SRC="cid:part1.3C860F67.1C2F40A0@fagmed.uit.no" height=254 width=716>
<br>
<p>import blah blah
<p>manage_addSeqForm=DTMLFile('dtml/addSeqForm',globals())
<p>def manage_addSeq(self,id,title,REQUEST=None):
<br>
<br> """docstring"""
<br>
id=str(id)
<br>
title=str(title)
<br>
c=Seq(id, title)
<br>
self._setObject(id, c)
<br>
if REQUEST is not None:
<br>
return self.manage_main(self, REQUEST,update_menu=1)
<p>class Seq(Acquisition.Implicit,
<br>
Override.ObjectManager,
<br>
Persistent,
<br>
PropertyManager.PropertyManager,
<br>
AccessControl.Role.RoleManager,
<br>
SimpleItem.Item,):
<br>
<br> """docstring"""
<br> meta_type='Seq'
<br> manage_options=(
<br> (
<br> )
<br> +Override.ObjectManager.manage_options
<br> +PropertyManager.PropertyManager.manage_options
<br> +AccessControl.Role.RoleManager.manage_options
<br> +SimpleItem.Item.manage_options
<br> )
<p>def __init__(self,id,title):
<br> """docstring"""
<br> self.id = id
<br> self.title = title
<br>
<p>Weird Huh ?
<p>Chris</html>
--------------1A424A58A7415A98C4CE7978
Content-Type: image/png
Content-ID: <part1.3C860F67.1C2F40A0@fagmed.uit.no>
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="C:\DOCUME~1\LOCALA~1\LOCALS~1\Temp\nsmailB2.png"
iVBORw0KGgoAAAANSUhEUgAAAswAAAD+CAIAAAChnsTCAAAABGdBTUEAALGPC/xhBQAAAAZi
S0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEAAACxABrSO9dQAAAAd0SU1FB9IDBgwrDIc1eq4A
ABoMSURBVHic7d2/b9xG+sfxZ+wLgnR2kSDtVV/gcoBVBIhXza71H7BIDnBzVuNarSIBWgFa
K9clRoqDGyfl+QzIpSuLbCQFSKEAzgFXXengGqc5IEiC8FvQoWn+GA65M+SQfL9gECsuyZn9
IfOjh0NSxXEsGB2l1PPLiw9ufPT9d9+IyOMnT5fLJZ81AKBLV/ruAAAAGKc/WNxWEATp45OT
E4tbBgAAg2MtZARBsLOzM58voiiczxdBEJAzAACYsnzIODw8rFr04OCg6qlcwoii8ORkkS1s
pEgeAABMREklozRMaMJHYj5fiMTzuaTT0jihlGL4Ye+iKOq7CwCA8bM48DMWUVEUaaa1SQUA
AIyGzbNL0mMlVVOLbWUp9cDRlgEAQGvlIUO9yXBb+oQxny+s9RoAAHivPGTEbzLcVl+VDAAA
4CGbh0taVzKS4x1KPUj+5Z4qzs8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