*** SachaS has quit IRC *** johannesV has joined #gnuenterprise good morning *** SachaS has joined #gnuenterprise *** Muile has joined #gnuenterprise *** reinhard has joined #gnuenterprise good morning alexbodn: the sample database is in zipcode.gsd you can read that into your db with gnue-schema *** btami has joined #gnuenterprise *** Muile is now known as kilo *** SachaS has quit IRC *** SachaS has joined #gnuenterprise ouch gnue-forms 0.5.x loses all changes without any confirmation if you switch to query mode customer just learned that the hard way... bahh funny enough I just changed it in svn head a few days ago hi reinhart. thanks, let me see sorry reinhard: no data for the zipcode table. i have found compatible data and posted to gnue-dev this morning :-) yes, we have no data for the zipcode table only the states table is filled out *** btami has quit IRC *** johannesV has quit IRC *** jamest has joined #gnuenterprise hi all. i would ask your help to activate the inventory demo: the data is ok in the gnue database, which is in the [gnue] config section. there is a query that complains there is no oid. i wish to change this query, but i don't know where is it saved. *** johannesV has joined #gnuenterprise alexbodn: ouch so? alexbodn: I am not sure the inventory demo is functional any more at all I haven't tried it in literally years what demo may i try? are you running release or svn? alexbodn: postgresql dropped the oid column by default in new tables so i imagine you're using a newer postgresql as your storage system right? i know about this. i can change this behaviousr, but i'd prefer to change the query (and learn about the system a littel :-)) s/ousr/our/ if a table doesn't define a primary key then our system falls back to using oid s/littel/little/ depending on what you're using in gnue (like say a .gfd) you can tell the datasource which columns to use as the primary key ok, but where is the form data source defined? in a gfd file i see. but what option is the primary key? i'm checking now i'm here, thanks in advance :-) in the tags in a gfd file you can add a primarykey="field,field2,field3" which is a work around when missing a primary key def on a table you mean this would be a 'kind of de-facto unique combination'? yes *** kilo has quit IRC unless things have changed greatly the sql gnue generates used to compare every field along with the oid but it still expected it primarykey IIRC short circuits that and uses the defined fields to determine the proper record reinhard: is that still the case? reinhard: i svn'd up :) so no way around oid? it only happens when a table is defined without a PK which is really a bad practice that i'm very guilty of so I imagine the demo was setup missing a PK all tables here have pk wha? then it should be fine but not in the datasource shouldn't be needed there IIRC as it tries the table first and falls back to OID i think alexbodn: which demo are you running? inventory may there be more than a form in a gfd (at least here)? no gfd = gnue form definition ok you can have a form and multiple dialog defs in a single gfd a dialog is just a form of type dialog used to generate custom input popups which form are you trying to run in there as there are 3 why should i need different dialogs for one form? an example that I have here in shipping as they scan the UPCs codes of items and put in a box the system checks to see if it was really part of that order if not it pops up a custom dialog that says something like this isn't part of the order, type "YES" to continue as my users tend to just click through anything without reading it so they can get back to whatever it is they really want to do i understand: dialogs don't have to represent the form data, but may be any msgbox yes alexbodn: with the latest svn checkout i can't run anything in that demo nor any of my own forms it would seem :) i begin to love it, even though my demo shows no data :-( yet! one of the traditional demos that was used a lot in debugging by a few of us was the zipcode stuff i'm not sure what reinhard and johannesV and co use now still using zipcode :) but zipcode forms are simple and show several features johannesV: :) i have the version packaged in debian testing. the moment i might do serious gnue based development, i'll allways have the latest and greatest :-)! so i'll try zipcode. btw, i've posted on gnue-dev a method to fill the zipcode table johannesV: wx drive in svn is toast it would seem wx26 is working....sorta seems like not svn'n up for months is going to cost me a bit ;) jamest: do you have tracebacks? can you describe the symptoms? yeah, tracebacks :) :) jamest: give them to me! reinhard: give me a bit, i'm figuring out if it's my devel install, my forms, or an issue with the code or you fixing yourself? I'm 95% positive it's an issue with the code I did some changes lately that affect all uidrivers and I did the changes in wx ui without being able to test at all i think i'll take a look as if I have to plone/zope any more today i think i'll lose it alexbodn: when the db has a primary key it doesn't help if in the definition in the GFD it isn't mentioned jamest: heh, you're gnueing for recreation? ;-P right, it stopped complaining only after i have added the primarykey option jamest: anyway, I'll help in any way I can well, at home I am still working on the house for "recreation" and i've been ploning and javaing for the last few months non-stop at work so it's 8 hours of suck followed by an evening of suck i think I can gnue just a little for mental health reasons :) or is that if I work on gnue i must be mental? the zipcode table has the primarykey field zipcode too, while in the zipcode.gfd demo it seems to have been referenced as "zip" now i changed zip to zipcode probably in the wrong options :-( i mention, i'm using the sql to create the schema, not the gsd file (yet) is the sql still there? i thought we completely replaced it by the gsd hmmm we have a bigger issue than i thought i took it from another demo :'( as I just created the zipcode table with a PK and the datasource still attempts to use the oid column in the query right yes because the primary key field can change on inserts if there is a trigger on db side so the only really reliable record identifier is the oid but the oid isn't in newest postgresql i thought we used the previous values of the fields during updates so every field had to match you may create the table with oids option brb alexbodn: yes, but then we're not friendly w/ the default postgresql config moving forward jamest: are oid's depreciated to use or are they just turned off by default but still a valid option? i accept it, but as we are programmers, we should just use the documented recipes ;-) turning off oid usage for postgres is a one-line change but it takes away the possibility to use on-insert triggers on the db i'm pretty sure it's depreciated but let me grab the latest tarball and read the release notes hmmmmm would we need to drop it completely or could we check the table schema to see if it exists and use it if available brb that way we could qualify on tables that use on-insert triggers you have to have an oid I'm not sure the oid is listed as a column when you query the schema in postgres reading the release notes it looks like OIDs are going to be around for a while just not created by default reinhard: the form isn't getting added as a key in _gfObjToWidget for the wx24 driver how long ago did you change that so I can look at the diffs to see what you were doing? as it's not giving a keyerror in line 298 of the uidrivers/_base/UIDriver actually , scratch that hmmmmm in the base ui driver we have a huge try: except KeyError: block that wraps the entire method jamest: sorry, on the phone *long* phone call :( what's happening is in the 2.4 driver that that in the _buildUI function in the base the line that read supported = self.supportedWidgets [object._type] is generating a key error that is caught by the function wide wrapper and ignored (as it should be for triggers, connections and such) now I'm trying to figure out why 2.4's form widget isn't using the configuration {} setup in it's form/__init__.py * jamest is verbally going through this in case reinhard has a "Whoops I forgot to change foo" moment *** klasstek has joined #gnuenterprise hi, i'm back :-) so far I hand't even had a "uuhh.. I messed with this" moment hoorai, i did it ! :-P i can see the zipcode demos reinhard: :) we ignore a lot of excepts in the buildForm process yes that's a part that I didn't go through yet in this case a bad import in form/widget.py was causing it to not generate an error but instead be dropped from the supported widget list lol next! hmmm... actually giving a primarykey field should shop forms from using oid reinhard: it's not working i don't know why yet it is (for me) as that is my work around in my production system hmmmmmmm maybe I screwed up my test setup as i do use that in production with 8.1 sigh, it helps to save the .gfd with the primarykey="" added before testing to see if the change worked reinhard: 24 works again, however it seems that buttons on a form break it during a rollback jamest: removing the RESPONSE is not good pardon my ignorance: in the master/slave zipcode form, how is the link between the blocks deduced? only by implied foreign key? reinhard: i sync'd it up with the way wx26 does it let me dbl check _RESPONSE should be a global variable rather than an instance variable now which probably was my mistake to not remove the "self." sorry, i found the detaillink option :-) hmmmm 26 doesn't return response either err that is the exception handler? not the _ui_show_message_? erm yes it is scratch what I said, your changes were perfectly right I wonder how buttons can break a rollback, as rollback doesn't do anything ui special IIRC doh' i said rollback i meant query if I open zipcode.gfd and immediately press f8/f9 i get GFButton instance has no attribute '_field' in GFBLock line 913 however that button is associated with a block="zip" in the gfd and if I remove it then she's fine pardon me please, but how can i use query datasets, and use say, picture fields? use query datasets? you mean perform a query from a form? or something else? using a select statement that would be read only I believe sql statement if you need read/write is it straight forward too? :-) then close the tags i could paste the whole example there but it's fugly ah here's a simple one it's wonderfull! from my incoming fax assignment form order_by="claim_no,entry_timestamp,url" prequery="Y" primarykey="url" table="xref_image"> also happens to have an image field Char:y="3" block="blkXref_image" field="fldUrl"/> in this case the image is stored outside the table with a url field in the table i quite love this text based metrics i was meaning to calculate the image, like a map or a graph i believe reinhard and friends have added a newer layout style into forms as well i've not looked at it yet though i don't believe you could currently generate an image on the fly though you could display a filesystem image and manipulate it inside triggers i'm looking forward to convert access applications to gnue, and later, to finish an autoconvertor which is how i do my fax assignments the user has a set of rotate buttons and a scale dropdown i'mm looking forward to involvement with gnue which uses triggers to manipulate the image once the user gets what they want they assign it to the appropriate order (a claim) is there a larger quantity of documentation and working examples? fwiw, i have to do something like # Poor man's refresh. blkXref_image.nextRecord() blkXref_image.prevRecord() in the trigger to get the image to refresh, but i imagine that could be enhanced to provide more functionality well known everywhere! ;-) jamest: button query problem should be solved, can you try please? samples are all in gnue-forms/samples and there is a gnue-samples package docs are a weak point documentation is in the files ending in .py exactly just like plone and zope :) but you are highly encouraged to aks for help here at any time where is the program then? is there any plan of a web ui? dimas_: lol alexbodn: several, all of them stalled there were attempts on a php based ui then a pure html ui a javascript ui then another php attempt no problem, gtk2 is wonderful too ;-) ah, yes, javascript also reinhard: yeah, that did it reinhard: fwiw, that sloppyQuery thing that was put in by request here eons ago when I was consulting and we've never once used it I've neither used it if it looks as ugly to you as it does to me I wouldn't be against depreciating it thanks a lot folks. i'm in. i'll have a dayly intake of gnue, and hope to be also able to contribute what it does if you've not looked is replace your field query values of 'reinhardRocks' with I know %foo$ err %foo% %f%o%o% actually eek yeah :-) that's indeed pretty ugly they insisted as they wanted to instead of typing thanks a lot. bye for now bye bye alexbodn 11-222-333-4444 hope to see you again here :) to type 22444 and hit all matches bye all. you are doing great work! so "foo" would also match "fuck our boss"? ;-P my for johannesV maybe for er, i mean yeah it would sure, it's worth! jamest: if you think nobody uses it you can as well just remove it bye all I won't object at all reinhard: it's somewhat scary how quick you expanded foo into that lo lol jamest: I am going to leave for 2 days in 3 hours so if you have any questions remaining please ask now or ask johannes tomorrow :-) i think i'm good for now *** jamest has left #gnuenterprise wow this was a lot less troubles than I expected :) *** jamest has joined #gnuenterprise cu all *** reinhard has quit IRC *** johannesV has quit IRC *** jcater has joined #gnuenterprise *** jamest has left #gnuenterprise *** kilo has joined #gnuenterprise *** klasstek has quit IRC *** kilo has quit IRC *** derek has quit IRC *** curt__ has joined #gnuenterprise *** curt_ has quit IRC