chat.freenode.net #tryton log beginning Fri Sep 5 00:00:02 CEST 2014 | ||
2014-09-05 00:24 -!- uranus(~uranus@ool-182fa854.dyn.optonline.net) has joined #tryton | ||
2014-09-05 00:49 -!- prksh(~prksh@122.177.80.89) has left #tryton | ||
2014-09-05 02:31 -!- alisonken1lap3(~alisonken@pool-71-104-227-211.lsanca.dsl-w.verizon.net) has joined #tryton | ||
2014-09-05 03:45 -!- digitalsatori(~Thunderbi@116.234.157.119) has joined #tryton | ||
2014-09-05 03:52 -!- vak0160(~kvirc@36.72.229.107) has joined #tryton | ||
2014-09-05 03:55 -!- fink(~fink@166.205.66.73) has joined #tryton | ||
2014-09-05 04:08 -!- fink(~fink@166.205.66.73) has joined #tryton | ||
2014-09-05 05:32 -!- digitalsatori(~Thunderbi@116.234.157.119) has joined #tryton | ||
2014-09-05 06:40 -!- frispete_(~frispete@p54A91F5E.dip0.t-ipconnect.de) has joined #tryton | ||
2014-09-05 07:01 -!- yangoon(~mathiasb@p549F1954.dip0.t-ipconnect.de) has joined #tryton | ||
2014-09-05 07:31 -!- uranus(~uranus@ool-182fa854.dyn.optonline.net) has joined #tryton | ||
2014-09-05 07:38 -!- ronaldm(~ronaldm@197.211.216.214) has joined #tryton | ||
2014-09-05 07:58 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton | ||
2014-09-05 08:02 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2014-09-05 08:27 -!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton | ||
2014-09-05 08:28 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton | ||
2014-09-05 08:33 -!- uranus(~uranus@ool-182fa854.dyn.optonline.net) has joined #tryton | ||
2014-09-05 08:39 -!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton | ||
2014-09-05 08:55 -!- jeancavallo(~giovanni@bob75-9-88-181-2-176.fbx.proxad.net) has joined #tryton | ||
2014-09-05 09:17 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton | ||
2014-09-05 09:27 -!- vcardon(~vcardon@185.16.50.4) has joined #tryton | ||
2014-09-05 09:44 -!- rpit(~ralf@dslb-088-070-154-187.088.070.pools.vodafone-ip.de) has joined #tryton | ||
2014-09-05 10:07 -!- bechamel(~Adium@62-197-96-189.teledisnet.be) has joined #tryton | ||
2014-09-05 10:08 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton | ||
2014-09-05 10:09 -!- vernichon(~Thunderbi@gex01-1-78-234-55-95.fbx.proxad.net) has joined #tryton | ||
2014-09-05 10:26 -!- vernichon(~Thunderbi@gex01-1-78-234-55-95.fbx.proxad.net) has joined #tryton | ||
2014-09-05 10:38 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | ||
2014-09-05 10:42 -!- ytz(~textual@opfw01.options-it.com) has joined #tryton | ||
2014-09-05 10:59 -!- rpit(~ralf@dslb-088-070-154-187.088.070.pools.vodafone-ip.de) has joined #tryton | ||
2014-09-05 11:01 -!- prksh(~prksh@198.61.199.179) has joined #tryton | ||
2014-09-05 11:08 -!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has joined #tryton | ||
2014-09-05 11:22 -!- ytz(~ytz@opfw01.options-it.com) has joined #tryton | ||
2014-09-05 11:30 -!- bechamel1(~Adium@62-197-96-189.teledisnet.be) has joined #tryton | ||
2014-09-05 12:32 -!- vcardon(~vcardon@185.16.50.4) has joined #tryton | ||
2014-09-05 12:33 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton | ||
2014-09-05 12:42 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2014-09-05 12:56 -!- vernichon(~Thunderbi@gex01-1-78-234-55-95.fbx.proxad.net) has joined #tryton | ||
2014-09-05 13:05 -!- mariomop(~quassel@host148.190-229-212.telecom.net.ar) has joined #tryton | ||
2014-09-05 13:10 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton | ||
2014-09-05 13:17 -!- vernichon(~Thunderbi@gex01-1-78-234-55-95.fbx.proxad.net) has joined #tryton | ||
2014-09-05 13:44 -!- marius_(~marius@v100.nfq.lt) has joined #tryton | ||
2014-09-05 13:44 <marius_> is it possible to open model edit view from wizard with prefilled fields? | ||
2014-09-05 13:51 -!- kstenger(~karla@200.124.209.158) has joined #tryton | ||
2014-09-05 14:52 <pokoli> marius_: just add default values depending on the context and fill the context on your wizard | ||
2014-09-05 14:52 <pokoli> marius_: that may do the trick | ||
2014-09-05 15:05 <marius_> maybe it's possible with pyson_context or something like that|? | ||
2014-09-05 15:05 <pokoli> marius_: if you have only static data, context will do the trick | ||
2014-09-05 15:06 <pokoli> marius_: your wizard ends with an StateAction, so you must modify the context of the returned action | ||
2014-09-05 15:06 <marius_> I want to generate some data in wizard, and open form window of new object with that data | ||
2014-09-05 15:07 <pokoli> marius_: so you're saving the data on the wizard? | ||
2014-09-05 15:07 <pokoli> marius_: just return {'res_id': [list of ids generated by your wizard]} on the second parameter of the stateaction | ||
2014-09-05 15:07 <pokoli> s/parameter/return value | ||
2014-09-05 15:08 <marius_> pokoli, what may be one of the ways, but I don't think I want to save it :/ | ||
2014-09-05 15:08 <pokoli> marius_: so use the context to fill the default values for the records | ||
2014-09-05 15:09 <marius_> ok, thanks | ||
2014-09-05 15:09 <pokoli> marius_: but I'm wondering why you don't want to save it | ||
2014-09-05 15:09 <marius_> because I don't have all the required fields | ||
2014-09-05 15:10 <pokoli> marius_: so you may add all the required fields in the wizard | ||
2014-09-05 15:10 <pokoli> marius_: just ask the user before creating anything | ||
2014-09-05 15:15 <cedk> marius_: creating record via wizard is considered harmful | ||
2014-09-05 16:01 -!- digitalsatori(~Thunderbi@116.234.181.110) has joined #tryton | ||
2014-09-05 16:03 -!- smarro(~sebastian@190.105.93.196) has joined #tryton | ||
2014-09-05 16:17 -!- ronaldm(~ronaldm@197.211.216.214) has joined #tryton | ||
2014-09-05 16:26 -!- pablovannini(~pablo@host126.186-109-85.telecom.net.ar) has joined #tryton | ||
2014-09-05 16:28 -!- alisonken1lap3(~alisonken@18.18.ultimate-int.uia.net) has joined #tryton | ||
2014-09-05 17:17 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton | ||
2014-09-05 17:24 -!- rpit(~ralf@dslb-088-070-154-187.088.070.pools.vodafone-ip.de) has joined #tryton | ||
2014-09-05 17:33 -!- smarro(~sebastian@190.105.93.196) has joined #tryton | ||
2014-09-05 18:16 -!- vcardon(~vcardon@185.16.50.4) has left #tryton | ||
2014-09-05 18:44 <kstenger> I 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? | ||
2014-09-05 18:55 <kstenger> nm, found it | ||
2014-09-05 19:00 -!- coprinf_(~coprinf@190.190.170.101) has joined #tryton | ||
2014-09-05 19:02 <coprinf_> Hi. I'm getting an error "The value "1" of field "Company" on "Analytic Account" doesn't exist.". Anyone knows what it means? | ||
2014-09-05 19:45 -!- zultron_(~zultron@99-190-134-148.lightspeed.austtx.sbcglobal.net) has joined #tryton | ||
2014-09-05 19:51 -!- rvnovaes(~roberto@177.19.245.134) has joined #tryton | ||
2014-09-05 19:51 <rvnovaes> Need help creating wizard. Getting KeyError when executing get on Pool | ||
2014-09-05 20:00 -!- vcardon(~vcardon@185.16.50.4) has joined #tryton | ||
2014-09-05 20:01 -!- vcardon(~vcardon@185.16.50.4) has joined #tryton | ||
2014-09-05 20:02 -!- uranus(~uranus@ool-182fa854.dyn.optonline.net) has joined #tryton | ||
2014-09-05 20:05 <kstenger> actually, 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? | ||
2014-09-05 20:05 -!- rvnovaes(~roberto@177.19.245.134) has joined #tryton | ||
2014-09-05 20:06 <rvnovaes> Need help on creating wizard. Driving me crazy. KeyError on Pool.get() | ||
2014-09-05 20:08 <kstenger> rvnovaes: you need to give more information | ||
2014-09-05 20:10 <rvnovaes> I have created a module and created a menu item that calls an action | ||
2014-09-05 20:10 <rvnovaes> Should I paste the XML? | ||
2014-09-05 20:11 <rvnovaes> Or the tracebak? | ||
2014-09-05 20:11 <kstenger> did you register everything to the pool? | ||
2014-09-05 20:12 <rvnovaes> Yes. On the __ini__.py of the module | ||
2014-09-05 20:12 <rvnovaes> __init__.py, sorry | ||
2014-09-05 20:16 <kstenger> rvnovaes: what about the __all__ in your .py file? | ||
2014-09-05 20:17 <rvnovaes> I have two classes on the .py file: one that 'inherits' from a class from another module adding some fields | ||
2014-09-05 20:17 <rvnovaes> and other that inherits from Wizard. They are both on __all__ | ||
2014-09-05 20:19 <kstenger> both registered with the right type_ at __init__? | ||
2014-09-05 20:19 <rvnovaes> The first one (that adds the fields to other model) is registered as model. The second one, as wizard. | ||
2014-09-05 20:20 <kstenger> which one is the failing key? | ||
2014-09-05 20:20 <rvnovaes> the wizard class | ||
2014-09-05 20:22 <rvnovaes> Maybe you can take a look at the source code. It is a very small module | ||
2014-09-05 20:22 <rvnovaes> https://bitbucket.org/silex/tryton/src/90b8083b5aeba1fafed55f4eac45eaffe8839ba1/health_oncology/ | ||
2014-09-05 20:22 <kstenger> can you paste the stacktrace somewhere? | ||
2014-09-05 20:24 <rvnovaes> http://pastebin.com/vLQ9MnWc | ||
2014-09-05 20:25 <kstenger> You seem to be missing the ModelViews for your Wizard's states | ||
2014-09-05 20:26 <kstenger> 'health_oncology.survival_analysis.start' should be related to a ModelView, etc | ||
2014-09-05 20:26 <rvnovaes> I was following the example on th documentation. So is it necessary to create a ModelView for each of the states? | ||
2014-09-05 20:27 <kstenger> yes, as far as I know | ||
2014-09-05 20:27 <kstenger> (all the examples I've seen so far have it) | ||
2014-09-05 20:27 <rvnovaes> Can you give (or point somewhere on the tryton code) where I can find an example? | ||
2014-09-05 20:30 <rvnovaes> For example, the classes TranslationExportResult and TranslationExportStart? | ||
2014-09-05 20:31 <kstenger> Hmm, 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' | ||
2014-09-05 20:31 <kstenger> and do the same for the other state | ||
2014-09-05 20:31 <rvnovaes> Ok. A sec. | ||
2014-09-05 20:33 <kstenger> don't forget to register them in __init__ as type_ model, and into your __all__ too | ||
2014-09-05 20:34 <rvnovaes> Ok. Almost finished. | ||
2014-09-05 20:35 <rvnovaes> Worked! Thanks a lot. Saved my life! | ||
2014-09-05 20:35 <kstenger> you are welcome :) | ||
2014-09-05 20:36 <kstenger> But I'm still missing some example for the new configuration file format :-/ | ||
2014-09-05 20:42 -!- vcardon(~vcardon@185.16.50.4) has left #tryton | ||
2014-09-05 20:44 -!- Telesight(~anthony@77-175-159-159.FTTH.ispfabriek.nl) has joined #tryton | ||
2014-09-05 20:49 -!- uranus(~uranus@ool-182fa854.dyn.optonline.net) has joined #tryton | ||
2014-09-05 21:05 -!- alisonken1lap3(~alisonken@18.18.ultimate-int.uia.net) has joined #tryton | ||
2014-09-05 21:06 -!- alisonken1lap3(~alisonken@18.18.ultimate-int.uia.net) has joined #tryton | ||
2014-09-05 21:35 -!- rvnovaes(~roberto@177.19.245.134) has joined #tryton | ||
2014-09-05 21:56 -!- smarro(~sebastian@190.105.93.196) has joined #tryton | ||
2014-09-05 22:20 -!- alisonken1lap3(~alisonken@18.18.ultimate-int.uia.net) has joined #tryton | ||
2014-09-05 22:29 -!- hiaselhans(~Thunderbi@77.119.132.194.wireless.dyn.drei.com) has joined #tryton | ||
2014-09-05 23:49 -!- smarro(~sebastian@190.105.93.196) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!