IRC logs of #tryton for Tuesday, 2014-02-25

chat.freenode.net #tryton log beginning Tue Feb 25 00:00:02 CET 2014
2014-02-25 00:48 -!- digitalsatori(~Thunderbi@114.92.211.41) has joined #tryton
2014-02-25 01:25 -!- swayf(~swayf@188-193-123-49-dynip.superkabel.de) has joined #tryton
2014-02-25 02:13 -!- digitalsatori(~Thunderbi@114.92.211.41) has joined #tryton
2014-02-25 03:09 -!- redDave_(~quassel@83.70.138.18) has joined #tryton
2014-02-25 03:59 -!- digitalsatori(~Thunderbi@116.234.234.90) has joined #tryton
2014-02-25 05:56 -!- defyasdf(~defyasdf@ec2-54-234-60-70.compute-1.amazonaws.com) has joined #tryton
2014-02-25 06:17 -!- yangoon(~mathiasb@p549F15A3.dip0.t-ipconnect.de) has joined #tryton
2014-02-25 06:41 -!- frispete(~frispete@p54A93525.dip0.t-ipconnect.de) has joined #tryton
2014-02-25 07:21 -!- udono(~udono@ip-176-199-172-145.unitymediagroup.de) has joined #tryton
2014-02-25 07:44 -!- rmu(~robert@90.146.69.141) has joined #tryton
2014-02-25 07:58 -!- mfladischer(~fladische@sh144.medunigraz.at) has joined #tryton
2014-02-25 08:04 -!- pjstevns(~Thunderbi@2001:981:7170:1:f97f:3334:175a:1d13) has joined #tryton
2014-02-25 08:27 -!- corro(~corro@46.22.23.85) has joined #tryton
2014-02-25 08:45 -!- jvblasco(~seba@62.43.196.37.static.user.ono.com) has joined #tryton
2014-02-25 08:53 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2014-02-25 08:54 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2014-02-25 08:58 -!- jeancavallo(~giovanni@LVelizy-156-46-68-52.w80-12.abo.wanadoo.fr) has joined #tryton
2014-02-25 09:19 <jvblasco> guys how do u put things in the context?
2014-02-25 09:19 <jvblasco> i know how to get them
2014-02-25 09:19 <jeancavallo> jvblasco: Depends on the context :D
2014-02-25 09:19 <jvblasco> jeancavallo: lol
2014-02-25 09:19 <jvblasco> jeancavallo: what do u mean?
2014-02-25 09:19 <jeancavallo> jvblasco: you can use with Transaction().set_context(kw=value, ...)
2014-02-25 09:19 <jeancavallo> jvblasco: if you are running some code and want to change the context
2014-02-25 09:20 <jvblasco> jeancavallo: wouldn't that overwrite my current context?
2014-02-25 09:20 <jeancavallo> jvblasco: It would update it
2014-02-25 09:20 <jeancavallo> jvblasco: and the with statement would make sure you'd be back to your original state after
2014-02-25 09:20 <jvblasco> with the kw variable isn't it?
2014-02-25 09:20 <jeancavallo> jvblasco: the keyword you want to add
2014-02-25 09:21 <jvblasco> jeancavallo: i c
2014-02-25 09:21 <jeancavallo> jvblasco: If what you want is giving context to O2M childs, you can use the context argument of fields.One2Many and feed it Pyson
2014-02-25 09:21 <jvblasco> jeancavallo: btw through a wizard, do i have access to all stateviews during the process?
2014-02-25 09:21 <jeancavallo> jvblasco: fields.One2Many(..., context={'my_key': Eval('move')})
2014-02-25 09:22 <jeancavallo> jvblasco: What do you call "During process" ?
2014-02-25 09:22 <jvblasco> jeancavallo: lol, still didn't find any need for that, but will keep it in mind
2014-02-25 09:22 <jvblasco> jeancavallo: imagine i have a wizard with 4 stateviews and 3 transtions
2014-02-25 09:22 <jeancavallo> jvblasco: My use case is default values depending on the parent
2014-02-25 09:23 <jvblasco> jeancavallo: executes secuentally, may i in the 3rd transition the values from the first stateview?
2014-02-25 09:23 <jeancavallo> jvblasco: ofc
2014-02-25 09:24 <jvblasco> jeancavallo: just with form = self.view1?
2014-02-25 09:24 <jeancavallo> jvblasco: yeah
2014-02-25 09:24 <jvblasco> jeancavallo: omg, wizards are really powerfull then
2014-02-25 09:24 <jeancavallo> jvblasco: They are
2014-02-25 09:24 <jeancavallo> jvblasco: Just wait till you start to play with StateActions
2014-02-25 09:25 <jeancavallo> jvblasco: :)
2014-02-25 09:25 <jvblasco> jeancavallo: don't even know what they are, but after function fields, and wizards...
2014-02-25 09:25 <jvblasco> jeancavallo: and the easy flask integration (nereid, flask-tryton)
2014-02-25 09:26 <jvblasco> jeancavallo: i don't really know why sometimes ppl uses web frameworks, that don't provide things like a workflow engine, state machines and really usefull stuff for doing computations.
2014-02-25 09:26 <jvblasco> and interacting with a user
2014-02-25 09:27 <jeancavallo> jvblasco: web frameworks are a trend right now
2014-02-25 09:27 <jeancavallo> jvblasco: that is all
2014-02-25 09:27 <jvblasco> jeancavallo: btw thnx so much for the help. Someday i'll play with the actions as i need them
2014-02-25 09:27 <jvblasco> jeancavallo: yeah, it must be
2014-02-25 09:28 <jeancavallo> jvblasco: np
2014-02-25 09:28 -!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has joined #tryton
2014-02-25 09:28 <jvblasco> jeancavallo: i find fun startups going with web frameworks and spending tones of money later on for the enterprise software, cause they realize that creating the software for managing the enterprise is far too complex to implement it
2014-02-25 09:29 <jvblasco> jeancavallo: yet things like tryton exist, and the entreprise part is the most complex by far
2014-02-25 09:30 <jeancavallo> jvblasco: More sad than fun :'(
2014-02-25 09:30 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton
2014-02-25 09:31 <jvblasco> jeancavallo: yeah, but i find laughing better than crying lol
2014-02-25 09:31 <jvblasco> jeancavallo: ;)
2014-02-25 09:50 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton
2014-02-25 10:12 <jvblasco> guys, while going through different wizard steps, if i set an attibute in the context will it be kept through all the process?
2014-02-25 10:12 <jeancavallo> jvblasco: depends on how you set it
2014-02-25 10:12 <jeancavallo> jvblasco: :)
2014-02-25 10:13 <jvblasco> jeancavallo: lol, using Transaction().set_context(kw=value, ...) would keep kw through all the wizard?
2014-02-25 10:13 <jeancavallo> jvblasco: nope
2014-02-25 10:13 <pokoli> jvblasco: why you need it in the context? IMHO it's better to pass it trough the wizard itself
2014-02-25 10:13 -!- cedk(~ced@85.26.36.239) has joined #tryton
2014-02-25 10:13 <jeancavallo> jvblasco: pokoli: yeah
2014-02-25 10:13 <jeancavallo> jvblasco: Just add a field on a step
2014-02-25 10:13 <jvblasco> pokoli, jeancavallo: i need to keep track of how many times the user goes through a window
2014-02-25 10:14 <jeancavallo> jvblasco: add an integer field on the view and increment it in the default
2014-02-25 10:14 <jeancavallo> jvblasco: is what I would do
2014-02-25 10:14 <jvblasco> jeancavallo: with the default?
2014-02-25 10:14 <jeancavallo> jvblasco: default_state_name in the wizard
2014-02-25 10:14 <jeancavallo> jvblasco: is an instance method
2014-02-25 10:15 <jeancavallo> jvblasco: in which you can access everything
2014-02-25 10:15 <jeancavallo> jvblasco: the Transaction thing earlier is to be used in a with statement, so it is reset when you exit the block
2014-02-25 10:16 <jvblasco> jeancavallo: and why using the default_state_name?
2014-02-25 10:16 <jeancavallo> jvblasco: It is called everytime you enter the State View
2014-02-25 10:16 <jvblasco> jeancavallo: i mean is it called everytime the user changes a stateView?
2014-02-25 10:17 <jvblasco> jeancavallo: any state view?
2014-02-25 10:17 <jeancavallo> jvblasco: it is default_<our_state_name_here> :)
2014-02-25 10:17 <jeancavallo> jvblasco: So you can have one method per state
2014-02-25 10:17 <jvblasco> jeancavallo: great! Thnx so much for the info, it REALLY simplifies some things ;)
2014-02-25 10:18 <jvblasco> jeancavallo, pokoli: thnx so much for the help guys
2014-02-25 10:18 <jeancavallo> jvblasco: tryton usually provides a simple way to do things :)
2014-02-25 10:18 <jeancavallo> jvblasco: Except if you try to do really weird things
2014-02-25 10:18 <jvblasco> jeancavallo: yeah, that's what im noticing since i started developing harder with tryton
2014-02-25 10:19 <jvblasco> i cannot really w8 for workflows play
2014-02-25 10:19 <jvblasco> but it will have to w8 a little bit
2014-02-25 10:19 <jvblasco> workflows seem so simple and powerfull, that i'm sure it will be lots of fun
2014-02-25 10:20 <jvblasco> thnx for the help ;)
2014-02-25 10:21 <jvblasco> and is the default method called b4 rendering the view?
2014-02-25 10:25 -!- nicoe(~nicoe@2001:6f8:3aa:0:b699:baff:fe56:2328) has joined #tryton
2014-02-25 10:27 <jeancavallo> jvblasco: yeah
2014-02-25 10:28 <jvblasco> jeancavallo: great, thnx ;)
2014-02-25 10:42 -!- grasbauer(~jan@89.204.137.137) has joined #tryton
2014-02-25 10:57 -!- swayf(~swayf@188-193-123-49-dynip.superkabel.de) has joined #tryton
2014-02-25 10:58 -!- sisalp(~sisalpuse@gratoox.sisalp.net) has joined #tryton
2014-02-25 11:03 <sisalp> hello, seems installing project on demo server 3.0 never ends
2014-02-25 11:05 <sisalp> the point I wanted to check is about resource assignment to a project : what kind of resource can be assigned ? users, employees, parties ?
2014-02-25 11:07 <sisalp> finally, module install ended successfuly
2014-02-25 11:09 <sisalp> seems the answer is in timesheet which relates to employees
2014-02-25 11:10 <sisalp> can anybody confirm ?
2014-02-25 11:10 <cedk> sisalp: what do you mean by "assigned"?
2014-02-25 11:10 <jeancavallo> sisalp: looks that way to me
2014-02-25 11:12 <sisalp> cedk: I expected resource assignement, I see a relation to employee timesheet, sounds ok
2014-02-25 11:13 <sisalp> cedk: the demo is still very slow
2014-02-25 11:13 -!- grasbauer(~jan@dslb-094-222-149-079.pools.arcor-ip.net) has joined #tryton
2014-02-25 11:16 <sisalp> cedk: I guess the beauty of project is the "work" concept, I remember it was discussed , but I have to do my homework and understand what it was about ;-)
2014-02-25 11:17 <cedk> sisalp: timesheet are not assignation
2014-02-25 11:18 <cedk> sisalp: maybe it is the allocation from the module project_plan?
2014-02-25 11:22 -!- Telesight(~anthony@77-175-168-222.FTTH.ispfabriek.nl) has joined #tryton
2014-02-25 11:24 <cedk> sisalp: for the slowness, it is because the server runs also the unittest
2014-02-25 11:25 <cedk> we are looking to buy a new one with the Foundation
2014-02-25 11:25 <sisalp> cedk: the question from the prospect was : Do I need a user account for all my employees who contribute to projects ? I understand the answer is no.
2014-02-25 11:29 <cedk> sisalp: no except if he wants the employees to use the application
2014-02-25 12:12 -!- smarro(~sebastian@190.105.85.74) has joined #tryton
2014-02-25 12:40 -!- Telesight(~anthony@77-175-168-222.FTTH.ispfabriek.nl) has joined #tryton
2014-02-25 12:41 -!- strebitz(~sebastian@91.183.59.105) has joined #tryton
2014-02-25 12:44 -!- swayf(~swayf@188-193-123-49-dynip.superkabel.de) has joined #tryton
2014-02-25 13:03 -!- sharoonthomas(~sharoonth@122.177.10.178) has joined #tryton
2014-02-25 13:04 -!- pekka(~pekka@84.48.40.2) has joined #tryton
2014-02-25 13:10 -!- jvblasco(~seba@62.43.196.37.static.user.ono.com) has joined #tryton
2014-02-25 13:18 <jvblasco> is it normal that after creating a model with a o2m relation, that relation is a tupple instead of a list?
2014-02-25 13:23 <cedk> jvblasco: yes, it is immutable
2014-02-25 13:28 <jvblasco> cedk: i'm finding a tupple in the o2m after saving the model (which creates it)
2014-02-25 13:28 <jvblasco> cedk:
2014-02-25 13:28 <jvblasco> cedk: http://pastebin.com/5NPr54v9
2014-02-25 13:29 <jvblasco> cedk: here the code http://pastebin.com/f1ag3ira
2014-02-25 13:30 <jvblasco> cedk: it's the first time i find i cannot append to a o2m field
2014-02-25 13:31 <cedk> jvblasco: yes, it is immutable
2014-02-25 13:35 <cedk> jvblasco: but from your code, why are you saving twice?
2014-02-25 13:36 <cedk> jvblasco: why not: systems_plan.extras = form.extras
2014-02-25 13:46 -!- pablovannini(~pablo@181.47.181.28) has joined #tryton
2014-02-25 13:46 <jvblasco> cedk: oh, didn't know it could be done that way
2014-02-25 13:46 <jvblasco> cedk: good to know ;)
2014-02-25 13:51 <jvblasco> cedk: it worked like a breeze, thnx so much
2014-02-25 13:51 <jvblasco> btw how do i access the string part of a selection field?
2014-02-25 13:52 <jvblasco> ('db_value', 'string')
2014-02-25 13:56 <cedk> jvblasco: you don't
2014-02-25 14:01 -!- smarro(~sebastian@181.47.135.16) has joined #tryton
2014-02-25 14:05 -!- sharoonthomas(~sharoonth@122.177.10.178) has joined #tryton
2014-02-25 15:25 -!- sharoonthomas(~sharoonth@122.177.10.178) has joined #tryton
2014-02-25 15:49 -!- gremly(~gremly@190.85.36.58) has joined #tryton
2014-02-25 16:08 -!- digitalsatori(~Thunderbi@114.92.211.41) has joined #tryton
2014-02-25 16:21 -!- swayf(~swayf@188-193-123-49-dynip.superkabel.de) has joined #tryton
2014-02-25 16:25 <jvblasco> when i get a model from the db and it has a o2m field, does that field always get constructed as a tupple?
2014-02-25 16:28 <cedk> jvblasco: yes
2014-02-25 16:29 <jvblasco> cedk: and how would u recommend me to add resources to a o2m field?
2014-02-25 16:30 <jvblasco> cedk: something like appending or maybe there's an add() method i don't know about
2014-02-25 16:30 <cedk> jvblasco: convert to list and set the new list
2014-02-25 16:32 <jvblasco> cedk: that's what i wanted to avoid, anyway if it's the only way, all good ;)
2014-02-25 16:32 <jvblasco> cedk: just wanted to know if there's a better (maybe more elegant) way to do it
2014-02-25 16:32 <jeancavallo> jvblasco: Depending on what you want, you may just "write" it
2014-02-25 16:33 -!- strebitz(~sebastian@91.183.59.105) has left #tryton
2014-02-25 16:33 <jeancavallo> jvblasco: but that is a db action
2014-02-25 16:43 <jvblasco> jeacavallo: if converting to a list and appending is an accepted way to do it, im all good
2014-02-25 17:16 <cedk> pokoli: did you test your translation changes?
2014-02-25 17:18 <pokoli> cedk: didn't test lastest review, did I break something?
2014-02-25 17:19 <cedk> pokoli: can not create any translation
2014-02-25 17:21 <pokoli> cedk: let me check
2014-02-25 17:22 <pokoli> cedk: are you getting a selection error?
2014-02-25 17:25 <cedk> pokoli: no lanaguage is set
2014-02-25 17:28 <pokoli> cedk: Just uploaded http://codereview.tryton.org/3871002
2014-02-25 17:32 <cedk> pokoli: mine: http://codereview.tryton.org/3861002/
2014-02-25 17:33 <cedk> pokoli: I don't where is the best place to set the missing field
2014-02-25 17:38 <pokoli> cedk: just put my comments on review
2014-02-25 17:46 -!- pobsteta(~Thunderbi@pha75-11-82-236-85-232.fbx.proxad.net) has joined #tryton
2014-02-25 17:51 -!- pjstevns(~Thunderbi@2001:981:7170:1:f97f:3334:175a:1d13) has joined #tryton
2014-02-25 18:23 -!- pekka1(~pekka@cm-84.210.54.188.getinternet.no) has joined #tryton
2014-02-25 18:37 -!- sharoonthomas(~sharoonth@182.68.185.186) has joined #tryton
2014-02-25 18:38 <jvblasco> see u tomorrow guys ;)
2014-02-25 18:38 <jvblasco> bb
2014-02-25 18:49 -!- sharoonthomas(~sharoonth@182.68.185.186) has left #tryton
2014-02-25 19:17 -!- pobsteta(~Thunderbi@pha75-11-82-236-85-232.fbx.proxad.net) has joined #tryton
2014-02-25 19:19 -!- smarro(~sebastian@host100.190-136-175.telecom.net.ar) has joined #tryton
2014-02-25 19:20 -!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has joined #tryton
2014-02-25 19:31 -!- grasbauer(~jan@dslb-092-078-091-250.pools.arcor-ip.net) has joined #tryton
2014-02-25 19:33 -!- littlebit(~Thunderbi@ulmg-5d846382.pool.mediaWays.net) has joined #tryton
2014-02-25 20:25 -!- _Dominik_(~cubie@178-27-83-239-dynip.superkabel.de) has joined #tryton
2014-02-25 20:51 -!- cjbarnes18(~craig@host86-146-27-221.range86-146.btcentralplus.com) has joined #tryton
2014-02-25 21:01 -!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has left #tryton
2014-02-25 21:12 -!- cjbarnes18(~craig@host86-146-27-221.range86-146.btcentralplus.com) has joined #tryton
2014-02-25 21:18 -!- grasbauer(~jan@dslb-092-078-091-250.pools.arcor-ip.net) has joined #tryton
2014-02-25 22:52 -!- gremly(~gremly@190.85.36.58) has joined #tryton

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