Commit Graph
120 Commits
Author SHA1 Message Date
Fabien Meghazi 1434a5aae9 [IMP] allow to reset broken views in the 500 error page
bzr revid: fme@openerp.com-20131217134600-v0i170n9gw7752vj
2013-12-17 14:46:00 +01:00
Christophe Matthieu 5217c8ebe8 [IMP] website: remove secure_layout. Inherit with groups for js editor
bzr revid: chm@openerp.com-20131211144402-lpanprv3u362qvd7
2013-12-11 15:44:02 +01:00
Fabien Meghazi 2a2f50e08f [IMP] Better exception handling
bzr revid: fme@openerp.com-20131205150633-lnfvhjq42n0r26tv
2013-12-05 16:06:33 +01:00
Christophe Matthieu 94f9d0d1e6 [IMP] website: editor remove secure_layout (filter in controler)
bzr revid: chm@openerp.com-20131204171534-17ermab23ndoklu3
2013-12-04 18:15:34 +01:00
Fabien Pinckaers 114cf31244 [IMP] removed test code
bzr revid: fp@tinyerp.com-20131201173346-qodzx06i1wq7ec5i
2013-12-01 18:33:46 +01:00
Fabien Pinckaers d6f77f5853 [IMP] Speed improvements
bzr revid: fp@tinyerp.com-20131201172541-p8403347rv08uurh
2013-12-01 18:25:41 +01:00
ddm 96fabb61b2 [IMP] Indent HTML editor template names
bzr revid: ddm@openerp.com-20131129172749-0z6l9k9phieiw32b
2013-11-29 18:27:49 +01:00
Fabien Meghazi f6e15b4e4d [FIX] root menu first item triggered on / route
bzr revid: fme@openerp.com-20131127104307-ju8aqu7uuyrfsnpm
2013-11-27 11:43:07 +01:00
Xavier Morel 44af6d1e09 [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
2013-11-26 17:01:48 +01:00
Xavier Morel 6fc69e33d4 [FIX] correctly rollback savepoint in new_page
bzr revid: xmo@openerp.com-20131126102321-35wmxcncl3pp4mhw
2013-11-26 11:23:21 +01:00
Xavier Morel 5f99c7b7d1 [FIX] broken call from Website.pagenew to website.new_page
bzr revid: xmo@openerp.com-20131126092138-a7xkm92d51d4rg3y
2013-11-26 10:21:38 +01:00
Fabien Meghazi cc424c1a55 [IMP] http errors refactoring
bzr revid: fme@openerp.com-20131125165958-0k84rp9rbsxvav77
2013-11-25 17:59:58 +01:00
Xavier Morel 514210dfcc [FIX] lock kanban behind POST
bzr revid: xmo@openerp.com-20131125153220-on935gvemgkvipd6
2013-11-25 16:32:20 +01:00
Xavier Morel a67b3adf80 [IMP] remove footer link to sitemap, add direct sitemap link in test suite
the html sitemap is used as a proxy for testing the XML one.

bzr revid: xmo@openerp.com-20131125120916-d5w5xos2c7aimf31
2013-11-25 13:09:16 +01:00
Fabien Pinckaers 5ee03592cf [FIX] misc fixes in new event devs
bzr revid: fp@tinyerp.com-20131124214257-pg9bsbzzydoz6z1a
2013-11-24 22:42:57 +01:00
Fabien Pinckaers 105fc16c11 [IMP] events improvements
bzr revid: fp@tinyerp.com-20131124210221-hwalp7983olmrhew
2013-11-24 22:02:21 +01:00
Xavier Morel 2985681366 [FIX] fixup snippets json controller for lazyresponse changes
bzr revid: xmo@openerp.com-20131121095959-lwi6mnge684pxi1q
2013-11-21 10:59:59 +01:00
Fabien Meghazi 7d43b226ab [IMP] Use LazyResponse for website.render()
bzr revid: fme@openerp.com-20131120202842-zethge8jykzlzjjy
2013-11-20 21:28:42 +01:00
ddm 47295c4e0e [FIX] Fixes to shop tour
bzr revid: ddm@openerp.com-20131119151059-8xl169vodupwy8xw
2013-11-19 16:10:59 +01:00
Xavier Morel 5723b1588e [MERGE] from trunk
bzr revid: xmo@openerp.com-20131119102552-f8d03meddylwseyr
2013-11-19 11:25:52 +01:00
Fabien Pinckaers ceb04895d3 [IMP] Cleaning code of followers and website_published, 200 lines removed
[IMP] CSS and design of options and follow, avoid custom CSS

bzr revid: fp@openerp.com-20131116150927-4mjk1zdcgfzt4e95
2013-11-16 16:09:27 +01:00
Xavier Morel 5bab419967 [IMP] add page converter to get pages listing out of enumeration/search itself, restrict to single converter
bzr revid: xmo@openerp.com-20131115154840-psfns4datw5l1lr4
2013-11-15 16:48:40 +01:00
Xavier Morel 780c35598d [MERGE] from trunk
bzr revid: xmo@openerp.com-20131115132903-epi3321e4uxjqtn2
2013-11-15 14:29:03 +01:00
Xavier Morel e7117a5799 [FIX] altered trunk routing stuff, bring website converters back in website
bzr revid: xmo@openerp.com-20131115132626-60p0yk3jv1pk6mhb
2013-11-15 14:26:26 +01:00
Xavier Morel 122ddb8e31 [IMP] rename list_pages to enumerate_pages, add a search method and a basic non-contiguous substring match
bzr revid: xmo@openerp.com-20131113101824-uqatvqokkzhvi0ei
2013-11-13 11:18:24 +01:00
Xavier Morel 8c786b7aab [IMP] move slugify to server, use slugified url as page name
bzr revid: xmo@openerp.com-20131108154842-ts1nnd40jusa92h6
2013-11-08 16:48:42 +01:00
Xavier Morel 01a414fb7c [ADD] initial route introspection + fix pair of routes/controllers
* most controllers turn out to be complete cork and thus can't be
  reversed

* fixup a pair of simple controllers

TODO:
* fixup more controllers
* how can labels/page names be produced?
* grouping/categories of links?

At a high level, workings are pretty simple:
* iterate on all rules (every url pattern produces a werkzeug rule)
* check if the url can make sense as a link: GET, http, no auth or
  public auth, coming from the CMS (no web client links) and all
  converters can generate values for themselves (e.g. a url with an
  `int` converter can't be generated as there is no finite set of
  integers, let alone one small enough to make sense to show to users)
* check if the controller function bound to the URL can use the URLs
  we can generate (no **kwargs as that means arbitrary get|post
  parameter, no query param without a default value (a query param is
  a parameter which does not come from a URL/rule converter))
* use rule converter(s) to generate a matrix of values, and build urls
  from these

bzr revid: xmo@openerp.com-20131108132615-2n7t1vj8hz9v9eis
2013-11-08 14:26:15 +01:00
Fabien Meghazi 01a28b6e03 [FIX] Can't translate menus
context was not passed while setting request.website
forced to refactor a bit in order to make true model methods but stopped
because it will be duplicated work when migrating to the new api

bzr revid: fme@openerp.com-20131107151400-9dmtgz7xs34qmbmq
2013-11-07 16:14:00 +01:00
Christophe Matthieu bfc8f61984 [FIX] website: can choose an other controller to publish data. Website sale: add a contraint for address and organizer for publish an event. Auto publish address and organizer in front end. Clean website_hr_recruitment publisher
bzr revid: chm@openerp.com-20131104155230-j36l2e1fez0vnkwi
2013-11-04 16:52:30 +01:00
Fabien Meghazi 5f2dc489b2 [MERGE] upstream
bzr revid: fme@openerp.com-20131104114431-dhjp6iy1sfxq4cg1
2013-11-04 12:44:31 +01:00
Xavier Morel 49381094a8 [IMP] error handling in website.render
Return responses with the correct status code instead of always
returning 200 on rendering errors from website.

bzr revid: xmo@openerp.com-20131104111021-inrsbawnakhsva1q
2013-11-04 12:10:21 +01:00
Antony Lesuisse e51baab2f3 [FIX] robots.txt mimetype
bzr revid: al@openerp.com-20131102173140-b43am0wxsfbetezf
2013-11-02 18:31:40 +01:00
Fabien Meghazi cf58fd485b [IMP] first menu becomes root url
bzr revid: fme@openerp.com-20131031173428-c6l8b19ig5npwb9i
2013-10-31 18:34:28 +01:00
ddm 68c7842977 [FIX] Multilang sitemap
bzr revid: ddm@openerp.com-20131030145050-khpfwu3nhsc6hcnz
2013-10-30 15:50:50 +01:00
Xavier Morel 500804a7c8 [FIX] sitemap
add HTML sitemap, fix incorrect XML sitemap

bzr revid: xmo@openerp.com-20131030135750-7ljqx4u2qy4xhvm0
2013-10-30 14:57:50 +01:00
Xavier Morel 4c88701f3d [FIX] change access rights for customize_template_*
bzr revid: xmo@openerp.com-20131025095952-9ditm4q3fwr9auto
2013-10-25 11:59:52 +02:00
Xavier Morel c8dd901b04 [FIX] todo/notes
bzr revid: xmo@openerp.com-20131024141024-3kdx3jfcsn8vzsyg
2013-10-24 16:10:24 +02:00
Xavier Morel a2a3f46d72 [FIX] 'inline' set_image_data
bzr revid: xmo@openerp.com-20131024135730-321532upt3aq5esw
2013-10-24 15:57:30 +02:00
Xavier Morel 39fb50d43d [REM] explicit cache clearing, fixing ir.translation instead
bzr revid: xmo@openerp.com-20131024131613-6hebrxi5dbbs82ph
2013-10-24 15:16:13 +02:00
Xavier Morel c38f729543 [FIX] auth of pagenew
bzr revid: xmo@openerp.com-20131024111710-5ghadng4we3p2cgg
2013-10-24 13:17:10 +02:00
Xavier Morel b702a9887c [IMP] remove /website/attachment, make attachments go through /website/image
bzr revid: xmo@openerp.com-20131024103401-yik03je9qm1ge0tp
2013-10-24 12:34:01 +02:00
Fabien Meghazi 1cec2a5b6f [REM] Obsolete route /admin
bzr revid: fme@openerp.com-20131016093248-2q2c8ppkxxhfx1su
2013-10-16 11:32:48 +02:00
Fabien Meghazi c056f03a82 [FIX] main_objet is now always set in qweb rendering context
If no main_object is provided, the current ir.ui.view will be used

bzr revid: fme@openerp.com-20131015095413-ij6dt2rjo527sgga
2013-10-15 11:54:13 +02:00
Fabien Meghazi 853cb1dd26 [MERGE] SEO meta data persistence. New template title handling
bzr revid: fme@openerp.com-20131014151509-6bnux7ncvqmy3tea
2013-10-14 17:15:09 +02:00
Fabien Meghazi 631b1cbc09 [MERGE] upstream
bzr revid: fme@openerp.com-20131014095642-qxl7ceqptfsj215l
2013-10-14 11:56:42 +02:00
Xavier Morel 2e352ce187 [MERGE] from trunk
bzr revid: xmo@openerp.com-20131014085459-dhbypq0hg3lzzf3j
2013-10-14 10:54:59 +02:00
Thibault Delavallée 9700084074 [IMP] website: publish improvements
- added protection again writing/reading directly on website_published: now done only
if this is a valid column
- added management of website_published_datetime, set everytime published is set to
True; this is done to be able to track publish date on messages and blog posts
notably.

bzr revid: tde@openerp.com-20131011125429-4zvm8txz67ew8tho
2013-10-11 14:54:29 +02:00
Xavier Morel 11065601c9 [CHG] make slugify optional by fp request
bzr revid: xmo@openerp.com-20131011075509-q6vzqiyzmfb7tugb
2013-10-11 09:55:09 +02:00
Fabien Meghazi 9b40e849d6 [WIP] new title managment in templates. expose main_object for seo
bzr revid: fme@openerp.com-20131010132907-xxmg96qmcw9j5f2d
2013-10-10 15:29:07 +02:00
Xavier Morel fc012b1c9c [IMP] slugify page names on creation
bzr revid: xmo@openerp.com-20131010072809-p8f5j9bcnnfnkhtj
2013-10-10 09:28:09 +02:00