IRC logs of #tryton for Tuesday, 2012-03-20

chat.freenode.net #tryton log beginning Tue Mar 20 00:00:01 CET 2012
2012-03-20 11:30 <Pander> hi all
2012-03-20 11:32 <sisalp> hi
2012-03-20 11:33 <Pander> I have a module that extends party and I would like to add a group, via the .xml in that module, that can view parties and create parties. Hw do I go about that?
2012-03-20 11:34 <Pander> I think I have to add something similar to <record model="res.group" but now exactly
2012-03-20 11:36 <cedk> Pander: look how it is done for Sale group per example
2012-03-20 11:39 <Pander> is it in trytond_sale?
2012-03-20 11:40 <cedk> Pander: yes
2012-03-20 11:41 <cedk> Pander: group creation: http://hg.tryton.org/modules/sale/file/9f1acfc981bf/sale.xml#l6
2012-03-20 11:41 <Pander> other question: I see that current is 2.2, is there online a manual on how to upgrade from 2.0 to 2.2?
2012-03-20 11:42 <Pander> cedk: thanks
2012-03-20 11:42 <cedk> Pander: model access: http://hg.tryton.org/modules/sale/file/9f1acfc981bf/sale.xml#l322
2012-03-20 11:42 <cedk> Pander: for upgrade normally: https://code.google.com/p/tryton/wiki/Update
2012-03-20 11:42 <cedk> Pander: but make backup and test
2012-03-20 11:45 <Pander> cedk: that is regarding the database, I know that one. I mean the python modules. Do I simply remove the old ones, install the new ones, update the database and that is it?
2012-03-20 11:45 <cedk> Pander: yes
2012-03-20 12:06 <Pander> cedk: ble, update results in File "/usr/local/lib/python2.7/dist-packages/trytond-2.2.1-py2.7.egg/trytond/config.py", line 109, in update_etc
2012-03-20 12:06 <Pander> get_port(netloc, name)) for netloc in value.split(',')]
2012-03-20 12:06 <Pander> AttributeError: 'bool' object has no attribute 'split'
2012-03-20 12:09 <cedk> Pander: you must update the configuration file
2012-03-20 12:11 <Pander> ok, at least an old postgresql path was in there that is fixed
2012-03-20 12:11 <Pander> anything else that needs upgrading?
2012-03-20 12:12 <Pander> or simply use the newest shipped version
2012-03-20 12:23 <cedk> Pander: make a diff
2012-03-20 12:24 <Pander> ah, I'm reading the release notes and see the it is now jsonrpc :)
2012-03-20 13:12 <Pander> cedk: OK, all is upgraded, changed version of my own module and created .po files, installed it, database is upgraded. all that is fine
2012-03-20 13:13 <Pander> cedk: but I don't see a port opening up and client cannot connect to server
2012-03-20 13:13 <Pander> cedk: any thoughts?
2012-03-20 13:14 <cedk> Pander: what is you jsonrpc paramter?
2012-03-20 13:15 <Pander> jsonrpc = localhost:8000
2012-03-20 13:16 <Pander> I have also set my hostname
2012-03-20 13:16 <Pander> and I did nothing with jsondata_path
2012-03-20 13:18 <cedk> Pander: so I don't see, perhaps upload the log somewhere
2012-03-20 13:53 <Pander> cedk: http://pastebin.com/pVaySr5V
2012-03-20 13:53 <Pander> nmap does not show a port 8000
2012-03-20 14:06 <cedk> Pander: in the log: starting JSON-RPC protocol on localhost:8000
2012-03-20 14:06 <cedk> Pander: so it should have a listening socket
2012-03-20 14:07 <Pander> nmap is notre porting 8000 on localhost of hostname :(
2012-03-20 14:07 <cedk> Pander: I don't know if nmpa can detect json-rpc service
2012-03-20 14:08 <cedk> Pander: best to use netstat to see such information
2012-03-20 14:13 <Pander> netstat localhost ? (I'm not familiar with this tool)
2012-03-20 14:20 <bechamel> Pander: "netstat -pant"
2012-03-20 14:23 <Pander> tcp6 0 0 ::1:8000 :::* LISTEN 25242/python
2012-03-20 14:24 <Pander> for localhost and for hostname
2012-03-20 14:24 <Pander> is that correct?
2012-03-20 14:25 <cedk> Pander: yes, but it is listening on ipv6
2012-03-20 14:26 <cedk> Pander: if you are not yet ipv6 ready, you must use 127.0.0.1 instead of localhost
2012-03-20 14:35 <Pander> ah thanks, that explains teh troubles we have been having with clients from switzerland that were trying to connect on hostname. it only worked for them on ip-address
2012-03-20 14:38 <cedk> Pander: you must jump into the 21th century and use IPv6 :-)
2012-03-20 14:40 <Pander> my colocation provider is managing that part :S
2012-03-20 14:42 <cedk> Pander: it is 0.0.0.0 for all interface in IPv4
2012-03-20 14:43 <Pander> ok, I think I want that one
2012-03-20 14:48 <Pander> cedk: few, all is up and running again although I cannot find my custom reports. did that also change from 2.0 -> 2.2?
2012-03-20 14:49 <cedk> Pander: don't think so
2012-03-20 14:49 <cedk> Pander: how did you create it?
2012-03-20 14:51 <Pander> openoffice
2012-03-20 14:51 <cedk> Pander: I mean define in Tryton
2012-03-20 14:52 <Pander> aikidoka.xml: <field name="report">aikidoka/emails.odt</field>
2012-03-20 14:52 <Pander> aikidoka.xml: <field name="report">aikidoka/details.odt</field>
2012-03-20 14:52 <Pander> aikidoka.xml: <field name="report">aikidoka/card.odt</field>
2012-03-20 14:52 <Pander> MANIFEST.in:include *.odt
2012-03-20 14:52 <Pander> setup.py: + ['card.odt', 'details.odt', 'emails.odt'],
2012-03-20 14:52 <cedk> Pander: did you create a action keyword?
2012-03-20 14:53 <Pander> yep
2012-03-20 14:53 <Pander> <record model="ir.action.report" id="report_card">
2012-03-20 14:53 <Pander> <field name="name">Cards</field>
2012-03-20 14:53 <Pander> <field name="model">party.party</field>
2012-03-20 14:54 <Pander> <field name="report_name">party.card</field>
2012-03-20 14:54 <Pander> <field name="report">aikidoka/card.odt</field>
2012-03-20 14:54 <Pander> </record>
2012-03-20 14:54 <Pander> <record model="ir.action.keyword" id="report_card_party">
2012-03-20 14:54 <Pander> <field name="keyword">form_print</field>
2012-03-20 14:54 <Pander> <field name="model">party.party,0</field>
2012-03-20 14:54 <Pander> <field name="action" ref="report_card"/>
2012-03-20 14:54 <Pander> </record>
2012-03-20 14:54 <cedk> Pander: please don't copy/paste in chan
2012-03-20 14:55 <cedk> Pander: ok, I see: now it is: party.party,-1
2012-03-20 14:55 <Pander> sorry, thought number of lines was acceptable, will keep it to one line
2012-03-20 14:55 <Pander> why -1?
2012-03-20 14:55 <Pander> to traverse up the chain of inheritence
2012-03-20 14:56 <cedk> Pander: because 0 could be a real id
2012-03-20 14:56 <Pander> does this also apply for po files? msgctxt "field:aikidoka.aikidoka,dateofbirth:0"
2012-03-20 14:59 <Pander> reports are back, thanks cedk! :D
2012-03-20 14:59 <cedk> Pander: no
2012-03-20 15:12 <Telesight> Pander: Your experiences and setup with Thunderbird and Android and CalDAV are they written down somewhere?
2012-03-20 15:14 <Pander> Telesight: nope, ask pjstevens, he knows a lot more about using Tryton CalDAV, I am more into DAViCal
2012-03-20 15:16 <Pander> Telesight: See https://en.wikipedia.org/wiki/Comparison_of_CalDAV_and_CardDAV_implementations I use Thunderbird+SOGo and Android+CalDAV-Sync&CalDAV-Card
2012-03-20 15:16 <Telesight> Pander: Ok thanks. I try to avoid inventing the wheel ;-)
2012-03-20 15:19 <Pander> Telesight: The guy that makes CalDAV-Sync is working on support for tasks too but will take some time
2012-03-20 15:20 <Pander> Telesight: There are some minor bugs with SOGo see http://www.sogo.nu/bugs/view.php?id=1704 http://www.sogo.nu/bugs/view.php?id=1705 http://www.sogo.nu/bugs/view.php?id=1706
2012-03-20 21:31 <marc0s> can anyone help me with this http://paste.pocoo.org/show/568702/ ? I don't know where to start looking at
2012-03-20 21:31 <marc0s> it's a fresh installed 2.0 setup, in a newly created virtualenv
2012-03-20 22:00 <cedk> marc0s: strange, is the icon in share/pixmaps/tryton ?
2012-03-20 22:02 <marc0s> cedk: tryton-preferences-system.svg
2012-03-20 22:03 <marc0s> cedk: i don't remember when it stopped working, just coming back to work after a while.. so i can provide no much info about any change :(
2012-03-20 22:04 <marc0s> cedk: can it be related to be using a system-wide pygtk? i haven't it in the virtualenv but in my system
2012-03-20 22:06 <cedk> marc0s: perhaps
2012-03-20 22:06 <cedk> marc0s: it seems that tryton doesn't find the local icons
2012-03-20 22:06 <marc0s> cedk: yes, something like that...
2012-03-20 22:06 <cedk> marc0s: perhaps you can look if PIXMAPS_DIR is correct
2012-03-20 22:07 <marc0s> cedk: where should be this var defined?
2012-03-20 22:07 <cedk> marc0s: in config.py
2012-03-20 22:12 <marc0s> cedk: seems correct
2012-03-20 22:13 <marc0s> cedk: this PIXMAPS_DIR = os.path.join(PREFIX, 'share', 'pixmaps', 'tryton') returns the right path
2012-03-20 22:20 <marc0s> i'm f*cking tired today... i'm gonna sleep; will look at it tomorrow
2012-03-20 22:20 <marc0s> thanks for your pointers cedk :)
2012-03-20 22:21 <cedk> marc0s: it is perhaps that your gtk doesn't support svg
2012-03-20 22:22 <marc0s> cedk: uhm... it did before, maybe some update broke it...
2012-03-20 22:22 <cedk> marc0s: it is linked to something like librsvg
2012-03-20 22:28 <cedk> marc0s: I have a patch that doesn't fix the icon loading but prevent the exception

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