*** reinhard has joined #gnuenterprise good morning all jbailey: any news on debian packages? *** johannesV has joined #gnuenterprise *** sjc has joined #gnuenterprise *** kilo has joined #gnuenterprise good morning hi kilo hi johannesV johannesV: grrrrrr *** lekma has joined #gnuenterprise hello everyone hi lekma hi kilo *** btami has joined #gnuenterprise kilo, sorry ... np *** holycow has joined #gnuenterprise *** mo has joined #gnuenterprise hi there hi mo *** sjc has quit IRC johannesV: the leaks are not visible any more with generated gnue-forms... i still got some with the xul generation code, do you have any hints on chasing them?? on a side note: am i wrong when saying that now every property of a session.find is in fact a SELECT in db?? lekma: this should not be the case there should be a single select that gets all properties at a time when debugging : session.find(klass, cond, sort, [prp1, prop2, prop3] DB001: 0:08:52.238 [DataObject:105] DB-SIG database driver backend initializing DB001: 0:08:52.239 [GConnections:296] Attaching to DataObject_Object (object) DB001: 0:08:52.242 [Connection:288] DBSIG2 Statement: SELECT xul_type FROM xul_items WHERE (((gnue_id = '99999999999999999999999999920802'))) for all props do you use absolutely current SVN? in this example xul_type is on ly one prop of a long list there was a bug that could have exactly that symptom 6682 lekma, are you working on an xul driver for gnue server? lekma: just a second holycow: not at the moment, i'm working on a xul client for appserver for a customer, but maybe after if succesful, we will try to make a generic gnue-xul client oh neat! really? wow thats cool :) i would be very interesting in hearing about your results big IFS in all this *nod* lekma, why not using gnue forms? lekma: lol you are unlucky there are screenshots at http://www.orwex.net/gnue-dev/articles.jpg and http://www.orwex.net/gnue-dev/articles2jpg if it's really the bug I'm thinking of it was introduced in 6682 and fixed in 6683 lol i'll try and svn up would be great if you could confirm that it works again @roulette kilo: *click* kilo, heh :) * holycow waits for the screencaps to load *tap* *tap* *tap* >_> holycow: play roulette until they load... 8-)) reinhard: it seems to work again with 6686, but now it seems to me that properties values are not cached anymore when specified in a find, cause i see a SELECT for properties that are supposed to be already available am i wrong? please let me test I didn't test the latest changes yet lekma: I cannot reproduce that behaviour also I am confused because what you describe now is the same symptom than you had before? reinhard: nope, before i when find was triggered i had dozen of select to satisfy it now only one select is done when find is triggered but when later in the code i do object.property i see a SELECT ah ok I think I still cannot reproduce it even with a procedure call on appserver side the property was in the list for find()? and that code is running in the same session as the find() runs? *** holycow has quit IRC however I pass the ball over to johannesV have to leave for an hour or two bbl *** btami has quit IRC lekma, there seems to be a bug or two in there (i think in appserver) ... i'll switch into hunting mode now ... :) *** johannesV_ has joined #gnuenterprise *** reinhard has quit IRC *** reinhard has joined #gnuenterprise *** johannesV has quit IRC *** kilo has quit IRC *** wayneg has joined #gnuenterprise *** jamest has joined #gnuenterprise lekma, i can't find a problem (but have found another one in datasource.drivers.Base.ResultSet) johannesV_: i have a list provided by a find and i thought that every properties specified in the find was cached and immediatly available but if i pass this objects list to another proc in the same class when i access properties of the object i see a SELECT triggered to db is this normal behaviour?? how do you pass this object list to the procedure ? which param-type do you use ? in fact i don't even pass it, i build a list with the first procedure and then manipulate it with the other one but how can the other procedure access the list ? it's a 'global' variable (a list, global to the class) initialize in __init__ so you talk of a python class yep hmm is there a commit or a rollback in between ? i was talking about external python code hmmm let me check these two actions clear the cache yep, that was it there is a rollback in between sorry ok :) np lekma: rollback invalidates the cache because changes from outside the transaction will get valid at that point so appserver *must* re-select the data to see if something has changed meanwhile but thank you for asking that question :) it made us learn what to ask first ;-) there may still be something wrong (maybe in my perception of all this) even without the rollback i see: DB001: 0:00:25.721 [DataObject:105] DB-SIG database driver backend initializing DB001: 0:00:25.722 [GConnections:296] Attaching to DataObject_Object (object) DB001: 0:00:25.725 [Connection:288] DBSIG2 Statement: SELECT xul_style FROM xul_elements WHERE (((gnue_id = '92621470359225398349175027112456'))) DB001: 0:00:25.726 [Connection:289] DBSIG2 Parameters: None for a property that is supposed to be cached and for every object in the find result is it the cache that is accessed?? or the db if you see the select statement, the db is accessed idea johannesV_: what would you think about providing a method to output the content of the cache to a file for debugging purposes? or add some high debug level output "adding to cache: ...." "reading from cache: ..." "searching in cache: ..." "found | not found in cache: ..." etc would it be that, in fact, the list i'm looping in is not the direct result of a find, but a list built with every result object of a find i mean if i do lekma: no, shouldn't be for x in find(klass,...): otherlist.append (x) would it be the cause of the cache invalidation lekma: no, the cache should survive there debug-output of cache ... i think adding gDebug at a given level is easier than it's own debug-file that's what I actually meant :) very high level (7, 8, or 9) right with messages for adding, searching in cache, found/not found, cache clear... maybe if not found in cache, even detail info like class not in cache - instance not in cache - instance in cache, but field not cached (cache for this class is:....) and please don't forget to import GDebug so data.py remains self-contained i cannot locate that f** focus problem ... how can i switch back to a given revision for a complete trunk (like gnue-forms) ? svn update -r 1234 IIRC thanks, just found it myself do i need to remove files first ? ok, the bug was there on 0.5.8 release is it common to get debug lines like: "DB005: 0:00:43.349 [DataObject:234] WHERE ((1 = 0))" ? or does this suggest something is wrong with the form i've created ? in 0.5.7 it disappears .. wayneg, this means you have --debug-level=5 (at least) given at the command line the condition WHERE ((1=0)) is an 'impossible' one to create an empty result set so you haven't done something wrong :) hi johannesV_ so i should disregard ones like "DB005: 0:00:45.958 [DataObject:343] SELECT id FROM contact_email WHERE ((1 = 0))" also? * chillywilly tugs on johannesV_'s tail wayneg: yes i realise this will never return anything ... just trying to understand why such a query is being generated 1=0 always is used to create empty resultsets creating an empty result set is the exact same logic as one containing data the 1=0 query ensures all the various things we do in datasources get done even for empties * jamest can't recall exactly what those things are as 1=0 query has been there for years ok, thanks i think it properly sets up things like key fields that's not where my problem is then :) or at least make a cursor.getDescription () available .. (in DBSIG2) reinhard: You truly need to ping ajmitch. I just upload what he gives me and I haven't heard anything yet. jbailey: ok, thanks reinhard, it's working for both, dialogs and forms now ... the mainWindow.show_all () changed the focused widget congrats you showed some excellent bug finding skills today :) IIRC i think ajmitch is away from home at the moment (in Melbourne working) FWIW :) bbl *** jcater has joined #gnuenterprise *** wendall911 has joined #gnuenterprise *** kilo has joined #gnuenterprise @weather LHUD kilo: The current temperature in Szeged, Hungary is 47°F. Conditions: Partly Cloudy. Humidity: 74%. Dew Point: 41°F. Wind: SSW at 7 mph (11 km/h). Pressure: 30.22 in (1023 hPa). Visibility: 11.0 miles (18.0 kilometers). UV: 0 out of 12 *** holycow has joined #gnuenterprise reinhard or johannesV_ : does appserver opens a connection to db for each and every find/request? or does it use one that is initialized at Session.open time? appserver opens a connection per session that connection is reused througout the session do you use postgres? then you can use postgres.log to see the sessions yep yep we've seen it it was just to be sure... actually we try to be as smart as possible to use the db effectively *** mo has quit IRC *** sjc has joined #gnuenterprise *** johannesV_ has quit IRC *** kilo has quit IRC *** kilo_ has joined #gnuenterprise night all *** lekma has quit IRC hi where can i get some functional examples? like those in the screenshots.. *** cilkay has quit IRC involved: the sample forms are in gnue-forms/samples dirs sample appserver stuff I dunno there is a gnue-contrib repository that contains appserver/gnue-navigator/gnue-forms sample anyone know of any pretty print module that will print out data structures like PHP's print_r or perl's Data::Dumper? >>> import pprint >>> print pprint.__doc__ *** cilkay has joined #gnuenterprise pprint? doh yea google told me that nm then it'd be nice if the thing handled all types including arbitrary objects appserver samples are in gnue-appserver/samples dir consequently ;-) thanks i am using the debian package.. kinda confused.. i'll get the source.. *** brush has joined #gnuenterprise *** jamest has quit IRC greetings. apologies if this is the wrong place, but i'm thinking of developing and customizing gnue apps to manage a nonprofit's finances, largely for scalability reasons, commitment to open source, and because gnucash seems not to be going in a business direction. would anyone mind answering soem questions? brush, just throw them out there and if someone can answer i'm sure they will. :) * brush nods. first, the website notes that the packages are less developed than the tools, but what exactly does that mean? is there an accounting package that ius functional, and that could be customized initially with relatively little overhgead? i couldn't quite figure that out from the site. second, my knowledge of python is limited, though i have extensive c and php experieince. how steep is the learning curve? third, is there any movement towards data exchange with gnucash, which seems to have a good frontend? i'm new to bopth, and it seems that gnucash may have limited data portability, but just in case... and finally, is there active development of sepcific financially oriented reports, realtively pretty etc., that i could contribute to, or is it likely that they will have to be developed myself? no there isn't yet an accounting package ... if you program c, python should be a breeze third ... i'm not a developer so i can answer that ... although none that i know of fourth ... gnue has a reporting tool that you can use brush currently the development is focused a) building up the robustness of the toolset b) secondarily using that toolset for the developers own needs, gnue is used in a number of businesses i understand thanks wayneg! re: the reporting tool: i imagine it's a mechanism for producing reports, but my question is primarily around esthetics. i'm wondering w\hether other folk have already made really pretty blance sheets, annual reports, cash flow preidctions, etc., or whether i would be doing that largely from scratch ... for specific needs i doubt they have brush as no accounting package exists per se brush, it appears in gnue a lot easier task then in gnucash though ie you don't need to know guile or whatever that programming langauge is that gnucash uses ok. that makes sense, holycow. so here's a doozy of a question: any idea how much time upfront it might tke to implement a basic accounting app that could get us going ... particularly as in gnue, the framework is open, you are creating the application your self, you are modifying the forms in gnucash they built the framework for you and you haveto figure out how to use it wayneg, gnucash uses guile for report building? *meh* w: scheme. yeah, i dopn't like ti much. h: true, that's what i'm nervous about in gnucash. doesn't seem too flexible. brush well, i'm going to start off using sql-ledger.org its free and full fledged accounting system thanks brush ... no holycow it's scheme :) i would say that it would be a good idea to 'port' sql-ledger than start from scratch holycow: and then develop gnue apps that can use the same backend? would that work? wayneg, ah! danke :) didn't know brush, *nod* actually they both use postgres so you wouldn't even haveto change the database structure i've primarily used mysql; i imagine it doens't make too much difference? you can completely emulate the db structure (provided its looked at by a knowledgeable person) and then your left porting the modules i think you will like postgres much more :) i'm not a developer but as a noob i find postgres much easier than mysql * wayneg agrees ok, cool. i'll checmk into sql-ledger. is it o-s? so if you have resources ... perhaps starting off with sql ledger as something to base it on ? yep gpl perl/web based frontend postgres backend once you have sql-ledger type thing in gnue boy the door is wide open oh, right, i tend not to love perl too much, so i think that's why i didn't focus on it .. but that's ok. erp here we come :) brush... to note: the guy that wrote sql-leger is here in canada he makes a living off of it supporting it *** jcater has quit IRC i am certain that with a framework like gnue you could turn around the effort and consider a business consultancy perhaps, if thats your cup of tea holycow: interesting idea. and he's been doing sql-ledger support for many years now so the business idea is sound, of course getting sales is always tricky i'm not sure if i have the rank energy to devote to fully porting an entire application, but who knows. for one, i would love to have sql ledger on gnue, with proper sequrity structure created as well and i would pay for support and or setup my own consultancy for it how many businesses are using gnue, that y'all know fo? most people here are interested in extending into the erp side of things and help businesses out brush *nod* just mentioning, its accounting to begin with :) i donno how many, the devs might have a better idea ;) wayneg, didn't mean to drown you out :) *** jcater has joined #gnuenterprise ehe, as you can tell i'm a gnue groupie >_> :) holycow not a problem * brush thinks that's grteat. brush, i'm starting my own business ... and i'm *very slowly* building my own system only just started ok. much to look through and think about. certainly, if i start porting accounting apps from sql-ledger or elsewhere, i'll be back begging for help. :) wayneg, me too i need erp bad lol brush :) wayneg: how's it going? well look at it this way we're all looking at starting somewhere in the erp chain hopefully we can meetin the middle someplace while taking care of current needs as well *slowly :) but i do everything slowly :)) hmmm. how many other epople are working on the package side of things? how many, that is, involved in open sourcing it? well i need to do lists, basic contact manager basic issue tracking basic inventory asset management whatever i write will be gpl'd however, i haven't started yet >_< ehe ^_^ * brush is looking at sql-ledger for a sec. brush, the thing about packages (eg. accounting) is making them so that they are broad enough to be used by everyone eg. all the different tax systems around the world ... etc... sql-ledger has many german customers as well as canadian wayneg: and all the states/province/local tax structures the app would need to be modular yes accounting is a nightmare so you could upgrade rates and rules for various countries? I vote we just get rid of all taxes...then I could just use my checkbook register wendall911, heh :) :) i like linus' perspective in this think small and applicable if you think big you overdesign and never get stuff done holycow, that is a BIG problem for me i would say if brush solves his own needs, the job is done, hopefully we learn and refactor as necessary along the way wayne, don't forget you can actually just install sql-ledger and port later? it has a postgres backend, no reason you cannot write gnue apps around it yeah ... i've taken sql-ledger for a spin ... there was something i didn't like about it although there were many positives you must have looked at the code ;) haha lol i've heard the perl is a nightmare, but then again, perl coders tend to be 'edgy' to begin with <_< *** kilo has joined #gnuenterprise no ... i couldn't remove something eg. a customer or a product or something like that ... which just really rubbed me the wrong way nothing that can't be fixed, its open source afterall :) http://www.theregister.co.uk/2004/11/17/letter_piracy_china/ <-- cool article true ... but i thought for my *curently small business*, how hard can it be to roll your own with gnue ;) probably not hard, but accounting doesn't strike me as a roll your own thing for anything beyond the most basic thign you can roll a calendar, a to do list, customer management stuff, accounting has 'rules' *yeck* holycow, either your making money or your not ... concept seems pretty simple to me :) lol ;) well, you got a point anywho ... it's been great chatting ... but i gotta go ... later afk *** kilo_ has quit IRC *** kilo has quit IRC ? thanks folks for all the help, wayng and holycow esp. i've been look at sql-l and we've see what can be done. cool, no worries do stick around and let us know what you end up doing :) sure! (with echoes) i'll be back. ;) cul *** brush has quit IRC :) *** sjc has quit IRC night all *** reinhard has quit IRC *** holycow has quit IRC *** cilkay has quit IRC *** wendall911 has left #gnuenterprise *** jcater_ has joined #gnuenterprise *** jcater has quit IRC *** holycow has joined #gnuenterprise *** jamest has joined #gnuenterprise *** wayneg has quit IRC *** wayneg has joined #gnuenterprise *** holycow has quit IRC *** wayneg has quit IRC *** jamest has quit IRC