Commit Graph

88016 Commits

Author SHA1 Message Date
xmo-odoo 201701f38c Merge pull request #38 from cysnake4713/master
[FIX] report set_html_image error
2014-05-19 11:40:53 +02:00
xmo-odoo 072485799c Merge pull request #27 from lyinfo/master-ck-match
Dereferencing of nones could lose error messages during import
2014-05-19 10:18:27 +02:00
xmo-odoo 59101be73b Merge pull request #44 from xmo-odoo/master-gitignore
[FIX] missing gitignore server rules
2014-05-19 10:16:44 +02:00
Xavier Morel f1416728e7 [FIX] port trunk bzrignore to gitignore
previous port only had the web client's rules
2014-05-19 10:14:41 +02:00
xmo-odoo 3571a3dcc3 Merge pull request #43 from xmo-odoo/website-tutorial
First howto: tutorial to basic website features (dev-wise)
2014-05-19 09:55:22 +02:00
xmo-odoo 5313714530 [FIX] replace a few more references to trunk with master 2014-05-19 09:48:28 +02:00
xmo-odoo 24d594ab94 [FIX] mainline branch is called master in git 2014-05-19 09:32:53 +02:00
Xavier Morel cab23933e3 [IMP] wording/section conclusion 2014-05-19 08:44:48 +02:00
Xavier Morel b6f6e9d3a3 [ADD] move data from custom objects to standard 2014-05-19 08:44:29 +02:00
Xavier Morel ddf24b3ab6 [ADD] reuse of existing openerp stuff 2014-05-19 08:32:23 +02:00
Xavier Morel 9cefa76988 [ADD] hasclass() xpath function
Server-side, view extension is done via xpath. This includes "template" views
full of HTML.

HTML elements often have a bunch of classes, sometimes even semantic
(!). XPath is generally great, but specifically lousy at dealing with
space-separated values: in standard XPath 1.0 to know if an element has a
class 'foo' the predicate is:

    contains(concat(' ', normalize-space(@class), ' '), ' foo ')

and this has to be fully duplicated if there's a second class involved.

Things are slightly better with EXSLT/XPath 2.0 and tokenize, but still not
great:

    tokenize(@class, '\s+') = 'foo'

and the equality check is very weird when unaware of XPath's evaluation rules.

``hasclass`` makes this much simpler to deal with: to get any ``foo`` node
with the class ``bar`` is as simple as:

    //foo[hasclass('bar')

and it can take multiple class, as with e.g. jquery it will return elements
with all specified classes.

Beware though, the predicate function will be called once for each element to
check, since it's implemented in pure python and not profiled elements should
be filtered as much as possible before this point.
2014-05-19 08:32:23 +02:00
Xavier Morel 9a1413576a [ADD] forgotten images, new patches/howto sections 2014-05-19 08:32:22 +02:00
Xavier Morel 43523d4e35 [FIX] add xmlid to lectures so they don't get duplicated on -i updates 2014-05-19 08:32:22 +02:00
Xavier Morel 2f260932f3 [REM] more todos: fixed by using -i to update the module 2014-05-19 08:32:21 +02:00
Xavier Morel 44a1ed5a1f [FIX] remove fixed todos, fix incorrect t-field use 2014-05-19 08:32:21 +02:00
Xavier Morel fdb6218f44 [FIX] website features integration section 2014-05-19 08:32:20 +02:00
Xavier Morel 85a3fcf510 [REM] run-through of advanced editor thing features, should be in a different document 2014-05-19 08:32:20 +02:00
Xavier Morel 108afd98de [FIX] reload instruction 2014-05-19 08:32:19 +02:00
Xavier Morel c5ba0a5818 [FIX] incorrect offsets in patchfile 2014-05-19 08:32:19 +02:00
Xavier Morel b9a1879a74 [IMP] step through *working* instructions in the first section 2014-05-19 08:32:18 +02:00
Xavier Morel 5f7be30a2f [IMP] clarify initial instructions, autogen directory if does not exist 2014-05-19 08:32:17 +02:00
Xavier Morel d3268420ae [IMP] slightly simplify first code snippet 2014-05-19 08:32:17 +02:00
Xavier Morel 8bcc42d4d0 [FIX] effect name change for generated controller and model onto doc 2014-05-19 08:32:16 +02:00
Xavier Morel 729258ed9d [IMP] scaffold: use the module name for the first controller and model 2014-05-19 08:32:16 +02:00
Xavier Morel 6dcf6bb6bc [CHG] remove flask theme, add sphinx-bootstrap 0.3.8 2014-05-19 08:32:15 +02:00
Xavier Morel cf833a2f53 [FIX] don't blockquote a list of stuff for no reason 2014-05-19 08:32:14 +02:00
Xavier Morel 290883ab2f [FIX] fixed ta controller parameter in wrong patch 2014-05-19 08:32:14 +02:00
Xavier Morel be1fe080c9 [FIX] ta controller parameter 2014-05-19 08:32:13 +02:00
Xavier Morel a416ca66d0 [REM] remove fixed/updated todos 2014-05-19 08:32:13 +02:00
Xavier Morel fdc63e3a67 [IMP] some titles, move auth=public from website-dependency to website-layoutify
auth=public is not necessary to depending on website, however rendering within website/website's layout blows up if there is no current user
2014-05-19 08:32:12 +02:00
Xavier Morel c9d4371119 [FIX] howto code samples 2014-05-19 08:32:12 +02:00
Xavier Morel cfc7015355 [FIX] templating section, some wording 2014-05-19 08:32:11 +02:00
Xavier Morel 66d8934802 [FIX] correctly handle get_inheriting_views_arch when uid=None 2014-05-19 08:32:10 +02:00
Xavier Morel 0ea465e8a3 [IMP] simplify howto wording, add modules directory (output) to scaffold 2014-05-19 08:32:10 +02:00
Xavier Morel 68eb0983f6 [ADD] improved scaffolding, controllers scaffolding
alter tutorial module to use scaffolded structure
2014-05-19 08:32:09 +02:00
Xavier Morel f41fde480d [FIX] rST warnings & errors 2014-05-19 08:31:09 +02:00
Xavier Morel 275c612dbb [IMP] move data to demo, action and menus 2014-05-19 08:23:16 +02:00
Xavier Morel 6d25d63981 [ADD] lectures model, demonstrate date fields & options 2014-05-19 08:23:15 +02:00
Xavier Morel 8a73978063 [FIX] use format_date for date fields 2014-05-19 08:23:15 +02:00
Xavier Morel 80f03b2604 [IMP] source formatting: fill-paragraph to 78
leaves a bit of room for diff mark & a small gutter in a 80c system
2014-05-19 08:23:15 +02:00
Xavier Morel b2a7516522 [ADD] explain reason for new working model 2014-05-19 08:23:14 +02:00
Xavier Morel 125d1586b0 [ADD] models intro 2014-05-19 08:23:14 +02:00
Xavier Morel 10fd3d201f [IMP] some doc wording, remove profane comment 2014-05-19 08:23:14 +02:00
Xavier Morel a4363385ab [ADD] website introduction 2014-05-19 08:23:14 +02:00
Xavier Morel 864f4e5805 [ADD] plan 2014-05-19 08:23:13 +02:00
Xavier Morel 22dd1a488c [IMP] notes 2014-05-19 08:23:13 +02:00
Xavier Morel c2d5bf1bc3 [ADD] tutorial beginning
blocked at introducing qweb template, ir.qweb lives in the registry but nodb -> no database
with --db-filter there's a database in the session (kinda) but need to fetch it and manually get the corresponding registry...
2014-05-19 08:23:13 +02:00
Xavier Morel 50c5a23dec [ADD] doc files lost during git conversion 2014-05-19 08:23:13 +02:00
gbisheimer 44bc1b482d Merge 8c8edf0f97 into 707366313c 2014-05-18 18:33:34 +00:00
xmo-odoo 707366313c [FIX] small typo in readme
fixes #39
2014-05-18 17:24:22 +02:00