*** btami has joined #gnuenterprise *** kilo has joined #gnuenterprise *** johannesV has joined #gnuenterprise *** reinhard has joined #gnuenterprise good morning austria ;) hi SachaS have you noticed the latest changes in appserver ? * johannesV looking for some coffee hi SachaS hi austria hi btami hi universe :) coffee, that is a good thought in number(10,2) 2 positions of decimals should be? eg it should be 5.25 yes and if i enter eg 10 then it should be 10.00 or 10.0? johannesV: appserver? what changes? company was introduces and somewhat removed agaiN? well, we did a lot the last few weeks introduced it's not removed but replaced by a much more flexible thing but besides this OnInit () is now working as intended :) SachaS: automatic timestamping... can u access properties? yes automatic timestamps, cool. you even can set defaults there OnInit does it work with accessing properties of super classes? (which will be displayed in the form from start) thats good news too you mean in address.OnInit access foobar-props ? yeah if the module of address extends the foobar modules address yes, it should work, as long as you keep the following in mind: somewhat wrong what I wrote ... OnInit of the defining module runs first all other modules having an OnInit for the same class run in arbitrary order :( "arbitrary" this mean you can access properties as you like, but you cannot determine if another OnInit has set it's values so if modules x extends modules y which extends module z well, SachaS, there's no rule of thumb to say which module's OnInit for *one* class should run SachaS, *modules* do NOT extend other *modules* but module foo defines a class "bar" (--> foo_bar) and module "sachas" can extend that class "foo_bar" so foo_bar.sachas_prop would be a valid property so if class xx of module x extends class yy of module y which extends class zz of module z but it is only *one* class, namely "foo_bar SachaS, a class cannot extend another class there is only *one* class, having a bunch of properties z = base; y = finance; x = finance statistics beeing introduced by one or *more* modules ? x needs class properties which modules y introduced *** Mango_Madness has joined #gnuenterprise does it ? i mean, how can it know of them ? yeah if I want to install a finance statistics module it must be made sure that the base and the finance modules are installed guess you could have something like in the .deb files ... setting the dependency *** cilkay has quit IRC well i do not know but I was thinking that could be the case if no dependency is set, it can be any order SachaS, this dependency is given in the gcd-files already i just stumbled across this project; i have to say, it is the most interesting i've seen in quite some time dont you think there could be a dependency? SachaS, there *is* a dependency which is already given by GCD what? by the order they are installed? Mango_Madness, thanks :) SachaS, no by the code they define :) or which class is extended look at a gcd giving a ... this defines a class "foo_bar" using something like: .. means: extend the class "foo_bar" (from foo module) by my own props (all beeing from the module 'SachaS') so this *exactly* defines a dependency between foo_bar and foo_bar.SachaS_* do you think there will be dependency which goes down more than 2 levels? the latter one does *not* introduce a *new* class it just adds properties to an existing class using another context ! johannesV i know :) but there are no levels if there is a cool module and you write another cool module which extends a class of the first cool module we have no real OO here, because we must *flatten* everything to db-structures and here I come and want to write another cool module which REUSES your cool module no problem which builds on top of your cool module in the OnInit I might have to access your cool modules default values so if the OnInit is arbirary my uebercool module might fail to initilize your cool module because the OnInit of my module is called second after the first cool module and before your cool module hi Mango_Madness right hola do you think that could become a problem? SachaS, the only thing which is for sure is, that the def. module's OnInit comes first well thats a start ;) SachaS, no i don't think so yet because in OnInit () usually no 'tricky' things happen but only setting defaults damn i am even using gnumeric to do expenses instead of a gnue app if you define such code which is connected to a given module in such a manner (you described) the question would be: why not modify that module directly ? maybe because I do not want to touch your cool module SachaS, shame on you ! *lol* shame on you :) * SachaS fingers johannesV's cool module ahmm ok, after all, i got your point ;) yeah its 1.00am here but i've to think if an additional attrib (of the class- or the procedure-tag) would solve such problems SachaS: gnumeric??? beware, i will say Ni on you i was doing expenses with gnumeric on my sharp zaurus cs-860 in the plane ;) was kind of cool i thought :) geek alert : ) was looking at word documents with abiword the xpdf screwed up on pdfs becuase it misses some fonts, that sucked other than that it was cool reminds me to send the expense reports actually ;) expense report? 'Dear Sir, I have BIG expenses, sincerely, SachaS' ;) kilo yes ;) i am in business now activity report "Dear Sir, I flew a big plane to 'merica, met derek (expensive night), hopped over to Vegas (expensive night), got new girlfriend(s) in California (expensive nights). yours truly SachaS" ;) plus internet costs us 100 apropos derek I missed to see him. i think i went to the wrong soccer stadium hope to catch up next week with derek well going home dudes ok, have a nice time SachaS going home? you mean it is 1 am and you're in the office? yeah go home ok night bye austria: gross = self.product.ITEM_vat.TAX_grossFromNet(self.valueNet) grossFromNet has 1 parameter and if i call it, get an error that i pass 2 parameters to it, though it expects only 1 why? you forgot to add self to parameter list? err forget it using that self.product ... this implies a 'self'-parameter but every appserver procedure has a self parameter automatically doesn't it? dunno i've just detected a big prob when pressing 'rollback' this 'removes' the 'new instance' silently and when user wants to commit again: *bang* instance ... does not exist should i add self to the param list??? i thought it was dealt with automatically kilo: no kilo: i'm looking into it, just a sec ok, i stare at my coffee then for a while i get the same error, that's good ... just another sec off to customer for the rest of the day l8r all *** reinhard has quit IRC johannesV: i have a bag full of things like this... 8-))) kilo: got it solved oh, 't was quick what's the name of the param of your grossFromNet function inNet ok, then the proper syntax would be: gross = self.product.ITEM_vat.TAX_grossFromNet(inNet = self.valueNet) i think i see the reason... the arguments to procedures are *always* keyword-args ! these get flattened into a paramlist in language-adapters somewhere we should write it down with CAPITALS i think reinhard will do this in his dev-guide that is badly needed btw what's up with lekma??? dunno i would be very interested how his project is. and more, how the users like it johannesV: thx for solving this should i explain an other one? if it's not too complicatd i've to leave in about 30 min hmm, ok, maybe then it is a good one for the weekend 8))) a little bit hard to explain non-nullable properties are the main actors in this drama given an invoice it consists of invoice head and a number of invoice items (lines) invoice items have a property, Head, that contain the gnue_id of the invoice head they are attached to i think you can see it in the gcds i've sent you earlier ok on the form i've set up a M/D relation, master=invoice head, detail=invoice items and on commit it gives an error that Head property is null... then i went further i have cascading forms, ie if a dropdown doesn't contain a given entry, one can open a form and expand the items if the property the dropdown is handling is non-nullable, i get an error when closing the expander form... kilo, well, that m-/d-stuff should work automatically; so i've to dig into that bug the latter one sounds cool :) haven't tried that which uidriver ? for easier bug-search i will zip up my sample and send it to you later today gtk ok, great complete with schema and forms but i can look into this not before sunday (i'm leaving for germany today and i'm back on sunday) or hmmm, should i commit it to gnue-contrib? as you like maybe i will wait with that... ok, will send it to you ok i'm off for the weekend now have a nice day ! *** johannesV has quit IRC bbl *** btami has quit IRC *** Mango_Madness has quit IRC *** cilkay has joined #gnuenterprise *** Mango_Madness has joined #gnuenterprise *** kilo has quit IRC *** jamest has joined #gnuenterprise *** kilo has joined #gnuenterprise *** dcmwai has joined #gnuenterprise *** jcater has joined #gnuenterprise *** holycow has quit IRC *** mixi has joined #gnuenterprise *** reinhard has joined #gnuenterprise *** sjc has joined #gnuenterprise *** dcmwai_ has joined #gnuenterprise *** dcmwai has quit IRC *** holycow has joined #gnuenterprise *** holycow has quit IRC *** holycow has joined #gnuenterprise *** dcmwai_ has quit IRC *** SachaS has quit IRC *** SachaS has joined #gnuenterprise *** SachaS has quit IRC *** SachaS has joined #gnuenterprise *** Vee2d2 has quit IRC *** Vee2d2 has joined #gnuenterprise *** Ahewes has joined #gnuenterprise *** jamest has quit IRC *** kilo has quit IRC *** sjc has quit IRC *** jcater_ has joined #gnuenterprise *** reinhard has quit IRC *** jcater has quit IRC *** holycow has quit IRC *** MiXi^ has joined #gnuenterprise *** mixi has quit IRC *** Ahewes has quit IRC *** SachaS has quit IRC *** jcater_ has joined #gnuenterprise *** Mango_Madness has quit IRC *** jcater has quit IRC *** Mango_Madness has joined #gnuenterprise