Commit Graph

88004 Commits

Author SHA1 Message Date
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
xmo-odoo 707366313c [FIX] small typo in readme
fixes #39
2014-05-18 17:24:22 +02:00
xmo-odoo 59354d5bf3 [IMP] remove setting of color.ui
After further considering PR #21's arguments, the setup script should
not go around setting `color.ui`:

* it shouldn't be needed for recent gits with default compile
  settings[0]
* it may override advanced users's own colour configuration/
  customisations (or disabling)
* it forces default colours on users for which it may be useless
  (colour- blind) or even detrimental (other vision impairments)
* some linux distributions apparently default to idiotic pagers which
  can't handle ANSI colour codes by default and spew garbage to the
  terminal

[0] https://github.com/git/git/blob/master/Documentation/RelNotes/1.8.4.txt#L178-L180
2014-05-17 11:44:09 +02:00
odony c771d1ae20 Merge pull request #12 from rdeheele/master
[FIX] Issue #11: fix spelling of model name in account_budget wizard, courtesy of Romain Deheele
2014-05-16 19:50:50 +02:00
xmo-odoo 31e89ca6d0 [FIX] Turns out process substitution is not POSIX
A pipe does not work because the script asks questions, and required
parameters would miss the point.
2014-05-16 19:01:09 +02:00
Romain Deheele 88d7ebc382 fix #11: fix spelling of model name in account_budget wizard 2014-05-16 16:58:34 +02:00
xmo-odoo dcf326ab61 Merge pull request #9 from xmo-odoo/gitignore
[ADD] convert bzrignore to gitignore
2014-05-16 16:10:13 +02:00
Xavier Morel e1d14f593b [ADD] convert bzrignore to gitignore 2014-05-16 16:05:39 +02:00
xmo-odoo 8cdcf0bdca [IMP] simplify color configuration
* don't set globally
* set for ui, not each command individually
2014-05-16 15:11:40 +02:00
odony 4b4b452cad Update README.md
[IMP] Move migration instructions on top, remove cruft
2014-05-16 13:31:48 +02:00
xmo-odoo 067469f8db [FIX] quick-setup command
Prompts don't work with curl | sh as the stdin gets filled with the nothing out of curl
2014-05-16 11:34:43 +02:00