chat.freenode.net #tryton log beginning Tue Nov 16 00:00:04 CET 2010 | ||
2010-11-16 01:34 -!- tony__(~tony@116.233.246.78) has joined #tryton | ||
2010-11-16 03:04 -!- svaksha(~svaksha@unaffiliated/svaksha) has joined #tryton | ||
2010-11-16 04:44 -!- trifon(~trifon@91-67-144-158-dynip.superkabel.de) has joined #tryton | ||
2010-11-16 04:52 -!- trifon(~trifon@91-67-144-158-dynip.superkabel.de) has joined #tryton | ||
2010-11-16 05:17 -!- trifon(~trifon@91-67-144-158-dynip.superkabel.de) has joined #tryton | ||
2010-11-16 05:22 -!- yangoon(~mathiasb@p549F64A5.dip.t-dialin.net) has joined #tryton | ||
2010-11-16 06:26 -!- sdistefano(~sdistefan@125.24.36.219.adsl.dynamic.totbb.net) has joined #tryton | ||
2010-11-16 06:26 <sdistefano> hi everyone ; if I need to add a field to an existing model, what's the easiest way to do that | ||
2010-11-16 08:49 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton | ||
2010-11-16 09:05 -!- Red15(~red15@unaffiliated/red15) has joined #tryton | ||
2010-11-16 09:12 <sdistefano> I'm getting hangs on the client now if I try to add a new record after I extended the model | ||
2010-11-16 09:13 <sdistefano> even removing the extension doesn't seem to help ; client will hang and I get NameError: name 'company' is not defined | ||
2010-11-16 09:13 <sdistefano> if I try to do it trough the API ; any ideas? | ||
2010-11-16 09:25 -!- ecarreras(~under@unaffiliated/ecarreras) has joined #tryton | ||
2010-11-16 09:31 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2010-11-16 09:37 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton | ||
2010-11-16 09:39 -!- paepke(~paepke@p4FEB03EF.dip0.t-ipconnect.de) has joined #tryton | ||
2010-11-16 09:48 -!- Timitos(~kp@88.217.184.172) has joined #tryton | ||
2010-11-16 09:48 -!- trifon(~trifon@91-67-144-158-dynip.superkabel.de) has joined #tryton | ||
2010-11-16 09:56 -!- paepke(~paepke@p4FEB03EF.dip0.t-ipconnect.de) has left #tryton | ||
2010-11-16 10:34 -!- gordon_geeko(~jeroen@212.147.120.127) has joined #tryton | ||
2010-11-16 10:55 -!- bechamel(~user@chimie-prtx11.scf.fundp.ac.be) has joined #tryton | ||
2010-11-16 11:00 <gordon_geeko> is it possible to get the cursor and user in __init__ of a model? | ||
2010-11-16 11:01 <cedk> gordon_geeko: no | ||
2010-11-16 11:01 <cedk> gordon_geeko: __init__ is independant of the database | ||
2010-11-16 11:01 <cedk> gordon_geeko: what do you want to do? | ||
2010-11-16 11:02 <gordon_geeko> cedk: set a field domain filter upon initialization | ||
2010-11-16 11:02 <gordon_geeko> cedk: based on a function | ||
2010-11-16 11:03 <gordon_geeko> cedk: i was looking at doing a copy of field and setting domain via field.domain.append | ||
2010-11-16 11:04 <cedk> gordon_geeko: based on which function? | ||
2010-11-16 11:04 <gordon_geeko> cedk: custom for returning a list of ids from another object | ||
2010-11-16 11:05 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has joined #tryton | ||
2010-11-16 11:07 <cedk> gordon_geeko: need to get more informations but I guess you can do it with dynamic domain (PYSON) | ||
2010-11-16 11:10 <gordon_geeko> cedk: something like is done in _action_open_reconcile_lines of move.py? | ||
2010-11-16 11:18 <cedk> gordon_geeko: i think you must create a function field on the target model that will be used for domain constraint | ||
2010-11-16 11:22 -!- paepke(~paepke@p4FEB03EF.dip0.t-ipconnect.de) has joined #tryton | ||
2010-11-16 11:34 <gordon_geeko> cedk: is tryton.org down? | ||
2010-11-16 11:39 <cedk> gordon_geeko: I'm updating glibc for security | ||
2010-11-16 11:40 <gordon_geeko> cedk: ah... | ||
2010-11-16 11:40 -!- tony__(~tony@116.233.246.78) has joined #tryton | ||
2010-11-16 11:54 -!- irclog(~irclog@tycho.b2ck.com) has joined #tryton | ||
2010-11-16 11:56 <cedk> gordon_geeko: back | ||
2010-11-16 11:57 <cedk> I think I will need to stop hg and roundup to process the update | ||
2010-11-16 11:57 <cedk> I will do it this night | ||
2010-11-16 12:21 <gordon_geeko> cedk: the function fields used in a domain must be in the view? | ||
2010-11-16 12:25 <cedk> gordon_geeko: you must put in depend of the field | ||
2010-11-16 12:47 -!- heg(~heg@dyn.83-228-165-075.dsl.vtx.ch) has joined #tryton | ||
2010-11-16 12:55 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton | ||
2010-11-16 13:44 <lem0na> cedk: found some duplicates on tryton.pot -> #: tryton/gui/window/dbcreate.py:30 and #: tryton/gui/window/dbcreate.py:182 tryton/gui/window/dbdumpdrop.py:135, #: tryton/gui/window/dbrestore.py:89 | ||
2010-11-16 13:45 <yangoon> lem0na: probably not duplicates, but multiple occurencies | ||
2010-11-16 13:46 <lem0na> yangoon: yes - but i think they should be grouped in one resource | ||
2010-11-16 13:46 <lem0na> yangoon: or am I wrong? | ||
2010-11-16 13:47 <yangoon> lem0na: same occurrence doesn't necessarily mean same meaning | ||
2010-11-16 13:47 <yangoon> could be that you need differentiated translation for some language | ||
2010-11-16 13:49 <lem0na> yangoon: http://pastebin.com/PAMWsbCZ | ||
2010-11-16 13:49 <lem0na> yangoon: the diffrence in one word but the meaning is the same | ||
2010-11-16 13:51 <yangoon> lem0na: yes, they are the dialogs resp. in dbcreate and dbrestore | ||
2010-11-16 13:51 <lem0na> yangoon: did they do not mean the same thing? | ||
2010-11-16 13:51 <yangoon> the software cannot know if the meaning of the same sentence is always the same | ||
2010-11-16 13:52 <yangoon> example: sequence | ||
2010-11-16 13:52 <yangoon> can be in german: Sequenz, Reihenfolge, Nummernkreis | ||
2010-11-16 13:53 <yangoon> so you must have the possibilty to translate each single one | ||
2010-11-16 13:53 <lem0na> yangoon: maybe i am worng - i thing this two msgid's meant the same and can be combined | ||
2010-11-16 13:54 <yangoon> lem0na: could be | ||
2010-11-16 13:54 <gordon_geeko> what am i missing when i use a function field in a domain and get the error "function object at ... is not JSON serializable"? | ||
2010-11-16 13:54 <lem0na> yangoon: and about seaquence - i realase that i have forgotten german - have not speak it over 20 years :( | ||
2010-11-16 13:59 <cedk> gordon_geeko: copy/paste the code somewhere | ||
2010-11-16 14:03 -!- johbo(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton | ||
2010-11-16 14:04 <sdistefano> I'm trying to change a view - without success. I could modify the model fields but my XML seems to be ignored | ||
2010-11-16 14:05 <sdistefano> is <record model="ir.ui.view" id="party_view_tree"> in my custom module not enough? | ||
2010-11-16 14:05 <cedk> sdistefano: copy/paste the xml in soem website | ||
2010-11-16 14:06 <sdistefano> sorry! | ||
2010-11-16 14:06 <sdistefano> here it is http://pastebin.com/hWV8Hvnr | ||
2010-11-16 14:08 <cedk> sdistefano: you must use xpath syntax in CDATA part | ||
2010-11-16 14:09 <sdistefano> cedk: it's tryton 1.4 ; and I copied it from the party.party module | ||
2010-11-16 14:09 <cedk> sdistefano: like http://hg.tryton.org/modules/account/file/b5bdbac9d33b/party.xml#l13 | ||
2010-11-16 14:09 <gordon_geeko> cedk: http://dpaste.com/275944/ | ||
2010-11-16 14:10 <sdistefano> is that valid for 1.4? | ||
2010-11-16 14:10 <cedk> sdistefano: yes | ||
2010-11-16 14:11 <cedk> gordon_geeko: this should work http://dpaste.com/275945/ | ||
2010-11-16 14:12 <sdistefano> cedk: still no change ; but I understand now, I'm trying to use a field that is in the addresses one2m | ||
2010-11-16 14:12 <sdistefano> cedk: is it possible to use the output a function there? so that I can take the first address and display the info I need | ||
2010-11-16 14:12 <cedk> gordon_geeko: be carefull that it is not good to store data on Model like you do with _current_periods | ||
2010-11-16 14:13 <cedk> sdistefano: for city? | ||
2010-11-16 14:14 <sdistefano> cedk: yes | ||
2010-11-16 14:14 <cedk> sdistefano: you can see http://hg.tryton.org/modules/party/file/a13f851848ad/party.py#l56 | ||
2010-11-16 14:16 <cedk> gordon_geeko: you can use the Cache decorator | ||
2010-11-16 14:16 <sdistefano> cedk: I don't understand | ||
2010-11-16 14:16 <sdistefano> oh sorry wrong line | ||
2010-11-16 14:16 <sdistefano> I do understand | ||
2010-11-16 14:17 <gordon_geeko> cedk: thx for the tips, but adding the Eval still gives the TypeError | ||
2010-11-16 14:18 <cedk> gordon_geeko: yeps, I forget the default value http://dpaste.com/275948/ | ||
2010-11-16 14:19 <sdistefano> cedk: Dont, but still doesn't work ; no error msg either, just ignored | ||
2010-11-16 14:21 <cedk> sdistefano: I don't understand | ||
2010-11-16 14:21 <sdistefano> cedk: My new field on the view parties table is not there | ||
2010-11-16 14:26 -!- tony__(~tony@116.233.246.78) has joined #tryton | ||
2010-11-16 14:28 <cedk> sdistefano: did you define the xml in the __tryton__.py | ||
2010-11-16 14:29 <sdistefano> cedk: I did | ||
2010-11-16 14:30 <gordon_geeko> cedk: thx, no more error - but it seems the function is never called | ||
2010-11-16 14:32 <cedk> gordon_geeko: depends must be list of string http://dpaste.com/275952/ | ||
2010-11-16 14:32 <cedk> sdistefano: coudl you copy/paste last version of xml? | ||
2010-11-16 14:33 <sdistefano> cedk: http://pastebin.com/a63xd3PV | ||
2010-11-16 14:35 <cedk> sdistefano: strange did you run a database update after change? | ||
2010-11-16 14:36 <sdistefano> cedk: no ; thought it wasn't needed after adding a function | ||
2010-11-16 14:37 <sdistefano> cedk: did it now | ||
2010-11-16 14:37 <sdistefano> cedk: still not there | ||
2010-11-16 14:38 <cedk> sdistefano: this is strange | ||
2010-11-16 14:38 <Timitos> cedk: i also noticed things like this. it seems that it does not work in all cases | ||
2010-11-16 14:38 <cedk> sdistefano: do you see your view in the admin menu | ||
2010-11-16 14:38 <sdistefano> cedk: I'm trying to modify an existing view | ||
2010-11-16 14:38 <Timitos> cedk: maybe it has to do with another module that extends the view too or something like that | ||
2010-11-16 14:38 <sdistefano> cedk: the one that comes with Tryton's party module | ||
2010-11-16 14:39 <sdistefano> cedk: and I'm checking the main list of Parties tryton has | ||
2010-11-16 14:39 -!- enlightx_(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton | ||
2010-11-16 14:40 <cedk> sdistefano: but I want to ensure that the view record is in the database | ||
2010-11-16 14:40 <Timitos> cedk: in my case i saw the view in the admin view but it was not used. but the case was a little bit different. i tried to extend a view that was created by extension itself | ||
2010-11-16 14:40 <cedk> Timitos: this is not a feature | ||
2010-11-16 14:40 <sdistefano> cedk: what would the view name be? | ||
2010-11-16 14:41 <sdistefano> cedk: I'm using party_view_tree whch was always there | ||
2010-11-16 14:41 <sdistefano> cedk: should I use something else? ... I'm trying to monkey patch teh existing view, that was my though | ||
2010-11-16 14:42 <Timitos> cedk: you mean: this is not possible? ok | ||
2010-11-16 14:44 -!- gremly(~gremly@200.106.202.91) has joined #tryton | ||
2010-11-16 14:45 <cedk> Timitos: yes inherit only work on non-inherit view | ||
2010-11-16 14:46 <cedk> sdistefano: there is no name on view | ||
2010-11-16 14:46 <sdistefano> cedk: I mean i | ||
2010-11-16 14:46 <sdistefano> id | ||
2010-11-16 14:47 <Timitos> cedk: i had a case where i needed to extend a view at a field position i could only define with fields i already added by a inherit view. i something like this possible? | ||
2010-11-16 14:49 <cedk> sdistefano: it is not deterministic | ||
2010-11-16 14:49 <cedk> Timitos: yes | ||
2010-11-16 14:50 <Timitos> cedk: it did not succeed when i tried this. maybe i need to play around with priority? | ||
2010-11-16 14:50 <sdistefano> cedk: how do I find the view on the database then ; how can I identify it? | ||
2010-11-16 14:52 <cedk> sdistefano: search by model | ||
2010-11-16 14:52 <sdistefano> cedk: not there | ||
2010-11-16 14:54 <sdistefano> cedk: sorry, it IS there | ||
2010-11-16 14:57 <cedk> sdistefano: so it is strange | ||
2010-11-16 14:58 <cedk> sdistefano: no error message on server log? | ||
2010-11-16 14:58 -!- enlightx(~enlightx@static-217-133-61-144.clienti.tiscali.it) has joined #tryton | ||
2010-11-16 14:58 <sdistefano> cedk: just got one! | ||
2010-11-16 14:58 <sdistefano> cedk: http://pastebin.com/sHdEutV1 | ||
2010-11-16 15:00 <cedk> sdistefano: it seems you did not correctly define function field | ||
2010-11-16 15:00 <udono> sdistefano: how do you define 'city'on party? | ||
2010-11-16 15:00 <sdistefano> cedk: city = fields.Function(fields.Char('city'), 'get_mechanism') | ||
2010-11-16 15:01 <udono> sdistefano: is the *.py file imported in __init__ | ||
2010-11-16 15:02 <sdistefano> udono: it is | ||
2010-11-16 15:03 <udono> sdistefano: may you paste the class where you define the above Function field (incl. get_mechanism)? | ||
2010-11-16 15:04 <sdistefano> udono: http://pastebin.com/3gtjEcUR | ||
2010-11-16 15:05 <udono> sdistefano: so you need a method for 'get_mechanism'... def get_mechanism(): ... | ||
2010-11-16 15:07 <sdistefano> udono: d'oh! I thought it came with the base class | ||
2010-11-16 15:07 <sdistefano> udono: sec | ||
2010-11-16 15:07 <udono> sdistefano: but there is already a def get_mechanism on party.party. | ||
2010-11-16 15:08 <udono> sdistefano: so better not overwrite it. Maybe write an own getter like 'get_city' or 'get_first_address_city' | ||
2010-11-16 15:09 <udono> sdistefano: yas, it comes with the base_class, but you need a getter, which provides a string, because fields.Char expect it (city = fields.Function(fields.Char...) | ||
2010-11-16 15:10 <sdistefano> udono: tried http://pastebin.com/GZfxpnqJ | ||
2010-11-16 15:10 <sdistefano> same error | ||
2010-11-16 15:11 <gordon_geeko> cedk: the function fields are never called! | ||
2010-11-16 15:12 <udono> sdistefano: is it on a new database too? | ||
2010-11-16 15:13 <sdistefano> udono: relatively new tryton 1.4 | ||
2010-11-16 15:14 <udono> sdistefano: Tryt to create a new database with your module. Sometimes it helps in development. | ||
2010-11-16 15:14 <cedk> gordon_geeko: did you fix also global_periods? | ||
2010-11-16 15:15 <sdistefano> udono: ok, I can't try that right now ; but I have a few more questions about tryton in general | ||
2010-11-16 15:15 <sdistefano> udono: do you have 5 mnutes? | ||
2010-11-16 15:15 <udono> sdistefano: just ask | ||
2010-11-16 15:16 <gordon_geeko> cedk:yes, http://dpaste.com/275963/ | ||
2010-11-16 15:16 <sdistefano> k ; 1) if I want to remove fields from a view with my override, how do I do that? | ||
2010-11-16 15:16 <udono> sdistefano: with xpath. But pay attention if they are required | ||
2010-11-16 15:17 <sdistefano> udono: but in the list view it wouldn't matter, right? | ||
2010-11-16 15:17 -!- trifon(~trifon@p4FFB881D.dip0.t-ipconnect.de) has joined #tryton | ||
2010-11-16 15:18 <udono> sdistefano: They are handled separated, see gordon_geeko s paste http://pastebin.com/a63xd3PV he adds a field in a tree view... | ||
2010-11-16 15:19 <udono> sdistefano: sorry, was your paste... | ||
2010-11-16 15:19 <cedk> gordon_geeko: I don't see. Could you try by putting the fields in the view | ||
2010-11-16 15:20 <udono> sdistefano: for each view id you need to define your modifications. | ||
2010-11-16 15:20 <sdistefano> udono: ok thanks | ||
2010-11-16 15:20 <sdistefano> my next question is much more ambitious | ||
2010-11-16 15:20 <gordon_geeko> cedk: i did. they're also empty | ||
2010-11-16 15:21 <sdistefano> we will need CRM features in the future ; especially being able to store e-mails so that sales people can see the entire e-mail history with any client | ||
2010-11-16 15:21 <sdistefano> displaying attachments and allowing to send e-mail as well would be desirable but not critical ; how feasible does this sound? | ||
2010-11-16 15:22 <cedk> gordon_geeko: but it is called? | ||
2010-11-16 15:23 <gordon_geeko> cedk: not once... | ||
2010-11-16 15:23 <cedk> sdistefano: there is http://code.google.com/p/tryton/wiki/EmailIntegration | ||
2010-11-16 15:24 <cedk> gordon_geeko: don't you have duplicate methods? | ||
2010-11-16 15:24 <sdistefano> will that also have a UI to see e-mail within tryton? | ||
2010-11-16 15:25 <gordon_geeko> cedk: those 2 are nearly identical, but the only ones in the class | ||
2010-11-16 15:27 <udono> sdistefano: I guess there will be some simple view in Tryton for emails like we have for calender. But in general we do not try to mimic already existing applications. | ||
2010-11-16 15:27 <cedk> sdistefano: we thought about implementing a IMAP server | ||
2010-11-16 15:27 <cedk> gordon_geeko: so it is very strange | ||
2010-11-16 15:28 <sdistefano> Sure, I don't want an e-mail client ; just a way for people to see what e-mails anyone has sent before | ||
2010-11-16 15:28 <sdistefano> (in a central location) ; is this in active development? When is it expected to be ready? | ||
2010-11-16 15:29 <udono> sdistefano: afaik sharoon is working on this. I do not know when it is finished. | ||
2010-11-16 15:30 <sdistefano> I see | ||
2010-11-16 15:31 <sdistefano> by the way, I fixed the problem ; it's just that in 1.4 the Function system is completely diffeerent | ||
2010-11-16 15:31 <bechamel> gordon_geeko: I don't see any "Move()" at the end of http://dpaste.com/275963/, is it missing in your code or in the paste ? | ||
2010-11-16 15:31 <udono> sdistefano: ouch, sorry have not recognized that you used 1.4 | ||
2010-11-16 15:34 <gordon_geeko> bechamel: no, i only pasted the first part | ||
2010-11-16 15:35 <sdistefano> I see ; one minor thing is that there is no label for it on the list | ||
2010-11-16 15:35 -!- paepke(~paepke@p4FEB6DFD.dip.t-dialin.net) has joined #tryton | ||
2010-11-16 15:35 <sdistefano> any quick fix forthat? | ||
2010-11-16 15:36 <cedk> sdistefano: string="..." | ||
2010-11-16 15:36 <sdistefano> brilliant ; oh last thing | ||
2010-11-16 15:36 <sdistefano> have you ever discussed integrating with something like SQLAlchemy? | ||
2010-11-16 15:37 <gordon_geeko> ok, i messed things up - i upgraded the client to 1.6.1 but not the modules... | ||
2010-11-16 15:37 <cedk> sdistefano: I started to analyse the possibility | ||
2010-11-16 15:38 <sdistefano> cedk: sorry, string= seems to be only for <tree, not <field in 1.4 | ||
2010-11-16 15:38 <sdistefano> I see all other fields just have name="" and get a label | ||
2010-11-16 15:41 <cedk> sdistefano: in the function field | ||
2010-11-16 15:42 <sdistefano> yes! | ||
2010-11-16 15:42 <sdistefano> thanks a lot | ||
2010-11-16 15:56 -!- gavinf(~gavinf@196-215-106-210.dynamic.isadsl.co.za) has joined #tryton | ||
2010-11-16 15:57 -!- gavinf(~gavinf@196-215-106-210.dynamic.isadsl.co.za) has left #tryton | ||
2010-11-16 16:00 -!- tony__(~tony@116.233.246.78) has joined #tryton | ||
2010-11-16 16:29 -!- pheller(~pheller@c1fw231.constantcontact.com) has joined #tryton | ||
2010-11-16 16:38 -!- heg(~heg@dyn.83-228-165-075.dsl.vtx.ch) has joined #tryton | ||
2010-11-16 16:58 -!- heg(~heg@82-248.62-188.cust.bluewin.ch) has joined #tryton | ||
2010-11-16 17:17 -!- heg(~heg@dyn.83-228-165-075.dsl.vtx.ch) has joined #tryton | ||
2010-11-16 17:24 -!- pepeu(~manuel@201.155.193.192) has joined #tryton | ||
2010-11-16 17:24 -!- zodman(~andres-va@200.67.176.253) has joined #tryton | ||
2010-11-16 17:24 -!- pjstevns(~pjstevns@a83-163-46-103.adsl.xs4all.nl) has left #tryton | ||
2010-11-16 17:41 -!- rednul_(~rednul@host-174-45-250-246.bln-mt.client.bresnan.net) has joined #tryton | ||
2010-11-16 17:57 <pheller> I've forgotten, is there a way to invoke trytond such that it logs xmlrpc calls? I don't immediately see anything in the code for it, but for some reason I remember using this (maybe on OE) | ||
2010-11-16 18:41 -!- johbo_(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton | ||
2010-11-16 19:08 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | ||
2010-11-16 19:10 -!- gordon_geeko(~jeroen@77-56-129-131.dclient.hispeed.ch) has joined #tryton | ||
2010-11-16 19:15 <cedk> gordon_geeko: is it working now? | ||
2010-11-16 19:21 <pheller> if I get a user object with proteus, how can I get its view_type, view_mode, etc.... | ||
2010-11-16 19:22 <pheller> e.g., demo = User.find(..... 'demo')[0], then user.action is a reference to an ir.action "Menu" | ||
2010-11-16 19:22 <cedk> pheller: and so? | ||
2010-11-16 19:23 <pheller> cedk: the resultant user.action doesn't seem to contain variables like "view_modes", "view_type", etc.... | ||
2010-11-16 19:24 <cedk> pheller: you must read the right Model depending of the type | ||
2010-11-16 19:24 <pheller> cedk: ah ok, and menu doesn't have these variables. | ||
2010-11-16 19:24 <pheller> I see | ||
2010-11-16 19:25 <cedk> pheller: you got an ir.action which could be an act_window, report, wizard etc. | ||
2010-11-16 19:25 <pheller> cedk: right... I'm trying to work through converting the OE text mode client, and how they handle a menu is not yet entirely clear to me. | ||
2010-11-16 19:25 <pheller> cedk: I'll get it eventually :) | ||
2010-11-16 19:29 <cedk> pheller: good news | ||
2010-11-16 19:29 <cedk> pheller: I think one first thing could be to split it in many files :-) | ||
2010-11-16 19:30 <cedk> pheller: it is one main usage of proteus | ||
2010-11-16 19:34 -!- trifon(~trifon@91-67-144-158-dynip.superkabel.de) has joined #tryton | ||
2010-11-16 19:51 -!- chrue(~chrue@host-091-097-080-143.ewe-ip-backbone.de) has joined #tryton | ||
2010-11-16 20:23 -!- plantian(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton | ||
2010-11-16 20:33 -!- enlightx(~enlightx@dynamic-adsl-94-34-180-227.clienti.tiscali.it) has joined #tryton | ||
2010-11-16 20:37 <pheller> anyone know which object will have the "fields_view_get" method within proteus? | ||
2010-11-16 20:50 <udono> pheller: in tests/test_tryton.p it is called like this: res = model_obj.fields_view_get(view_id) maybe this helps?! | ||
2010-11-16 20:55 <pheller> udono: yes, but I'm trying to figure out what type of object "model_obj" is. | ||
2010-11-16 20:57 <cedk> pheller: the method is on every Model | ||
2010-11-16 20:58 <pheller> hmmh, I don't see it with dir(object) in proteus.... perhaps there is no object introspection through the proxy? | ||
2010-11-16 21:01 <pheller> cedk: ok ok, it is closer to working now... | ||
2010-11-16 21:01 <pheller> cedk: i make a call like obj.fields_view_get([]) | ||
2010-11-16 21:02 <pheller> cedk: but I get a traceback.. | ||
2010-11-16 21:02 <pheller> File "/Volumes/Data/Users/pheller/Projects/tryton/server/trunk/trytond/model/model.py", line 644, in fields_get | ||
2010-11-16 21:02 <pheller> language = Transaction().context.get('language') or 'en_US' | ||
2010-11-16 21:02 <pheller> AttributeError: 'list' object has no attribute 'get' | ||
2010-11-16 21:05 <udono> pheller: it looks like it expected one id | ||
2010-11-16 21:08 <pheller> udono: ok, I just print Transaction().context in the server before this traceback, and the context is an empty list, rather than a dictionary | ||
2010-11-16 21:10 <pheller> udono: d'oh. my mistake | ||
2010-11-16 21:37 -!- Timitos(~kp@88.217.184.172) has joined #tryton | ||
2010-11-16 21:39 <cedk> pheller: I think I will improve "classmethod" call in proteus | ||
2010-11-16 21:42 -!- pepeu(~manuel@201.152.0.221) has joined #tryton | ||
2010-11-16 22:13 -!- sdistefano(~sdistefan@125.24.36.219.adsl.dynamic.totbb.net) has left #tryton | ||
2010-11-16 22:19 -!- trifon(~trifon@91-67-144-158-dynip.superkabel.de) has joined #tryton | ||
2010-11-16 22:28 <pheller> ok, modifying this text mode client is an endeavor that will take more than a few hours :-) | ||
2010-11-16 22:37 <cedk> pheller: you should perhaps just draw from | ||
2010-11-16 22:37 <pheller> cedk: yes, I think that is probably a better idea... | ||
2010-11-16 22:42 <cedk> pheller: one secret goal will be to have any GUI lib client built on top of proteus | ||
2010-11-16 22:42 <cedk> pheller: this will include the GTK one | ||
2010-11-16 22:42 <pheller> cedk: that is a perfect goal, I think | ||
2010-11-16 22:43 <pheller> cedk: same for the web client? | ||
2010-11-16 22:43 <cedk> pheller: when pyjamas will be strong enough | ||
2010-11-16 22:45 <pheller> cedk: so the other webclient that had been started will not go any further then? | ||
2010-11-16 22:45 <pheller> cedk: it will be done instead with pyjamas? | ||
2010-11-16 22:45 -!- lem0na(~lem0na@84.40.71.19) has joined #tryton | ||
2010-11-16 22:46 <cedk> pheller: no, I think right now GWT is the best choice | ||
2010-11-16 22:46 <cedk> pheller: pyjamas is just a port of GWT from Java to Python | ||
2010-11-16 22:47 <cedk> pheller: so it will not be a big deal to migrate later | ||
2010-11-16 22:47 <pheller> cedk: ah, ok, I see. how far along is the gwt initiative? | ||
2010-11-16 22:47 <cedk> pheller: pyjamas guys have script to convert Google Java code into Python | ||
2010-11-16 22:48 <cedk> pheller: for now it is stuck | ||
2010-11-16 22:48 <pheller> cedk: ah ha | ||
2010-11-16 22:48 <cedk> pheller: not engough resources. So I think it is not a major priority | ||
2010-11-16 22:49 <pheller> cedk: agreed, I think it's better to finish many of the things that are in the bug tracker first, and the existing roadmap things | ||
2010-11-16 22:49 <cedk> pheller: almost all customer I saw with Tryton or OE was going for GTK client | ||
2010-11-16 22:50 <cedk> pheller: soa was more a POC to show the direction if someone want to continue it or found it | ||
2010-11-16 22:50 <cedk> yes by the way I should create the roadmap for next release | ||
2010-11-16 22:53 -!- bechamel(~user@host-85-201-147-56.brutele.be) has joined #tryton | ||
2010-11-16 22:55 <gordon_geeko> not having a web client is a major issue for where i work | ||
2010-11-16 22:56 <pheller> gordon_geeko: as in a "full" replacement for the gtk client? | ||
2010-11-16 22:56 <pheller> gordon_geeko: or just something purpose built for a few things... | ||
2010-11-16 22:58 <gordon_geeko> pheller: basically yes, having apps in the web browser is the goal | ||
2010-11-16 22:59 <gordon_geeko> pheller: to unify things in a way | ||
2010-11-16 22:59 <cedk> gordon_geeko: you get people not working from their workstation? | ||
2010-11-16 23:01 <gordon_geeko> cedk: sure, they'll have a pc - but the idea is to have everything accessible from one browser | ||
2010-11-16 23:01 <pheller> cedk: it is generally true also at my company that we don't use applications with thick clients any more. just about everything we use, except office suite and mail, is a web application | ||
2010-11-16 23:01 <cedk> but I hope guys, you see that it is not logical | ||
2010-11-16 23:02 <cedk> HTTP+HTML+Javascript is the worst stack for developing software :-) | ||
2010-11-16 23:02 <gordon_geeko> cedk: it's also about integrating functionality - or if it's not true integration, at least creating the illusion | ||
2010-11-16 23:03 <pheller> cedk: I don't mind using the thick client, but I'm not the one who always decides which applications are used. And I'm sad to say that the people who make the decisions often have silly requirements. | ||
2010-11-16 23:03 <gordon_geeko> cedk: agree on that one | ||
2010-11-16 23:03 <pheller> cedk, gordon_geeko: definitely agreed there. | ||
2010-11-16 23:03 <cedk> gordon_geeko: for me, integration is not about having everything in one software but having softwares speaking to each others like we do with CalDAV, WebDAV and later IMAP | ||
2010-11-16 23:04 <cedk> I know that for now Web2.0 is the *buzz* word | ||
2010-11-16 23:05 <cedk> webbrowser is the new VT100 :-) | ||
2010-11-16 23:05 <pheller> cedk: hah! | ||
2010-11-16 23:05 <gordon_geeko> LOL | ||
2010-11-16 23:07 <cedk> gordon_geeko: but I know that for merketing it will be better to have a webclient | ||
2010-11-16 23:07 <cedk> and we got POC that proves it is doable | ||
2010-11-16 23:07 <gordon_geeko> cedk: yes, it weights heavy | ||
2010-11-16 23:08 <gordon_geeko> cedk: the choice for us is between tryton and developing from scratch - the latter using a web application framework | ||
2010-11-16 23:09 <cedk> gordon_geeko: you can develop a web application with Tryton | ||
2010-11-16 23:10 <gordon_geeko> cedk: what's POC? | ||
2010-11-16 23:10 -!- johbo(~joh@statdsl-085-016-072-173.ewe-ip-backbone.de) has joined #tryton | ||
2010-11-16 23:10 <pheller> proof of concept | ||
2010-11-16 23:10 <cedk> POC = Proof Of Concept | ||
2010-11-16 23:10 <gordon_geeko> ah | ||
2010-11-16 23:11 <cedk> by the way, sharoon from openlabs also think about webclient | ||
2010-11-16 23:11 <gordon_geeko> i'm leaning towards tryton and sponsoring a web client | ||
2010-11-16 23:11 <gordon_geeko> it can't be that hard, you've already got the proper infrastructure for it | ||
2010-11-16 23:12 <cedk> gordon_geeko: yes, soa can already talk to the server (need some update for working with 1.8) | ||
2010-11-16 23:12 <pheller> gordon_geeko: ... especially with proteus finally coming up to speed | ||
2010-11-16 23:12 <cedk> gordon_geeko: and tree view is almost working | ||
2010-11-16 23:13 <cedk> gordon_geeko: next big step will be the form view | ||
2010-11-16 23:16 <pheller> time to go home. too much work for one day. good night! | ||
2010-11-16 23:17 <cedk> pheller: bye | ||
2010-11-16 23:45 -!- tony__(~tony@116.233.246.78) has joined #tryton | ||
2010-11-16 23:50 -!- tony__(~tony@116.233.246.78) has joined #tryton | ||
2010-11-16 23:54 -!- tony__(~tony@116.233.246.78) has joined #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!