summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.editor.xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2013-11-26 17:01:48 +0100
committerXavier Morel <xmo@openerp.com>2013-11-26 17:01:48 +0100
commit44af6d1e09aa3bec6967ac3eb4e67b3e9215fb08 (patch)
treeedd62496333fd12960b2b3a3a5f111c72b54314a /addons/website/static/src/xml/website.editor.xml
parentb3061b910357a320aae568efe68fbe7561b7ea3e (diff)
[IMP] significantly improve handling of trying to create a new page which already exists
# Through the menu Rather than output a generic error (500 due to an IntegrityError), return a templated 409 letting the user either visit the page-which-already-exists-with-the-name-he'd-picked or open the page creation dialog again for a second round. An alternative would be to promote the website.prompt use to full-blown dialog as a result of selecting "New Page" and handle the "page already exists" case without even closing the dialog. # Through the link dialog Added an RPC call to check if a page already exists (essentially a cheaper version of opening /page/whatever and checking whether it's a 200 over JSON-RPC), if the page matching the completion term already exists, do *not* add the choice of creating the page, only provide completions from existing pages. bzr revid: xmo@openerp.com-20131126160148-wrk4zvz9istscwa0
Diffstat (limited to 'addons/website/static/src/xml/website.editor.xml')
0 files changed, 0 insertions, 0 deletions