*** jcater_ has joined #gnuenterprise *** jcater has quit IRC *** reinhard has joined #gnuenterprise *** reinhard_ has joined #gnuenterprise *** johannesV has joined #gnuenterprise *** reinhard has quit IRC *** dneighbo has joined #gnuenterprise *** dneighbo_ has quit IRC *** btami has joined #gnuenterprise hello btami *** holycow has quit IRC hello reinhard *** Morphous has joined #gnuenterprise *** dimas has joined #gnuenterprise *** Amorphous has quit IRC *** rsb has quit IRC *** kilo has joined #gnuenterprise morning hi kilo *** dcmwai has quit IRC *** btami has quit IRC *** dimas has quit IRC *** SachaS has joined #gnuenterprise hi everyone *** dimas has joined #gnuenterprise hi SachaS hi kilo see you later you busy writing the interview? *** SachaS has quit IRC *** lekma has quit IRC *** jcater_ has quit IRC *** lekma has joined #gnuenterprise *** dsmith has joined #gnuenterprise *** lekma has quit IRC *** sjc has joined #gnuenterprise *** jamest has joined #gnuenterprise hello jamest if i have a datasource with no attached block what is the correct way of testing whether the current resultset of the datasource is empty? *** dwho has joined #gnuenterprise Hi in http://www.gnuenterprise.org/downloads/current.php under Debian GNU/Linux Packages (*.deb format)....there are .exe files.There should be .deb files right? hello dwho i think this is a bug in the html we do not have debs yet and for some reason it lists the exes there istead of leaving the complete section out ok...coz I was to install o.53 but just checked back to see if there is anything new:) Also where can I check out the common errors page .... the common errors page? I mean say when one is installing and encounter an error.....maybe he/she can refer to a list of commonly encountered errors I was trying to install GNUe-Common and when I typed ./setup.py install...I got an error saying there was some problem with my python nstallation : running install error: invalid Python installation: unable to open /usr/lib/python2.3/config/Makefile (No such file or directory) so i trying to figure that out :) *** dwho has quit IRC i can confirm that this is *no* commonly encountered error err why are people always so impatient when i'm talking on the phone :(( *** kilo has quit IRC reinhard: is the datasource being used to query stuff? i think len(datasource) may work but I'd have to check the code *** johannesV_ has joined #gnuenterprise ah maybe not *** lekma has joined #gnuenterprise *** lekma has joined #gnuenterprise seems like a datasource could just define a __len__ that returns the length of it's result set er, a datasource trigger function *** johannesV has quit IRC jamest: that would be good, yes would datasource.count() be acceptable? or does len() make for sense? and could you try len(datasourceName) i don't think the latter works but it's worth a shot :) jamest: i don't mind how it would be done len(datasource) doesn't seem too intuitive at first sight ok another option is datasource.recordCount not as a function but as a property also works for me you're being too damn easy to get along with :) I'm commit something completely untested that I think will work *** reinhard_ has joined #gnuenterprise [09:01:53 am] you're being too damn easy to get along with [09:01:56 am] [09:04:26 am] I'm commit something completely untested [09:04:33 am] that I think will work for you reinhard_ jamest: thanks, i got that *** dsmith has quit IRC *** marcello has joined #gnuenterprise marcello: hello hi jamest reinhard: we both know that jcater will show up in 30 minutes and tell us something else was already in there to do this :) ive seen the new look of the gnue http site, it's much more professional :) i haven't been looking at gnue for a while, but in a few days I will be able to dig it again :) marcello: glad to hear it feel free to ask any questions you may have ok, what's the best package to look at for an example on how to make gnue apps (other than the ones in the example folders i mean) *** reinhard has quit IRC marcello: what level you wanting to work? just creating forms? writing python apps of your own? creating forms with table and subtables and fairly simple triggers, and a couple python routines i have no big problem with python yet, i like it subtables = related tables i have an app developed with aci 4d and i would like to use gnue instead, its for a small shop Well, in the gnue-contrib repository Sachas has been creating a babyerp oh ok i will check it out it uses appserver instead of directly to tables but the general layout is the same there is also gnue-pointofsale but that's not using forms at all it does provide interface to a cash drawer i believe but for those relationships you describe gnue-designer provides a wizard to build your forms directly from the tables ok i wonder what protocols italian cash register will have (anyway there are italians developing an open source app server that interfaces with cash registers so maybe i can try to interface gnue app server to that one... we'll see the wizard function is very handy, 4d had one, too jamest: how can i get gnue-contrib from svn? just updated and do not see it *** dsmith has joined #gnuenterprise ah svn co svn://www.gnuenterprise.org/var/svn/gnue-contrib i guess we don't have that on our website it has 3 projects in it hotline, babyeerp, and web-po jamest: i have another problem i have three tables 1. customer 2. contact 3. ticket every customer has n contacts every contact has n tickets i want to query all tickets for a given *customer* regardless of the contact how can i do that in forms? jamest: got it, thanks *** jcater has joined #gnuenterprise jamest: is there any chance to have working dropdowns in the forseeable future? it's quite hard to debug non-trivial forms when you don't always see the real content of a field :( what!?! i thought they did work again, only mouse was wack reinhard: what are the tickets tied to? goodbye for now *** marcello has quit IRC contacts are a detail for customers tickets are a detail for contacts i want all tickets for a customer re dropdowns it's hard to say exactly what is broken the event processing in dropdowns is wack but there are quite some cases where a more or less random value is displayed it's hard to reproduce in an isolated way because the form is quite complex already i don't understand how the dropdowns can even work as they are but was told they worked ok on windows and seemed good enough on linux that I left alone for release but I can probably get back in and redo them next week i know I won't have time before then :( i'm sure they work good enough for non-complex forms as for your detail of a detail i don't have anything like that well that's even easy i would think you would have to unlink the ticket detail there is a "action" table that is a detail for the ticket :) jamest: and then? populate it via a trigger how would i make the query? not sure yet trying to think of a way thru this :) please remember i can't use sql that's what I'm trying to think around i imagine you need to edit this block as well? no just list them up in a dialog and let the user select one and before i pop up the dialog check if there is more than 0 rows ah this may get a little ugly but i imagine you can unlink that block from the table er datasource then build the list via a trigger using the datasources simpleQuery and a for loop :) so you'd simplyQuery on for a list of contacts for the top master then loop thru them simplyQuerying for tickets on each contact and how would i merge these results into a single block? IOW how would i display the final list in a dialog and let the user select one? * reinhard starts to understand why people want appservers they can put the logic in :) sigh you want it all dont you? :) I'd do it inside a self contained dialog form you'd have to build the list on the on activation trigger display/selection how I imagine you want it to wrk is going to be impossible in the current UI i've been thinking about adding a new option to entry style=list which would make it doable *** jamest has quit IRC *** jamest has joined #gnuenterprise hello everybody hello i have another of my infamous stupid questions in the form developper guide runForm() is advertise as *** SachaS has joined #gnuenterprise a trigger one can call as follow: form.runForm( 'myform.gfd', { 'division' : 101 } ) when i do that i get Traceback (most recent call last): File "", line 9, in __main______gnue_forms_GFObjects_GFLayout_GFLayout_instance_at_0x4175728c____pg_vars_btn_edit_ON_ACTION_trg_edit File "/home/malek/gnue-cvs/gnue/gnue-common/.cvsdevelbase/gnue/common/logic/NamespaceCore.py", line 315, in __call__ return self._objectFunction(*args) TypeError: triggerRunForm() takes exactly 2 arguments (3 given) lekma: bug! :) i can't look atm as I have to help user jamest: i think i have to solve stuff like that in appserver my understanding is that such things are outside the scope of forms nah you can do most if it in forms reinhard: keep in mind we do all our logic w/in forms but at the moment that falls into the section "requires effort" so I doubt it's fair to say anything is outside the scope the thing that forms is missing is a list widget just maybe not as easy or complete as it should be :) which I see as the same as a dropdown only with > 1 displayed jamest: I'd like to see a generic "block" layout component oh, nevermind... you are describing something different :) i'm all for changes I've never actually needed a list widget once we get what we having a little for feature complete never thought about it i've got a single case where it'd make it easier to replace a java app as when they save their work it pops up a dialog that lets them choose a state to save in state meaning == pending this, ready for that, i give up types of selections basically just a dropdown that's not a dropdown :) lazy sobs used to have this as a dropdown years ago but they ignored it so the replacement java app I've grown to love made it mandatory so now they can just always click ok and get the default select * jamest beats the users w/ a stick another question can i do joins with datasources? /msg jcater man, he's sure trying to make gnue do usefull things, how do we stop him? lol i mean something like i think you can readonly have a datasource with more than one table but I don't think we've ever officailly supported it table="foo,bar" IIRC ok with s to enforce the join i **think** how much effort would you estimate to "officially" support it? I think it's about as official as you can make it most of the dbsig2's support it, at least :) don't know what it'd take to get the appserver dbdriver to support it I'd like to see an overhaul of datasources i.e., the supported definitions not the underlying drivers :) to expand our definition to support a lot more usage cases i didn't think we ever really came up w/ a clean conditional well, it's lunch time and jcater's food is far more important than datasources * jcater ducks sigh /msg reinhard damn cater, can't we just get it working once before we change things again :) on a more serious note can/should any of these things wait till after 1.0 as I think forms/designer beats the crap out the last pgaccess i used but we're never mentioned in pgsql MLs hmmm wel well there are some minor things i'd consider before 1.0 if i were you reinhard@london:~/prj/gnue/gnue-forms/src$ find . -name "*.py" | xargs grep -i "todo" | wc --lines 212 reinhard@london:~/prj/gnue/gnue-forms/src$ find . -name "*.py" | xargs grep -i "hack" | wc --lines 21 that's kind of my point :) is what on the todo list should wait till after a 1.0 reinhard@london:~/prj/gnue/gnue-common/src$ find . -name "*.py" | xargs grep -i "todo" | wc --lines 323 reinhard@london:~/prj/gnue/gnue-common/src$ find . -name "*.py" | xargs grep -i "hack" | wc --lines 45 as compared to lots of software we're post 1.0 state in a lot of areas i have not looked at forms that much just in common i see quite some things that are kinda "unfinished" yes maybe I'm not coming across correctly I'm trying to say before we take on rewriting things that are working "ok" but not perfect (like the datasource definition rewrite) shouldn't we push some of these "nice" ideas out past 1.0 and focus on getting the lacking/rough/unfinished stuff done I'm as guilty as anyone on wanting change but i'm starting to question if said change is really impacting a 1.0 release well i don't care about version numbers that much meaning have we gotten to the mindset "1.0 happens when gnue is perfect" i don't either the main problem i see is common but on a PR front and a stability front it would matter to the end users for all version numbers < 1.0 we somehow reserve the right to break the api right and i remember quite some changes *i* did in common (and i didn't do too much) over the last 2 months where i *had* to break the api to make it *somewhat* clean and logical that's fine not sure what changes in common *you* plan to make after 1.0 i'm not saying release 1.0 now i'm saying do we need to stop ourselves from forever spiralling away from the magic 1.0 number the 0.5.x series lifespan is measure in years with several major changes in that timeframe --- ./gnue/gnue-forms/src/GFForm.py 2004-04-15 18:48:35.000000000 +0200 +++ ./gnue-touched/gnue-forms/src/GFForm.py 2004-04-15 18:49:29.000000000 +0200 @@ -918,11 +912,11 @@ # Allows the trigger to launch a new instance # of gnue-forms running a different form. # - def triggerRunForm(self, fileName): + def triggerRunForm(self, fileName, parameters): from GFInstance import GFInstance instance = GFInstance(self._instance.manager, self._instance.connections, - self._instance._uimodule, 1) + self._instance._uimodule, 1, parameters) instance.addFormFromFile(fileName) instance.activate() jamest: above is a quick fix from a colleague of mine (ghoulseine is the name) for the runForm() parameters problem i told you a few lines before it works for me (tm) :) lekma: thank you I wasn't in any way talking about a datasource rewrite fwiw more, standardize its feature set set a direction for it that sort of thing is it possible to set the value of a form parameter from a form trigger?? form.setParameter(name, value) iirc thx a direction for gnue? argh!!!!!!!!!!! * jamest runs in ph34r bbl *** SachaTV has quit IRC *** johannesV_ has quit IRC *** bamse has joined #gnuenterprise *** kilo has joined #gnuenterprise *** lekma has quit IRC *** Suit has joined #gnuenterprise Hi been a while since I was here welcome back :) yeah well I see you have a lot of docs with package proposals on-line How far you recon they are? Still under review? (The proposals) basically, yeah Hmm must read them and see if they have or haven't got what I found missing or good with others :) Maybe I can bring something new *** jcoruna has joined #gnuenterprise I moved to other job from logistics (container transport) to manufacturing and trade * Suit wonders what the difference is between "lost" and "inventory adjustment" ok the latter could also mean "we found more" *** jcoruna has quit IRC Well, quite a read already. Btw I saw also firebird support was added which is currently the db-flavour-of-choice? iirc it was sapdb it still is? um I think postgres is still the db of choice has been since the project began but we do recommend firebird esp. for people on windows SapDB is now a MySQL project, so it has been renamed to MySQL MaxDB Heh, hey my nick does not mean I run windows :) btw postgresql is also available for windows. yes but our windows developers primarily use firebird so for people wanting to test, we recommend using what the developers use :) postgres shouldn't behave any differently under winders though ;P chillywilly: yes but we have people complain about not getting demos up and running so it's a lot easier if we have people on board who can say "do x, then do y, then click z" etc Well, I have looked at a competitor a few days ago (sql-ledger) * jcater isn't discouraging anyone from doing postgres on windows ok I still have to recuperate from that one or doing sapdb haha actually, only one I discourage people from using is MySQL =) It is better on linux So well, I am still doubting, step in on what already is there or build myself from scratch to get what I need time is always a pita tough to say I would personally encourage either, if you plan to use the GNUe tools to do it :) :) *** SachaS has joined #gnuenterprise hmmm, one can only add users to groups in *nix right? But serious, is there already some basic coding/datamodel for manufacturing/assembly manufacturing and so? no groups belonging to groups? on the os/fs level? then no by hacking /etc/group Ah hum no hmmm, yea that makes no sense would be new to me at leat :) *** sjc has quit IRC ok well I will ponder on cya *** Suit has quit IRC *** jamest has left #gnuenterprise chillywilly: Groups and users are separate namesspaces. You can have a group name that is the same as a user name. In fact, most modern distros automaticaly add a group that the same name as the user. *** dsmith has quit IRC *** jcater has quit IRC night all *** reinhard has quit IRC *** kilo has quit IRC night *** SachaS has left #gnuenterprise yea bleh, dsmith ran away *** newbie has joined #gnuenterprise *** newbie has left #gnuenterprise *** newbie has joined #gnuenterprise *** newbie has left #gnuenterprise *** ogger has quit IRC is there anyone here who could help me a little with triggers on forms ? *** jcater has joined #gnuenterprise hi jcater word jcater: do you know if I can setup a "PRE-FOCUSIN" trigger for a comboBox on a form ? when I create one, I get a traceback ending with : File ".../gnue/forms/GFObjects/GFEntry.py", line 162, in triggerSetValue DB000: return self._field.triggerSetValue(*args, **parms) DB000: AttributeError: GFEntry instance has no attribute '_field' *** jamest has joined #gnuenterprise hmm is field="..." set on that ? and block=".." well, in fact, I am trying to hack the classrepository a bit the entry is type entry in the property page I take the sample form, which runs ok and just add a trigger the says "print("hello") then, I get the problem well, I see in GFEntry.py that only get and set functions are recognised as trigger functions, could it be the source of my problem ? ok, in fact, it seems that adding the trigger to the Entry fails, but adding it to the field works fine I must be forgetting something nevermind, I'll go on with field trigger thanks for the help *** rsb has joined #gnuenterprise *** test has joined #gnuenterprise *** bamse has quit IRC *** rsb has quit IRC *** jamest has quit IRC *** rsb has joined #gnuenterprise *** rsb has quit IRC *** rsb has joined #gnuenterprise *** holycow has joined #gnuenterprise *** dneighbo_ has joined #gnuenterprise *** dneighbo has quit IRC