IRC logs of #tryton for Thursday, 2015-10-15

chat.freenode.net #tryton log beginning Thu Oct 15 00:00:01 CEST 2015
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:05
-!- smarro(~sebastian@181.16.4.44) has joined #tryton00:46
-!- kstenger(~karla@r167-59-129-178.dialup.adsl.anteldata.net.uy) has joined #tryton01:07
-!- raj1(~eklavya@117.198.75.187) has joined #tryton05:14
-!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton06:39
-!- kstenger1(~karla@r167-59-119-188.dialup.adsl.anteldata.net.uy) has joined #tryton07:01
-!- yangoon1(~mathiasb@p549F1AC1.dip0.t-ipconnect.de) has joined #tryton07:01
-!- raj1(~eklavya@117.198.75.187) has joined #tryton07:32
-!- pinki(7ab15a2d@gateway/web/freenode/ip.122.177.90.45) has joined #tryton07:34
pinkihi everyone... I need help on inheritance in tryton... I am inheriting party.address and want the party field to be a non-mandatory07:36
pinkibut on writing required=False against party field, it is not working07:37
pinkineed help please07:37
-!- frispete(~frispete@p54A91BCA.dip0.t-ipconnect.de) has joined #tryton07:40
-!- rpit(~rpit@aftr-37-201-215-93.unity-media.net) has joined #tryton08:16
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton08:49
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:50
-!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton09:26
-!- rpit(~rpit@2a02:908:e670:3a80:a17c:ca60:cf39:5f7e) has joined #tryton09:39
pokolipinki: you must modify it on __setup__ and remove the required constraint on the database09:40
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:47
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton09:49
-!- nicoe(~nicoe@2a02:a03f:30ad:7d00:ee55:f9ff:fe7b:f7ac) has joined #tryton10:23
-!- rpit(~rpit@2a02:908:e670:3a80:a17c:ca60:cf39:5f7e) has joined #tryton11:19
-!- rpit(~rpit@2a02:908:e670:3a80:a916:ea68:f578:f138) has joined #tryton11:24
-!- rpit(~rpit@2a02:908:e670:3a80:a916:ea68:f578:f138) has joined #tryton11:44
pinkihi everyone.11:50
pinkiI have  a error please help me how to solve it.11:50
pinki   formatted = percent % value TypeError: float argument required, not str  float argument required, not str11:50
cedkpinki: what is the content of percent and value?11:55
pinkivalue.11:57
pinki@classmethod     def get_incremental_num(cls, increment, field_name, name=None):         res = {}         inc_no = 1200         for identifile in increment:             res[identifile.id] = 0             if identifile.id_no:                 print "cfgfxghsfgh====>",str(identifile.id_no)                 increment_no = int(str(identifile.id_no)) + int(str(inc_no))                 res[identifile.id] = increment_no                 print in11:57
pinkithis is my code.11:58
cedkpinki: please no copy/past on channel, it is not readable11:58
cedkpinki: use a pastebin11:58
pinkiok.11:58
-!- smarro(~sebastian@181.16.4.44) has joined #tryton12:20
pinkihttp://pastebin.com/CGjTz5bn12:53
pinkiplease check .12:53
aronceropinki: the link does not works12:56
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton13:06
-!- cjbarnes18(~user@213.131.188.214) has joined #tryton13:12
cjbarnes18hello, could someone tell me where I am going wrong with this? https://gist.github.com/cjbarnes18/266b650533a3215ac00713:41
-!- kstenger(~karla@200.124.209.158) has joined #tryton13:49
pinkierror in datetime while i have imported datetime14:07
pinkikey error datetime14:08
pinkihelp !!!14:08
kstengerpinki: it's better to make a paste of the full traceback at a pastebin like http://pastebin.com/14:10
rmucjbarnes: you are assigning something to whatever super(...) returns, doesn't seem like a good idea. just "override" get_full_address in your Address class14:25
cjbarnes18rmu: thats hat I originally thought and tried, but it dosent sem to work.14:27
cjbarnes18rmu: just updated the gist to my original failed attempt.  the module seems to be loaded OK...14:31
rmucjbarnes18: what do you need the FullAddressText-class for?15:19
rmucjbarnes18: it seems you create a FullAddressText instance and stringify it, per default this results in something like <blablbaobject instance at 0x012345678>15:24
-!- smarro(~sebastian@181.16.4.44) has joined #tryton15:30
-!- bvillasanti(~bvillasan@190.105.65.239) has joined #tryton15:38
-!- LordVan(~lordvan@gentoo/developer/LordVan) has joined #tryton17:05
-!- pablovannini(~pablo@181.47.148.245) has joined #tryton17:14
-!- sunny_dealmeida(~quassel@203.115.71.174) has joined #tryton18:47
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton18:47
-!- cjbarnes18(~user@host86-129-110-17.range86-129.btcentralplus.com) has joined #tryton19:30
cjbarnes18rmu: sorry I missed you earlier, ATM I am just trying things out, eventually it will output address appropriate for the region.19:34
-!- bvillasanti(~bvillasan@190.105.65.239) has joined #tryton19:51
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton20:26
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton20:30
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton20:36
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton20:38
rmucjbarnes18: yes i figured that much. why don't you just construct the string you want in get_full_address method? you don't need to add another class for that.20:41
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton20:42
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton20:58
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton21:06
-!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton21:18
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton21:24
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton21:38
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton21:39
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton21:42
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton21:43
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton21:45
-!- aroncero_(~aroncero@86.63.19.153) has joined #tryton21:46
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton21:46
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton21:48
cjbarnes18rmu: yeaa, I know, will probably change that anyway.  The issue I have right now is that I am unable to override the the method in Address21:49
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton21:50
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton21:53
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton21:54
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton21:56
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton21:57
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton22:03
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton22:05
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton22:06
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton22:08
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton22:09
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton22:11
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton22:13
cedkcjbarnes18: did you register your class in the Pool?22:14
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton22:15
cedkpokoli: could you try to fix your connection?22:15
-!- marc0s(~marcos@unaffiliated/marc0s) has joined #tryton22:18
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton22:21
-!- aroncero__(~aroncero@86.63.19.153) has joined #tryton22:21
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton22:22
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton22:24
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton22:25
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton22:27
-!- aroncero(~aroncero@86.63.19.153) has joined #tryton22:29
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton22:45
-!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton22:58
-!- aroncero_(~aroncero@86.63.19.153) has joined #tryton23:27
cjbarnes18cedk: is that what is missing here?  https://gist.github.com/cjbarnes18/266b650533a3215ac00723:45
cjbarnes18cedk: aah, I think that might be it23:49
-!- aroncero__(~aroncero@86.63.19.153) has joined #tryton23:52
cjbarnes18cedk: apparently not :(23:55

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