|
1 | | -# $Id: client.py,v 1.87 2003-02-17 00:39:28 richard Exp $ |
| 1 | +# $Id: client.py,v 1.88 2003-02-17 01:04:31 richard Exp $ |
2 | 2 |
|
3 | 3 | __doc__ = """ |
4 | 4 | WWW request handler (also used in the stand-alone server). |
@@ -701,24 +701,26 @@ def editItemAction(self): |
701 | 701 | See parsePropsFromForm and _editnodes for special variables |
702 | 702 | ''' |
703 | 703 | # parse the props from the form |
704 | | - try: |
| 704 | + if 1: |
| 705 | +# try: |
705 | 706 | props, links = self.parsePropsFromForm() |
706 | | - except (ValueError, KeyError), message: |
707 | | - self.error_message.append(_('Error: ') + str(message)) |
708 | | - return |
| 707 | +# except (ValueError, KeyError), message: |
| 708 | +# self.error_message.append(_('Error: ') + str(message)) |
| 709 | +# return |
709 | 710 |
|
710 | 711 | # handle the props |
711 | | - try: |
| 712 | + if 1: |
| 713 | +# try: |
712 | 714 | message = self._editnodes(props, links) |
713 | | - except (ValueError, KeyError, IndexError), message: |
714 | | - self.error_message.append(_('Error: ') + str(message)) |
715 | | - return |
| 715 | +# except (ValueError, KeyError, IndexError), message: |
| 716 | +# self.error_message.append(_('Error: ') + str(message)) |
| 717 | +# return |
716 | 718 |
|
717 | 719 | # commit now that all the tricky stuff is done |
718 | 720 | self.db.commit() |
719 | 721 |
|
720 | 722 | # redirect to the item's edit page |
721 | | - raise Redirect, '%s%s%s?+ok_message=%s'%(self.base, self.classname, |
| 723 | + raise Redirect, '%s%s%s?@ok_message=%s'%(self.base, self.classname, |
722 | 724 | self.nodeid, urllib.quote(message)) |
723 | 725 |
|
724 | 726 | def editItemPermission(self, props): |
|
0 commit comments