*** holycow has quit IRC *** jcater has quit IRC *** reinhard has joined #gnuenterprise *** johannesV has joined #gnuenterprise *** jcater has joined #gnuenterprise *** siesel has joined #gnuenterprise hey siesel long time no see hi reinhard i had a quite close look at the rcp stuff and i was wondering and what do you think for the dynamic object stuff currently, for every new instance of an object new methods are registered under [].method is that correct? yes why don't we simply pass a kind of "self" parameter to the methods and register them only once? both methods work what was your reason to choose this method? hmmm. I try hard to remember, but ...:) .. I seem to forgot it. Probably there is some info in the TODO document. didn't find something however the registering of new methods for every dynamic object causes some problems for example some (most) rpc libraries don't support unregistering of methods do you have rpc clients outside gnue? btw i changed both py_xmlrpc and pw_xmlrpc to transport all our datatypes transparently which rpc libraries do you mean? No, no clients outside of gnue I will have a look at the rpc librarys now siesel: can you do me a favour please? you have python 2.3, right? reinhard: I've created a new parameter called "objref_passing" to set how obj_ref can be passed yes. (2 times) can you please try this: >>> raise Exception, 'blöd' Traceback (most recent call last): File "", line 1, in ? Exception: blöd ok now this: >>> raise Exception, u'blöd' oops >>> raise Exception, u'blöd' Traceback (most recent call last): File "", line 1, in ? Exception>>> ok so still the same in python 2.3 i think i'll define a gnue.common.i18n.Exception class that does unicode -> local encoding cool :) or maybe we have to override "handle_exception" or how this is called but this must be fixed yes. IMHO this is a bug in python re self parameter everytime you pass a unicode error message this error is raised? i didn't want to make *you* do it i just wanted to ask if you were ok with that change no problem. siesel: everytime a unicode error message is passed, it is simply "swallowed" and very often we have the problem that we do things like I have some time now, and there are some things still missing in RPC raise Exception, _("message %s") % param when param is unicode, the % fails because the _(..) will return an already encoded string now i also see the need for the u_() function --- reinhard: unicode: does it allways happen when a message is raised, or does it just happens when printing the stack trace? just when printing the stack trace i think not sure siesel: i will care for that if you really have some time i think it would be much more important to fix forms under windows (just my 2 cents) currently, we don't use dynamic objects at all in appserver yes, but I haven't setup a full development env under windows yes so this is not a #1 priorit ah ok nevertheless i would think it's important :) :) bbl stop one question :) ok, lr /lr/later/s *** SachaS has joined #gnuenterprise hi everyone hi johannesV hi siesel hi SachaS how are you? have to restart X fine :) siesel I took some time to look at appserver but need reinhard ;) as I come across problems *** dcmwai has quit IRC *** dcmwai_ has joined #gnuenterprise so you have a running appserver now? siesel yes. the sample is working so i thought i start to make my own sample but now i run into issues here and there I will be here for some time, so just ask if you've questions, possibly I can help out ok. hey siesel is there an event u attend somewhen soon? ok. time to restart X *** SachaS has quit IRC probably linuxtag *** btami has joined #gnuenterprise *** SachaS has joined #gnuenterprise hi btami, wb SachaS hi siesel and all hi brami hi SachaS siesel what are you working on? back SachaS: rpc-code ok. reinhard: I've found out, why I used the [SDSSD..SSS].function way to pass the OID siesel: ok, please tell me :) it allows clients to work even when they don't have access to the GRPC file. and the self parameter won't? you think the problem is that the client won't know what object type the dynamic object is of? if an method returns an object, it need both unique id and object type one solution would be passing them both yep or making the "object id" something likey "object type:somevalue" another to read the object type from the grpc file hi reinhard siesel: i like the first one better yes, but object type:somevalue, doesn't have a fixed length siesel: so a function could return different object types, depending on something siesel: the fixed length thing is an ugly hack IMHO we must find something else to indicate an object anyway hi SachaS as ugly as gnue_id ;) no oh gnue_id is a question i have ;) why :) siesel: the probem is what happens when a rpc function returns a string that by chance *has* a length of 40 problem even ok, you mean this part of fixed length. SachaS: shoot :) yes, that's BAAAAD. reinhard: i was wondering if I can setup my sample application without touching the .gsd files by hand. siesel: what does the "allow_none" parameter do? so i add the gnue_id property in the gnue_classes.gfd form SachaS: should work SachaS: be careful to make what about passing a dictionary instead of a string: ( "objref":"sdafsdfasdf", "objtype":"Session.bla") module = gnue but then when I get the .gsd file via the ggcvs I do not get the gnue_id property in my classes. name = id type = id if allow_none is true, None values can be passed via XMLRPC lenght = 0 scale = 0 siesel: why don't we set that to True generally? siesel: i like that idea siesel: but then, we must encode normal dictionaries somehow reinhard. was that for me? module=gnue, name=id, type=id, length=0, scale=0 ? siesel: we need some means of "escaping" or something like that SachaS: yes reinhard: and in my own module? same? yes module=mymodule, name=id, type=id etc? the objectid must always be gnue_id no module=gnue name=id type=id always always module=gnue even within my class? yes is that confusing? :) ok will try. siesel: the problem is that we want to transport types over xmlrpc that are not valid xmlrpc types especially objects and if we use some other structure to transport those objects no matter if we choose dictionaries, tuples or strings we again have the problem that we basically loose the ability to use the structures in a standard way for example we could do dictionaries (which i like most) for objects we would do {type="object" objtype=object_type objid=object_id} then if we want to transport a dictionary, we would have to convert that as The reason behind the objects was to have the ability to transfer objects with gnurpc even if we use xmlrpc {type="dictionary" value=the_real_dictionary} siesel: i understand siesel: and i think that it's ok to do it siesel: just trying to think about a better solution than "if len(result) == 40" siesel: another question siesel: which of the rpc protocols were actually functional *before* my changes? I think we should the the dictionary way and add a "totaly standart conformant" parameter siesel: i would try to fix them just pyro ok is pyro available as deb? yes for woody or only for sid? only sid ok btw. there are problem with appserver and some db drivers: popy and pypgsql doesn't work pypgsql f.e. return string values instead of unicode hmm, got Berkeley DB error again is this a svn bug in 1.0 ? getting DB error too. running svnadmin recover now thx siesel: btw. i'm not sure about one thing in win32 uidriver in meny places i'v changed to textEncode(...) as reinhard did it in wx but not sure about # display unicode chars properly if type(value)==UnicodeType: value=textEncode(value) #.encode('mbcs') in _base.py line 506 the win32 ui now works well with my textencoding=cp1250 can you try your chinese forms? *** reinhard_ has joined #gnuenterprise *** reinhard has quit IRC btami: ok, will do later today siesel: thanks btami: it was siesel who changed those things in wx not me * reinhard does not want to take the praise for things he didn't do ok,sorry :) or s/praise/blame ;-) hmm, designer doesn't fixed yet regarding textEncoding/unicode :( l8r *** btami has quit IRC reinhard: did you see my comments from last night? SachaS: i think yes didn't we already talk about them? siesel: did you already run the database recovery? reinhard: one was that I get an error when I remove a property, using the gnue_classes.gfd form. oh didn't see that SachaS: the nullable button should now work perfectly in gnue_classes.gfd let me try to remove a property reinhard: yes, but it seems to be stopped siesel: what do you mean with "stopped" ? SachaS: i can reproduce the error, which means it will be fixed in 10 min ;-) svnadmin is blocked by some svnserve processes siesel: ah reinhard ;) SachaS: fixed, just waiting for svn to come up again reinhard: i am your current tester :) i will try with the id id stuff. i think it works. SachaS: no joke, this is invaluable help you're doing *** dimas has joined #gnuenterprise reinhard: do you have root access on ash? siesel: no jcater!!!! donut, donut, donut!!! lol * SachaS makes the happy dance - created gnue designer form with appserver as datasource. form is working ! SachaS: cool the id id stuff is good i mean is working, its a bit confusing but working. proabaly you could do that behind the scene later. I have no idea what it is and atm dont want to know. next test: referenced property :) SachaS: yes, it will be done behind the scenes SachaS: for a reference property in a form, you could look at the sample form the country is a reference siesel: FWIW: unicode exceptions are fixed and i've introduced a u_() function will commit asap you mean, when svn is running again :( exactly Recovery completed. The latest repos revision is 5435. siesel: thanks *** sjc has joined #gnuenterprise reinhard: what is the scale property of a type? integer oh you mean the meaning? length of a number is the total number of digits scale is the number of digits after the decimal point for example 1234.567 has a length of 7 and a scale of 3 now this commit takes long... oh i see. thanks. so length includes the digits after the point? yeah :) yes siesel: Transmitting file data ..Read from remote host svn.gnuenterprise.org: Connection timed out did you kill the svnserve process? hehe when svn is down, the developers have time to "communicate" on email ;) yeah :) bbl tonight (probably) *** reinhard has quit IRC what? reinhard is gone? dah. *** sjc has quit IRC see yas *** SachaS has quit IRC *** jbailey has joined #gnuenterprise *** gsoti_away has joined #gnuenterprise *** thierry__ has joined #gnuenterprise *** thierry_ has quit IRC *** johannesV has quit IRC *** siesel has quit IRC *** jbailey has left #gnuenterprise *** reinhard has joined #gnuenterprise *** bigbrother has joined #gnuenterprise *** bigbrother has joined #gnuenterprise *** jcater has quit IRC *** jcater_ has joined #gnuenterprise *** wendall911 has quit IRC *** btami has joined #gnuenterprise reinhard: i'v tested gnue on XP again, and find 2 bugs you use strptime() from mx.DateTime in forms GFDisplayHandler.py and in pw_xmlrpc 's typeconv.py ,but there is no strptime() in mx.DateTime on win32 :( hmmm, who is DavidPesta, sounds like a hungarian name... *** SachaS has joined #gnuenterprise hi everyone hi reinhard hi SachaS hi btami *** jcater_ has quit IRC *** jcater__ has joined #gnuenterprise svn down again? I got a connection refused try again I forgot that I killed the anonymous checkout trying to figure out an earlier problem ok yep working again *** dneighbo_ has joined #gnuenterprise *** reinhard has quit IRC *** reinhard has joined #gnuenterprise wb reinhard * ajmitch mutters hi ajmitch ajmitch is it difficult to make a .deb of PySablot for gnue_designer? *** dneighbo has quit IRC SachaS: what do you want to do with pysablot/designer? btami: dont know :) installing it, maybe try reports later pysablot was used as a general (xslt) report filter, but there is another: libxslt it has .deb ok. so instead of pysablot, libxslt works as well? yes and it has a deb. then I will take libxslt thanks btami. np *** ogger has joined #gnuenterprise *** ogger has quit IRC *** ogger has joined #gnuenterprise * SachaS makes happy dance. referenced property is working *** btami has quit IRC *** ogger has quit IRC *** wendall911 has joined #gnuenterprise *** ogger has joined #gnuenterprise anyone still here? sorta hi reinhard did you get my email? *** ogger has quit IRC no don't think so no? its a document I wrote. no, didn't get it you tried reinhard@gnue.org? yeah I think yep reinhard@gnue.org please try reinhard.mueller@bytewise.at its a 450K document not sure if @gnue.org works at the moment ok. no problem ok. ok. sent what are you doing reinhard? gnue or just logged on? actually not very much watched tv ok did you get my email? not yet what? but it can take a minute or two i think seems it does not get through i am using someone elses mail server ... my emails might get recjected. oh otherwise i can send it here you could use email.aon.at as smtp server to send a mail to me ;) ok, that works, too :) i put up a wireless ap at my neighbours place and a wireless ap at my place ;) saves me lots :) ok. i like the screenshots ;) its realy a quick and dirty documetn may i ask what license it is under? or more specific may we put it on our website and would you provide the "source code"? of course :) i think this is what at least some of the people on the list are looking for gpl and the gpl docu licence? yeah i think so too, with some screenshots etc. i will read through it tomorrow just to make sure that we don't publish some bad misundertsandings *** ogger has joined #gnuenterprise and will put it on website afterwards thanks a lot! ok. better read through. its really a start or even a draft that's ok it's much better than everything we have now taken together haha what did you use to write it? forgive me: open office ;) no problem quick and dirty that's free software and those lines ... i cant figure out how to remove them ;) well. referenced properties work SachaS: you might have to forgive me if i give it a shorter title ;-) that was the main thing for me for tonight oh isnt that what that verbatim / non-verbatim part is of the gnu docu licence? haha but yeah :) no such restrictions on this document well of course not the title, but the filename := :) true ;) so ... next thing is to look at procedures a little bit more if look at the last screenshot where i can restock / add items to the inventory. i have two classes inventory and inventory_transaction so once the user entered the transaction data ... a procedure has to take the values of the transaction and update the "quantity" property of a inventory busienss object. thats what I have to check next. :) yes there would be two ways of doing it so I have to figure out what I can access within a procedure. please go ahead. one way would be to not have a quantity property at all but to have a procedure "getQuantity" that sums up all transactions and gives the result ok. (which can take quite long if you work for some time ) the other way would be a procedure for the transaction class "book" (or how that is called in English) that adds/subtracts the quantity from the item * SachaS also realised he does not speak inventory language. ok. as a matter of defensive programming i would also add a boolean property "booked" that makes sure that you don't book a transaction twice that might be good yes. also what i was thinking is the place of the "book" procedure actually the procedure could be in the "inventory" class it belongs into the transaction class and the "inventory_transaction" class has a bound procedure logically hmmm well yes so each time, the commit of the transaction is called, the bound procedure is called and calls the "book" procedure of the inventory business object. yep that's what i was going to add with appserver 0.1.0 ok :) you would do the first approach as a calculated field and the second approach with a bound procedure inventory.onSave or something like that yep. but as we are at 0.0.6 you have to do both approaches by hand :) arent bound procedures in 0.0.7 ? probably not they will be in 0.1.0 oh ok calculated fields in 0.1.0 in any case oh ok. *** _florin_ has joined #gnuenterprise both will be in 0.1.0 thats cool then not sure what we will have in 0.0.7, 0.0.8 <_florin_> hello everbody hi _florin_ hi _florin_ <_florin_> i see there was a lot going on on the website and mailing lists lately... apparently you start to fix date/rpc and pull down ;) dropdown still not fixed <_florin_> :-) SachaS: did you have any issues with dropdown? reinhard, whats next on your (must be immense) todo list? or did it work for you? SachaS: 1. Fix gnue_length = None and gnue_scale = None issues drop down? just that when I select one (eg the module in gnue_classes) it does not switch to the "childern" of the selected module. s/"children"/classes 2. maybe try to fix some windows problems i introduced 3. Clean up code, do some testing 4. release i found another bug, but that one is for siesel;) its a navigator thing. 5. add bound procedures and calculated fields when switching to another form 6. release i like 5. <_florin_> what is the navigator good for? yeah <_florin_> (askin stuid questions? me?? :) _florin_ just like an entry point to access different forms, reports. SachaS: it's correct that dropdowns don't select records you would go to query mode if you wanted to select the classes of a module for me, dropdown's don't work with the mouse i can only use the keyboard reinhard: does drop down work correclty (select records) when using with keyboard? drop down *should* not select records drop down should change the value of a field sometimes it should, shouldn't it? like if your current record is class x using the "module" dropdown should change the module field of that class it's not a master-detail thing eg when I select a module in the gnue_classes module dropdown, it should select all classes of the newly selected module ... no it should change the module of the current class oh i thought it could be used for a master-detail thing *** ogger has quit IRC <_florin_> dropdown: like 'you pick "hello" i save "1", you pick "bye" i save "2"'? otherwise you could never add a new class and specify a module for it i think it worked for me with the mouse if you keep the button clicked you can move up and down ... my problem is it doesn't keep what i selected as soon as i leave the field oh that works for me.... at least the text in the dropdown ... ok must be something with the wx version not sure what the value is behind the scene but the name stays ok. ok i see bound procedures. you maybe can select from a list of "events" yep <_florin_> perhaps you could help me understand the navigator a little bit... i tried to implement a tree-view item in gnue-forms (wxGtk) and i have the feeling i'm re-inventing the navigator. <_florin_> i'd basically like to do the following: keep a list of ... let _florin_ do you have a sample for the navigator? <_florin_> nope. <_florin_> i ditn ok. i send you one, I just made today. <_florin_> i didn't do anything in navigator yet. <_florin_> but here's what i have in mind: <_florin_> boariu at gmx dot net :-) <_florin_> let's assume i work with a lot of 'goods' (or call them 'products' if you want to) can you get files thorugh irc? <_florin_> nope. i'm in an internet cafe... :-( *** ogger has joined #gnuenterprise oh ok. my email doesnt work atm <_florin_> hm... bad timing. i think i'll ask you again in a week then... by then i'll be back home :-) *** ogger has quit IRC <_florin_> if i do implement a tree view, what would be the best data-access method? DataSources or GFBlocks? *** ogger has joined #gnuenterprise <_florin_> i have some working code based on GFBlocks, but i'm starting to believe that i'm misusing all this GFBlock/GFField classes... actually I have no idea about GFBlocks/GFField. but i think i start to understand what you want <_florin_> i want to represent a table like: 'id' 'parent_id' 'description' in a tree. <_florin_> that basically is it. and that you want to put into a form, just like you can put a label, or button, or pulldown onto a form ??? <_florin_> yep. ok i see <_florin_> (bad idea?) good idea ;) <_florin_> the problem i have now is: what do i do with big amounts of data? but i am the wrong for you :) <_florin_> :-) ok do you have to put it into a scrollable thing? and only present what is "viewable"? *** ogger has quit IRC <_florin_> i don't understand what you mean... big amounts of data? a big tree? <_florin_> yes and no. starting from 'root', there are only few entries. but there might be some tree entries <_florin_> which end up in big amounts of data. <_florin_> i want to represent everyting a company is spending money on in trees. what are the tree entries? text? <_florin_> for now, yes. a description (see above). but the table entry they come from might have <_florin_> links to other tables (i'm not quite sure how to do that yet... but i'll figure out sth) <_florin_> so my tree-table might have fields like: <_florin_> id parent_id description other_table_name <_florin_> the entries in other_table_name do not necessarily need to be represented in the tree... <_florin_> (but it would be nice if they did :-) so you might keep the link to the other table and display only a "+" and when the user opens that "+" you then go to the table and read the data and present them. is that possible? <_florin_> yes, i thought of that. but if the next '+' happens to open like... say 10.000 entries, the user would <_florin_> have to wait several seconds until the sub-tree is built. <_florin_> that's what i'd like to avoid... ok i understand maybe a staged opening like if the user can only see 10 lines only open say 20 lines so when the user scrolls down you open up the next 20 lines <_florin_> something similary would be neat... <_florin_> do any classes in that direction already exist? ohh i have no idea. i just opened the designer tool to see if a tree viewer exists but ... no. the navigator has a tree viewer... but i think thats simply a wxTreeViewer or whatever that is <_florin_> jcater said it would be difficult to implement lists/trees in other forms-clients (think of html...) i mean i am sure there is a treeviewer in wx <_florin_> mine is the same <_florin_> yes, i used the same wxTreeCtrl the navigator uses. <_florin_> i only used a GFBlock to do all the DB stuff for me... ah ok *** ogger has joined #gnuenterprise and how far did you get? <_florin_> i already have a tree that is build from a table like described above. looks neat :-) <_florin_> still needs some triggers to do something useful with it... nice in a gnue form? <_florin_> yep nice. well i am not a core developper so i cant tell at all did you show jcater? <_florin_> no. i did it this week, haven't had any internet access yet. i am sure if it is good enough it could get incorporated somehow <_florin_> i'll do some cleanup work and send the relevant files to someone who knows as soon as i get home... yeah i think that is a good idea best ask here again <_florin_> sure i will -- more that you would like ;-) well i am off to bed ;) <_florin_> gnight then :-) good night *** SachaS has left #gnuenterprise *** jbailey has joined #gnuenterprise jbailey: hi reinhard: hi jbailey: i hear that ajmitch needs your help for uploading the new debs? reinhard: Probably. reinhard: I think he mentioned having some. Hmm. I should dig that out of the logs. i think it was about him not having permissions to upload himself yet or something like that reinhard: Yeah, he hasn't finished becoming a developer yet. *** ogger has quit IRC *** ogger has joined #gnuenterprise *** gsoti_away has left #gnuenterprise psu: for the logs sake... belated congrats on the FA Cup Performance and Entry into the semi's we had an English coach out this last week to do some trainging sessions w/ our team he is a Millwall fan so we had lots to talk about * derek is slowly becoming a sunderland fan, but ahve a hard time getting the games as they are not in premier league :( end note for psu :) derek: Wow. An American getting into football? oh i love football like adore it like stay up until 4am in the morning to watch world cup games on the other side of planet :) spent 36 hours in last 2 weekends trying to obtain national coaching license * derek will know in 4 to 6 weeks, but i think i passed :) * derek is suprised , i thought hockey was canada's national sport? No, lacrosse. hockey isn't bloody enough. Canadians have a bloodthirstiness that we inherited from the French. *** ogger has quit IRC derek: I assume you're talking about Soccer derek: not American Football *** ogger has joined #gnuenterprise wendall911: Yeah. At work we call it "Footboll" to differentiate it from "US Football" heh US Football is lame wendall911: yes soccer derek: :) US Football kicks soccers ass chillywilly: lol chillywilly: only on TV afternoon and evreywhere else everywhere hi ajmitch bah... night all *** reinhard has quit IRC <_florin_> good night all! *** _florin_ has left #gnuenterprise *** wendall911 has quit IRC *** jamest has joined #gnuenterprise *** DavidPesta has left #gnuenterprise *** jamest has quit IRC *** jcater has quit IRC *** kingpin2k has joined #gnuenterprise *** jcater has joined #gnuenterprise *** kingpin2k has quit IRC *** jamest has joined #gnuenterprise *** holycow has joined #gnuenterprise *** kingpin2k has joined #gnuenterprise *** jbailey has left #gnuenterprise *** jamest has quit IRC anybody using firebird? i do *** kingpin2k has quit IRC *** jamest has joined #gnuenterprise