Re: [tryton] Use tryton as a framework

141 views
Skip to first unread message

Raimon Esteve

unread,
Sep 27, 2012, 2:15:20 AM9/27/12
to try...@googlegroups.com
2012/9/26 Valentin Hapiot <vha...@gmail.com>
Can I install a database from command line or proteus without all the ir.ui.* and ir.action.* tables ?

I don't understand why you need to install tryton server without this tables. Can you explain it?

The names of this tables is "Internal Resource". Tryton need this tables to install all system. For example, ir_ui_menu you have all Tryton menus. When tryton is installed, there are some menus are added, for example, Administration and their menu chills.

After, when you install some modules, XML add information in ir* tables. You need this tables.

--
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que integri el text al cos del missatge. Pot respondre usant NetEtiquete que li ajudarà a seguir la conversa. http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que integre el texto en el cuerpo del mensaje. Puede responder usando NetEtiquete que le ayudará a seguir la conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and paste only the text you need to send into the body of your mails. Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

zodman

unread,
Sep 27, 2012, 7:19:00 AM9/27/12
to try...@googlegroups.com
> --
> --
> try...@googlegroups.com mailing list
>
>
>

You can use:

http://nereid.openlabs.co.in/docs/

Nicolas Évrard

unread,
Sep 27, 2012, 8:47:39 AM9/27/12
to try...@googlegroups.com
* Valentin Hapiot [2012-09-27 14:30 +0200]:
>On Thursday, September 27, 2012 8:15:21 AM UTC+2, raimonesteve wrote:
>>
>> 2012/9/26 Valentin Hapiot <vha...@gmail.com <javascript:>>
>>
>>> Can I install a database from command line or proteus without all the
>>> ir.ui.* and ir.action.* tables ?
>>>
>>
>> I don't understand why you need to install tryton server without this
>> tables. Can you explain it?
>>
>
>I don't understand why my original message was lost but there was an
>explanation about why I do want to do that.

For my own curiosity what do you want to use tryton for?

>In short, I want to use tryton as a framework, but I only need the object
>model and low level functionalities (res.users, cron, ...).
>I don't need all the UI stuff. There will never be a client connected to
>the database, thus no action triggered, ...

I am afraid the easiest way is to ignore the ir.ui stuff, you will
have some tables filled with useless stuff but the amount of disk
space wasted is little wrt the business data you will create.

--
Nicolas Évrard

B2CK SPRL
rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
E-mail/Jabber: nicolas...@b2ck.com
Website: http://www.b2ck.com/
signature.asc

Sharoon Thomas

unread,
Sep 27, 2012, 8:49:47 AM9/27/12
to try...@googlegroups.com
On Sep 27, 2012, at 6:03 PM, Valentin Hapiot <vha...@gmail.com> wrote:

Thank you but I don't want Flask either. I just want the barebones.

In nereid, do you know if they stripped the UI stuff or just ignore them ? 


In nereid we ignore it (and use it) depending on the situation.

I think the best course of action would be to ignore it as it may not be worth the 
pain to remove ui.x models/module.

If you explain your reasoning for why you want to remove the module we might 
be able to offer better suggestions.

Thanks

Sharoon Thomas
Openlabs Technologies & Consulting (P) Limited

m: +1 813.793.6736 (OPEN) Extn. 200
t: @sharoonthomas 

- We CARE for our customers

Nicolas Évrard

unread,
Sep 28, 2012, 7:16:37 AM9/28/12
to try...@googlegroups.com
* Valentin Hapiot [2012-09-28 13:03 +0200]:

>>
>> For my own curiosity what do you want to use tryton for?
>>
>
>Nothing precise, but for some project I'm reviewing the persistance
>solutions available and I'm considering tryton for the moment

If you're looking only for data persistance then I would take a look
at sqlalchemy because tryton comes with a lot more than just data
persistance.
signature.asc

Valentin Hapiot

unread,
Sep 30, 2012, 5:16:26 PM9/30/12
to try...@googlegroups.com
> If you're looking only for data persistance then I would take a look
> at sqlalchemy because tryton comes with a lot more than just data
> persistance.

I like the object model on tryton so I need more than persistance indeed.

BTW, in my original message that has been lost, I also asked if there
was a way to create a database from command line ?

Jean Cavallo

unread,
Oct 1, 2012, 3:22:16 AM10/1/12
to try...@googlegroups.com
BTW, in my original message that has been lost, I also asked if there
was a way to create a database from command line ?


The "-d" option on the server (trytond) command should allow you to do so.

You also can use proteus, which is a tool that directly connects to the tryton server
and allows you to do almost everything you would do with the client, and create dbs


Jean

Sharoon Thomas

unread,
Oct 1, 2012, 3:27:51 AM10/1/12
to try...@googlegroups.com
On Oct 1, 2012, at 12:52 PM, Jean Cavallo <jean.c...@coopengo.com> wrote:


BTW, in my original message that has been lost, I also asked if there
was a way to create a database from command line ?



If you already have a database created (empty) and you want to initialize, you can 
use the following command:

$ trytond -c etc/trytond.conf -d <db-name> -i all

Thanks,
Reply all
Reply to author
Forward
0 new messages