*** reinhard has joined #gnuenterprise *** ferg has joined #gnuenterprise *** johannesV has joined #gnuenterprise good morning good morning *** btami has joined #gnuenterprise good morning *** kilo has joined #gnuenterprise good morning all good morning reinhard: our yesterday problem solved the datasource attrib was missing from block :) (cut and pasted from another gfd) oh that can't really work yes :) *** ferg has left #gnuenterprise Morning all reinhard: is there any technique to do includes in a gcd file? our gcd files grow rapidly and they will become hard to maintain soon lots of procedures, long code parts and if they could be included from an external file, it would help maintenance very much * btami dreams on a preprocessing step in readgcd #include "foo.gcd" s/dreams/dreaming would be cool.... yep good old C... there is some xml magic to do includes, isn't it? or do I mix up things here? there is something maybe you can even just have different gcd files for the same module but not sure how i.e. have the same tag in several files but then different tags can we??? I didn't try but it could work hmmm maybe you mean ... :) library??? i've tried something like that quite long ago and it didn't work very well, but i gave it up without putting more efforts on it ah ok the same as for gfd-files with dialogs and forms I misunderstood that it is already there ah, or was it that's that importable-tags thingy reinhard: arn't filter classes filtered per definition? i mean if i have year and company filters, they are not filtered with selected login data ? f.e. if i want a procedure of year class returning workdays of a year, it have to have a year parameter ? IIRC the filter class itself is not filtered ok, thx i.e. if you filter by year and you open a form with the years, you see all years yes * btami likes filters *** johannesV has quit IRC *** johannesV has joined #gnuenterprise reinhard, i've discoverd the concept of postgres' atttypmod field for numeric values length = (attypmod - 4) >> 16 scale = (attypmod - 4) & 0xFFFF aha quite close to what i suspected actually :) thos nasty 4 bytes to subract were a hard thing to find out :) i've forgotton about that so i've got quite different results *** holycow has quit IRC bbl *** btami has quit IRC *** yure has joined #gnuenterprise *** kilo has quit IRC *** jamest has joined #gnuenterprise *** btami has joined #gnuenterprise *** psu has joined #gnuenterprise *** yure has quit IRC *** jcater has joined #gnuenterprise good morning jcater you have a minute? yeah (but there may be lag time :) IIRC you were involved in the creation of gnue-schema, right? and certainly in introspection functions of datasources I talked with johannesV the other day about the representation of a db schema gnue-schema uses an object tree introspection uses a Schema object with childSchema objects and johannesV's schema creation functions use a dictionary structure to describe the db schema okay and we (johannesV and me) somewhat agreed that this is suboptimal and it might make sense to unify this and the gnue-schema object tree seemed the most powerful approach of representing a db schema in python yes Schema objects came first but weren't meant (at the time) to be storable GParser objects gnue-schema came after that, and needed to be storable so johannesV is working on changing both schema creation and schema introspection to work with gnue-schema GParser objects I'd have no problem getting rid of Schema objects ok that's what I wanted to hear :) and moving to the GParser object I think it could make it easier to do a schema designer module at some point in gnue-designer instead of merely a schema viewer yeah ok actually johannesV already has started work on that just wanted to make sure you don't see any problem in that path well the only potential roadblock I see is the introspection stuff would give more implementation-specific details but that's probably not too big a deal can you explain what you mean? not sure if I understand gnue-schema is lowest-common denominator but introspection also returned the equivalent information but also included, for example, postgresql-specific data types too in case your tool knew about those but that may not be needed I just think it does it now yes it returns "nativetype" we might add that to the schema xml definition that nativetype won't be needed, does it ? as a field that is (probably) ignored on read but is output on write since the type="" length="" precision="" combination of a field-def get's translated to a proper nativetype automatically again johannesV: somebody *might* want to know what native type it was in the db, just as info but, yes, the GSField object still has a 'nativetype' attribute e.g. was it a CHAR or a VARCHAR (for db's that do have different types for that) (which won't get saved on a dumpXML () though) johannesV: that seems to make sense so the info is there as pure information right * johannesV adding constraint introspection right now ... jcater: thanks for your comments hi all hey psu no problem long time no see I see we've got a namecheck on slashdot today hi reinhard http://it.slashdot.org/article.pl?sid=05/05/18/1817227 nice *** mnemoc has joined #gnuenterprise so what is Steuerpflichtige innergemeinschaftliche Erwerbe das ist, wenn du eine UID-Nummer hast und im EU-Ausland was kaufst dann kriegst du eine Rechnung ohne Mehrwertsteuer erm sorry for switching to German reinhard: danke so it is irrellevant for most things i do? if i bill you for software, it is aussergemeinschaftlich nur wenn do im EU-Ausland was kaufst ;-) ok du* Danke does anyone work with elster? PhUrl: luckily I'm Austrian ;-) I learned German in school, 9 years docelic: not bad reinhard: i forgor we have met before, in frankfurt oh mike long time no see :-) PhUrl: oscommerce ;-) cool how operative is gnue-report? yeah, i am working on sqlledger/lxerp at the moment PhUrl: did you investigate Interchange at any point ? (www.icdevgroup.org) docelic: yes i met with this very pleasant person, danb who declared me crazy i looked into using it currently i am working on a project for someone that uses oscommerce and sqlledger aha (btw, /me <-- Interchange developer) cool well, i looked into interchange and found that it was very complex from the coding i tried to hack some of the code sqlledger is also similar it does not use strict or warnings full of hacky perl and has many dangerous segments of code Well, depends how you look at Interchange. Currently I think the main problem is documentation (either lack of it, or badly written), which I am therefore redesigning since last year like evaling strings out of a web page as function pointers (btw, we switched to use warnings in all code just last week) does interchange use strict and warnings? oh wow good and use strict was always there, of course well, not in lxerp/sqlledger it is really badly coded full of copy and paste and hardly any structure even the structure it has is wrong the html is mixed up with the database (btw do you folks mind the conversation going slightly off-topic?) anyway that is what i am working on i hope to be able to determine of gnue is able to be the business server for the sqlledger will it be possible to port the perl code to gnue? docelic : I think "offtopic" is not really a concept we worry about much around here ;-) it needs to have a seperation of presentation from database access so keep talking PhUrl: yes, that's crucial has anyone used perl to talk to gnue? i would be willing to strip out the business logic from lxerp and attach it to gnue if it was possible to keep some of the code in perl PhUrl: I guess in GNUe terms you are talking about "triggers" i.e. things that you program in GNUe Forms, or Reports or Appserver ok that actually contain the "business logic"? i am thinking about the appserver like, how to calculate the tax or what the workflow of an order is or how to transform an order to a bill all the stuff that is business logic if i can port that to use gnue as a basis and then transform the data model over it would be great there are alot of people wanting to use lxerp I know we talked, before Appserver really got going now it is going good? of providing "hooks" so you could write triggers for Forms or Reports in ok something other than python (C was the main suggestion) Don't know if this also applies to Appserver i guess it would be possible to rewrite the perl in python but presumably the same logic is there i need to see at least : if i use the gnue for handling a bunch of stuff like the data dictionary and forms if your perl is typically kludgy, a re-write in python might be better yeah as python tends to force cleaner code ok, i need to take another look but as I say, you might be able to plug in the perl anyway it might be easier to just look what gnue has and add the misisng things from lxerp and gnue supports a web front end and a form *** johnix has joined #gnuenterprise Hello *** johannesV has quit IRC ping? *** johannesV has joined #gnuenterprise johnix: pong hello Reinhard hi joh erm johnix did I meet you somewhere before? I don't think so but it might be at least I can't remember :) Maybe you can help me. I'd like to use Gnue to write a small timetracking app for my company I've used Gnue-designer on Debian, but it segfaults often yes is it supposed to be useable, or should I seek another tool? gnue-designer has problems with some versions of gtk and wxpython gnue *is* usable most people use designer just to create a basic template of their forms and then manually tweak the gfd file with an xml or text editor ok, so Emacs it will be. I've had trouble setting things up and getting the big picture yes we suck hard at documentation :( but we try to be friendly to people who come to IRC and ask things :) There are files, databases, app servers, clients... the problem might be ok... then that's how it will be... well one of the problems at least that you can do so many different things with gnue you can use it 2-tier or 3-tier you can write a full blown app or just create a form or report on top of an existing database ok, I want to use it 3-tier etc etc cool so I should use the app server you have seen http://www.gnuenterprise.org/tools/appserver/docs/manual/devguide/index.html ? so I guess I have to describe both the database and the app server in /etc/gnue/connections.conf no johnix: about connections.conf you have to have an entry for the database on the machine where gnue-appserver runs and an entry for the appserver on the machine where your gnue-forms, gnue-reports etc run but if I develop the application on the same machine? which is not necessarily the same machine but it *can* be of course :) should I forget about the appserver during development? no au contraire does it make a difference? appserver will be the core of your development ok and will I still use files to store interface definitions and suchM ? think of appserver (better: gcd files) defining the *logic* in your application and the forms and reports (gfd, grd) merely the "look" and yes, you will use files look at the doc link I gave you above, it should give a basic idea on how you develop with appserver ok. I'm doing it right now Now, I have another problem I can't start the app server *** jamest has left #gnuenterprise DB000: ProgrammingError: (1146, "Table 'GNUE.gnue_module' doesn't exist") this is as far as I've gotten ok you installed debian packages? yes (should I say, "of course"?) /usr/share/doc/gnue-appserver/configuration.txt.gz should be your friend bbl in 30 min ok, thanks I'm not staying either LUG meeting in 35 minutes, and I still have to eat but thanks LUGs are so 90's ;-)) back *** sjc has joined #gnuenterprise *** md-afk has joined #gnuenterprise *** PhUrl has quit IRC *** johannesV has quit IRC *** btami has quit IRC *** psu has quit IRC *** kilo_ has joined #gnuenterprise *** jamest has joined #gnuenterprise *** yure has joined #gnuenterprise *** jamest has left #gnuenterprise time to go to bed night all *** reinhard has quit IRC *** dimas has quit IRC *** yure has quit IRC *** kilo_ has quit IRC *** sjc has quit IRC *** jcater has quit IRC *** wendall911 has joined #gnuenterprise *** jamest has joined #gnuenterprise *** SachaS__ has quit IRC *** ramiroluz has joined #gnuenterprise hi all, its my first time on the chanel. Someone can help me? hi, whats up? I need to call a database trigger on Postgres in a form. I didn't found it in the docs. i'm rusty but last I knew we didn't have a sql passthru for that at least one exposed to the trigger namespace let me check ok completely untested/unverified/etc,etc :))) but it looks like a datasource object has a call method def call (self, methodname, parameters): """ Call a function of the backend. It is highly recommended to post this record, it's chain of master records and all of it's details before calling this function, so the backend is up to date when executing the called backend method. @param methodname: Name of the function to call. @param parameters: Dictionary with parametername/value pairs. @return: Return value of the function that was called. so I think you can do in a trigger *** dcmwai has joined #gnuenterprise dtsName.call() but i don't use DB level triggers so I can't be certain if/how this works Ok, thank you. I will try it. Its easier as I was thinking. I hope this work. :)) that makes 2 of us :) good bye. bye if that doesn't work *** ramiroluz has left #gnuenterprise nevermind :) *** wendall911 has quit IRC *** holycow has joined #gnuenterprise *** jcater has joined #gnuenterprise *** holycow has quit IRC *** jamest has quit IRC *** dimas has joined #gnuenterprise *** jcater has quit IRC *** Galleon has joined #gnuenterprise *** Galleon has left #gnuenterprise *** jcater has joined #gnuenterprise