On 16/02/13 02:41 -0800, Phi wrote:
> My main difficulty one is regarding the xml files, their syntax and 
> structure (cross-references between the "classes" of objects).
> So for me it's quite difficult to deal with these, and i cannot find a 
> sensible intellectual representation. I could not find much documentation 
> also to help.

First becareful, there are two kinds of XML in Tryton:

- The first follow this syntax [1] is used to create records in the
  database. Those records are readonly by default so it is not to use
  for initial import of data but for programmatic needs.

- The second (view) [2] are used to describe the GUI to the client. It
  is not for away of HTML in some way. More information here [3].
  But a common misunderstanding is that to register a view, you need to
  create a record in the database (the first kind of XML).

> The developers who have worked with Tryton claimed that one needs to work 
> in a very incremental manner, testing any small step, rolling back as soon 
> as something breaks, which i find not satisfying.

Seem a logical approach "trial and error".

> In short: first i'd like to understand what motivated the choice of xml for 
> representing GUI,

Because it is a format that fit well to describe a GUI, see HTML or Glade.

> and their underlying schemas (they are remarkably "flat").

I don't understand.

> Second, i'm wondering if that would be an option in short term to be able 
> use directly plain Python as the representation language for the same 

Plain Python will make the client no more language independent.

> things, like, for example, in Django (forms, wizards, etc).

I don't understand. Django generate HTML which is a kind of subset of
XML. The big difference is that in Tryton we use a static description of
the UI when Django use a templating language to generate a HTML for each
view.
So with Tryton, the client just fetch the XML that describe how to
display a kind of record (Model) then it just fetch the data and never
again the UI description.

[1] http://hg.tryton.org/trytond/file/tip/trytond/tryton.rnc
[2] http://hg.tryton.org/trytond/file/tip/trytond/ir/ui
[3] http://doc.tryton.org/2.6/trytond/doc/topics/views/index.html#topics-views

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpmv6ueR0Goh.pgp
Description: PGP signature

Reply via email to