Commit Graph

117 Commits

Author SHA1 Message Date
Nicolas Martinelli b40cb12626 [FIX] website_blog: return correct main_object
If the main object is not set, the default object used is 'ir.ui.view'.
One of the consequence is that website SEO metadata will be stored on
'ir.ui.view' instead of the correct model, in this case 'blog.blog'.
This will cause the SEO metadata to be the same for all the blogs.

opw-651898
2015-10-26 08:38:19 +01:00
Goffin Simon 998ea74c64 [FIX] website_blog: public user comments
When the public user comments the website, he will be redirected
to the login page and his comment will be posted with his logged
user name.

opw:643412
2015-07-02 10:44:50 +02:00
Jeremy Kersten b2aa9c8429 [FIX] website_blog: duplicate blog via front end.
Traceback because id was not casted: AccessError: ('AccessError', u"Database fetch misses ids (u'1') and has extra ids (1), may be caused by a type incoherence in a previous request")
2015-02-20 16:19:34 +01:00
Ravi Gohil 6451a553c0 [FIX] website_blog: next post looping when last post
The next post button at the bottom of an article was stuck when getting to
the last page. A cookie storing the *all* the visited posts was used
to determine the next one according to a non-stored (so not working) and
unexpected criteria 'ranking'. Also could get articles from other blog.

Instead of this whole broken logic, simple loop through articles by classic
order and go back to first one when at the end.
Better looping algorithm can be used in master where ranking is stored.
Fixes #3097, opw 614559
2015-01-30 17:05:22 +01:00
Jeremy Kersten b21b32ed2e [FIX] website_blog: Show tag by blog. No interest to display all tag, anyway the search by tag is done for the current blog 2014-12-02 11:35:29 +01:00
Amit Vora 4bf9dc4078 [IMP] [FIX] website_blog: better follow mechanism. Now people following
a blog will receive notifications only for published posts. They
will not receive all comments of all posts anymore.
When commenting a post users will receive the answers.

Added tests to try to test this behavior.
2014-11-28 15:12:14 +01:00
Jeremy Kersten db20a45186 [IMP] website_blog: group the get_discussion in one request(get_discussionS), that will avoid to make one request by paragraph in blog. 2014-07-29 12:05:50 +02:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Christophe Simonis a756b82372 [MERGE] forward port of branch saas-4 up to revid bb26dea 2014-05-20 20:19:55 +02:00
Christophe Simonis d93f628c72 [MERGE] merge bzr saas-4 addons branch 2014-05-20 17:12:01 +02:00
Thibault Delavallée 5a15b58a3b [FIX] website_blog: order archives by date desc 2014-05-19 11:14:30 +02:00
Richard Mathot (OpenERP) 8145c52dea [FIX] website_blog: display blog posts in anti-chronological order 2014-05-14 16:11:46 +02:00
Fabien Meghazi c3cfc4bc32 [MERGE] sitemap backport, merge trunk from 9438 til 9440
merge from 9438 revid:fp@tinyerp.com-20140511115231-g8ke14r9iepyypv4 til 9440 revid:fp@tinyerp.com-20140511143314-nzn1239l00arbxjq
2014-05-13 16:38:31 +02:00
Fabien Meghazi 8eed143112 [IMP] Invert multilang logic in route decorator. True by default, can be set to False explicitlty 2014-05-13 11:35:45 +02:00
Olivier Dony 4cecbd919f [FIX] mass_mailing,website*,survey: leftover calls to website.get_public_user()
This method was (partially) removed at rev.9421 
rev-id al@openerp.com-20140507153223-q73u5lhyrfw98o3a

bzr revid: odo@openerp.com-20140512103935-o0ue9wzenm5wjejq
2014-05-12 12:39:35 +02:00
Fabien Pinckaers 54d30d5194 [IMP] clean sitemap, enumerate pages + fixes
bzr revid: fp@tinyerp.com-20140511115231-g8ke14r9iepyypv4
2014-05-11 13:52:31 +02:00
Thibault Delavallée 6c6885d7fa [IMP] website_blog: always have a next_post, even a visited one, it you have at least
2 posts.

bzr revid: tde@openerp.com-20140408134728-fy4mbsuetwksa76v
2014-04-08 15:47:28 +02:00
Thibault Delavallée 5dac705c1a [IMP] website_blog: enable_editor + slugify URLs in order to be directly
in edit mode when creating a new blog.

bzr revid: tde@openerp.com-20140408134115-125vtpmtikdd2u26
2014-04-08 15:41:15 +02:00
Thibault Delavallée 8f105b6624 [IMP] website_blog: path computation (unique key) for paragraphs in medium-like blogs
is now done server-side and stored directly in the html content, as post processing.
The front-end attaches messages based on the attribute data-chatter-id, but do not
compute the attribute itself anymore.
Misc cleaning of code.

bzr revid: tde@openerp.com-20140403112656-ane3ovhh70qdc8b4
2014-04-03 13:26:56 +02:00
Thibault Delavallée 045157170a [IMP] website_blog: update templates to use the contact widget, allowing to
display partner-related stuff without having to tweak the access rights.
Misc update of templates due to some filed renaming.
Added author field on the blog, allowing to avoid having issues with
create_uid field.

bzr revid: tde@openerp.com-20140402140200-a3g0750akro2n12v
2014-04-02 16:02:00 +02:00
ajay javiya (OpenERP) 7126bc5b50 [MERGE] : with trunk and resolve conflicts
bzr revid: aja@tinyerp.com-20140401132534-owbxvwqo6qpodw7e
2014-04-01 18:55:34 +05:30
Thibault Delavallée 76141aaecf [FIX] website_blog: who wrote such stupid domains ?
bzr revid: tde@openerp.com-20140401095430-tn2i94o1bmdvevgd
2014-04-01 11:54:30 +02:00
Thibault Delavallée e29e6dfe26 [CLEAN] website_blog :code cleaning in added code
bzr revid: tde@openerp.com-20140401092826-gf9f365bn4wu8mk3
2014-04-01 11:28:26 +02:00
Thibault Delavallée 6a4e52f272 [IMP] website_blog: use 2 different URL schemes (post and blog), to ease url use in templates
bzr revid: tde@openerp.com-20140401092026-2patc88e0xu6ghyx
2014-04-01 11:20:26 +02:00
Thibault Delavallée e6bcc1111e [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140401084304-mnbcx1agdzdptyyf
2014-04-01 10:43:04 +02:00
ajay javiya (OpenERP) 844e010a3d [REM] : unused import
bzr revid: aja@tinyerp.com-20140401061146-gxavo2gi25oi82yk
2014-04-01 11:41:46 +05:30
ajay javiya (OpenERP) 138f5d7f32 [MERGE] : with trunk and resolve conflicts
bzr revid: aja@tinyerp.com-20140401052801-4483i0z0ivmrwsbn
2014-04-01 10:58:01 +05:30
Thibault Delavallée 2555249fbb [IMP] website_blog: url helper defintiion + use; still blog posts to fix.
bzr revid: tde@openerp.com-20140331152711-yg34m7klexuu6v8t
2014-03-31 17:27:11 +02:00
chm@openerp.com 0162ee6aff [FIX] website_blog: order of blog_post must be by create_date
bzr revid: chm@openerp.com-20140331144140-hjokx0g6jklxp18m
2014-03-31 16:41:40 +02:00
ajay javiya (OpenERP) 4931eae3c1 [REM] : archive related changes
-> remove routes related to date on blog method

bzr revid: aja@tinyerp.com-20140328112008-8mhxvqxs8g1ui2mn
2014-03-28 16:50:08 +05:30
ajay javiya (OpenERP) 660c812786 [IMP] : ranking and visits management
bzr revid: aja@tinyerp.com-20140328063523-ttuhcai8aybtbmk0
2014-03-28 12:05:23 +05:30
ajay javiya (OpenERP) 68a1b4244f [FIX] : WARNING trunk-medium openerp.osv.expression: The domain term '('blog_id', '=', [1])' should use the 'in' or 'not in' operator.
bzr revid: aja@tinyerp.com-20140328051020-gvvlytg2pgqet5nv
2014-03-28 10:40:20 +05:30
ajay javiya (OpenERP) 287e92bca7 [ADD] : pager on blog list
[FIX] :archive navigation does not work 
[REM] : BYPAGE in blogs method and use existing _blog_post_per_page

bzr revid: aja@tinyerp.com-20140327111024-7nm1kbs74kqtcmrv
2014-03-27 16:40:24 +05:30
ajay javiya (OpenERP) e5f0562265 [REM] : unsed import
-> author_iamge field
[IMP] : odrder of imports
 -> mechanism to post for anonymus user

bzr revid: aja@tinyerp.com-20140327072334-4wwt7ady4vmam91e
2014-03-27 12:53:34 +05:30
ajay javiya (OpenERP) b5ffa0f83b [IMP]: code
bzr revid: aja@tinyerp.com-20140326073057-d60x28qqizy2l3u9
2014-03-26 13:00:57 +05:30
ajay javiya (OpenERP) 864892d6ce [MERGE] : with trunk
bzr revid: aja@tinyerp.com-20140326054841-9yoaub8fw058vjkm
2014-03-26 11:18:41 +05:30
ajay javiya (OpenERP) 52e527c518 [IMP]: code
bzr revid: aja@tinyerp.com-20140325132042-sr9mcr4jv51wp0vw
2014-03-25 18:50:42 +05:30
ajay javiya (OpenERP) bac460d5bd [IMP] : ask name and email to anonymus user
-> write name as author instead of anonymus in inline discussion
[ADD] :add 'publish/unpublish' feature on inline comments
[FIX] : nline discuss does not work on smaller devices

bzr revid: aja@tinyerp.com-20140325110428-sxvcsq2wdkptr3m3
2014-03-25 16:34:28 +05:30
Fabien Pinckaers f51a366ea7 [IMP] anonymous for website_blog
bzr revid: fp@tinyerp.com-20140323195531-84hnzo5f950r4eg7
2014-03-23 20:55:31 +01:00
Fabien Pinckaers 97efe98251 [IMP] algo for next blog post
bzr revid: fp@tinyerp.com-20140322224209-6lvldkhad10y8rd0
2014-03-22 23:42:09 +01:00
Fabien Pinckaers 48afa1fac7 [IMP] security improvement, removing empty doc
bzr revid: fp@tinyerp.com-20140322221507-4xya3el8uxsvkfdz
2014-03-22 23:15:07 +01:00
Fabien Pinckaers 552222b14a [IMP] ranking of blogs
bzr revid: fp@tinyerp.com-20140322213914-8f09g4k7p3lroehj
2014-03-22 22:39:14 +01:00
Fabien Pinckaers e740be4418 [IMP] renamed controllers
bzr revid: fp@tinyerp.com-20140322212113-9naxywttg3x6ufja
2014-03-22 22:21:13 +01:00
Fabien Pinckaers 3447004533 [IMP] better selection of next, cleaned controller
bzr revid: fp@tinyerp.com-20140322211623-iogji6lq47er0rm7
2014-03-22 22:16:23 +01:00
Fabien Pinckaers a9c62bfbb0 [IMP] remove history + js fixes
bzr revid: fp@tinyerp.com-20140322185058-lm3r3ktlwkskc4q3
2014-03-22 19:50:58 +01:00
Fabien Pinckaers d03a8e8fcd [IMP] removed history wizard, avatar handling
bzr revid: fp@tinyerp.com-20140322175329-s0uum9gircwryg09
2014-03-22 18:53:29 +01:00
ajay javiya (OpenERP) 509588710d [IMP][REM] : improve code and remove unwated changes
bzr revid: aja@tinyerp.com-20140318104723-zhw8h01tk6v46ev3
2014-03-18 16:17:23 +05:30
chm@openerp.com d5ddf5152c [FIX] website: remove backslash from redirect with enable_editor
bzr revid: chm@openerp.com-20140314180029-iaeq4i6735pcw100
2014-03-14 19:00:29 +01:00
chm@openerp.com 353bbdc2c3 [FIX] website: route and redirect: remove all backslash from url
bzr revid: chm@openerp.com-20140314162346-25vohj6ayp65tgiy
2014-03-14 17:23:46 +01:00
Mahendra Barad (OpenERP) 1a9096d2ef [IMP]improved content share add author_name in share
bzr revid: mba@tinyerp.com-20140314123412-5v20p2a8ym7dqpkr
2014-03-14 18:04:12 +05:30