16 |
# write to the Free Software Foundation, Inc., 59 Temple Place |
# write to the Free Software Foundation, Inc., 59 Temple Place |
17 |
# - Suite 330, Boston, MA 02111-1307, USA. |
# - Suite 330, Boston, MA 02111-1307, USA. |
18 |
# |
# |
19 |
# Copyright 2001 Free Software Foundation |
# Copyright 2001-2003 Free Software Foundation |
20 |
# |
# |
21 |
# FILE: |
# FILE: |
22 |
# _helpers/ObjectEnabler.py |
# _helpers/ObjectEnabler.py |
71 |
objhandle=method[1:i] |
objhandle=method[1:i] |
72 |
method=method[i+2:] |
method=method[i+2:] |
73 |
except ValueError: |
except ValueError: |
74 |
raise AttributeError, \ |
tmsg = _("Wrong format of object handler ")+\ |
75 |
_("Wrong format of object handler ")+\ |
_("in method call %s") % method |
76 |
_("in method call %s") % method |
raise AttributeError, tmsg |
77 |
|
|
78 |
# TODO check in service dir, if obj is supported or not |
# TODO check in service dir, if obj is supported or not |
79 |
o=ObjectLibrarian.retrieveObject(objhandle) |
o=ObjectLibrarian.retrieveObject(objhandle) |
218 |
del args['obj_handle'] |
del args['obj_handle'] |
219 |
|
|
220 |
except KeyError: |
except KeyError: |
221 |
raise StandardError, _('Object handle not returned') # TODO |
tmsg = _('Object handle not returned') |
222 |
|
raise StandardError, tmsg # TODO |
223 |
|
|
224 |
try: |
try: |
225 |
return ObjectLibrarian. \ |
return ObjectLibrarian. \ |
227 |
except KeyError: |
except KeyError: |
228 |
|
|
229 |
# Attempt to use an invalid objecthandle |
# Attempt to use an invalid objecthandle |
230 |
raise StandardError, _('Invalid object handle') # TODO |
tmsg = _('Invalid object handle') |
231 |
|
raise StandardError, tmsg # TODO |
232 |
|
|