IRC logs of #tryton for Tuesday, 2012-11-13

chat.freenode.net #tryton log beginning Tue Nov 13 00:00:02 CET 2012
2012-11-13 15:42 -!- pokoli(~pokoli@83.35.221.56) has left #tryton
2012-11-13 16:18 <mrechte> Hello. I installed trytond from source with virtualenv. Browsing to localhost:8000 returns a 404 error. Serveur logs show: code 404, message File not found. I do not know what to put in trytond.conf for jsondata_path. Thanks
2012-11-13 16:22 <corro> mrechte: You have to use the Tryton client (http://www.tryton.org/downloads.html) instead of your browser.
2012-11-13 16:22 <nicoe> mrechte: there is no web client yet. You must use a tryton client
2012-11-13 16:26 <mrechte> OOps
2012-11-13 16:29 <fink> anybody have experience with calendaring on 2.4?
2012-11-13 16:30 <fink> i've followed the website directions, but my calendar clients complain about lacking a webdav resource
2012-11-13 16:35 <cedk> fink: which client?
2012-11-13 16:36 <fink> cedk: apple ical, sunbird, and cadaver
2012-11-13 16:36 <cedk> fink: those are known to work
2012-11-13 16:36 <fink> cedk: hence my confusion ;)
2012-11-13 16:37 <fink> cedk: i followed this document: http://code.google.com/p/tryton/wiki/HowtoUsingCalendarsWithCalDAV
2012-11-13 16:41 <cedk> fink: if you have even issue to connect with cadaver, it should be a misconfiguration
2012-11-13 16:47 <fink> cedk: i can connect to the json server on 8080 with cadaver, but trying to ls into the Calendar directory returns an error: http://dpaste.org/TwuoB/
2012-11-13 16:47 <fink> cedk: that's very possible
2012-11-13 16:47 <fink> cedk: is there something else i should have done to setup, aside from what is described on the google code wiki link above?
2012-11-13 16:49 <fink> after installing, i created a database, and then followed the calendar directions
2012-11-13 16:49 <cedk> fink: you must not connect to json server but to the webdav
2012-11-13 16:50 <fink> cedk: from the wiki: You can now access the calendar from your CalDAV application using the URL http://<server:port(8080)>/database/Calendars/<calendarname>. The user needs to authenticate herself.
2012-11-13 16:50 <fink> 8080 is not correct?
2012-11-13 16:53 <cedk> fink: depend of your configuration
2012-11-13 16:53 <fink> cedk: it's a stock 2.4 config. trying with 8000 doesn't connect at all: Could not open collection:; 501 Unsupported method ('OPTIONS')
2012-11-13 16:53 <cedk> fink: look at your error, I think you did not install the calendar module
2012-11-13 16:54 <fink> cedk: but i created a calendar and added events & users to it in the admin
2012-11-13 16:54 <fink> is there something else i have to do, to "enable" the calendar?
2012-11-13 16:56 <cedk> fink: strange, here it works
2012-11-13 16:56 <cedk> fink: which version of pywebdav?
2012-11-13 17:04 <fink> cedk: >>> pywebdav.__file__
2012-11-13 17:04 <fink> '/usr/local/lib/python2.7/site-packages/PyWebDAV-0.9.8-py2.7.egg/pywebdav/__init__.pyc'
2012-11-13 17:05 <fink> do i need to enable calendaring in the trytond config file? or in the admin?
2012-11-13 17:06 <fink> i noticed the resources section of the webdav section in the admin is empty
2012-11-13 17:07 <cedk> fink: nothing to do in config file except activate webdav
2012-11-13 17:08 <cedk> fink: could you run the server in verbose to see if there is any error message
2012-11-13 17:08 <fink> sure
2012-11-13 17:09 <fink> cedk: maybe i also need to have a value for hostname_webdav ?
2012-11-13 17:09 <cedk> fink: not required
2012-11-13 17:11 <fink> cedk: verbose = False in config file, right?
2012-11-13 17:12 <fink> sorry
2012-11-13 17:12 <fink> True
2012-11-13 17:14 <cedk> fink: or trytond -v
2012-11-13 17:14 <mrechte> Using tryton client, I now get an error (after the database has been created) in trytond-2.6.0-py2.7.egg/trytond/modules/__init__.py(155)create_graph(): raise Exception('Module %s not found' % module)
2012-11-13 17:15 <mrechte> (Pdb) print module: uml_test3
2012-11-13 17:15 <mrechte> (Pdb) print module_list: [u'uml_test3', u'board', u'mrp', u'sale', u'report_analytic', u'report_account', u'report_crm', u'product', u'custom', u'board_sale', u'report_stock', u'account_followup', u'base_report_designer', u'account', u'purchase', u'report_purchase', u'stock', u'hr', u'hr_timesheet', u'report_sale', u'crm', u'hr_timesheet_invoice', u'board_account', u'base_setup', u'profile_accounting', u'account_report', u'report_analytic_line', u'base']
2012-11-13 17:16 <cedk> mrechte: you a pastbin
2012-11-13 17:16 <cedk> mrechte: but clearly you miss module uml_test3
2012-11-13 17:17 <fink> cedk: aha: from logs: ImportError: No module named DAV.constants
2012-11-13 17:18 <mrechte> I just did "python setup.py install" for trytond and tryton in my virtualenv (as per tryton documentation)
2012-11-13 17:20 <cedk> fink: ok, 2.4 needs pywebdav < 0.9.8
2012-11-13 17:20 <fink> cedk: aha, so i must downgrade …
2012-11-13 17:20 <cedk> mrechte: except that you have a lot of other modules
2012-11-13 17:24 <mrechte> cedk: I ckecked the prerequisted python modules are installed (lxm, relatorio, ...) as explained in http://doc.tryton.org/2.6/trytond/doc/topics/install.html#topics-install
2012-11-13 17:25 <fink> cedk: you wouldn't happen to know which pywebdav version is correct?
2012-11-13 18:11 <mrechte> I am lost: where is that long module list coming from? I checked table ir_module_module and there are only 4 rows (webdav, test, ir, res)
2012-11-13 18:18 <mrechte> OK I was connecting to an exiting OpenERP database ! Sorry for disturbing.
2012-11-13 18:27 <mrechte> I read (google tryton forum) that a module developped from scratch using Tryton as a framework, can be released with any licence type, even closed source. Can some "Tryton official" confirm that ?
2012-11-13 18:28 <cedk> mrechte: you should ask to your lawyer
2012-11-13 18:37 <mrechte> cedk: has some one asked regarding Tryton case, when writing new modules (not derivating an existing module) ?
2012-11-13 18:39 <cedk> mrechte: according to the GPL, it is about derivative work
2012-11-13 18:42 <mrechte> This not clear position may scare companies and prevent them from devloping with Tryton (unless they fully agree with releasing their work under GPL), don't you think ?
2012-11-13 18:46 <cedk> mrechte: I'm not a lawyer all I can say is what is in the GPL
2012-11-13 18:47 <udono> sharoonthomas: Hi, I write up some notes from TUL2012. I lost your example code snipped for including fields documentation as comment, IIRC. May you paste me a snippet again, please?
2012-11-13 18:47 <sharoonthomas> udono: sure, let me send you the relevant links
2012-11-13 18:48 <udono> sharoonthomas: TIA
2012-11-13 18:48 <sharoonthomas> udono: http://sphinx-doc.org/ext/autodoc.html#directive-autoattribute
2012-11-13 18:53 <udono> sharoonthomas: Thanks. I did not recognize it is a sphinx construction. Your example at TUL was in Python only, IIRC.
2012-11-13 19:00 -!- mrechte(~mrechte@landtrekker.com) has left #tryton
2012-11-13 20:46 <rmu> hi
2012-11-13 20:46 <rmu> is it somehow possible to dynamically change a view that is currently shown in the client?
2012-11-13 20:47 <rmu> e.g. add some fields depending on some other field?
2012-11-13 20:47 <rmu> states will not be sufficient
2012-11-13 20:50 <rmu> i have something like what happens in analytic_sale/purchase in _view_look_dom_arch in mind, but i would need dynamic update
2012-11-13 20:50 <rmu> kind of on_change on a field that can change the view
2012-11-13 20:54 <cedk> rmu: no
2012-11-13 20:55 <rmu> but it should be possible to connect a wizard to a button, and generate the view of this wizard dynamically?
2012-11-13 20:57 <cedk> rmu: yes but it is a lot of work
2012-11-13 20:59 -!- ralf58(~quassel@dslb-088-070-142-254.pools.arcor-ip.net) has left #tryton
2012-11-13 21:00 <rmu> hmm. I'm extending the product_variant module, and i want to give the user a form where he can choose a template, and then be presented with a form with possible dimensions to be filled for this template...
2012-11-13 21:01 <Pilou> using wizard, it's easier to choose an existent view dynamically (ie instead of generating the view on demand, generate all needed views in module definition and choose the right one)
2012-11-13 21:01 <rmu> template to attribute is one to many, and product to attribute value is many to many
2012-11-13 21:02 <rmu> so i would need to generate a form that for each attribute in the template lets the user choose one value from the corresponding attribute values
2012-11-13 21:02 <rmu> all possible views are not known a priori, and may change with configuration of attributes
2012-11-13 21:04 <cedk> rmu: you should use the coming fields.Dict
2012-11-13 21:04 <cedk> http://codereview.tryton.org/501007/
2012-11-13 21:04 <cedk> http://codereview.tryton.org/538002/
2012-11-13 21:05 <rmu> thanx for the hint, i will investigate
2012-11-13 21:42 <rmu> is there any example use of the dict field except the test?
2012-11-13 21:57 <rmu> hmm. in my case, the dict schema would depend on some other field
2012-11-13 23:07 <cedk> rmu: not yet, but I think we will make a product_attribute module

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