*** TSCHAK2 has quit IRC *** TSCHAK3 has joined #gnuenterprise *** TSCHAK2 has quit IRC *** TSCHAK3 has joined #gnuenterprise *** Morphous has joined #gnuenterprise hello *** Amorphous has quit IRC good morning hi *** btami has joined #gnuenterprise hi soda, btami hi all *** kilo has joined #gnuenterprise good morning *** sjc has joined #gnuenterprise hi kilo hi dimas *** sjc has quit IRC *** TSCHAK3 has quit IRC *** TSCHAK2 has joined #gnuenterprise may i ask some questions ? sure im trying to make to form ( f1 and f2), i have datasource in f1, i make a button to open the f2 form im trying to send to form2 some variable from f1 even if no one at the home right now, many will read from backlog later but how to use this variable in f2 and use it in sql statment let me look first you have something like runForm("phone.gfd", param) jest i have sth like this in that form you define parameters = {'order_no': blkX_view_order.fldOrder_not.get() }
form.runForm(f2.gfd,parameters) and this should send the order_no to f2 form you should get parameter #form.setFeature('GUI:MENUBAR:SUPPRESS',1) #form.setFeature('GUI:TOOLBAR:SUPPRESS',1) #form.setFeature('GUI:STATUSBAR:SUPPRESS',1) print "GnueId=", getParameter("Foo") print "OrgGnueId=", getParameter("orggnueid") ]]> soda: check hotline or gnue-invoice in gnue-contrib, there are many many examples for that nice, i will try, thanks like match = getParameter('id') if match: dts.simpleQuery({'gnue_id': match}) *** dcmwai has quit IRC *** johannesV has joined #gnuenterprise its working :) thank You *** johannesV has quit IRC soda: great. are you suppose to use appserver or 2-tier mode? soda: great just 2-tier if its multiform or something ? :) ok we have a GREAT appserver... im going to smoke i will be in a minute anybody have experience getting McMillan Installer 6a2 working with wx? nickr: we used it before to produce win32 packages, but it's not available anymore i'm suggesting py2exe instead http://starship.python.net/crew/theller/py2exe/ http://starship.python.net/crew/theller/moin.cgi/Py2Exe you can find gnue win32 installer files in gnue-common/packaging/win32 @seen SachaS kilo: SachaS was last seen here 20 hours, 4 minutes, and 46 seconds ago saying: thats great to see *** reinhard has joined #gnuenterprise hi reinhard hi dimas hi reinhard reinhard: xmlrpclib is guilty dimas: really? let me show we have a GREAT appserver... I *saw* that! ;-) hi kilo i really think so kilo: j/k dimas: sorry, about to go for lunch but will be back later and will read the log * kilo thinking what he wanted to tell to reinhard earlier... *** ra3vat has joined #gnuenterprise reinhard, class Unmarshaller in xmlrpclib.py has a code def end_string(self, data): if self._encoding: data = _decode(data, self._encoding) self.append(_stringify(data)) where def _decode(data, encoding, is8bit=re.compile("[\x80-\xff]").search): # decode non-ascii string (if possible) if unicode and encoding and is8bit(data): data = unicode(data, encoding) return data and if unicode: def _stringify(string): # convert to 7-bit ascii if possible try: return str(string) except UnicodeError: return string reinhard, that _stringify does converting to plain string py_xmlrpc returns utf-8 will look after lunch i don't understand why it does return utf-8 for me even though i don't have utf-8 as my locale setting either bbl johannesV: if you read the logs: your hack yesterday has also helped in that properties set in a class' OnInit to display on the form. they did not earlier. * kilo slaps his forehead: ah, i remember now reinhard, some differencies between wx and gtk2? reinhard: hotline, clean new install. stammdaten.gfd gives error when switching between tabs back ra3vat: I do not understand how _stringify can convert an 8-bit string to plain string if the string contains any non-ascii character, the UnicodeError should occur example: >>> x = u'Müller' >>> str (x) Traceback (most recent call last): File "", line 1, in ? UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 1: ordinal not in range(128) can you test something like that for me? maybe str() behaves different for you? it is if your default encoding is ascii if it is 8-bit encoding - there is no unicode error is this set by sys.setdefaultencoding? I read that this is some very low level function not intended to be used by applications so you have a distro that sets it to koi8-r? i have ok and in debian there is /etc/python2.3/site.py where it could be set you would agree that xmlrpc always returns either unicode string or 8-bit string in default encoding? encoding='ascii' defines default encoding that is used to initialize unicode support wow I didn't know that we did not use setdefaultencoding in gnue code but tried to accomplish the same - initialize unicode support with needed 8-bit encoding from memory reinhard, agree ok so I think we should alwas be able to unicode() a 8-bit-string returned from xmlrpclib with default encoding no matter what the default encoding is set to at least it works for me now :) wow, that site.py even has support for setting the default encoding depending on the locale i wonder why that isn't the default acutally doh and you could define your own sitecustomize module so it actually gets down to what you said before here i have this site.py in /usr/lib/python2.3/site.py remove the 'utf-8' from unicode statement let me test *sigh* ra3vat: you were completely right from the very start sorry I did not believe you your change fixes it perfectly but at least now I *understand* why it does :) it's ok, just glad i could use it now on sarge :) kilo: reinhard: hotline, clean new install. stammdaten.gfd gives error when switching between tabs kilo: can you give me an error message? it works for me started form, did nothing on Mitarbeiter page, then tried to click on Grund, and gt the following Traceback (most recent call last): File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/forms/uidrivers/gtk2/widgets/form/wrappers.py", line 216, in notebookTabHandler self.uiform._eventHandler (action) File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/common/events/EventController.py", line 111, in dispatchEvent handler(event) File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/forms/GFInstance.py", line 692, in gotoPage _form = event._form) File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/common/events/EventController.py", line 111, in dispatchEvent handler(event) File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/forms/uidrivers/_base/UIdriver.py", line 352, in switchFocus self.dispatchEvent ('beginEDITMODE', object, _form = object._form) File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/common/events/EventController.py", line 111, in dispatchEvent handler(event) File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/forms/GFInstance.py", line 516, in __beforeEvent event._form._currentEntry.subEventHandler.dispatchEvent (event) File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/common/events/EventController.py", line 111, in dispatchEvent handler(event) File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/forms/GFDisplayHandler.py", line 126, in beginEdit self.editing = self.field.isEditable(event._form.getCurrentMode()) File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/forms/GFForm.py", line 320, in getCurrentMode elif self._currentBlock.isEmpty(): File "/home/gabor/SVN/gnue/.cvsdevelbase/gnue/forms/GFObjects/GFBlock.py", line 341, in isEmpty return self._resultSet.current.isEmpty() AttributeError: 'NoneType' object has no attribute 'isEmpty' oh sorry i *can* reproduce tried wrong form... lol *** lekma has joined #gnuenterprise hi all rotfl hi lekma hi lekma hi lekma hi lekma reinhard: what is the status of gl.gcd in luca? are you using it somewhere? i am wondering if we should now continue to svn up every day, or wait up until the appserver is bit stable again (your mail scared us, reinhard :) ) if i were you, i would use the released version for some time reinhard: now a could test pw_xmlrpc on python2.2 again gl.gcd is in the middle of development, not used anywhere and far from usable lekma: we released appserver yesterday, which is stable and you should update now next we implement find() of uncommitted instances, and this is something that will require *good* and *broad* testing before it should be used in production environments and it could well be that svn might be non functional at some points we will most probably do prereleases á la 0.3.90, 0.3.91 etc that should be fairly stable but you should consider them beta even more beta than gnue generally is ;-) but that's how software development is: every step forward in function starts with a step back in stability kilo: hotline should be fixed now reinhard: ok reinhard: thx, and also thx for updating english forms too *** jamest has joined #gnuenterprise hmm could it be that the new web pages don't contain the roadmap any more? dunno looks like it's missing no more roadmap, just chaos^Wbazar on the future jamest: not that I couldn't live with a simple TODO file I've never understood the reasoning behind creating empty HTML pages from our empty ROADMAP.in files ;-) *g* reinhard: pw_xmlrpc works with python2.2 too, could you revert r6858 commit? dimas: really? ah sh*t ok I'll revert it :) with last fixes it does :) thanks for testing it was just the exception in ClientAdapter.py, wasn't it? *** sjc has joined #gnuenterprise yes reinhard: thanks you for fixing.. back and forth :) hej im makin little steps, its marvelous *** jamest has left #gnuenterprise * dimas agreed *** btami has quit IRC but i have little problem, gnue-designer is killin very offen i do not know why ? designer hasn't gotten that TLC it would need lately Segmentation fault i know now :) soda: maybe you use wxwindows 2.5? can't gnue-designer be execed inside python's debugger? reinhard: is wx2.5.x bad? AFAIK designer needs wxpython 2.4 and doesn't work with 2.5 oh 2.5 did some incompatible changes that broke designer 2.4 all AFAIK not using designer at all... your 'know' is enough to me reinhard is right right now im using vi :) soda: that's what I use, too:)) designer splash should include 'press Ctrl+S every 5 secs, brotha!' auto-save every 5-secs would be a good feature ;) hmmm... didn't we unify the command line options of our tools? gnue-schema still uses --connection where others use --database reinhard: which one is more logical for you? I don't care too much we had the discussion at some point and IIRC we agreed on one of them *** jamest has joined #gnuenterprise hmmm or was it the different short options for --username? and I'm mixing things up? *** TSCHAK2 has quit IRC *** TSCHAK2 has joined #gnuenterprise reinhard: does designer support gtk2 instead of wx as gui? no :( *** kilo has quit IRC *** jcater has joined #gnuenterprise *** holycow has joined #gnuenterprise hmmm oki my little aplication seems to work fine soda: congrats! danke, you want some screenshoot ? may I ask what you use? which db, which ui, python version, os distribution appserver or non-appserver of course wait a sec postgresql 7.4.6-5 python 2.3.4-5 libwxgtk2.4 2.4.2.6 debian 3.1 @ 2.6.8-9-amd64-k8 soda: thanks non-appserver no problem :) and the screenshots? :) http://www.paw.pl/~sodium/gnue.jpg viola very nice did you hand-craft the form in xml, or use designer? very cool at the biggining i tried to use designer, but i was getting seg fault and finished it in vi i had written same erm/crm for my firm and i will try to rewrite it in gnue thats a pitty that it is designed for textile/dyehouse stuff and nobody will use it :( it is a very f....n strange topic to write application had anyone changed GConnection lately? oks , im going home, i`ll be back :) soda: cool screenshot jamest: don't remember off hand reinhard: what is trunk/base? how to get it? that's gnue-luca ......../base *** titopbs has joined #gnuenterprise I wonder if the commit mails could be set up to show the name of the repository reinhard: I'll look in a sec *** holycow has quit IRC ok *** johannesV has joined #gnuenterprise *** kilo has joined #gnuenterprise reinhard, are you here atm ? *** holycow has joined #gnuenterprise *** SachaS has joined #gnuenterprise soda: very good looking form, congrats! *** johannesV_ has joined #gnuenterprise *** johannesV has quit IRC johannesV_: here ah someone asked me today if i can install a 'new suse' onto his notebook ... of course i said "no, i can't" hehe I would have bet on that :) but i could do it with a debian instead ... my question is now: what would you prefer: sarge or ubuntu ? for a desktop user with no special needs probably ubuntu well, at least i need open office or something like that ... (preferably in german) yeah, ubuntu contains all that you just have to manually apt-get a few packages hm, ok can i do this with the discs you gave me ? or shall i dl some new ones ? myspell-de-at openoffice.org-l10n-de openoffice.org-help-de mozilla-firefox-locale-de are the packages you manually have to install for german support the disks are ok great I would go with warty (which is what is on the disks) what about the size of download using ubuntu. how many MB's will i dl till i'm done not much well, might be that they had some security updates IIRC also on X so if you want you can come and install here that's ok, but the main part is on the discs yes you can always cancel when you see the MB count for apt-get :) maybe i'll come and do so -- depends a bit on the timeline :) as he's from frankfurt and will leave on monday actually, if you don't use security updates and you don'T need german openoffice/firefox, you could go without network connection at all all of gnome, english openoffice, english firefox is all on CD well, in this case i can do it from here (since i have about 800 mb for free this month) like I said anyway, i'll look for an upgrade to 2gb tomorrow I don't know hom much the security updates are as i've created an account on toggolino.de for lucas last week, and that flash-stuff consumes a lot of data ... :) hehe gack reinhard: I just accidentally committed some gnue-common stuff I'd done a few months ago I think it's only comment-related stuff ok but can you svn update and make sure I didn't break anything *** jamest has left #gnuenterprise i think i'll have a look at the commit mail first :) but to answer your earlier question yes, we can add a subject prefix to the commit messages :) *** jamest has joined #gnuenterprise jcater: looks like you added a decimal module *** jamest has quit IRC *** jamest has joined #gnuenterprise *** wendall911 has joined #gnuenterprise reinhard: yes, the new things were valid *** jamest has joined #gnuenterprise stuff that I needed to commit it's the GTrigger, __init__.py and related stuff that I was worried about GTrigger just adds an optional parameter to a constructor function *** jamest has quit IRC *** jamest has joined #gnuenterprise __init__ adds the decimal module and sets Decimal in the namespace and also adds a gStartupStatus to builtins so I think it should do no harm *** havoc has quit IRC *** havoc has joined #gnuenterprise hmm do we still support python2.1 ? if so, I need to comment out that import in the __init__.py we claim to sup dudes? *** jamest has quit IRC *** jamest has joined #gnuenterprise off for today *** reinhard has left #gnuenterprise http://www.samsungcontact.com/en/ <-- check it out, another calendaring/email solution on linux *** btami has joined #gnuenterprise anyone uses things? that produce additional fields at login prompt should i first load some data to have gnue_company available to choose? *** SachaS has quit IRC *** SachaS has joined #gnuenterprise * dimas is reading old backlogs dimas: i've tried but gave up due to some errors. but it was at least 2 months ago... * kilo wondering what toggolino is, but i get Browser: Problem, Betriebssystem: Problem... kilo: thanks, removed for now, have another things to fight with :) kilo: question about invoice module why seller has no references to ORG_Org? seller as INV_Company defined separately from base module independently *** gui_ has joined #gnuenterprise *** gui_ has quit IRC kilo: why there is no .gld defined for invoice and other base stuff? is it helpful to add some? *** ra3vat has quit IRC *** johannesV_ has quit IRC *** lekma has quit IRC *** TSCHAK2 has quit IRC dimas: you here? *** jcater has quit IRC dimas: INV_Company contains a lot of specialized fields, or better, parameters for the company that produces the invoice. it could have been done via ORG_Org and customizating it in another module, but imho it is not worth it dimas: although sometimes I use gld files, it is not very often - or better, it is very rare. that is why i did not include them, but if you like them, go ahead and create some, it is most welcome! org.ORG_Org:org nickr: semantic error... *** btami has quit IRC *** jamest has left #gnuenterprise *** kilo has quit IRC *** havoc_ has joined #gnuenterprise *** jcater has joined #gnuenterprise *** jcater has quit IRC *** wendall911 has quit IRC *** titopbs has quit IRC *** sjc has quit IRC *** titopbs has joined #gnuenterprise *** mnemoc has joined #gnuenterprise *** mnemoc_ has quit IRC *** jamest has joined #gnuenterprise *** cilkay has joined #gnuenterprise *** dcmwai has joined #gnuenterprise *** titopbs has quit IRC *** Morphous has quit IRC *** jamest has left #gnuenterprise *** jamest has joined #gnuenterprise *** jamest has quit IRC *** holy_cow has joined #gnuenterprise