Commit b809873b authored by Yoshinori Okuji's avatar Yoshinori Okuji

Remove getObjectMenu, because it is not used at all.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1386 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bbd544a3
...@@ -1387,19 +1387,19 @@ class Base( CopyContainer, PortalContent, Base18, ActiveObject, ERP5PropertyMana ...@@ -1387,19 +1387,19 @@ class Base( CopyContainer, PortalContent, Base18, ActiveObject, ERP5PropertyMana
# LOG('Base.setBinaryData',0,'data for : %s' % str(self)) # LOG('Base.setBinaryData',0,'data for : %s' % str(self))
# self.data = data # self.data = data
security.declareProtected(Permissions.View, 'getObjectMenu') #security.declareProtected(Permissions.View, 'getObjectMenu')
def getObjectMenu(self, *args, **kw): #def getObjectMenu(self, *args, **kw):
absolute_url = self.absolute_url() # absolute_url = self.absolute_url()
#
jump_menu = """<select name="jump_select" size="1" tal:attributes="onChange string:submitAction(this.form,'%s/doJump')"> #" jump_menu = """<select name="jump_select" size="1" tal:attributes="onChange string:submitAction(this.form,'%s/doJump')">
<option selected value="1" disabled>%s</option> # <option selected value="1" disabled>%s</option>
<span tal:repeat="action jump_actions"> # <span tal:repeat="action jump_actions">
<option value="1" tal:content="action/name" # <option value="1" tal:content="action/name"
tal:attributes="value action/url">Saut</option> # tal:attributes="value action/url">Saut</option>
</span> # </span>
</select>""" % (self.gettext('Jump...'), absolute_url, ) # </select>""" % (self.gettext('Jump...'), absolute_url, )
#
pass # pass
security.declareProtected(Permissions.ModifyPortalContent, 'commitTransaction') security.declareProtected(Permissions.ModifyPortalContent, 'commitTransaction')
def commitTransaction(self): def commitTransaction(self):
...@@ -1415,7 +1415,7 @@ class Base( CopyContainer, PortalContent, Base18, ActiveObject, ERP5PropertyMana ...@@ -1415,7 +1415,7 @@ class Base( CopyContainer, PortalContent, Base18, ActiveObject, ERP5PropertyMana
def __hash__(self): def __hash__(self):
return self.getUid() return self.getUid()
psyco.bind(getObjectMenu) #psyco.bind(getObjectMenu)
security.declareProtected(Permissions.ModifyPortalContent, 'setGuid') security.declareProtected(Permissions.ModifyPortalContent, 'setGuid')
def setGuid(self): def setGuid(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment