IRC logs of #tryton for Thursday, 2010-07-15

chat.freenode.net #tryton log beginning Thu Jul 15 00:00:01 CEST 2010
2010-07-15 00:22 -!- zodman(~Miranda@67.223.236.231) has joined #tryton
2010-07-15 01:10 -!- heffer(~felix@fedora/heffer) has joined #tryton
2010-07-15 04:09 -!- yangoon(~mathiasb@p549F641E.dip.t-dialin.net) has joined #tryton
2010-07-15 05:04 -!- woakas(~woakas@pcsp163-59.supercabletv.net.co) has joined #tryton
2010-07-15 05:09 -!- zodman(~zodman@foresight/developer/zodman) has joined #tryton
2010-07-15 05:13 -!- digitalsatori(~tony@116.233.240.151) has joined #tryton
2010-07-15 05:19 -!- yangoon(~mathiasb@p549F60F5.dip.t-dialin.net) has joined #tryton
2010-07-15 05:22 -!- gremly(~gremly@201.244.197.189) has joined #tryton
2010-07-15 06:06 -!- plantian(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton
2010-07-15 06:57 -!- mr_amit(~amit@117.254.22.27) has joined #tryton
2010-07-15 07:19 -!- Timitos(~timitos@88.217.184.172) has joined #tryton
2010-07-15 07:50 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-07-15 08:53 -!- ohuisman(~ohuisman@62.58.29.41) has joined #tryton
2010-07-15 08:55 -!- ohuisman(~ohuisman@62.58.29.41) has left #tryton
2010-07-15 09:05 -!- digitalsatori(~tony@116.233.240.151) has joined #tryton
2010-07-15 09:05 -!- eLBati(~elbati@94.161.73.99) has joined #tryton
2010-07-15 09:10 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-07-15 09:30 -!- paepke(~paepke@p5B32C711.dip.t-dialin.net) has joined #tryton
2010-07-15 10:05 -!- bechamel(~user@chimie-prtx11.scf.fundp.ac.be) has joined #tryton
2010-07-15 11:13 -!- sharkcz(~sharkcz@2001:15c0:6747:160::7) has joined #tryton
2010-07-15 11:14 -!- eLBati(~elbati@94.161.73.99) has joined #tryton
2010-07-15 11:14 <cedk> Timitos: could you answer to issue1615 ?
2010-07-15 11:18 -!- preC(~preCTWO@orkan.Informatik.Uni-Oldenburg.DE) has joined #tryton
2010-07-15 11:18 -!- Milyardo(~zpowers@c-98-209-86-19.hsd1.mi.comcast.net) has joined #tryton
2010-07-15 11:22 <Timitos> cedk: i am a little bit in a hurry. will try to do it
2010-07-15 11:44 -!- paepke(~paepke@p5B32C711.dip.t-dialin.net) has joined #tryton
2010-07-15 12:16 -!- paepke_(~paepke@p4FEB2088.dip0.t-ipconnect.de) has joined #tryton
2010-07-15 13:46 -!- ohuisman(~ohuisman@62.58.29.41) has joined #tryton
2010-07-15 13:48 -!- ohuisman(~ohuisman@62.58.29.41) has joined #tryton
2010-07-15 13:50 -!- ohuisman(~ohuisman@62.58.29.41) has joined #tryton
2010-07-15 13:51 -!- ohuisman(~ohuisman@62.58.29.41) has joined #tryton
2010-07-15 13:52 -!- ohuisman(~ohuisman@62.58.29.41) has joined #tryton
2010-07-15 13:53 -!- ohuisman(~ohuisman@62.58.29.41) has joined #tryton
2010-07-15 14:01 -!- juanfer(~juanfer@201.245.237.114) has joined #tryton
2010-07-15 14:16 -!- eLBati(~elbati@94.162.110.248) has joined #tryton
2010-07-15 14:32 -!- ohuisman(~ohuisman@62.58.29.41) has joined #tryton
2010-07-15 14:34 -!- ohuisman(~ohuisman@62.58.29.41) has left #tryton
2010-07-15 15:47 -!- woakas(~woakas@pcsp163-59.supercabletv.net.co) has joined #tryton
2010-07-15 16:00 -!- zodman(~Miranda@67.223.236.231) has joined #tryton
2010-07-15 16:09 -!- pepeu(~manuel@201.155.193.192) has joined #tryton
2010-07-15 16:20 -!- tekknokrat(~lila@dslb-188-102-049-029.pools.arcor-ip.net) has joined #tryton
2010-07-15 16:26 -!- juanfer(~juanfer@201.245.237.114) has joined #tryton
2010-07-15 16:44 <pepeu> cedk, I'm looking to make a POS that PyQt can be used in OpenERP and Tryton
2010-07-15 16:46 <cedk> pepeu: great
2010-07-15 16:46 <cedk> pepeu: not sure about PyQt (almost because I know well GTK)
2010-07-15 16:48 <cedk> pepeu: why is your pro for PyQt?
2010-07-15 16:54 <cedk> pepeu: What is your por for PyQt?
2010-07-15 16:57 <pepeu> cedk, easy?
2010-07-15 16:57 <pepeu> I would like with GTK but ...
2010-07-15 17:00 <pepeu> the environment is like most colorful
2010-07-15 17:09 <cedk> pepeu: don't understand last sentence
2010-07-15 18:01 -!- juanfer(~juanfer@201.245.237.114) has joined #tryton
2010-07-15 18:21 -!- plantian(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton
2010-07-15 18:45 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-07-15 19:38 -!- pheller(~pheller@c1fw231.constantcontact.com) has joined #tryton
2010-07-15 19:38 <pheller> hello, anyone here?
2010-07-15 19:44 <plantian> hi
2010-07-15 19:44 <pheller> Hi there.... curious if you're a user, developer, or both?
2010-07-15 19:46 <plantian> I guess I'm more of a developer, I used tryton for the business I work for to do simple inventory and sales tracking.
2010-07-15 19:48 <pheller> do you do much in the way of workflow?
2010-07-15 19:49 <pheller> I've been working with openerp for awhile now (casually over the past 5 or so years, but for an actual work project in the past 3 months or so)
2010-07-15 19:50 <pheller> anyways, I find the openerp community isn't all that helpful. I'm wondering if the Tryton community is.... that is, if I posted a question regarding workflow to the group, what are the chances someone would offer assistance....
2010-07-15 19:50 <plantian> Yeah I don't know, what do you mean by "workflow". Like adding screens and whatnot ?
2010-07-15 19:51 <plantian> Well I actually chose tryton because irc seemed more active, the website made sense and the code quality looked a lot better.
2010-07-15 19:52 <pheller> workflow is basically the order of states which a document can be in. For instance, a shipment could be "waiting for stock picking", "picked", "creating shipment with UPS", "tracking number received from UPS", "given to UPS for delivery".
2010-07-15 19:53 -!- juanfer(~juanfer@201.245.237.114) has joined #tryton
2010-07-15 19:53 <pheller> Some of those tasks are dependent on other tasks (i.e., the "stock picking"), whereas some other tasks might represent some API call to another system (i.e., "creating shipment with UPS")
2010-07-15 19:55 <pheller> anyhow, I'm working on creating a workflow that involves lots of communication with other systems, but troubleshooting it is nearly impossible -- so it's all trial and error. and nobody involved with openerp seems interested in answering my questions.
2010-07-15 19:55 <plantian> pheller: Right yeah, i had to modify the inventory tracking and also create a simple point of sale type thing, but i didn't work with erps until i used tryton. I was mainly concerned with consolidating workflow rather then extending it, if that makes sense. My business's sale workflow is pretty simple or at least the part I wanted tryton to be involved in.
2010-07-15 19:56 <pheller> understood. I'm using it for provisioning equipment in data centers, so certainly a different use case :-)
2010-07-15 19:57 <plantian> pheller: well cedk especially has been AWESOME at answering my questions, but others have also been helpful, the codebase from openerp was very hard to understand and the tryton guys have been cleaning it non-stop while releasing new features
2010-07-15 19:57 <plantian> the codebase still can be really confusing though so yeah without talking to other developers i probably would not have made much progress
2010-07-15 19:58 <pheller> I've become pretty good at reading the openerp code, though admittedly haven't looked much at tryton (yet).
2010-07-15 19:58 <pheller> good to hear that it's more streamlined
2010-07-15 19:58 <pheller> I assume cedk is in a European timezone?
2010-07-15 19:58 <plantian> Well tryton I think dropped or rewrote some of the modules so if you need certain features they might not have made it in yet.
2010-07-15 19:59 <plantian> Yeah most of the tryton people are in Europe.
2010-07-15 19:59 <pheller> the only thing I really use right now is "base", "product", and "stock" -- which I think are probably similar between tryton and openerp
2010-07-15 20:00 <plantian> base?
2010-07-15 20:00 <plantian> Oh right you mean the modules.
2010-07-15 20:00 <plantian> I think the stock was definately rewritten.
2010-07-15 20:06 <pheller> I'm sure they were rewritten, but I use very basic functionality from these things.
2010-07-15 20:11 -!- zodman(~Miranda@67.223.236.231) has joined #tryton
2010-07-15 20:12 <plantian> pheller: You should check out the source and also maybe check out the demo. Although if you're running linux you'll probably have to download the source to setup the client yourself.
2010-07-15 20:13 <pheller> yeah, no worries -I'll take a look
2010-07-15 20:23 <pheller> Ok, cedric, to recap:
2010-07-15 20:24 <pheller> the workflow is provisioning servers in a data center
2010-07-15 20:24 <pheller> I model the "devices" (network, server), "interfaces", and so on
2010-07-15 20:25 <cedk> pheller: ok so you have Models for devices
2010-07-15 20:26 <pheller> the workflow is pretty simple: "validate data", "xml-rpc to the network equipment", "xml-rpc to the kickstart server", "ipmi command to reboot the server", (after the kickstart is done) "xml-rpc to the network equipment", done.
2010-07-15 20:27 <cedk> pheller: and I suppose that kickstart and reboot are quiet long
2010-07-15 20:27 <pheller> A button invokes the "validate data" activity, and if all the data looks good, then I create a new thread, which triggers the next activity.
2010-07-15 20:27 <pheller> right, hence the reason I create the thread
2010-07-15 20:27 <pheller> this all works currently in openerp (though I am happy to consider tryton too, especially if it is more straight forward, cleaner code, etc)
2010-07-15 20:28 <pheller> though it works, it does not work exactly right.
2010-07-15 20:28 -!- paepke(~paepke@p4FEB2088.dip0.t-ipconnect.de) has joined #tryton
2010-07-15 20:28 <pheller> after creating the new thread for the subsequent activities, it seems I have to execute cr.commit() after just about every ORM call
2010-07-15 20:29 <cedk> pheller: first, I don't like the idea to create a thread from workflow
2010-07-15 20:30 <cedk> pheller: I'm thinking that you could use a cron job, that will send signal to each models
2010-07-15 20:31 <cedk> pheller: so you keep to use a workflow but it is triggered by a cron job
2010-07-15 20:31 <cedk> pheller: you create an activity for each steps
2010-07-15 20:32 <cedk> pheller: like that if there is an issue at one step only this one should be rerun
2010-07-15 20:32 <pheller> right, I've done that. so what would be called from cron would be something that imports tryton, instantiates the workflow service, and does something like trg_validate ?
2010-07-15 20:32 <cedk> pheller: Tryton has a cron inside it
2010-07-15 20:32 <pheller> oh, all the better!
2010-07-15 20:32 <cedk> pheller: it can call any method on any Model
2010-07-15 20:33 <cedk> pheller: but it is also possible to use an external cron if you want
2010-07-15 20:33 <cedk> pheller: it will depend of the load
2010-07-15 20:34 <cedk> because multi-thread in Python doesn't use multi-core
2010-07-15 20:34 <cedk> pheller: have you an estimation of the load?
2010-07-15 20:35 <pheller> it really isn't much at all... because the kickstart is actually executed by an external system, and that external system triggers the next activity in the workflow, upon completion of the kickstart
2010-07-15 20:36 <cedk> pheller: so Tryton's cron could do the work
2010-07-15 20:36 <pheller> great, I will definitely take a look
2010-07-15 20:36 -!- gremly(~gremly@201.244.197.189) has joined #tryton
2010-07-15 20:36 -!- pepeu(~manuel@201.155.193.192) has joined #tryton
2010-07-15 20:36 <pheller> so another question I've wondered for a while...
2010-07-15 20:36 <pheller> one-to-one relations.
2010-07-15 20:37 <pheller> and more generally, reciprocal relations.
2010-07-15 20:37 <pheller> I know one-to-one relationships were removed from openerp long ago, and hence the reason they probably don't appear in tryton either.
2010-07-15 20:37 <cedk> pheller: one2one doesn't exist in relational database
2010-07-15 20:38 <cedk> pheller: all you can get is a many2one with a constraint of unicity
2010-07-15 20:38 <pheller> ok, how about creating the reciprocal relationship? an example of how that is useful:
2010-07-15 20:38 <pheller> server has eth0, switch has gig0/11
2010-07-15 20:39 <pheller> in the model, I associate the eth0 record with gig0/11, it would be great if certain models could be marked "reciprocal", so that, for example, gig0/11 because automatically related to eth0
2010-07-15 20:40 <cedk> pheller: why not using a many2many ?
2010-07-15 20:40 <cedk> and as in Tryton, the table that make the relation of m2m is also a Model you can add any constraint
2010-07-15 20:41 <cedk> like a UNIQUE on both fields
2010-07-15 20:42 <pheller> Hmmh, ok, that's great, I hadn't even thought of that
2010-07-15 20:42 <cedk> pheller: the only issue I see is that it will display in a list in the client
2010-07-15 20:42 <pheller> hmmh, yes, that would be a problem, actually
2010-07-15 20:43 <cedk> but it is possible to write a function m2o field that will return the only one record
2010-07-15 20:43 <cedk> in both sides
2010-07-15 20:44 <pheller> so the combination of many2many, with unique constraints, and this m2o function generally equates to what people consider a "one to one" relationship... yes?
2010-07-15 20:44 <cedk> pheller: yes perhaps
2010-07-15 20:44 <cedk> pheller: I'm thinking that we could perhaps have it by default
2010-07-15 20:45 <pheller> yeah, I think that would be beneficial
2010-07-15 20:45 <pheller> it would certainly make it easier for people to get started, who have need for such a field.
2010-07-15 20:46 <cedk> pheller: yes but it did not find any usage until now :-)
2010-07-15 20:46 <pheller> :-)
2010-07-15 20:46 <pheller> Tryton is entirely GPLv3 ?
2010-07-15 20:46 <cedk> pheller: yes
2010-07-15 20:46 <pheller> Affero free?
2010-07-15 20:47 <cedk> yes
2010-07-15 20:47 <cedk> I need to go now
2010-07-15 20:47 <pheller> ok, thanks so much for your answers
2010-07-15 20:47 <cedk> ACTION bbl
2010-07-15 20:59 -!- paepke(~paepke@p4FEB2088.dip0.t-ipconnect.de) has left #tryton
2010-07-15 21:03 -!- pheller(~pheller@c1fw231.constantcontact.com) has joined #tryton
2010-07-15 22:12 -!- zodman(~zodman@foresight/developer/zodman) has joined #tryton
2010-07-15 22:26 -!- ohuisman(~ohuisman@dhcp-077-251-140-095.chello.nl) has joined #tryton
2010-07-15 22:51 -!- ohuisman(~ohuisman@dhcp-077-251-140-095.chello.nl) has left #tryton
2010-07-15 23:39 -!- pheller(~pheller@pool-173-48-216-195.bstnma.fios.verizon.net) has joined #tryton
2010-07-15 23:44 <dba> cedk: the relatorio in debian needs an update in order to work with ooo3.2,
2010-07-15 23:44 <dba> cedk: do you have an ETA for a new relatorio release? i'd prefere not uploading a hg snapshot
2010-07-15 23:45 <dba> cedk: and we should get it sorted out soon because of soon to be frozen squeeze.
2010-07-15 23:45 <cedk> dba: I will try to do it this WE
2010-07-15 23:47 <dba> cedk: very nice, thank you.

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!