Commit Graph

394 Commits

Author SHA1 Message Date
Fabien Meghazi 0da8cdda90 [FIX] Set default 'editable' key in website's rendering context
bzr revid: fme@openerp.com-20140210143546-1t82gog330n5x89t
2014-02-10 15:35:46 +01:00
Antony Lesuisse 87172d90d2 [MERGE] saas-3
bzr revid: al@openerp.com-20140209140315-ukqlf90ngy6ycu2k
2014-02-09 15:03:15 +01:00
Denis Ledoux 38b7c38e32 [FIX] website: config settings does write the values on the website model
This config contains only related fields of the website_id many2one.
The problem is that applying the change CREATE a res config settings
And the create orm method does not forward and write the values on the related fields.
Write does.
The best fix should be to change all these related fields to char fields, 
and to create the set_ method who will acutally set the value to the website_id.
But, unfortunately, this is a stable branch
And we cannot alter the database structure in stable branches.

bzr revid: dle@openerp.com-20140207172157-6upyhuin93qlkrfa
2014-02-07 18:21:57 +01:00
Xavier Morel 7ac7b2599e [IMP] make page lookup case-insensitive during completion
bzr revid: xmo@openerp.com-20140207150623-vevnuswi9gx0bqeb
2014-02-07 16:06:23 +01:00
Antony Lesuisse cd2bddad46 [FIX] website ir.ui.view render
bzr revid: al@openerp.com-20140207140503-doolcovzuce4m6i4
2014-02-07 15:05:03 +01:00
Thibault Delavallée 21602f92a1 [FIX] website: server action: compute website_url only for published code actions
bzr revid: tde@openerp.com-20140207123249-yfql78xurblyamze
2014-02-07 13:32:49 +01:00
Christophe Simonis 1b0ce7052e [FIX] website: do not force uneditable templates
bzr revid: chs@openerp.com-20140207122837-ysfss4khpt2hsau1
2014-02-07 13:28:37 +01:00
Thibault Delavallée 7d696bc620 [IMP] website: server actions: usability improvements
- added website_path, the end of the path to access the server action, allowing more custom
and short URLs, like website/action/partners instead of website/action/website.action_partners;
- added website_url, computed file with the full address of the server action that is displayed
on the form view, to ease usability
- updated server action contorller: now takes xml_id, id, or website_path

bzr revid: tde@openerp.com-20140207121921-7kdpxrf30zlte47l
2014-02-07 13:19:21 +01:00
Christophe Simonis daace48560 [MERGE] fix template rendering
bzr revid: chs@openerp.com-20140206163811-i43srg7hd4yqzzo3
2014-02-06 17:38:11 +01:00
Fabien Meghazi 2d4fb97696 [IMP] Move some qweb rendering context vars from website#ir.qweb to server#ir.ui.view
bzr revid: fme@openerp.com-20140206161316-jw7luqon476widcm
2014-02-06 17:13:16 +01:00
Thibault Delavallée 2f682975bc [FIX] website: fixed call to slugify
- python-slugify: max_length is an optional keyword
- slugify library also exists and does not accepts max_length -> if this very simple library is used, fall
            back on our own implementation

bzr revid: tde@openerp.com-20140206145638-entdcqsawrqf1nnq
2014-02-06 15:56:38 +01:00
Fabien Meghazi b112d5d2f1 [FIX] ir ui view should have rendering context on request.website_enabled
bzr revid: fme@openerp.com-20140206143919-f6vz8rpx9mb4798g
2014-02-06 15:39:19 +01:00
Denis Ledoux f487fbb298 [FIX] website: urljoin from urlparse cannot handle unicode. Therefore, We decode before passing the arg to urljoin then we (re-)encode the result
bzr revid: dle@openerp.com-20140206103929-oe289oilz08n1msk
2014-02-06 11:39:29 +01:00
Thibault Delavallée 91abbeda24 [DOC] website: ir_actions: added some comments
bzr revid: tde@openerp.com-20140206081921-vp22x256vkk3ea1o
2014-02-06 09:19:21 +01:00
Thibault Delavallée 89d053111f [IMP] website: server action: response is a better keyworkd than template
bzr revid: tde@openerp.com-20140205140238-liili9v4l0a074zj
2014-02-05 15:02:38 +01:00
Thibault Delavallée 47309f045b [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140205115653-7ktnizsmvppv90wk
2014-02-05 12:56:53 +01:00
Fabien Meghazi 766f7d4808 [FIX] website.menu#url shall not be required=True
A parent node's url is not clickable in the website front-end

bzr revid: fme@openerp.com-20140205101500-ghmkfkpvkojv81kf
2014-02-05 11:15:00 +01:00
Thibault Delavallée 1e6f81abc2 [IMP] website: ir_actions_server: only published server action can be invoked from the front-end
bzr revid: tde@openerp.com-20140205094530-k058ealuxq9hbrdw
2014-02-05 10:45:30 +01:00
Thibault Delavallée 8df6b16784 [ADD] website: added support for invoking a server action through controller
website: added website/action/<id_or_xml_id> route, that runs the server action designed
by its id or xml_id. Only code server action returning a template give a result. The
template is displayed. Other or not existing server actions redirect to the homepage.

website: added an override of ir_actions_server: evaluation context gets request for
evaluation, to enable request.render(template_name); also returns template the same
way action is returned for code server action;

bzr revid: tde@openerp.com-20140205090447-2hppg7818nx1wfzh
2014-02-05 10:04:47 +01:00
Fabien Meghazi 5451f5587d [REV] Bring back QWebExceptions
bzr revid: fme@openerp.com-20140131113611-wee3xvnvzw9smq2r
2014-01-31 12:36:11 +01:00
Antony Lesuisse 974c666bcd [REV] website qweb dont change exception types
bzr revid: al@openerp.com-20140131011427-3bome249kut8fs3t
2014-01-31 02:14:27 +01:00
Antony Lesuisse ff37d0ebca website sale refactor
bzr revid: al@openerp.com-20140130233951-55ttup4ohmp4i0nf
2014-01-31 00:39:51 +01:00
Antony Lesuisse 3124343f04 [IMP] product style model renames, add user_id on website to be used in multiwebsite
bzr revid: al@openerp.com-20140130225853-6fgpmtaa8v1vr25x
2014-01-30 23:58:53 +01:00
Fabien Meghazi 1931c307a2 [IMP] Improved qweb exeptions handling
bzr revid: fme@openerp.com-20140130212053-fkb9ug49qun54ehi
2014-01-30 22:20:53 +01:00
Fabien Meghazi fc979b9a7a [FIX] url_for()
bzr revid: fme@openerp.com-20140130195043-pkfkmqg80c2yk5p5
2014-01-30 20:50:43 +01:00
Fabien Pinckaers a1b95f6823 [FIX] Customize menu
bzr revid: fp@tinyerp.com-20140130194227-b5brj96f8tgc88hf
2014-01-30 20:42:27 +01:00
Olivier Dony 78fefd54f0 [IMP] website tests: unicode test attributes to avoid warnings in auto_init when comparing attr values
bzr revid: odo@openerp.com-20140130162615-nx7f3nhifwqo357u
2014-01-30 17:26:15 +01:00
jke-openerp 1176ef49c1 [FIX] Fix according ODO review : widget image, googlemap, social escape, ...
bzr revid: jke@openerp.com-20140130121244-tv840uvtorg0y3s1
2014-01-30 13:12:44 +01:00
Denis Ledoux 18532330d4 [FIX] *: replace urllib calls by werkzeug calls, as werkzeug handles utf-8 encoding while urllib doesnt
bzr revid: dle@openerp.com-20140130112408-8pdju26jnkyxvlw2
2014-01-30 12:24:08 +01:00
jke-openerp 516a85cecc [Fix] Use maps.google.com and not .be (as for thumbail who use the api .com).
[IMP] Add zoom 10 by default
[FIX] Escape False in address for google search

bzr revid: jke@openerp.com-20140130111349-l90w9larrntv83hh
2014-01-30 12:13:49 +01:00
Christophe Simonis 3d80e31012 [FIX] website: url_for() does not mess up anchor links
bzr revid: chs@openerp.com-20140129195025-i2ey682o6marp8k1
2014-01-29 20:50:25 +01:00
Fabien Meghazi eff61fde93 [FIX] Support for older werkzeug versions
bzr revid: fme@openerp.com-20140129135208-liewqaib50lwbbjy
2014-01-29 14:52:08 +01:00
Denis Ledoux 0306adbfe3 [FIX] *: using werkzeug.url_encode instead of urllib.urlencode because urliblib.encode does not accept unicode
bzr revid: dle@openerp.com-20140129121316-b5f5e4r6fz9l80kq
2014-01-29 13:13:16 +01:00
Antony Lesuisse 6f8d8434dc [FIX] website_hr_recruitment full cleanups
- keep url namespace under /jobs
- public mode fixes
- moved jobs_ids field in hr_recruitment
- simplify code, remove dead code and data

bzr revid: al@openerp.com-20140129051403-cipao0bllxa85gsg
2014-01-29 06:14:03 +01:00
Fabien Meghazi 326c35aecd [IMP] Merge bananas and cumcumbers in order to prepare the t-href|t-action removal
bzr revid: fme@openerp.com-20140128201417-1elmttz8qen9q3ws
2014-01-28 21:14:17 +01:00
Christophe Matthieu 316745250b [FIX] website: public user; website_sale
bzr revid: chm@openerp.com-20140128152136-pqh7oqj4drpjk09z
2014-01-28 16:21:36 +01:00
jke-openerp 20a5ab8ea4 [MERGE] moved public user to base, livechat fix
bzr revid: jke@openerp.com-20140128145023-hthi8f75gq8jo11u
2014-01-28 15:50:23 +01:00
jke-openerp 2c255db1d0 [REF] Move public_user from website_data to module server/addons/base
[REF] Remove _auth_method_public from website/ir_http to become a native auth_method in server/addons/base/ir/ir_http

bzr revid: jke@openerp.com-20140128142824-62ejlnnud4a4m694
2014-01-28 15:28:24 +01:00
Antony Lesuisse 7c90d3afa5 [FIX] website page creation
bzr revid: al@openerp.com-20140128140017-r8yy8tzsvo4y0e92
2014-01-28 15:00:17 +01:00
Christophe Matthieu d588e44d34 [IMP] event,event_sale: refactoring; remove crappy 9999 hardcoded values; remove visibility; add constraints
[FIX] remove module_portal_anonymous ref
[IMP] website: res_config with wizard
[IMP] event: remove related field to res.partner
[FIX] website_sale: change crappy _get_pricelist method (who return a browse record to a function field type many2one)

bzr revid: chm@openerp.com-20140128092037-zrrbz1hrmgat88o4
2014-01-28 10:20:37 +01:00
Antony Lesuisse 87a1b0a459 [FIX] customize menu
- regression introducted by elif
- hide non relevant option
- deterministic order of items

bzr revid: al@openerp.com-20140127205326-0o1vgbf45mvxllgv
2014-01-27 21:53:26 +01:00
Christophe Matthieu b598d52020 [IMP] website: res_config
bzr revid: chm@openerp.com-20140127180059-sfwyqf57eixr8dxq
2014-01-27 19:00:59 +01:00
Christophe Matthieu b1462a9d30 [IMP] website: res_config with wizard
bzr revid: chm@openerp.com-20140127173816-uldoee71h7ntpyhl
2014-01-27 18:38:16 +01:00
Raphael Collet d9943ea49b [IMP] website: make code more robust
bzr revid: rco@openerp.com-20140127145848-ib7jlhb1c6aw3w2d
2014-01-27 15:58:48 +01:00
Christophe Matthieu 43044d8ee7 [IMP] event,event_sale: refactoring; remove crappy 9999 hardcoded values; remove visibility; add constraints
bzr revid: chm@openerp.com-20140127135828-z848mvpis5d9xyh8
2014-01-27 14:58:28 +01:00
Fabien Meghazi a2fb618354 [FIX] do not crash when trying to rescue a wrong t-call in template
Need trunk-website-al server's Rev#5173

bzr revid: fme@openerp.com-20140127114034-luhekopukpbmntqt
2014-01-27 12:40:34 +01:00
Fabien Meghazi f0606d3cc0 [FIX] Contact field encoding issue
bzr revid: fme@openerp.com-20140124132304-4kmjd9k4k2xgjecv
2014-01-24 14:23:04 +01:00
Fabien Meghazi 15c1d052e3 [IMP] Ensure slug validity otherwise redirect
bzr revid: fme@openerp.com-20140124104610-lzsomdyl10ens0av
2014-01-24 11:46:10 +01:00
Fabien Meghazi d6690455e9 [REM] Removed preload_records
This feature will be stripped down and moved to server's ir.http#_dispatch()

bzr revid: fme@openerp.com-20140123150448-3hhlj4vytr82k88n
2014-01-23 16:04:48 +01:00
ddm@openerp.com 8ee6f53005 [IMP] Move website settings to 'Configration' wizard
bzr revid: ddm@openerp.com-20140123150317-9vxccax7vn2xls9x
2014-01-23 16:03:17 +01:00
Fabien Meghazi af3428a86f [REV] Revert some stuff in order to bring back main_object on all rendered views
bzr revid: fme@openerp.com-20140123135408-qp4z7ry4a2vej2jy
2014-01-23 14:54:08 +01:00
Fabien Meghazi ef18e601dd [FIX] Reflect endpoints changes introduced in server's Revision: 5153 revid:fme@openerp.com-20140121195348-mcdreqjo3kod0p7i
bzr revid: fme@openerp.com-20140121195441-ijt2yjv32v8b39kq
2014-01-21 20:54:41 +01:00
ddm@openerp.com 1c3a7a8fd3 [IMP] Add support for Google Analytics
bzr revid: ddm@openerp.com-20140121163456-i3v3a7oh8qejc9oo
2014-01-21 17:34:56 +01:00
Christophe Matthieu 4ff1af4d01 [FIX] website: display or not editor edit button; website_sale: test tour; website: contact qweb widget
bzr revid: chm@openerp.com-20140121123912-0ya4ziusj09efti3
2014-01-21 13:39:12 +01:00
Fabien Meghazi 14bb6060d7 [REM] Removed @website.route() decorator
Need trunk-website-al Rev#5151

bzr revid: fme@openerp.com-20140120153733-ve3dn2kwvha7n3yl
2014-01-20 16:37:33 +01:00
Jojo le bricolo 03606aa347 QWeb cleanups 1 sql query less per page
bzr revid: jojo_le_bricolo-20140119174642-q2ix8p27ospjkuf4
2014-01-19 18:46:42 +01:00
Christophe Matthieu 449a37dc0d [FIX] website: base_language_install is an osv.osv_memory insead of osv.osv
bzr revid: chm@openerp.com-20140114093603-toryzflx3b0yzdyr
2014-01-14 10:36:03 +01:00
Xavier Morel 3f8c2d0bad [FIX] conversion from html to values for text field
see html_to_text comment

bzr revid: xmo@openerp.com-20140110152024-yp2out0jg1gx1uhs
2014-01-10 16:20:24 +01:00
Christophe Matthieu 9fd7db5150 [WIP] website/ir_rule: remove session from access right evaluation, allow to read pricelist to evrybody and use superuser for saleorder in website_sale
bzr revid: chm@openerp.com-20140107085728-77mxlims6fa0li76
2014-01-07 09:57:28 +01:00
Fabien Pinckaers ba2689e70c [FIX] don't crash on empty dates [IMP] default dates on demo tracks
bzr revid: fp@tinyerp.com-20131222230021-9a03x3eiwi4e780x
2013-12-23 00:00:21 +01:00
Xavier Morel e04983ae69 [IMP] conversion back from m2o t-field to openerp value
Instead of doing a name_get on the edited value and trying to find out
an m2o to assign back (which there's pretty much no chance of given
there's no autocompletion or anything), alter the m2o record in-place
by setting the provided edited value to its _rec_name.

Ideally, both features could be supported via more advanced m2o
edition widgets which would allow selecting an existing m2o, creating
a new m2o record from scratch or (maybe) editing the existing m2o's
display_name if possible, somewhat similar to what the form view
provides.

Without these though, the only action which makes any sense is to edit
the user-visible "value" where it is found, as with more normal
fields.

bzr revid: xmo@openerp.com-20131218140917-4eo2o55yfcumzhov
2013-12-18 15:09:17 +01:00
Xavier Morel 90a9e522f3 [ADD] placeholder support on t-field
A placeholder is looked up:

1. in the field's options ("placeholder")
2. on the t-field node itself (@placeholder)
3. on the field's column (.placeholder)

The first one found is used as the @placeholder of the resulting node
(in-HTML), and displayed when the field is empty and unfocused.

If no placeholder is found, an empty field just gets a small padding
in order to be easier to see & focus.

bzr revid: xmo@openerp.com-20131218114901-xi3ye11x5pysq2a2
2013-12-18 12:49:01 +01:00
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
Xavier Morel 4469b36f77 [FIX] change view section saving: only save view section *content*
Before, would save view section itself (including root element). But
branding distribution (and thus editability) are set on the last
programmatic root, thus the root element may well be generated
e.g. <span t-att-foo> will define the span itself as editable.

Saving this would remove the programmatic content on the node, and
thus break the view section altogether.

Fix the issue by only saving the root's content in the previous root.

bzr revid: xmo@openerp.com-20131217112034-nbxbg919cffv4w51
2013-12-17 12:20:34 +01:00
Xavier Morel 87c3b6ac72 [FIX] disabling of field escaping
bzr revid: xmo@openerp.com-20131216092343-0e6t7nvse3r0p2zs
2013-12-16 10:23:43 +01:00
Christophe Matthieu 1acf6d904f [FIX] website: editable in context
bzr revid: chm@openerp.com-20131211152511-5bw86drta0374x6y
2013-12-11 16:25:11 +01:00
Christophe Matthieu 2257e8d431 [IMP] website: change editable and use groups
bzr revid: chm@openerp.com-20131211145930-r0izxh9t0efjwhxh
2013-12-11 15:59:30 +01:00
Fabien Pinckaers 59906a3af8 [IMP] allow users to change product price from CMS[FIX] small bug in reordering of PTT
bzr revid: fp@tinyerp.com-20131209210511-5w03vf2wt0pmgdew
2013-12-09 22:05:11 +01:00
Christophe Matthieu d0b813a016 [IMP] fix website_hr_recruitment, website_event, and create contact qweb widget
bzr revid: chm@openerp.com-20131206133003-to4lbgoynvviifq5
2013-12-06 14:30:03 +01:00
Fabien Meghazi 7a3b490f46 [IMP] preload records and throw 404 if not exists for blog, event, product
bzr revid: fme@openerp.com-20131205155450-y6joi29l2cn9amkn
2013-12-05 16:54:50 +01:00
Fabien Meghazi 2a2f50e08f [IMP] Better exception handling
bzr revid: fme@openerp.com-20131205150633-lnfvhjq42n0r26tv
2013-12-05 16:06:33 +01:00
Xavier Morel 1049e1c859 [ADD] saving and edition of oddly formatted fields in RTE
bzr revid: xmo@openerp.com-20131205114245-2p57t0z182r8oeyv
2013-12-05 12:42:45 +01:00
Xavier Morel a1ecb6923b [ADD] saving of oddly localized/formatted stuff
bzr revid: xmo@openerp.com-20131205113908-9tr575ejn7hanhi7
2013-12-05 12:39:08 +01:00
Fabien Meghazi ea037cc7d5 [ADD] status_code to website#render()
bzr revid: fme@openerp.com-20131204145728-ztv6ur760b3nru58
2013-12-04 15:57:28 +01:00
Christophe Matthieu 704607db5a [FIX] website: signin and logout redirect url
bzr revid: chm@openerp.com-20131203173146-7om0xl9b7ubb5cqc
2013-12-03 18:31:46 +01:00
Christophe Matthieu 63a9616138 [FIX] website_hr_recruitment, website_blog
bzr revid: chm@openerp.com-20131203171714-fym4y602l7gfylfw
2013-12-03 18:17:14 +01:00
Fabien Pinckaers 642fce4a5b [IMP] speed improvement + small bug
bzr revid: fp@tinyerp.com-20131203171033-oe6pkzb9jal3ril8
2013-12-03 18:10:33 +01:00
Fabien Meghazi c71cfef3d3 [FIX] ir.http log exceptions
bzr revid: fme@openerp.com-20131203114657-jnnki78qr28u9xq4
2013-12-03 12:46:57 +01:00
Xavier Morel 87b5c7990a [FIX] unused check_groups call, preprocess_request style
bzr revid: xmo@openerp.com-20131203080055-wgja1zraygglo767
2013-12-03 09:00:55 +01:00
Xavier Morel 278316ef9f [FIX] broken call to (ir.model.access).check
bzr revid: xmo@openerp.com-20131203075715-xsmueut0n3g9ggd6
2013-12-03 08:57:15 +01:00
Xavier Morel 0271062a80 [FIX] clear cache on method with a cache
bzr revid: xmo@openerp.com-20131203073429-g8vqg1dqltgtc4r6
2013-12-03 08:34:29 +01:00
Fabien Meghazi b78f196362 [IMP] cached website's default_lang and language_ids
bzr revid: fme@openerp.com-20131202172110-h7s023xv4ohq31tw
2013-12-02 18:21:10 +01:00
Fabien Meghazi a5ed3f8b42 [ADD] slug() helper to rendering context
bzr revid: fme@openerp.com-20131202125652-5e30xd3ym6nww44o
2013-12-02 13:56:52 +01:00
Fabien Pinckaers b51daf482b [IMP] 2SQL Queries less per query
bzr revid: fp@tinyerp.com-20131202122233-m9y37fr6nhh03a08
2013-12-02 13:22:33 +01:00
Xavier Morel 52b1ac6a3e [FIX] alteration of image field without actually changing the image URL
UI allows changing corner even though corners are not saved...

bzr revid: xmo@openerp.com-20131202111720-oabkjado7n1jrt66
2013-12-02 12:17:20 +01:00
Xavier Morel a108af5cb8 [FIX] website: endpoint_is_enumerable
old version of @website.route would wrap the base method within a
decorator, and endpoint_is_enumerable had to dig into the decorator to
get the original function (and be able to inspect it).

@website.route has been simplified and no longer wraps the function,
just adds a pair of attributes to it (and so does the base
@http.route), so don't dig into anymore, inspect rule.endpoint
directly.

bzr revid: xmo@openerp.com-20131202102525-8jsondrr1649c8t8
2013-12-02 11:25:25 +01:00
Fabien Meghazi 3cf9c776de [FIX] default language
bzr revid: fme@openerp.com-20131202093500-xzz4q2u279uwunjo
2013-12-02 10:35:00 +01:00
Fabien Pinckaers 660b420696 [FIX] public user
bzr revid: fp@tinyerp.com-20131202090239-a4b1kkg5pni8ye3d
2013-12-02 10:02:39 +01:00
Fabien Pinckaers d4fc95f1fe [FIX] small fixes
bzr revid: fp@tinyerp.com-20131130205834-ilds41gcktv7vchg
2013-11-30 21:58:34 +01:00
Fabien Pinckaers cf3ecb9ff0 [IMP] Huge speed improvements 64 SQL queries to render '/' --> 10 Queries
bzr revid: fp@tinyerp.com-20131130193739-095yd4p9llmj0kt1
2013-11-30 20:37:39 +01:00
Fabien Pinckaers ed7623fc45 [IMP] Performance improvement: improved cache with context, better get_object
bzr revid: fp@tinyerp.com-20131130154659-uqis34x2cemmocly
2013-11-30 16:46:59 +01:00
Fabien Meghazi 07eaace3ee [ADD] custom website ir.http#dispatch and rerouting
bzr revid: fme@openerp.com-20131127170432-z7d1w4ck03d7wwia
2013-11-27 18:04:32 +01:00
Xavier Morel b45dfac7fe [ADD] correct handling of setting local urls (pre-existing images from /thing/static) in t-fields
bzr revid: xmo@openerp.com-20131127104638-ooyuu8dobhzc9a7f
2013-11-27 11:46:38 +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
Fabien Meghazi cc424c1a55 [IMP] http errors refactoring
bzr revid: fme@openerp.com-20131125165958-0k84rp9rbsxvav77
2013-11-25 17:59:58 +01:00
Xavier Morel 3542a27f9c [FIX] force url enumeration/generation to be performed as 'public' user
bzr revid: xmo@openerp.com-20131125100813-fln1j714m2h85h09
2013-11-25 11:08:13 +01:00
Fabien Pinckaers d19b85f873 [IMP] new featuers for complex events
bzr revid: fp@tinyerp.com-20131124223802-20rpekho195fu2l5
2013-11-24 23:38:02 +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 411cd6aa21 [IMP] add img and img-responsive to image fields
bzr revid: xmo@openerp.com-20131122104148-dpo63pg6mpn1315c
2013-11-22 11:41:48 +01:00
Fabien Meghazi a337d0dc2c [FIX] kanban broken by lazyrenderer
bzr revid: fme@openerp.com-20131121154213-71hb70c9326gtafb
2013-11-21 16:42:13 +01:00
Xavier Morel 82b40bf84c [FIX] urlparse.parse_qs returns a dict *of lists*, eq test on values with a string is always false
bzr revid: xmo@openerp.com-20131121121235-hafy7n61h3v6kb0k
2013-11-21 13:12:35 +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
Xavier Morel a1463c60b3 [CHG] **kw don't prevent url searching/listing anymore
After discussion and addition of support for the methods parameter (on
@route), it's been determined that:

* POST endpoint must set up method correctly

* **kw on GET endpoints must be completely optional, mandatory query
    arguments should be added as formal parameters without a default
    values

* URLs can thus be generated for methods with **kw, simply by ignoring
  it entirely

bzr revid: xmo@openerp.com-20131119154254-vp0zfnzjvi451vv0
2013-11-19 16:42:54 +01:00
Fabien Meghazi 8e68c33a4b [MOV] Moved methods filtering support from @website.route to @http.route
bzr revid: fme@openerp.com-20131119135428-fm3bfbp83anoxgo6
2013-11-19 14:54:28 +01:00
Xavier Morel 86a0f67a69 [ADD] note about leftover task
bzr revid: xmo@openerp.com-20131119122906-9meh7ubye952o67j
2013-11-19 13:29:06 +01:00
Xavier Morel c9c4f77d72 [FIX] fix ModelConverter.regex for realsies
bzr revid: xmo@openerp.com-20131119113205-osz07kc5t8xmf05f
2013-11-19 12:32:05 +01:00
Xavier Morel 5419bb3b58 [FIX] ModelConverter regex part 1
bzr revid: xmo@openerp.com-20131119112056-ivcevk7strj9xy8v
2013-11-19 12:20:56 +01:00
Christophe Matthieu 910c2657a9 [IMP] website: add a group_website_publisher to Display Editor Bar on Website and other editable option
bzr revid: chm@openerp.com-20131119103042-stdyd6r00e1zgli5
2013-11-19 11:30:42 +01:00
Xavier Morel 5723b1588e [MERGE] from trunk
bzr revid: xmo@openerp.com-20131119102552-f8d03meddylwseyr
2013-11-19 11:25:52 +01:00
Xavier Morel 986b4c49d1 [IMP] url generation & filtering
* add filtering in enumerate_pages directly
* make ModelConverter use name_search for generation

todo: per-request name_get caching/coalescing?

bzr revid: xmo@openerp.com-20131119102117-p7de3t93qex1n28q
2013-11-19 11:21:17 +01:00
Xavier Morel bc313dc6ee [IMP] don't match numbers within the slug, only match numeric runs at the end of it
bzr revid: xmo@openerp.com-20131119095059-yuininxcy0kiz9qh
2013-11-19 10:50:59 +01:00
Fabien Pinckaers 46a967502d [FIX] drop when no dropzone, [IMP] Jobs layout
bzr revid: fp@openerp.com-20131116085350-gfrm0jn7bv3ubfz7
2013-11-16 09:53:50 +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
Christophe Matthieu b958ece1df [IMP] website_sale: access rights
bzr revid: chm@openerp.com-20131115152716-86wb7yxq2s4hr633
2013-11-15 16:27:16 +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
Christophe Matthieu cc574fa2c4 [IMP] website: catch exception of controller error to return a 401 or 500 error page (and log this exception).
bzr revid: chm@openerp.com-20131114144652-7ta05hrssx22cuiv
2013-11-14 15:46:52 +01:00
Christophe Matthieu 8ae07d4cba [FIX] website: helper google_map for res.company
bzr revid: chm@openerp.com-20131114090223-2gl6y7shh6f7fplm
2013-11-14 10:02:23 +01:00
Xavier Morel d15a6f426d [IMP] replace selection list of existing CMS pages by FAYT via select2
bzr revid: xmo@openerp.com-20131113143934-je7dusgzj15f7li0
2013-11-13 15:39:34 +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
Fabien Meghazi 9ca2b8e8e0 [ADD] methods arg to @website.route() until the feature hit the server
bzr revid: fme@openerp.com-20131113101319-tvamyl0ikqmsqh18
2013-11-13 11:13:19 +01:00
Fabien Meghazi 557d887496 [IMP] preprocess static @href|src|action, static url doesn't need t-href anymore
you need to pull server branch

bzr revid: fme@openerp.com-20131112144442-y9bw5q6kkoym8o1i
2013-11-12 15:44:42 +01:00
Xavier Morel b1b29acd4b [ADD] pages to pages listing
I don't see a good way to reverse `/page/<path:path>` for Website.page
during pages listing, so reintoduce explicit handling of that crap.

Ideally it would be possible to plug in new converters per db and
create some sort of PageConverte, *or* add a reverse operation to
controllers on top of converters (-> controller-specific url
generation even with un-generable converters).

bzr revid: xmo@openerp.com-20131112120814-ekt1rzlzj06pzypw
2013-11-12 13:08:14 +01:00
Fabien Meghazi 91ac20c28c [FIX] Remove lang_code from kwargs
bzr revid: fme@openerp.com-20131112112150-ka9ner1bkqx6ioeg
2013-11-12 12:21:50 +01:00
Xavier Morel 5b0e0a343b [IMP] use pair unpacking rather than indexing + comment
bzr revid: xmo@openerp.com-20131112101559-s280ffmmc06vq23a
2013-11-12 11:15:59 +01:00
Xavier Morel 92b0539d1d [IMP] remove unused local variable in list_pages
bzr revid: xmo@openerp.com-20131112100411-r4va4xpcovnawuzr
2013-11-12 11:04:11 +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
Fabien Meghazi 1aaf0eaa4c [FIX] Multiple fixes to url_for
url_for now accepts a path or an uri
correctly handling shemeless uri's
url params are shadowed by keep_query

bzr revid: fme@openerp.com-20131106151752-sdov6zynz2g80uro
2013-11-06 16:17:52 +01:00
Fabien Meghazi 6ba57343da [WIP] Trying to use t-fields for menus
Not working quite well
Working it out

bzr revid: fme@openerp.com-20131105151651-8jn1po2fhyojum2c
2013-11-05 16:16:51 +01:00
Christophe Matthieu 49384720c0 [FIX] website contact us: add google_map_img on res.company insead of use partner_id field
bzr revid: chm@openerp.com-20131104165954-o77oi2miksvvt81r
2013-11-04 17:59:54 +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 c0dc6c81dc [FIX] qweb exception hiding
bzr revid: al@openerp.com-20131102171656-j4lqrx1gfosi8ofd
2013-11-02 18:16:56 +01:00
Fabien Meghazi 90814d781a [MERGE] upstream
bzr revid: fme@openerp.com-20131030144813-xmjb6i9ayv23aqyi
2013-10-30 15:48:13 +01:00
Fabien Meghazi 2e429fff8b [FIX] Load translation wizard could not properly redirect when only one language is installed
bzr revid: fme@openerp.com-20131030142955-482vt76w67zerui2
2013-10-30 15:29:55 +01:00
Fabien Meghazi 418e10c382 [IMP] Misc menu improvements
bzr revid: fme@openerp.com-20131030140216-f2fz7p3waur3l8j7
2013-10-30 15:02:16 +01:00
Fabien Meghazi fcdef0faaf [ADD] delete menu
bzr revid: fme@openerp.com-20131030105803-yq7r5lt9vtnd21p0
2013-10-30 11:58:03 +01:00
Fabien Meghazi 0dab848b12 [MERGE] again
bzr revid: fme@openerp.com-20131030090041-18oxwobufevh9rfm
2013-10-30 10:00:41 +01:00
Fabien Meghazi f747a84131 [BRK] Disable automatic t-href on ir.ui.view#save() that breaks most of the snippets
Temporary desactivated because this breaks most of the snippets
Need to find another way to normalize multilang urls (postprocessing) ?

bzr revid: fme@openerp.com-20131030085425-inwkihpwqmierodx
2013-10-30 09:54:25 +01:00
Fabien Meghazi 07b9cf0f02 [IMP] Save menu is working
bzr revid: fme@openerp.com-20131029143346-nu9skoj5s06hwgw6
2013-10-29 15:33:46 +01:00
Fabien Meghazi af4b4b94be [ADD] new_window field in website.menu
bzr revid: fme@openerp.com-20131029112221-7h39wlmbxb8xwm94
2013-10-29 12:22:21 +01:00
Fabien Meghazi 26e62b0e0e [IMP] Menu tree from client side
bzr revid: fme@openerp.com-20131028112350-9or1z3e3ndgk4mfg
2013-10-28 12:23:50 +01:00
Fabien Meghazi eb7b1362cd [WIP] Menu working from database (not yet multi-website)
bzr revid: fme@openerp.com-20131025152446-si9gsjujzcn40hip
2013-10-25 17:24:46 +02:00
Fabien Meghazi a597cc59ef [WIP] menus
bzr revid: fme@openerp.com-20131024141840-ihp2i6huzdlamf94
2013-10-24 16:18:40 +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
Xavier Morel 1eb3d3269c [ADD] parsing of localized date & datetime t-fields
turns out we use a bunch of them in the events section thing

bzr revid: xmo@openerp.com-20131023145729-tglusl27mt6ajwzn
2013-10-23 16:57:29 +02:00
ddm 62bdd7bd9c [FIX] Fixed eCommerce pager
bzr revid: ddm@openerp.com-20131023145152-smhlpc0eydvos7sx
2013-10-23 16:51:52 +02:00
Xavier Morel 31b059d3f6 [IMP] url t-ization
bzr revid: xmo@openerp.com-20131023090207-jto4fzz153xiqtm6
2013-10-23 11:02:07 +02:00
Fabien Meghazi fd5bae6a98 [FIX] do not normalize urls for images
bzr revid: fme@openerp.com-20131022131629-vo67pv9yqyuoe7q6
2013-10-22 15:16:29 +02:00
Xavier Morel 42f2544250 [FIX] cleanup modified arch sections before reinserting them in source arch
otherwise there are leftovers data-* attributes stored in the DB

bzr revid: xmo@openerp.com-20131022130608-jccohqlmbzvxhnzv
2013-10-22 15:06:08 +02:00
Fabien Meghazi 120620eb27 [IMP] Check current website in Load a Translation wizard
bzr revid: fme@openerp.com-20131022121840-0q1n8ci1fpihi4yf
2013-10-22 14:18:40 +02:00
Fabien Meghazi 3c87025227 [FIX] Convert url attributes to their t-(src,href,action) counterparts on ir.ui.view#save()
bzr revid: fme@openerp.com-20131022103703-cnydralsbt45i6eo
2013-10-22 12:37:03 +02:00
Xavier Morel 13777d3a79 [ADD] parsing of localized monetary t-field
bzr revid: xmo@openerp.com-20131022090843-pcr6orrumzm4hf6a
2013-10-22 11:08:43 +02:00
Xavier Morel 1687668026 [ADD] parsing of locale-formatted floats
bzr revid: xmo@openerp.com-20131022085450-mhymubsywkonepjx
2013-10-22 10:54:50 +02:00
Xavier Morel 730d0c69fe [IMP] ensure we don't unwittingly save wrongly formatted dates and datetimes
bzr revid: xmo@openerp.com-20131022073326-gxmcfd60ytq2f1oc
2013-10-22 09:33:26 +02:00
Xavier Morel 9da0ead28d [ADD] support for formatted date and datetime t-field in website
bzr revid: xmo@openerp.com-20131021152651-ner2zggjfofb5rc4
2013-10-21 17:26:51 +02:00
Xavier Morel fbd72c436a [ADD] context to t-field conversion methods
bzr revid: xmo@openerp.com-20131021082840-1tdbxhpy4ut1uoif
2013-10-21 10:28:40 +02:00
Christophe Matthieu a93a0b384b [IMP] website: traceback, node, message in page 500
bzr revid: chm@openerp.com-20131018114116-ywe7pp49f2cb0dor
2013-10-18 13:41:16 +02:00
ddm 41c49645e2 [FIX] Refactor SEO models
bzr revid: ddm@openerp.com-20131018092820-lqj9yz518262nknr
2013-10-18 11:28:20 +02:00
ddm ebdfbc58f1 [FIX] SEO for shop products
bzr revid: ddm@openerp.com-20131016160232-e5rxi1hoofm5anrw
2013-10-16 18:02:32 +02:00
Fabien Meghazi 8b78e88ff9 [FIX] Do not overwrite main_object if present
bzr revid: fme@openerp.com-20131016151257-0r42s8t3xevabfm3
2013-10-16 17:12:57 +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 fa66a101b8 [ADD] website#url_for() support for keep_query
bzr revid: fme@openerp.com-20131014151016-f6xsqxenbs5ph5ey
2013-10-14 17:10:16 +02:00
Fabien Meghazi e4edd08ad8 [IMP] Do not use main_object#name field, use website_meta_* fields
bzr revid: fme@openerp.com-20131014135647-3otn3b6q4gy3olwg
2013-10-14 15:56:47 +02:00
Xavier Morel 5c75678f94 [FIX] broken merge hidden by leftover pyc file
bzr revid: xmo@openerp.com-20131014121319-ry0s5tnpz5f21aw0
2013-10-14 14:13:19 +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
Antony Lesuisse 25a260068b [IMP] renamse files to conform to the future openerp module guidelines
bzr revid: al@openerp.com-20131013030806-2236jpszm1morlg6
2013-10-13 05:08:06 +02:00
Xavier Morel 3e349a2bf7 [ADD] conversion back from HTML to monetary field
bzr revid: xmo@openerp.com-20131011142528-oruyq6r7vf962lqn
2013-10-11 16:25:28 +02:00
Xavier Morel 1208a5bcf5 [ADD] monetary widget use in website_sale
bzr revid: xmo@openerp.com-20131011131147-plqmc1r5ok4tcrge
2013-10-11 15:11:47 +02:00
Fabien Meghazi 6a37c2fb82 [IMP] Use view 'name' as title for main_object of type ir.ui.view
bzr revid: fme@openerp.com-20131010145525-417zbwltyqzbjolz
2013-10-10 16:55:25 +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 c6c0609577 [IMP] add notes and timeout to urlopen call
bzr revid: xmo@openerp.com-20131010122652-ukjof14x2d0y3h89
2013-10-10 14:26:52 +02:00
Fabien Meghazi 119eef1a6b [FIX] Support other types in urlplus()
bzr revid: fme@openerp.com-20131010104900-r315xkg9mhox5ouf
2013-10-10 12:49:00 +02:00
Xavier Morel 9cdbe94ce5 [ADD] saving of image fields
bzr revid: xmo@openerp.com-20131010103005-mp0afaps3ssqacm8
2013-10-10 12:30:05 +02:00
Christophe Matthieu 165a9e673b [IMP] website: ir.rule: add the http secure session in the eval context for access rules evaluation.
bzr revid: chm@openerp.com-20131010090229-8cz9ophrqlayw00x
2013-10-10 11:02:29 +02:00
Christophe Matthieu 3df6e97191 [IMP] qweb, website: mark request as a private attribute (begin with underscore for render)
bzr revid: chm@openerp.com-20131010083243-kwu21zepmluq9rip
2013-10-10 10:32:43 +02:00
Xavier Morel df77956424 [IMP] urlplus
bzr revid: xmo@openerp.com-20131010062311-a8br0kaddk7dwqxl
2013-10-10 08:23:11 +02:00
Christophe Matthieu 7025274212 [FIX] website: urlplus don't accept unicode char
bzr revid: chm@openerp.com-20131009142057-y7b98wdr1zcepcj9
2013-10-09 16:20:57 +02:00
Xavier Morel eaef36c910 [FIX] move conversion code from ir.fields.converter into website.qweb structures
bzr revid: xmo@openerp.com-20131009133112-05dglhptiw019838
2013-10-09 15:31:12 +02:00
Christophe Matthieu e713cce7b9 [FIX] website: change view (lang_selected) for new qweb security access
bzr revid: chm@openerp.com-20131009132724-dza9bgu1w319o9x0
2013-10-09 15:27:24 +02:00
Fabien Meghazi 5cfbcc3aff [ADD] Add language from website
bzr revid: fme@openerp.com-20131009120904-c06nass3srpwqer4
2013-10-09 14:09:04 +02:00
Christophe Matthieu 20b6367ec5 [IMP] website_sale: better access rules and security
bzr revid: chm@openerp.com-20131008152233-zl3dxoyso9liahlm
2013-10-08 17:22:33 +02:00
Xavier Morel a3f7cfd669 [FIX] renaming of currency widget to monetary to match view
bzr revid: xmo@openerp.com-20131008122039-tzw7nq8cx0y0zh5p
2013-10-08 14:20:39 +02:00
Xavier Morel 426757ad92 [ADD] linked image fields
bzr revid: xmo@openerp.com-20131008120456-r8tqd5iyq1zfsdvi
2013-10-08 14:04:56 +02:00
Xavier Morel d8c837ef5b [IMP] promote part of the website.qweb docstring to module-level
bzr revid: xmo@openerp.com-20131008092612-oqaesax6qjl6bse0
2013-10-08 11:26:12 +02:00
Xavier Morel 510a4f51d2 [ADD] customizable qweb rendering, add translate flag on fields through this
bzr revid: xmo@openerp.com-20131008092233-9su66923zthl9jyg
2013-10-08 11:22:33 +02:00
Christophe Matthieu 1ad5e2f0f7 [IMP] website: remove website.config.settings
bzr revid: chm@openerp.com-20131003150048-elm5kiwabrh1j6gt
2013-10-03 17:00:48 +02:00
Xavier Morel ce30e7691e [IMP] move conversion out of view.save
Also, html.fromstring does weird stuff when encoding is not specified,
force to utf-8 just in case.

bzr revid: xmo@openerp.com-20130930145358-qh7xdicgg21prsk4
2013-09-30 16:53:58 +02:00