*** holycow has joined #gnuenterprise *** SachaZzz has quit IRC *** reinhard has joined #gnuenterprise *** titopbs has quit IRC *** holycow has quit IRC *** dimas has quit IRC *** dimas has joined #gnuenterprise *** johannesV has joined #gnuenterprise good morning good morning good morning all hi reinhard good morning ;) reinhard: you actually slept? sure about 6 hours *** sjc has joined #gnuenterprise *** mnemoc has quit IRC *** mnemoc has joined #gnuenterprise *** btami has joined #gnuenterprise reinhard, DBSIG2/DataObject.py has still an 'old'-style header right that file will die a long death today but it's great to see how everything's getting smaller :) ah, ok :) i had a hard time yesterday doing that _parent-rework in designer :( ouch but i think it's finished ... i'll change ParserObj._parent to __parent now and change it into a weakref ... ok great i'm curious if our memory leaks go away then :) this way all accesses to _parent (which i've forgotten) should give an AttributeError anyway reinhard, i'm not sure about that :) but at least it will get a lot easier to catch, and a lot harder to create new ones :) anyway ... i've got some other work to do first :) ok, but then could you commit the changes for _parent you made so far? of course *** Amorphous has quit IRC *** Amorphous has joined #gnuenterprise *** rynik has joined #gnuenterprise *** kilo has joined #gnuenterprise *** dimas has quit IRC *** sjc has quit IRC *** sjc has joined #gnuenterprise *** dimas has joined #gnuenterprise who can stop reinhard? does he do something ugly? :) ok, here we go ... *yes!* just fixed my first memory leak :) your mem leak or some software mem leak? great ... there are quite many of them again johannesV: no, AFAICT it was a single one *** sjc has quit IRC ah, well, try a generated form ... appserver seems to be clean again ah good idea :) *** StarDeep has joined #gnuenterprise johannesV: you going to remove all those deprecated unlink calls? oh, sorry .. forgotton about that ... no problem just wanted to know wheter you gonna do it yeah ... on my way ... ok, they should have gone now ... thanks did you test with generated form? BTW I would seriously like to see the GC debugging moved to GBaseApp and bound to something like --debug-gc and I wonder whether it would be possible to show the circles somehow *** StarDeep has left #gnuenterprise *** StarDeep has joined #gnuenterprise *** btami has quit IRC Hi all. I've been playing around with gnue a little and it seems a got the appserver running allright with a initialized db-backend. Were should I look next? Is there a General ledger runable with a form to insert new records? rynik: if you are looking for a turnkey application we have to say we're not yet there we have some samples and unifinished applications in svn I'm NOT looking for a turnkey app! A'm asking to learn where work HAS been done ah ok cool :) did you have a look at the developer's guide? I must say I browsed it very quickly ah ok you can download some package stuff from Were are you working now then? $ svn co svn://svn.gnuenterprise.org/var/svn/gnue/trunk/gnue-packages gnue and some more from $ svn co svn://svn.gnuenterprise.org/var/svn/gnue-contrib/trunk gnue-contrib and $ svn co svn://svn.gnuenterprise.org/var/svn/gnue-luca/trunk gnue-luca gnue-packages is an ongoing attempt to create the "official" packages for gnue gnue-luca aims at a more small business oriented solution and gnue-contrib is just a collection of some stuff people once did with gnue and wanted to have it archived so others can look up things and see how they did it Thanks, I'll have a look in gnue-luca. reinhard, there's a module called 'Cyclops.py' which can show reference cycles ... but it's not a standard module and it's usage is very different from the gc-debugging is appserver still clean now, or do you have leaks still there ? AFAICT there are no leaks but you wanted to try generated form as to finding the cycles I think we could find them ourselves by recursively iterating through the __dict__ of the objects we find and through the dicts and the lists *** tiredbones has joined #gnuenterprise reinhard, regarding cursor-description ... what kind of information are you interested in ? field names 'if there are fieldnames', or the field names themselfs *** faqroo has quit IRC :) reinhard, now i have a unittest-script to answer your questions ... in case there are field names, whether they are in unicode or 8-bit-strings *** jamest has joined #gnuenterprise *** jamest has left #gnuenterprise *** jamest has joined #gnuenterprise *** jamest has left #gnuenterprise *** jamest has joined #gnuenterprise *** kilo has left #gnuenterprise *** lekma has joined #gnuenterprise hi *** johannesV_ has joined #gnuenterprise *** johannesV has quit IRC *** lekma has quit IRC *** lekma has joined #gnuenterprise *** aries_mindworks has joined #gnuenterprise hi I try to promote GNUe in our learning programs http://aries.mindworks.hu/node/55 For the system programmer students, I've set the thesis subjects based on GNUe I hope it will incressare the usability of GNUe... cool *** btami has joined #gnuenterprise hmm, seems designer is broken DB000: File "/media/disk-hda6/home/tamas/svn/gnue/.cvsdevelbase/gnue/designer/forms/Instance.py", line 93, in __init__ DB000: BaseInstance.__init__(self, app, *args, **params) DB000: File "/media/disk-hda6/home/tamas/svn/gnue/.cvsdevelbase/gnue/designer/base/Instance.py", line 225, in __init__ DB000: self._app.mru.addMenu(self.menubar.getMenu('File|Open Recent|'), self) DB000: File "/media/disk-hda6/home/tamas/svn/gnue/.cvsdevelbase/gnue/designer/base/MRUManager.py", line 118, in addMenu DB000: self.refreshMenu(menu) DB000: File "/media/disk-hda6/home/tamas/svn/gnue/.cvsdevelbase/gnue/designer/base/MRUManager.py", line 158, in refreshMenu DB000: wx.EVT_MENU(menu.__instance, tid, self._app.OnOpenRecent) DB000: File "/usr/lib/python2.3/site-packages/wxPython/wx.py", line 1368, in EVT_MENU DB000: win.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED, func) DB000: AttributeError: Instance instance has no attribute 'Connect' t got it with: gfdes ntro.gfd s/ntro/intro which intro.gfd from form samples same with any other form too *** titopbs has joined #gnuenterprise *** jamest has left #gnuenterprise btami: Szia! btami: a Mindworks-nél oktatunk is, a rendszerprogramozó nebulóknak szakdolgozattémát gnue-ben jelöltem ki btami: remélem sikerül vele egy kis lökést adni a fejlesztésnek. bár a nebulók inkább btami: kezdők még mindenben nagyon... *** jamest has joined #gnuenterprise btami, that error is really strange ... as i cannot find what it has got to do with the latest changes ... what does wx.EVT_MENU does ? aries_mindworks: cool btami: http://aries.mindworks.hu/node/55 johannesV_: as i know it binds an event to a menu entry yeah, ok, but what about it's arguments ... is there any documentation about wx available out there ? jamest: 2 questions: 1. after calling all those _beforeCommitInsert etc. triggers, the RecordSet checks if the status has changed and if yes, calls the triggers again I wonder how the status could change in such a trigger and johannesV_: wxwin2.4-doc 2. ResultSet.isRecordPending seems to be used nowhere; do you use it somehow in your non gnue common-based apps? btami, thanks .... but i really dislike fixing designer reinhard: #2, i don't use it bye *** aries_mindworks has left #gnuenterprise #1 not sure I remember having to add that would it be possible for a record to delete itself via the trigger johannesV_: me too :))) but even so that would mean the insert trigger shouldnt need to fire *** photon_ has joined #gnuenterprise *** photon_ has left #gnuenterprise *** titopbs has quit IRC btami, i'm unable to find out something about arguments of wx.EVT_MENU ... strage johannesV_: where are you looking? the latest commit does nearly nothing, just comments and only one new line added unfortunately sometimes you have to read the wxpython source i've downloaded that wx2.4-doc pacakges and googled a bit so something changed in another place (not in MRUManager.py) what you trying to do? well, on adding a file into the mru of designer it throws an exception it's the line where wx.EVT_MENU get's called when did that start? i don't know btami, do you know when this started ? it happens on loading a gfd into designer, or starting with a gfd from the commandline johannesV_: dunno ah, so i'm not the one who broke this ... :) to me it looks like binding the event 'open the given gfd file' to the mru-menu-item fails, cause EVT_MENU get some kind of wrong arguments (at least in type) DB000: File "/home/johannes/prj/gnue/.cvsdevelbase/gnue/designer/base/MRUManager.py", line 158, in refreshMenu DB000: wx.EVT_MENU(menu.__instance, tid, self._app.OnOpenRecent) DB000: File "/usr/lib/python2.3/site-packages/wxPython/wx.py", line 1368, in EVT_MENU DB000: win.Connect(id, -1, wxEVT_COMMAND_MENU_SELECTED, func) DB000: AttributeError: Instance instance has no attribute 'Connect' that's the tail of the traceback btw., that Instance instance is of type gnue.designer.forms.Instance.Instance, which really has no Connect method if i change MRUManager.py to come along without a traceback, and finally try to close designer i get another exception: File "/home/johannes/prj/gnue/.cvsdevelbase/gnue/designer/Designer.py", line 308, in OnExit DB000: instance.Close() DB000: AttributeError: Instance instance has no attribute 'Close' which is also true, since forms/Instance.py has wether a Close () method nor a Connect () method that's odd as I was in there 2 weeks ago and don't recall seeing that just a minute, i need to reboot *** jamest has left #gnuenterprise *** StarDeep has quit IRC hmm, maybe it was really me who broke something oh no ! it was derek :) the pre-* triggers can change the state of the record but post-* triggers shouldn't so I think that's why you have to recheck the state after a trigger is run it's been a while jcater: right ah, i've just updated svn to the version before my changes, and it raises the same error ... so it must have been derek the trigger code can delete a record right that it's been a while? or right about what I said? :) about 2 years both right :) *** jamest has joined #gnuenterprise jamest and jcater: very stupid question now regarding the order of function definitions do you prefer the official main functions of an object at the top and the internal helper functions at the bottom of the file or other way around? e.g. if an object defines a foo(self) that is meant to be used i don't have a preference and that foo(self) internally uses __bar(self) as a helper internally i've started grouping them by function so my external methods and private support methods are in the same sections #=========== # Tax Function # ================= def pub def pub def _priv # ============== # Output Fucntion # ============= pub pub priv etc but that's just me :) bbl jamest: that makes sense and you put pub before priv I've always done it the other way around that's only recently and I consider changing that as I found out I like the most important things of a file being at the top of the file rather than the bottom yeah, i find i change the pub more than the priv so started doing it that way but like i said, i'm not that picky I did not assume that ;-) but trying to find out what makes more sense bbl *** btami has quit IRC and you ask jcater and me? sure :) I'm in the habit of what you described, reinhard public at top private at bottom just a matter of habit, though I don't care *** johannesV_ has quit IRC ok thanks for your input j* i've been thinking about next gnue-common release i'm sorry huh? you're sorry about what? [10:44:20] i've been thinking about next gnue-common release you're sorry when I think about a release? :) that you have to oh lol however are we that close considering the changes in datasources *what* i'm actaully thinking about no we are not close that's the point (of part of it) considering that there was quite some restructuring in datasources and i've also removed deprecated stuff that has been deprecated for > 1.5 years or so and a major cleanup i've been thinking whether this would justify a 0.6 of common or would you prefer to keep at least the first 2 digits in sync between common, forms, and designer? no need to keep in sync and how would 0.6 as the next release match your release plan? (hope the word "plan" doesn't make you laugh) ;-) :) FWIW it will still take some time this cleaning up *really* takes time did actually underestimate it I think cleanup was the goal for the 0.6 series iirc and was going to be that entire series as its a big job :) and I am thinking about something like 0.5.90/91/92 or 0.5.99-beta1/2/3 or so so a 0.6.0 release that is major cleanup makes sense probably also a good series to decide how we want common to evolve a single library, or sub module packages that install in comon another question that just arises are SQL datasources (as opposed to "object" datasources) read only or can they be properly updated? read only iirc lol def createEmptyResultSet(self, readOnly=0, masterRecordSet=None): what reason could somebody have to create a read only empty result set? you can't really do much with such a thing :) wouldn't the master still be able to update it to reflect detail info? an empty result set wouldn't even have a single record you couldn't even insert an empty record gerp told me that this parameter is actually never used :) grep you do that w/ grep? yep does grep do recursive dir searches? find . -name "*.py" | xargs grep "foo" you should try glimpse as we talk of read only http://webglimpse.net/download.php#bins much faster after indexing the gnue tree would we at some point want to support partially read only resultsets? stuff like primary key of a table is read-write for inserts and read-only for existing records or select foo, bar, someformula(x) from table and foo, bar would be updateable actually i can answer that question myself we do want that at least for appserver's calculated fields well then, that's settled :) *** sjc has joined #gnuenterprise reinhard, fields support that setting in forms i.e., editable only on new records ah *** dimas has quit IRC thought that was at the block level in forms *** wendall911 has joined #gnuenterprise field.editable can be Y, N, new, or update new == new records only update == updates only I think blocks have the same editable attribute ooo and fields have one additional option editable=null i.e., only if the field is currently empty (regardless of new or updated record) nifty actually looking at things very closely the whole read only vs. read/write thing really happens at block and field level and all those read only exceptions at ResultSet and RecordSet level never happen at all because AFAICT there is one single call to createResultSet with readOnly set at all and that one call is in reports so after staring at the screen for about one hour I end up with asking myself whether this complete read only handling in RecordSet/ResultSet could be completely removed?? or is there any secret plan behind it that I don't see now? or do you use it in your common based non-gnue apps? reinhard, the point of that was for future needs mainly caching and master/detail records running reports against a 10,000 record table will chew up memory my plan was to use that readOnly flag that only reports passes in to eliminate a lot of the master/detail caching, as there was no need for it so, yes, there's no/not much code to back that up but that's why it was there if you have a different solution, that's fine too did that make sense? ah so that read only attribute is more of an "info" than a "restriction"? would you see any use in the dbdriver being able to "override" the editable flags given in the gfd? e.g. making a block read only if it is connected to a db driver that can't write (like static or some file-based) nevermind I'll just leave that as it is hi all hi ajmitch you've forced me to have to do the init script & all for appserver :) otherwise I'll have to make /var/run/gnue world-writeable (which isn't so bad) oh that wasn't me who filed the bug :) no, but it was you & johannesV who are the evil gnue hackers ;) I filed the bug reinhard: I try to run your luca apps but I get a login to appserver form asking for Company: and Fiscal year: . What is that? there is some sample data that you might want to import Is'nt that done just by putting it in the module path? And do a HUP.. I mean the gsd sample.gsd you can import it with gnue-schema right I'll do that,thanks err demo.gsd OK then you have a sample company named demoa ???? company and fiscal year is asked at the startup of gnue it defines the subset of data you want to work with usually for multi company able programs there's a complete set of data per company 'demoa' is not a valid filter.... you did import the demo.gsd? I'did There might be some problem with encoding in the db I can't lock directly into it with psql gnue=# \d FEL: invalid byte sequence for encoding "UNICODE": 0xe47273 yuck Did I create the db in unicode and put iso in it? not sure usually postgres handles that quite safely I'll look into gnue-setupdb and see whats going on then. *** jcater has quit IRC Is the gnue db supposed to be in unicode? usually yes *** SachaS has joined #gnuenterprise *** titopbs has joined #gnuenterprise It seemsPostgreSQL has problems with gnue.gsd and that has to do with wich locale the database cluster was initiated with. I use sv_SE. The damn thing (postgresql) stumbles on its own translations as I understand it. *** jamest has left #gnuenterprise good night all *** reinhard has quit IRC *** wendall911 has quit IRC *** jcater has joined #gnuenterprise *** sjc has quit IRC *** jcater has quit IRC *** titopbs has quit IRC *** jamest has joined #gnuenterprise *** tiredbones has quit IRC *** jcater has joined #gnuenterprise *** titopbs has joined #gnuenterprise *** csingley has joined #gnuenterprise *** csingley has quit IRC *** jamest has quit IRC *** jcater has quit IRC *** titopbs has quit IRC