*** kilo has joined #gnuenterprise *** Amorphous has joined #gnuenterprise *** johannesV has joined #gnuenterprise *** bigbrother has joined #gnuenterprise *** bigbrother has joined #gnuenterprise *** reinhard has joined #gnuenterprise reinhard, fixed that cursor-positioning for win32 driver (at least for single-line edits) hm, there's another problem with the newlines in multiline edits ... since a newline is two characters here (\r\n), and not one this introduces a difference between GF-position and UI-position *** btami has joined #gnuenterprise *** johannesV_ has joined #gnuenterprise btami, how is that with using jpg images in win32 forms-driver ? is that depending on the PIL installed on the machine or is it depending on gnue-form's win32 driver ? reinhard has installed gnue-runtime-environment*.exe and jpg images are not working i'm using the svn-version on my xp notebook (for testing only) and it works fine (but i've installed everything separately, like PIL) *** johannesV has quit IRC *** dimas has quit IRC johannesV_: it seems something missing from runtime*.exe will look into *** dcmwai has quit IRC btw. we using old sqlite python module supporting sqlite 2.x don't want we to swich to pysqlite2 (supporting sqlite 3.x) ? i have to say i'v never used sqlite not sure if they were installable in parallel if not, i'd vote for pysqlite2, as sqlite 3.x is way better than sqlite 2.x they are i'll add a sqlite3 driver today :) *** dcmwai has joined #gnuenterprise *** yure has joined #gnuenterprise *** lekma has joined #gnuenterprise hi all hi lekma hi lekma off to lunch *** dcmwai has quit IRC *** lekma has quit IRC *** erkki_ has joined #gnuenterprise reinhard, there's a bug in Base.ResultSet.py Traceback (most recent call last): File "/home/johannes/prj/gnue/.cvsdevelbase/gnue/forms/uidrivers/gtk2/MenuBar.py", line 120, in _menuHandler self.driver.dispatchEvent (event, _form = self.form) File "/home/johannes/prj/gnue/.cvsdevelbase/gnue/common/events/EventController.py", line 107, in dispatchEvent handler(event) File "/home/johannes/prj/gnue/.cvsdevelbase/gnue/forms/GFInstance.py", line 1184, in executeCommit message = event._form.commit () File "/home/johannes/prj/gnue/.cvsdevelbase/gnue/forms/GFForm.py", line 669, in commit block.processCommit () File "/home/johannes/prj/gnue/.cvsdevelbase/gnue/forms/GFObjects/GFBlock.py", line 538, in processCommit self._dataSourceLink.postAll () File "/home/johannes/prj/gnue/.cvsdevelbase/gnue/common/datasources/GDataSource.py", line 623, in postAll self._currentResultSet.post () File "/home/johannes/prj/gnue/.cvsdevelbase/gnue/common/datasources/drivers/Base/ResultSet.py", line 682, in post if index <= currentRecord: NameError: global name 'index' is not defined thanks, fixed thanks *** jamest has joined #gnuenterprise *** dimas has joined #gnuenterprise *** kilo has left #gnuenterprise could someone explain triggerRunReport(self, reportFile, parameters={}, **parms) to me.. is form.runReport('../reports/salesOrders.grd',{},destinationType='file',destination='asd') the right way to call that method Traceback (most recent call last): File "", line 21, in __main______gnue_forms_GFObjects_GFLayout_GFLayout_instance_at_0xb62e884c____Page1_btnGenerate_ON_ACTION_btnGenerateTrigger TypeError: __call__() got an unexpected keyword argument 'destination' is what i get erkki_: you get this with current svn ? no, with latest release is it available only on current svn? as that was one of my thoughts:p hmm seems it's ok in current svn *** kilo has joined #gnuenterprise reinhard: how about releasing ? I will do a release before I leave for holiday in any case (which is at latest next Tuesday) "holiday" -- what's that? reinhard: ok, thx actually I need new win packages for a customer, too btami: is your latest commit to fix JPG display in win32 ui? yep great! I could contribute gentoo ebuilds, once I have the time to beautify them this is one of the things I need for that customer :-) he was close to beating me up when i told him he has to convert all his pictures to bmp ;-) :)) btw. you can put by hand that missing JpegImagePlugin.py file from Pil source into bin/library.zip file or beter .pyc s/beter/better but new releases will definitely need new runtime*.exe, koz the current doesn't contain textwrap.py too (used by new dialog stuff) *** holycow has joined #gnuenterprise reinhard: hey, just noticed you have a _customer_ using gnue ??? kinda for a week now cool in test phase *very* little project 2 users, 3 tables 1 form *** rradek has joined #gnuenterprise Hello hi rradek I had a problem with gnue-appserver complaining about non-existant plugin (xmlrpc); it was caused by gnue.common.apps.plugin.__modules()'s lack of support for optimized *.py[co] files. Who do I send patch to? *** kilo has quit IRC rradek: gnue-dev@gnu.org and thanks in advance :) ooops: ValueError: year=1847 is before 1900; the datetime strftime() methods require year >= 1900 we do really need input masks ... who cares with 1847 ? :) reinhard: sent. Hope I don't have to be subscribed. input mask ? you mean jamest ? :) :) jamest? I somewhat remember that name.... but can't remember from where ... ;-) ok, we do now support SQLite 3 have fun :) *** jcater has joined #gnuenterprise *** mnemoc has joined #gnuenterprise ahh, looks like i've broken win32-driver today ... will fix it right now sigh i expect to start input masks real soon now the numeric formatting is wack but base text formatting (for things like phone numbers) is ready now in common we finished our move into the new building a few weeks back and I'm bringing up the new gnue based timeclocks and our gnue based warehouse stuff and the users are about to kill me for lack of input masks :) our vendor payments system is also gnue based and came on line after the move what better time to roll out 3 new systems than as part of the move :) ok, win32 driver fixed * johannesV_ phu ... btw sqlite3 works fine on win32 too before input masks i have to fix the db error in a trigger being silently swallowed by forms as that is killing me :( bbl jamest: just in case johannesV_ reported a case where he *thinks* a record was deleted due to a bug somewhere in common related to some changes that i did this week i'm running common from about 2 weeks ago sigh so I would recommend not to update svn in production systems till we have tracked that down 2 weeks ago should be ok actually make that 4 weeks ago pre-move so probably 6/14 that should also be ok :) i just as of yesterday got all gnue based user apps running with that code base and needed to start migrating my server batch job programs as they still use the pre-reinhardized datasources lol nice word ;-) btw we are not sure there is this delete bug at all as it's quite unlogical that it should be there, and it was a single, unreprocible case right as it was only in sqlite driver before adding _rowidField_ ... well, my goal is to get all the new systems up, then spend a month or so on cleanup and features like input masks cleanup == internal app cleanup so maybe it has something to do with that huge update ... where all-fields-in-the-query thing before I start the next round of big changes here If [appserver] section in /etc/gnue/gnue.conf contains allowed_hosts=localhost, gnue-appserver doesn't accept connections (rpctype=xmlrpc). If run with -Z, spits " EnhancedRequestHandler instance has no attribute 'command'"... (which is actually gone now) so i won't be touching gnue svn head for at least one more week which means you're good till um november Uh, mistake: it actually accepts connections, but disconnects immediately, returning HTTP 403. rradek: hmm - haven't used allowed_hosts so far rradek: thanks for your patch; how do you get .pyc in the directory without having the .py there? you just install pyc without py? is that possible? http://cvs.pld-linux.org/SPECS/gnue-common.spec I just remove *.py.; Don't ask me why, I'm not the python guy... I didn't make this policy. :/ ok, I think I'll apply the patch might make sense wrt space saving But it makes debugging a PITA. johannesV_: hi, the other trouble i had with dbf were null dates, 8 spaces. rradek: yes, indeed mnemoc, can you please send me a sample-file ? rradek: must make the change a bit differently, or we will have the modules listed multiple times if .py *and* .pyc is there btw. have you checked out latest svn version ? i did a change, where a field of only spaces get's translated into None automatically (no matter whether it's a date) johannesV_: aha... i'll revert my hack then and try again ok, great. If you encounter further troubles, please send me a copy of the dbf so i can work on a fix (since i can create dbf's only with open office) well, but now i'm really gone for about an hour ... :) :) cu rradek: I made a change based on your patch to solve the problem thanks again for pointing it out Thanks for fixing the fix ;-) Bug in gnue-setupdb: if database already exists, it's a fatal error. (I'd put it in the BTS, but it looks kind of dead, you know ;-) Feature request: non-interactive mode for gnue-setupdb (so it could be called in RPM scripts), and ability to specify dbname and username on the command line. rradek: not sure if that is a bug - when you ask to create a db and it exists, that *should* be fatal IMHO I ask to setup it (create tables). you can give dbname, username and password in connections.conf or as parameters to gnue-schema if you look at gnue-setupdb, you will see it's basically a one-liner shell script so you can fulfill your wishes by calling gnue-schema manually :) Yup. Thanks, that should do. I grepped the code for a while, but failed to find a way of specifying username in connections.conf... Only -u worked for me. that's what i do on T2 username = foo Nope, doesn't work. last release? with last release username query is only disabled if you give username *and* password in connections.conf gnue-appserver-0.4.1 gnue-common-0.5.14 I've supplied only the username. reinhard: when will you release again? reinhard: with dummy password works indeed. I'm connecting over localhost and using "trust" in pg_hba.conf, so password is not really needed... What is gsscvs, and where do I find it? Referenced in gnue-invoice/scripts/setup-db.sh... Ah, it's gnue-schema. mnemoc: I plan to release about a week ago but I'm not sure anymore whether I will be able to stick to that plan ;-) :) in any case I will release at least a beta version not later than next tuesday as I will leave for 2 weeks holiday then off for dinner now for real *** holycow has quit IRC that is perfect as I'll be migrating ash around the 18th *** jamest has quit IRC For my successors, who will interrogate search engines about gcdcvs and gcd2sql -- this script is now called gnue-readgcd. no one is from release, another from svn Well, gnue-appserver-0.4.1/ChangeLog says "Renamed gnue-gcd2sql to gnue-readgcd". Not that it would work for me... Any ideas what is this about? ~/rpm/gnue-invoice/scripts $ ./setup-db.sh + gnue-readgcd --connection=invoice /home/users/radek/rpm/gnue-packages/base/location/loc.gcd [...] [...] Updating class repository ... [...] DB000: InstanceNotFoundError: Instance '11d9ef025c81643cb52900485464775d' of class 'gnue_module' not found *** sjc has joined #gnuenterprise rradek: seems like it depends on another gcd *** jamest has joined #gnuenterprise reinhard: any hints about debugging it? I tried with all *.gcd, specified in setup-db.sh: base/location/loc.gcd base/org/org.gcd base/item/item.gcd sales/sales.gcd finance/tax/tax.gcd supply-chain/billing/billing.gcd IIRC gnue-invoice depends on gnue-packages somehow but not sure btami? Yes, all these *.gcd come from -packages. Appears that the set of *.gcd from packages/scripts/setup-packages.sh contains the missing dependency. yep, gnue-invoice depends on gnue-packages About packages/setup-packages.sh: ../supply-chain/inventory/inventory.gcd is now called invent.gcd. (I meant packages/scripts/setup-packages.sh.) rradek: have you changed GNUEDIR in gnue-invoice/scripts/setup-db.sh to yours ? theinventory stuff is under development by kilo (not finished) Removed it completely. OK, now it says: $ gnue-schema --connection=gnue ../schema/invoice-en.gsd MissingKeyError: Data row of table 'ITEM_ItemType' has no key fields (after heavy cutting, of course.) The table item_itemtype is empty, as well as item_item. rradek: are you using svn or packages ? gnue-common and gnue-appserver: packages, gnue-invoice and gnue-packages from svn. may i ask you to try with all svn ? i'v just run setup-db.sh today without pb Tsk. Sure, but I wanted to pack it all into nice RPMS. it would be cool, if we have official rpms i'v tried to package common to rpm before but i know nearly 0 about rpm :) It would be cool, if all this stuff was easy to package for every distro... anyhow, 'setup.py build' has rpm support Yes, but it's not what I want. If you want to make official RPMS, you can use a variant of this: http://cvs.pld-linux.org/SPECS/gnue-common.spec (and the same for appserver, designer, navigator, forms, reports). Anyway. Packaging the files is not a problem, setting up the database is the PITA. don't think so tamas@beus:~/svn/gnue-contrib/gnue-invoice/scripts$ LANG=C; ./setup-db.sh You are about to create the new database 'invoice-backend'. Continue [y,N]: y ************************************************************ Logon for SYSDBA into Security Database Password: You are about to change the database 'invoice-backend'. Continue [y,N]: y Updating schema ... Updating data ... updating table 'GNUE_MODULE' ... Rows: 1 inserted, 0 updated, 0 unchanged. updating table 'GNUE_CLASS' ... Rows: 7 inserted, 0 updated, 0 unchanged. updating table 'GNUE_PROPERTY' ... Rows: 49 inserted, 0 updated, 0 unchanged. updating table 'GNUE_PROCEDURE' ... Rows: 1 inserted, 0 updated, 0 unchanged. updating table 'GNUE_PARAMETER' ... Rows: 4 inserted, 0 updated, 0 unchanged. Loading gcd files ... Updating schema ... Updating class repository ... Modules : 6 inserted, 0 updated, 0 unchanged. Classes : 14 inserted, 0 updated, 0 unchanged. Properties: 153 inserted, 0 updated, 0 unchanged. Procedures: 28 inserted, 0 updated, 0 unchanged. Parameters: 10 inserted, 0 updated, 0 unchanged. You are about to change the database 'invoice-backend'. Continue [y,N]: y Updating schema ... Updating data ... updating table 'ITEM_ITEMTYPE' ... Rows: 2 inserted, 0 updated, 0 unchanged. updating table 'BILLING_PAYMENTMETHOD' ... Rows: 3 inserted, 0 updated, 0 unchanged. updating table 'TAX_VAT' ... Rows: 3 inserted, 0 updated, 0 unchanged. updating table 'LOC_STREET' ... Rows: 3 inserted, 0 updated, 0 unchanged. updating table 'BILLING_COMPANY' ... Rows: 1 inserted, 0 updated, 0 unchanged. updating table 'ITEM_UNITTYPE' ... Rows: 7 inserted, 0 updated, 0 unchanged. updating table 'LOC_COUNTRY' ... Rows: 3 inserted, 0 updated, 0 unchanged. updating table 'ITEM_ITEM' ... Rows: 6 inserted, 0 updated, 0 unchanged. updating table 'LOC_REGION' ... Rows: 4 inserted, 0 updated, 0 unchanged. updating table 'LOC_ZIP' ... Rows: 8 inserted, oops, sorry :) just wanted to show how easy it only 3 y :) Not with the released packages. rradek, btami: probably packaging end user apps should use modulepath rather than readgcd scripts true this is why all gnue-contrib are _not_ officiall packages :) It doesn't help the development, does it? ;-) rradek: python setup.py --help bdist_rpm I've seen that. But it doesn't create exactly the RPMS I want. :( I want to control the list of files, add translations of summary/description, control dependencies, add optimizations depending on architecture, etc. *** johannesV_ has quit IRC i see *** johannesV_ has joined #gnuenterprise rradek, the problem is a bit tricky: the gsd markup has changed a lot in current svn so if you're using gnue-schema from the packages this will use the old-style (depreciated gsd-markup) that's why you cannot process the (already updated) gsd-files from packages right now unless you'll take gnue-common from svn as well because btami is using svn for all parts it's working for him ... just don't mix up svn and packages since they're very far away from each other atm I'll try with the next release. Right now I'm trying to put the svn version to work. I've just got a nice. really big. slow. wxgtk error message. :-> ERROR: column "billing_totalnet" does not exist you're using appserver, don't you ? Nope. Do I have to? reinhard: i'm writing and xsl to convert a .foo, using references to .gcd files, into a .gfd. when it works i'll try to use .gld for labels. how do you think i should name a simplified forms format for classes? .foo is not the best extension :) It was awfully slow when I tried it... i think the packages (gnue-invoice) is made for appserver ... but please ask btami or kilo for that .. mnemoc, appserver is already able to generate gfd-files based upon the gld (gnue language definition) johannesV_: I'll try appserver then... which includes generating dropdowns for reference props and the like (see search- and info-props) johannesV_: they are too simple to be used what are you missing, maybe we can improve them blocks, master/detail, ... johannesV_: Ha, works. Thanks. rradek, great what do you mean with blocks ? how should master/detail look like ? by blocks i mean to do good use of the space i need to put 6 classes on the say curses display ok, so you'd like to put more than one class onto the same form at a time that's what i mean with 'only simple forms are generated by appserver' .gfd has lot of redundant data if you used .gcd ok, i see ... well i think appserver shouldn't generate such mixed forms ... at least not at the moment ... what about master/detail ? if i change master, details classes are refreshed :) i think it wont be hard, using xsl, to generate those .gfd i don't want appserver to generate them on the fly i'm fine with sharing the files but it's unnecesary pain to write them by hand considering .gcd are very simplified comparing to shcemas yeah right *** wendall911 has joined #gnuenterprise i agree that gfd has lots of redundant info and is not a very hand writing friendly format i'm not sure whether the best approach to this problem is to define a friendler format and convert a friendler format only valid for classes * johannesV_ feeding the baby having pos and search on each gld is also redundant that belongs to a form file bbl *** reinhard has quit IRC have to run cu *** johannesV_ has quit IRC I don't know if it makes sense, but an idea: wouldn't some kind of dependency tracking between *.gcd, *.gsd and *.gfd be useful? Each file has a version number (substituted by svn), and a set of for the minimal versions of files it needs. *** rradek has quit IRC *** jcater_ has joined #gnuenterprise *** jcater has quit IRC *** jamest has left #gnuenterprise *** jcater has joined #gnuenterprise *** jcater_ has quit IRC *** btami has quit IRC *** wendall911 has quit IRC *** jcater has quit IRC *** sjc has quit IRC *** jcater has joined #gnuenterprise *** jamest has joined #gnuenterprise *** holycow has joined #gnuenterprise *** jcater has quit IRC *** jcater has joined #gnuenterprise *** jamest has quit IRC *** jcater has quit IRC *** holycow has quit IRC *** holycow has joined #gnuenterprise *** jcater has joined #gnuenterprise *** jcater has quit IRC