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

chat.freenode.net #tryton log beginning Tue Feb 25 00:00:02 CET 2014
-!- digitalsatori(~Thunderbi@114.92.211.41) has joined #tryton00:48
-!- swayf(~swayf@188-193-123-49-dynip.superkabel.de) has joined #tryton01:25
-!- digitalsatori(~Thunderbi@114.92.211.41) has joined #tryton02:13
-!- redDave_(~quassel@83.70.138.18) has joined #tryton03:09
-!- digitalsatori(~Thunderbi@116.234.234.90) has joined #tryton03:59
-!- defyasdf(~defyasdf@ec2-54-234-60-70.compute-1.amazonaws.com) has joined #tryton05:56
-!- yangoon(~mathiasb@p549F15A3.dip0.t-ipconnect.de) has joined #tryton06:17
-!- frispete(~frispete@p54A93525.dip0.t-ipconnect.de) has joined #tryton06:41
-!- udono(~udono@ip-176-199-172-145.unitymediagroup.de) has joined #tryton07:21
-!- rmu(~robert@90.146.69.141) has joined #tryton07:44
-!- mfladischer(~fladische@sh144.medunigraz.at) has joined #tryton07:58
-!- pjstevns(~Thunderbi@2001:981:7170:1:f97f:3334:175a:1d13) has joined #tryton08:04
-!- corro(~corro@46.22.23.85) has joined #tryton08:27
-!- jvblasco(~seba@62.43.196.37.static.user.ono.com) has joined #tryton08:45
-!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton08:53
-!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton08:54
-!- jeancavallo(~giovanni@LVelizy-156-46-68-52.w80-12.abo.wanadoo.fr) has joined #tryton08:58
jvblascoguys how do u put things in the context?09:19
jvblascoi know how to get them09:19
jeancavallojvblasco: Depends on the context :D09:19
jvblascojeancavallo: lol09:19
jvblascojeancavallo: what do u mean?09:19
jeancavallojvblasco: you can use with Transaction().set_context(kw=value, ...)09:19
jeancavallojvblasco: if you are running some code and want to change the context09:19
jvblascojeancavallo: wouldn't that overwrite my current context?09:20
jeancavallojvblasco: It would update it09:20
jeancavallojvblasco: and the with statement would make sure you'd be back to your original state after09:20
jvblascowith the kw variable isn't it?09:20
jeancavallojvblasco: the keyword you want to add09:20
jvblascojeancavallo: i c09:21
jeancavallojvblasco: If what you want is giving context to O2M childs, you can use the context argument of fields.One2Many and feed it Pyson09:21
jvblascojeancavallo: btw through a wizard, do i have access to all stateviews during the process?09:21
jeancavallojvblasco: fields.One2Many(..., context={'my_key': Eval('move')})09:21
jeancavallojvblasco: What do you call "During process" ?09:22
jvblascojeancavallo: lol, still didn't find any need for that, but will keep it in mind09:22
jvblascojeancavallo: imagine i have a wizard with 4 stateviews and 3 transtions09:22
jeancavallojvblasco: My use case is default values depending on the parent09:22
jvblascojeancavallo: executes secuentally, may i in the 3rd transition the values from the first stateview?09:23
jeancavallojvblasco: ofc09:23
jvblascojeancavallo: just with form = self.view1?09:24
jeancavallojvblasco: yeah09:24
jvblascojeancavallo: omg, wizards are really powerfull then09:24
jeancavallojvblasco: They are09:24
jeancavallojvblasco: Just wait till you start to play with StateActions09:24
jeancavallojvblasco: :)09:25
jvblascojeancavallo: don't even know what they are, but after function fields, and wizards...09:25
jvblascojeancavallo: and the easy flask integration (nereid, flask-tryton)09:25
jvblascojeancavallo: 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.09:26
jvblascoand interacting with a user09:26
jeancavallojvblasco: web frameworks are a trend right now09:27
jeancavallojvblasco: that is all09:27
jvblascojeancavallo: btw thnx so much for the help. Someday i'll play with the actions as i need them09:27
jvblascojeancavallo: yeah, it must be09:27
jeancavallojvblasco: np09:28
-!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has joined #tryton09:28
jvblascojeancavallo: 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 it09:28
jvblascojeancavallo: yet things like tryton exist, and the entreprise part is the most complex by far09:29
jeancavallojvblasco: More sad than fun :'(09:30
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton09:30
jvblascojeancavallo: yeah, but i find laughing better than crying lol09:31
jvblascojeancavallo: ;)09:31
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton09:50
jvblascoguys, while going through different wizard steps, if i set an attibute in the context will it be kept through all the process?10:12
jeancavallojvblasco: depends on how you set it10:12
jeancavallojvblasco: :)10:12
jvblascojeancavallo: lol, using Transaction().set_context(kw=value, ...) would keep kw through all the wizard?10:13
jeancavallojvblasco: nope10:13
pokolijvblasco: why you need it in the context? IMHO it's better to pass it trough the wizard itself10:13
-!- cedk(~ced@85.26.36.239) has joined #tryton10:13
jeancavallojvblasco: pokoli: yeah10:13
jeancavallojvblasco: Just add a field on a step10:13
jvblascopokoli, jeancavallo: i need to keep track of how many times the user goes through a window10:13
jeancavallojvblasco: add an integer field on the view and increment it in the default10:14
jeancavallojvblasco: is what I would do10:14
jvblascojeancavallo: with the default?10:14
jeancavallojvblasco: default_state_name in the wizard10:14
jeancavallojvblasco: is an instance method10:14
jeancavallojvblasco: in which you can access everything10:15
jeancavallojvblasco: the Transaction thing earlier is to be used in a with statement, so it is reset when you exit the block10:15
jvblascojeancavallo:  and why using the default_state_name?10:16
jeancavallojvblasco: It is called everytime you enter the State View10:16
jvblascojeancavallo: i mean is it called everytime the user changes a stateView?10:16
jvblascojeancavallo: any state view?10:17
jeancavallojvblasco: it is default_<our_state_name_here> :)10:17
jeancavallojvblasco: So you can have one method per state10:17
jvblascojeancavallo: great! Thnx so much for the info, it REALLY simplifies some things ;)10:17
jvblascojeancavallo, pokoli: thnx so much for the help guys10:18
jeancavallojvblasco: tryton usually provides a simple way to do things :)10:18
jeancavallojvblasco: Except if you try to do really weird things10:18
jvblascojeancavallo: yeah, that's what im noticing since i started developing harder with tryton10:18
jvblascoi cannot really w8 for workflows play10:19
jvblascobut it will have to w8 a little bit10:19
jvblascoworkflows seem so simple and powerfull, that i'm sure it will be lots of fun10:19
jvblascothnx for the help ;)10:20
jvblascoand is the default method called b4 rendering the view?10:21
-!- nicoe(~nicoe@2001:6f8:3aa:0:b699:baff:fe56:2328) has joined #tryton10:25
jeancavallojvblasco: yeah10:27
jvblascojeancavallo: great, thnx ;)10:28
-!- grasbauer(~jan@89.204.137.137) has joined #tryton10:42
-!- swayf(~swayf@188-193-123-49-dynip.superkabel.de) has joined #tryton10:57
-!- sisalp(~sisalpuse@gratoox.sisalp.net) has joined #tryton10:58
sisalphello, seems installing project on demo server 3.0 never ends11:03
sisalpthe point I wanted to check is about resource assignment to a project : what kind of resource can be assigned ? users, employees, parties ?11:05
sisalpfinally, module install ended successfuly11:07
sisalpseems the answer is in timesheet which relates to employees11:09
sisalpcan anybody confirm ?11:10
cedksisalp: what do you mean by "assigned"?11:10
jeancavallosisalp: looks that way to me11:10
sisalpcedk: I expected resource assignement, I see a relation to employee timesheet, sounds ok11:12
sisalpcedk: the demo is still very slow11:13
-!- grasbauer(~jan@dslb-094-222-149-079.pools.arcor-ip.net) has joined #tryton11:13
sisalpcedk: 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 ;-)11:16
cedksisalp: timesheet are not assignation11:17
cedksisalp: maybe it is the allocation from the module project_plan?11:18
-!- Telesight(~anthony@77-175-168-222.FTTH.ispfabriek.nl) has joined #tryton11:22
cedksisalp: for the slowness, it is because the server runs also the unittest11:24
cedkwe are looking to buy a new one with the Foundation11:25
sisalpcedk: 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.11:25
cedksisalp: no except if he wants the employees to use the application11:29
-!- smarro(~sebastian@190.105.85.74) has joined #tryton12:12
-!- Telesight(~anthony@77-175-168-222.FTTH.ispfabriek.nl) has joined #tryton12:40
-!- strebitz(~sebastian@91.183.59.105) has joined #tryton12:41
-!- swayf(~swayf@188-193-123-49-dynip.superkabel.de) has joined #tryton12:44
-!- sharoonthomas(~sharoonth@122.177.10.178) has joined #tryton13:03
-!- pekka(~pekka@84.48.40.2) has joined #tryton13:04
-!- jvblasco(~seba@62.43.196.37.static.user.ono.com) has joined #tryton13:10
jvblascois it normal that after creating a model with a o2m relation, that relation is a tupple instead of a list?13:18
cedkjvblasco: yes, it is immutable13:23
jvblascocedk: i'm finding a tupple in the o2m after saving the model (which creates it)13:28
jvblascocedk:13:28
jvblascocedk: http://pastebin.com/5NPr54v913:28
jvblascocedk: here the code http://pastebin.com/f1ag3ira13:29
jvblascocedk: it's the first time i find i cannot append to a o2m field13:30
cedkjvblasco: yes, it is immutable13:31
cedkjvblasco: but from your code, why are you saving twice?13:35
cedkjvblasco: why not: systems_plan.extras = form.extras13:36
-!- pablovannini(~pablo@181.47.181.28) has joined #tryton13:46
jvblascocedk: oh, didn't know it could be done that way13:46
jvblascocedk: good to know ;)13:46
jvblascocedk: it worked like a breeze, thnx so much13:51
jvblascobtw how do i access the string part of a selection field?13:51
jvblasco('db_value', 'string')13:52
cedkjvblasco: you don't13:56
-!- smarro(~sebastian@181.47.135.16) has joined #tryton14:01
-!- sharoonthomas(~sharoonth@122.177.10.178) has joined #tryton14:05
-!- sharoonthomas(~sharoonth@122.177.10.178) has joined #tryton15:25
-!- gremly(~gremly@190.85.36.58) has joined #tryton15:49
-!- digitalsatori(~Thunderbi@114.92.211.41) has joined #tryton16:08
-!- swayf(~swayf@188-193-123-49-dynip.superkabel.de) has joined #tryton16:21
jvblascowhen i get a model from the db and it has a o2m field, does that field always get constructed as a tupple?16:25
cedkjvblasco: yes16:28
jvblascocedk: and how would u recommend me to add resources to a o2m field?16:29
jvblascocedk: something like appending or maybe there's an add() method i don't know about16:30
cedkjvblasco: convert to list and set the new list16:30
jvblascocedk: that's what i wanted to avoid, anyway if it's the only way, all good ;)16:32
jvblascocedk: just wanted to know if there's a better (maybe more elegant) way to do it16:32
jeancavallojvblasco: Depending on what you want, you may just "write" it16:32
-!- strebitz(~sebastian@91.183.59.105) has left #tryton16:33
jeancavallojvblasco: but that is a db action16:33
jvblascojeacavallo: if converting to a list and appending is an accepted way to do it, im all good16:43
cedkpokoli: did you test your translation changes?17:16
pokolicedk: didn't test lastest review, did I break something?17:18
cedkpokoli: can not create any translation17:19
pokolicedk: let me check17:21
pokolicedk: are you getting a selection error?17:22
cedkpokoli: no lanaguage is set17:25
pokolicedk: Just uploaded http://codereview.tryton.org/387100217:28
cedkpokoli: mine: http://codereview.tryton.org/3861002/17:32
cedkpokoli: I don't where is the best place to set the missing field17:33
pokolicedk: just put my comments on review17:38
-!- pobsteta(~Thunderbi@pha75-11-82-236-85-232.fbx.proxad.net) has joined #tryton17:46
-!- pjstevns(~Thunderbi@2001:981:7170:1:f97f:3334:175a:1d13) has joined #tryton17:51
-!- pekka1(~pekka@cm-84.210.54.188.getinternet.no) has joined #tryton18:23
-!- sharoonthomas(~sharoonth@182.68.185.186) has joined #tryton18:37
jvblascosee u tomorrow guys ;)18:38
jvblascobb18:38
-!- sharoonthomas(~sharoonth@182.68.185.186) has left #tryton18:49
-!- pobsteta(~Thunderbi@pha75-11-82-236-85-232.fbx.proxad.net) has joined #tryton19:17
-!- smarro(~sebastian@host100.190-136-175.telecom.net.ar) has joined #tryton19:19
-!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has joined #tryton19:20
-!- grasbauer(~jan@dslb-092-078-091-250.pools.arcor-ip.net) has joined #tryton19:31
-!- littlebit(~Thunderbi@ulmg-5d846382.pool.mediaWays.net) has joined #tryton19:33
-!- _Dominik_(~cubie@178-27-83-239-dynip.superkabel.de) has joined #tryton20:25
-!- cjbarnes18(~craig@host86-146-27-221.range86-146.btcentralplus.com) has joined #tryton20:51
-!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has left #tryton21:01
-!- cjbarnes18(~craig@host86-146-27-221.range86-146.btcentralplus.com) has joined #tryton21:12
-!- grasbauer(~jan@dslb-092-078-091-250.pools.arcor-ip.net) has joined #tryton21:18
-!- gremly(~gremly@190.85.36.58) has joined #tryton22:52

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!