Christophe Matthieu
b958ece1df
[IMP] website_sale: access rights
...
bzr revid: chm@openerp.com-20131115152716-86wb7yxq2s4hr633
2013-11-15 16:27:16 +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
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
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
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
ddm
62bdd7bd9c
[FIX] Fixed eCommerce pager
...
bzr revid: ddm@openerp.com-20131023145152-smhlpc0eydvos7sx
2013-10-23 16:51:52 +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
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
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
fa66a101b8
[ADD] website#url_for() support for keep_query
...
bzr revid: fme@openerp.com-20131014151016-f6xsqxenbs5ph5ey
2013-10-14 17:10:16 +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
Fabien Meghazi
119eef1a6b
[FIX] Support other types in urlplus()
...
bzr revid: fme@openerp.com-20131010104900-r315xkg9mhox5ouf
2013-10-10 12:49:00 +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
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
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
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