IRC logs of #tryton for Monday, 2008-06-16

chat.freenode.net #tryton log beginning Mon Jun 16 00:00:01 CEST 2008
2008-06-16 00:09 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 434:b1af1d5077c0 tryton/tryton/gui/window/ (board.py window.py): Guidelines
2008-06-16 00:09 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 613:89bb53449c27 trytond/trytond/osv/fields.py: Remove size constraint for Reference field
2008-06-16 00:09 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 614:109660fbaa0d trytond/trytond/ir/action.py: Remove size constraint on actions
2008-06-16 00:35 -!- kultviec1(n=kultviec@p5B0D3486.dip0.t-ipconnect.de) has left #tryton
2008-06-16 05:20 -!- yangoon1(n=mathiasb@p549F6593.dip.t-dialin.net) has joined #tryton
2008-06-16 08:45 -!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton
2008-06-16 09:14 -!- gadaga(n=gael@sednaco19320-gw.clients.easynet.fr) has joined #tryton
2008-06-16 09:26 -!- Timitos(n=Timitos@88.217.184.172) has joined #tryton
2008-06-16 09:33 <gadaga> hi
2008-06-16 09:34 <Timitos> gadaga: hi
2008-06-16 09:34 <gadaga> Timitos: hi
2008-06-16 09:43 <udono> hi
2008-06-16 09:47 -!- bechamel(n=user@user-85-201-84-14.tvcablenet.be) has joined #tryton
2008-06-16 10:42 <cedk> What do you think about adding a field on ir_rule_group to have the rules applied on all groups by default ?
2008-06-16 10:43 <cedk> like global_p but with an OR in the sql query
2008-06-16 10:43 <cedk> it will behave like if the rule will be added on all users
2008-06-16 10:45 <cedk> bechamel: ping
2008-06-16 10:50 <bechamel> cedk: global_p ?
2008-06-16 10:51 <cedk> bechamel: global_p make the rule global so it is apply on all with an "AND"
2008-06-16 10:53 <cedk> so global rules can not be by pass by a rule put on a group
2008-06-16 10:54 <cedk> here is the example where I'm block with the current rule system
2008-06-16 10:54 <cedk> it is for timesheet, we want to allow user to see only her timesheet
2008-06-16 10:54 <cedk> and allow user that are in "timesheet admin" group to see all the timesheets
2008-06-16 10:55 <cedk> so first I try with a global rule but I can not allow "timesheet admin" users to see all timesheet
2008-06-16 10:55 <cedk> one solution is to put all other users in a group that have the default rule
2008-06-16 10:56 <cedk> but it is not very userfriendly because each time you create a user, you must put it in this group
2008-06-16 10:57 <cedk> so for me the solution is to create a default rule that is apply on every user but that is not global
2008-06-16 10:59 <bechamel> cedk: adding group to user at creation is common, i dont see a problem
2008-06-16 11:00 <Timitos> bechamel: +1
2008-06-16 11:00 <bechamel> cedk: for me a user without group should be restricted to a very minimal access
2008-06-16 11:01 <cedk> bechamel: because this rule 'see only my timesheet' is rule that must be satisfied every time for everybody
2008-06-16 11:01 <cedk> bechamel: so the rule must be defined on all users but not global because we need to be able to bypass it for some users
2008-06-16 11:02 <cedk> that's why I want to add a default_p field on rule_group to make this
2008-06-16 11:06 <bechamel> cedk: the problem is that we need to express OR, which is not implemented, instead of creating an exception i would prefer to develop the feature.
2008-06-16 11:07 <cedk> bechamel: I don't think so
2008-06-16 11:07 <cedk> bechamel: we have OR
2008-06-16 11:07 <cedk> what we don't have is to be able to put a rule on every users
2008-06-16 11:11 <cedk> bechamel: OR is just create to rule_group
2008-06-16 11:14 <bechamel> cedk: what about a group "timesheet user" and a group "timesheet admin" and the timesheet admin group is allowed to see all the timesheet
2008-06-16 11:17 <cedk> bechamel: what about user that is in any groups ?
2008-06-16 11:19 <bechamel> cedk: these groups are exclusives of course
2008-06-16 11:20 <cedk> bechamel: what about user that is in any groups ?
2008-06-16 11:20 <cedk> bechamel: how do you make groups exclusives ?
2008-06-16 11:22 <bechamel> cedk: my opinion is that the actual rule system is not ok, but i dont think that adding a field will solve the problem
2008-06-16 11:22 <cedk> bechamel: for me it is enough
2008-06-16 11:23 <cedk> we need to match how customers think
2008-06-16 11:23 <cedk> they think like this: user can only see her timesheet and admin can see every body
2008-06-16 11:31 <cedk> I have made the dev
2008-06-16 11:31 <cedk> bechamel: I commit ?
2008-06-16 11:31 <cedk> bechamel: It works for the timesheet needs
2008-06-16 11:32 <cedk> bechamel: and for you, in fact it is the clause of rules that are not enough
2008-06-16 11:34 <bechamel> cedk: yes commit, it will do the trick until we got a better idea :)
2008-06-16 11:34 -!- Timitos(n=Timitos@88.217.184.172) has left #tryton
2008-06-16 11:38 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 29:519ef7569ac0 timesheet/line.xml: Add record rules on timesheet lines
2008-06-16 11:38 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 615:5df119ab9b78 trytond/trytond/ (ir/rule.py ir/rule.xml res/group.py res/user.py):
2008-06-16 11:38 <CIA-52> tryton: Improve record rules:
2008-06-16 11:38 <CIA-52> tryton: - Add default_p to allow to put a rule_group on all users
2008-06-16 11:38 <CIA-52> tryton: - Fix the "rule_group is True if there is no rule"
2008-06-16 11:38 <CIA-52> tryton: - Fix domain on user and group
2008-06-16 11:40 <cedk> bechamel: not the rule_group
2008-06-16 11:50 -!- cedk_(n=ced@ced.homedns.org) has joined #tryton
2008-06-16 11:53 -!- cedk_(n=ced@ced.homedns.org) has joined #tryton
2008-06-16 11:54 -!- cedk_(n=ced@ced.homedns.org) has joined #tryton
2008-06-16 11:54 -!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton
2008-06-16 12:01 -!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton
2008-06-16 12:06 <bechamel> cedk: about the documentation, i just discovered which tool is used by python peoples: http://sphinx.pocoo.org/index.html
2008-06-16 12:09 <bechamel> cedk: it allow syntax highlighting and footnotes
2008-06-16 12:14 <cedk> bechamel: the python doc is in tex
2008-06-16 12:16 <bechamel> cedk: the old one maybe, http://docs.python.org/dev/_sources/tutorial/index.txt
2008-06-16 12:24 <cedk> bechamel: why not
2008-06-16 12:38 -!- yangoon(n=mathiasb@p549F6593.dip.t-dialin.net) has joined #tryton
2008-06-16 12:45 -!- kultviech(n=kultviec@p5B0D0B06.dip0.t-ipconnect.de) has joined #tryton
2008-06-16 12:45 -!- kultviech(n=kultviec@p5B0D0B06.dip0.t-ipconnect.de) has left #tryton
2008-06-16 13:54 -!- gadaga(n=gael@sednaco19320-gw.clients.easynet.fr) has joined #tryton
2008-06-16 14:11 -!- cedk(n=ced@gentoo/developer/cedk) has joined #tryton
2008-06-16 14:25 -!- mr_amit(n=amit@123.237.104.4) has joined #tryton
2008-06-16 14:25 -!- mr_amit(n=amit@123.237.104.4) has left #tryton
2008-06-16 14:28 <cedk> it was a indian from tiny :-)
2008-06-16 14:30 <bechamel> grep 123.237.104.4 /var/log/httpd/access.log :)
2008-06-16 14:35 <cedk> zgrep 123.237.104.4 /var/log/lighttpd/access.log*|wc
2008-06-16 14:35 <cedk> 240 lines
2008-06-16 16:06 <CIA-52> tryton: htgoebel roundup * #130/patch: Added menu some shortcuts.: [new] Added menu some shortcuts.
2008-06-16 16:58 <CIA-52> tryton: hartmut@demetrius.muc.goebel-consult.de default * 435:4a9c0d9a155e tryton/share/tryton/tryton.glade: Added menu some shortcuts.
2008-06-16 16:58 <CIA-52> tryton: ced roundup * #130/patch: Added menu some shortcuts.: [resolved] Applied
2008-06-16 17:47 -!- kultviech(n=kultviec@p5B0D0B06.dip0.t-ipconnect.de) has joined #tryton
2008-06-16 18:12 <CIA-52> tryton: gadaga roundup * #131/server crash in ubuntu 8.04 : cannot import name xpath: [new] File "./trytond", line 7, in <module> import trytond File "/home/ruijuan/tryton/trytond/trytond/__init__.py", line 1, in <module> ...
2008-06-16 18:17 <CIA-52> tryton: ced roundup * #131/server crash in ubuntu 8.04 : cannot import name xpath: [chatting] did you have install pyxml?
2008-06-16 18:37 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 616:b897ab0d0a14 trytond/trytond/tools/convert.py: Remove import minidom
2008-06-16 18:40 <udono> another fork? http://www.crystalconcept.ch/brochures/crystal-eas-enterprise-application-suite/crystal-eas-lerp-pgi-pour-pme-pmi-sans-frais-de-licence/download.html
2008-06-16 19:11 <cedk> I propose to remove pyxml dependency and you lxml instead
2008-06-16 19:12 <cedk> pyxml begin to be deprecated on some distribution
2008-06-16 19:42 -!- udono(n=udono@dynamic-unidsl-85-197-21-238.westend.de) has left #tryton
2008-06-16 19:57 -!- Timitos(n=Timitos@88.217.184.172) has joined #tryton
2008-06-16 20:01 <cedk> I have already the xpath in inherit view working with lxml
2008-06-16 20:46 -!- Timitos(n=Timitos@88.217.184.172) has left #tryton
2008-06-16 21:09 <cedk> bechamel: what do you think about lxml ?
2008-06-16 21:11 <bechamel> i didn't know that pyxml is deprecated
2008-06-16 21:13 <bechamel> cedk: i made a google search with pyxml and lxml and i found: "So in conclusion: lxml kicks ass" :)
2008-06-16 21:14 <cedk> bechamel: it is more pytonic
2008-06-16 21:14 <cedk> bechamel: on ubuntu they put pyxml in old subfolder
2008-06-16 21:19 <cedk> https://bugs.launchpad.net/ubuntu/+source/tinyerp-server/+bug/199014
2008-06-16 21:19 <cedk> http://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=python-xml-removal;users=pkg-zope-developers@lists.alioth.debian.org
2008-06-16 21:20 <bechamel> cedk: i was suprised that there is not a lot of people on the channel, ... but i realised that the germany team play tonight
2008-06-16 21:20 <cedk> bechamel: last release of pyxml: November 29, 2004
2008-06-16 21:20 <cedk> :-)
2008-06-16 21:21 <cedk> I have almost remove dependency to pyxml
2008-06-16 21:22 <bechamel> cedk: ok
2008-06-16 21:23 <cedk> bechamel: go to lunch
2008-06-16 21:24 <bechamel> cedk: bye
2008-06-16 22:59 <cedk> bechamel: I have done the replacement of pyxml with lxml
2008-06-16 22:59 <cedk> bechamel: Do I commit ?
2008-06-16 23:14 <bechamel> cedk: yes yes
2008-06-16 23:16 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 617:3d56b1784786 trytond/trytond/ (ir/ui/view.py osv/orm.py res/user.py trytond.py): Remove pyxml dependency, use lxml instead
2008-06-16 23:16 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 10:07fa8c553738 analytic_account/account.py: Remove pyxml dependency, use lxml instead
2008-06-16 23:16 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 4:b79d95b48f2f analytic_invoice/invoice.py: Remove pyxml dependenxy, use lxml instead
2008-06-16 23:16 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 3:f745ee93f96b analytic_purchase/purchase.py: Remove pyxml dependency, use lxml instead
2008-06-16 23:19 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 12:457f57c5acac gentoo-overlay/app-office/trytond/ (Manifest trytond-9999.ebuild): Remove pyxml dependency, use lxml instead
2008-06-16 23:20 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 13:baea4e54caab gentoo-overlay/app-office/tryton/ (Manifest tryton-9999.ebuild): Remove pyxml dependency
2008-06-16 23:20 -!- yangoon3(n=mathiasb@p549F6593.dip.t-dialin.net) has joined #tryton
2008-06-16 23:20 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 436:3deb2353e9c3 tryton/setup.py: Remove xml dependency in setup.py
2008-06-16 23:21 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 618:2f4bb79af7ef trytond/setup.py: Add dependency to lxml in setup.py
2008-06-16 23:22 <yangoon3> cedk: just observing, that all database tables are created with oids. Is this necessary or could they be omitted?
2008-06-16 23:23 <CIA-52> tryton: ced roundup * #131/server crash in ubuntu 8.04 : cannot import name xpath: [resolved] We remove the dependency for pyxml and use lxml instead. Changeset 3d56b1784786
2008-06-16 23:24 <cedk> yangoon3: I don't see oid ?
2008-06-16 23:26 <yangoon3> cedk: all tables were created WITH OIDS;, and they were created by tryton
2008-06-16 23:27 <cedk> yangoon3: how do you see that ?
2008-06-16 23:28 <yangoon3> par exemple avec pgadmin3, psql...
2008-06-16 23:28 <yangoon3> cedk:
2008-06-16 23:28 <cedk> yangoon3: with pgsql, I do \d table and I don't see oid
2008-06-16 23:28 <bechamel> cedk: yangoon3 talks about the id column
2008-06-16 23:29 <cedk> yangoon3: do you mean "id" ?
2008-06-16 23:30 <yangoon3> cedk: no it's not id, it is really oid
2008-06-16 23:30 <yangoon3> cedk: but I have to precise
2008-06-16 23:31 <yangoon3> not alltabels, but some tables
2008-06-16 23:31 <yangoon3> tables product_
2008-06-16 23:32 <cedk> yangoon3: which tables ?
2008-06-16 23:33 <cedk> yangoon3: can you copy/paste the output ?
2008-06-16 23:35 <yangoon3> all product_, all purchase_, all person_ ...
2008-06-16 23:35 <yangoon3> cedk: but only some ir_
2008-06-16 23:36 <cedk> yangoon3: do you mean: http://www.postgresql.org/docs/8.0/static/datatype-oid.html
2008-06-16 23:37 <yangoon3> cedk: exactly
2008-06-16 23:38 <cedk> yangoon3: it is not tryton that create it but postgresql
2008-06-16 23:38 <yangoon3> cedk: of course, but postgres default is WITHOUT OIDS
2008-06-16 23:38 <cedk> yangoon3: tryton doesn't create any oid
2008-06-16 23:39 <yangoon3> cedk: so the OIDS have to be explicitely set in some tryton database definitions
2008-06-16 23:39 <yangoon3> cedk: this is only the matter to set WITH OIDS while creating the table
2008-06-16 23:41 <cedk> yangoon3: I see that table are created with oids
2008-06-16 23:41 <yangoon3> cedk: if tryton doesn't need them (hopefully, because poor design), they should be omitted
2008-06-16 23:43 <cedk> yangoon3: yes I think we can remove it
2008-06-16 23:43 <yangoon3> cedk: I don't think, they are needed by tryton, because tryton uses its own set of id
2008-06-16 23:44 <yangoon3> they are probably only a relict of former databes dumps (before postgres8.0)
2008-06-16 23:47 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 619:5855c3cedffd trytond/trytond/osv/orm.py: Remove "WITH OIDS" on table creation
2008-06-16 23:48 <cedk> yangoon3: fixed
2008-06-16 23:49 <yangoon3> cedk: you are really fast!
2008-06-16 23:49 <yangoon3> cedk: respect
2008-06-16 23:50 <cedk> yangoon3: by the way we remove dependency to pyxml and use instead lxml
2008-06-16 23:50 <cedk> yangoon3: so if you update you need to install lxml
2008-06-16 23:50 <yangoon3> ok, thanks
2008-06-16 23:51 <yangoon3> cedk: for tryton or trytond?
2008-06-16 23:53 <cedk> yangoon3: for trytond
2008-06-16 23:53 <cedk> yangoon3: and in fact tryton doesn't depend on pyxml
2008-06-16 23:54 <CIA-52> tryton: C?dric Krier <ced@b2ck.com> default * 620:fddcd062aa4b trytond/trytond/ (ir/translation.py report/report.py): Fix missing import minidom
2008-06-16 23:56 <CIA-52> tryton: ced roundup * #70/xml: base validation on Namespaces: We have removed pyxml dependency and use lxml instead. lxml have also validator for relax-ng.

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