A Diumenge, 19 de febrer de 2012 23:55:49, Cédric Krier va escriure:
> On 18/02/12 18:34 +0100, Albert Cervera i Areny wrote:
> > Of course, any help, comments or input on their syntax and features will
> > be very welcomed.
>
> I think the syntax for menu could be more generic to allow to retreive
> any field value of a xml record. (perhaps it is also possible to merge
> it with the fields).
Initially I thought we could add another directive for that, mainly to add
some flags for menu-specific needs. But it should actually quite simple by
using:
.. xml_id:: ir.menu_cron_form/name
or
.. xml_id:: ir.menu_cron_form/complete_name
> For inline usage, why not using the same syntax as sphinx inline. It
>
> could be something like:
> :field:`ir.cron/user`
What you suggest is named a role in sphinx terms. When I looked at the docs to
find out how to implement this, my understanding was that I needed a Directive
instead but I may be wrong. Will take a look at this.
> Also I'm wondering if all the directive should not have a prefix to
> prevent collision with other extensions, perhaps: tryfield, tryview...
I also thought about it, but decided not to do it this way because haven't
seen other modules doing adding any kind of prefix. That said, if we eventually
join menu and fields, we will probably want that to make it more
understandable. Such as 'tryref' or something like this.
--
Albert Cervera i Areny
http://www.NaN-tic.com
Tel: +34 93 553 18 03
http://twitter.com/albertnan
http://www.nan-tic.com/blog
--
[email protected] mailing list