IRC logs of #tryton for Friday, 2014-09-05

chat.freenode.net #tryton log beginning Fri Sep 5 00:00:02 CEST 2014
-!- uranus(~uranus@ool-182fa854.dyn.optonline.net) has joined #tryton00:24
-!- prksh(~prksh@122.177.80.89) has left #tryton00:49
-!- alisonken1lap3(~alisonken@pool-71-104-227-211.lsanca.dsl-w.verizon.net) has joined #tryton02:31
-!- digitalsatori(~Thunderbi@116.234.157.119) has joined #tryton03:45
-!- vak0160(~kvirc@36.72.229.107) has joined #tryton03:52
-!- fink(~fink@166.205.66.73) has joined #tryton03:55
-!- fink(~fink@166.205.66.73) has joined #tryton04:08
-!- digitalsatori(~Thunderbi@116.234.157.119) has joined #tryton05:32
-!- frispete_(~frispete@p54A91F5E.dip0.t-ipconnect.de) has joined #tryton06:40
-!- yangoon(~mathiasb@p549F1954.dip0.t-ipconnect.de) has joined #tryton07:01
-!- uranus(~uranus@ool-182fa854.dyn.optonline.net) has joined #tryton07:31
-!- ronaldm(~ronaldm@197.211.216.214) has joined #tryton07:38
-!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton07:58
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:02
-!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton08:27
-!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton08:28
-!- uranus(~uranus@ool-182fa854.dyn.optonline.net) has joined #tryton08:33
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton08:39
-!- jeancavallo(~giovanni@bob75-9-88-181-2-176.fbx.proxad.net) has joined #tryton08:55
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton09:17
-!- vcardon(~vcardon@185.16.50.4) has joined #tryton09:27
-!- rpit(~ralf@dslb-088-070-154-187.088.070.pools.vodafone-ip.de) has joined #tryton09:44
-!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton10:07
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton10:08
-!- vernichon(~Thunderbi@gex01-1-78-234-55-95.fbx.proxad.net) has joined #tryton10:09
-!- vernichon(~Thunderbi@gex01-1-78-234-55-95.fbx.proxad.net) has joined #tryton10:26
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton10:38
-!- ytz(~textual@opfw01.options-it.com) has joined #tryton10:42
-!- rpit(~ralf@dslb-088-070-154-187.088.070.pools.vodafone-ip.de) has joined #tryton10:59
-!- prksh(~prksh@198.61.199.179) has joined #tryton11:01
-!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has joined #tryton11:08
-!- ytz(~ytz@opfw01.options-it.com) has joined #tryton11:22
-!- bechamel1(~Adium@62-197-96-189.teledisnet.be) has joined #tryton11:30
-!- vcardon(~vcardon@185.16.50.4) has joined #tryton12:32
-!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton12:33
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton12:42
-!- vernichon(~Thunderbi@gex01-1-78-234-55-95.fbx.proxad.net) has joined #tryton12:56
-!- mariomop(~quassel@host148.190-229-212.telecom.net.ar) has joined #tryton13:05
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton13:10
-!- vernichon(~Thunderbi@gex01-1-78-234-55-95.fbx.proxad.net) has joined #tryton13:17
-!- marius_(~marius@v100.nfq.lt) has joined #tryton13:44
marius_is it possible to open model edit view from wizard with prefilled fields?13:44
-!- kstenger(~karla@200.124.209.158) has joined #tryton13:51
pokolimarius_: just add default values depending on the context and fill the context on your wizard14:52
pokolimarius_: that may do the trick14:52
marius_maybe it's possible with pyson_context or something like that|?15:05
pokolimarius_: if you have only static data, context will do the trick15:05
pokolimarius_: your wizard ends with an StateAction, so you must modify the context of the returned action15:06
marius_I want to generate some data in wizard, and open form window of new object with that data15:06
pokolimarius_: so you're saving the data on the wizard?15:07
pokolimarius_: just return {'res_id': [list of ids generated by your wizard]} on the second parameter of the stateaction15:07
pokolis/parameter/return value15:07
marius_pokoli, what may be one of the ways, but I don't think I want to save it :/15:08
pokolimarius_: so use the context to fill the default values for the records15:08
marius_ok, thanks15:09
pokolimarius_: but I'm wondering why you don't want to save it15:09
marius_because I don't have all the required fields15:09
pokolimarius_: so you may add all the required fields in the wizard15:10
pokolimarius_: just ask the user before creating anything15:10
cedkmarius_: creating record via wizard is considered harmful15:15
-!- digitalsatori(~Thunderbi@116.234.181.110) has joined #tryton16:01
-!- smarro(~sebastian@190.105.93.196) has joined #tryton16:03
-!- ronaldm(~ronaldm@197.211.216.214) has joined #tryton16:17
-!- pablovannini(~pablo@host126.186-109-85.telecom.net.ar) has joined #tryton16:26
-!- alisonken1lap3(~alisonken@18.18.ultimate-int.uia.net) has joined #tryton16:28
-!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton17:17
-!- rpit(~ralf@dslb-088-070-154-187.088.070.pools.vodafone-ip.de) has joined #tryton17:24
-!- smarro(~sebastian@190.105.93.196) has joined #tryton17:33
-!- vcardon(~vcardon@185.16.50.4) has left #tryton18:16
kstengerI see the configuration file changed the directory where it was placed by default and now you can set it by an environment variable or directly by parameter. Altough, I am using the same config file I used before, where jsonrpc=*:8005, but it always lunches the server at localhost:8000. Did the conf file notation change as well?18:44
kstengernm, found it18:55
-!- coprinf_(~coprinf@190.190.170.101) has joined #tryton19:00
coprinf_Hi. I'm getting an error "The value "1" of field "Company" on "Analytic Account" doesn't exist.". Anyone knows what it means?19:02
-!- zultron_(~zultron@99-190-134-148.lightspeed.austtx.sbcglobal.net) has joined #tryton19:45
-!- rvnovaes(~roberto@177.19.245.134) has joined #tryton19:51
rvnovaesNeed help creating wizard. Getting KeyError when executing get on Pool19:51
-!- vcardon(~vcardon@185.16.50.4) has joined #tryton20:00
-!- vcardon(~vcardon@185.16.50.4) has joined #tryton20:01
-!- uranus(~uranus@ool-182fa854.dyn.optonline.net) has joined #tryton20:02
kstengeractually, I found the code, and the docs... but I'm still unable to set up the database access with postgresql, anyone around has some example of the new format of the configuration file?20:05
-!- rvnovaes(~roberto@177.19.245.134) has joined #tryton20:05
rvnovaesNeed help on creating wizard. Driving me crazy. KeyError on Pool.get()20:06
kstengerrvnovaes: you need to give more information20:08
rvnovaesI have created a module and created a menu item that calls an action20:10
rvnovaesShould I paste the XML?20:10
rvnovaesOr the tracebak?20:11
kstengerdid you register everything to the pool?20:11
rvnovaesYes. On the __ini__.py of the module20:12
rvnovaes__init__.py, sorry20:12
kstengerrvnovaes: what about the __all__ in your .py file?20:16
rvnovaesI have two classes on the .py file: one that 'inherits' from a class from another module adding some fields20:17
rvnovaesand other that inherits from Wizard. They are both on __all__20:17
kstengerboth registered with the right type_ at __init__?20:19
rvnovaesThe first one (that adds the fields to other model) is registered as model. The second one, as wizard.20:19
kstengerwhich one is the failing key?20:20
rvnovaesthe wizard class20:20
rvnovaesMaybe you can take a look at the source code. It is a very small module20:22
rvnovaeshttps://bitbucket.org/silex/tryton/src/90b8083b5aeba1fafed55f4eac45eaffe8839ba1/health_oncology/20:22
kstengercan you paste the stacktrace somewhere?20:22
rvnovaeshttp://pastebin.com/vLQ9MnWc20:24
kstengerYou seem to be missing the ModelViews for your Wizard's states20:25
kstenger'health_oncology.survival_analysis.start' should be related to a ModelView, etc20:26
rvnovaesI was following the example on th documentation. So is it necessary to create a ModelView for each of the states?20:26
kstengeryes, as far as I know20:27
kstenger(all the examples I've seen so far have it)20:27
rvnovaesCan you give (or point somewhere on the tryton code) where I can find an example?20:27
rvnovaesFor example, the classes TranslationExportResult and TranslationExportStart?20:30
kstengerHmm, I just seem to have found the example you refered to, but try this and see if it fixes your issue, define a class inheritate from ModelView, and define it's __name__ to  'health_oncology.survival_analysis.start'20:31
kstengerand do the same for the other state20:31
rvnovaesOk. A sec.20:31
kstengerdon't forget to register them in __init__ as  type_ model, and into your __all__ too20:33
rvnovaesOk. Almost finished.20:34
rvnovaesWorked! Thanks a lot. Saved my life!20:35
kstengeryou are welcome :)20:35
kstengerBut I'm still missing some example for the new configuration file format :-/20:36
-!- vcardon(~vcardon@185.16.50.4) has left #tryton20:42
-!- Telesight(~anthony@77-175-159-159.FTTH.ispfabriek.nl) has joined #tryton20:44
-!- uranus(~uranus@ool-182fa854.dyn.optonline.net) has joined #tryton20:49
-!- alisonken1lap3(~alisonken@18.18.ultimate-int.uia.net) has joined #tryton21:05
-!- alisonken1lap3(~alisonken@18.18.ultimate-int.uia.net) has joined #tryton21:06
-!- rvnovaes(~roberto@177.19.245.134) has joined #tryton21:35
-!- smarro(~sebastian@190.105.93.196) has joined #tryton21:56
-!- alisonken1lap3(~alisonken@18.18.ultimate-int.uia.net) has joined #tryton22:20
-!- hiaselhans(~Thunderbi@77.119.132.194.wireless.dyn.drei.com) has joined #tryton22:29
-!- smarro(~sebastian@190.105.93.196) has joined #tryton23:49

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