*** weex has quit IRC *** reinhard has joined #gnuenterprise *** johannesV has joined #gnuenterprise good morning good morning all *** kilo has joined #gnuenterprise *** yure has joined #gnuenterprise *** btami has joined #gnuenterprise good morning good morning morning :) *** docelic has joined #gnuenterprise *** dimas__ has joined #gnuenterprise *** dino4k has joined #gnuenterprise *** yure has quit IRC *** dino4k has quit IRC python 2.5 approaching, alpha 1 is out *** btami has quit IRC *wow* python 2.5 will natively include sqlite3 *** sacha has quit IRC *** yure has joined #gnuenterprise *** jamest has joined #gnuenterprise wow, python 2.5 includes sqlite?!? well to be precise the sqlite3 bindings for python not the c library itself (but it will most probably depend on it in that case) odd why include the binding at all unless as a way to point people to a simple sql based backend well I think for the same reason as they included TK bindings to have something working out of the box without external dependencies i guess that would make some sense on input masks the code in there was blocking the mixing of types in some cases I saw you joined the commit party :) i'm trying to regrok the input mask system i put in lots of comments on my last attempt and while they help they aren't quite enough :) if A = alphanum and # = numeric and D = date the system was ok with a mask like AAAAA AAA ### DDDDDDD but not things like #### DDDDDDD i removed that block as I thought it somewhat arbitrary as the biggest danger I could see is when we tell it to go right to left (as in numeric input) dealing with dates could be odd, but no worse than a A # D combo combining something else with dates sounds odd to me i'd agree with that the only thing I could think of where I'd posibly use that is a made up code like for an rma YY-MMDD###### or some such thing hmmmm agree i'm hoping jcater will recall more about the blocks in place but that would then have to be 06-040600017 not 06-0406 17 while for only ##### you would want 17 instead of 00017 but in building a mask you had to pass in the mask and two booleans (date=t/f numeric=t/f) which it would then build the mask, and compare to results to the booleans so if numberic was T and there were date tokens in the mask it'd abort however the mask "type" was set based upon the contents of the mask and not the booleans so the booleans only provided verification and seemed to hard code specific type info into the mask creation i think the mask should set the type and all verification should be internal to the tokenizer I think I agree well hmmm yes and no the question is what kind of value you want to get from the mask, actually I think if you have a numeric mask, you want to get a number for a date mask, you want to get a datetime object right now it's always a string but we might also define that it's up to the caller to convert and I see that as ok as we're linking to a text field as with the mask mm/dd/yy but it adds a lot of overhead like we get datetime from the database, and we need to push datetime into the database and somebody needs to do the conversion as I type 99 the mask is formatting that so how can I return a valid datetime for that? even though I'm expecting a date as the final result and we might have 3 different masks for a field (and the 3rd one pops right out of my head) but the 1st two are "as displayed when not editing" and "while editing" and if the input mask system returned a datetime object for input you'd have to then somehow map that datetime object back to the displayed value in the widget on the screen I'd think the mask object would be able to return a string to display on screen and a final value to store in the database they must be different as I might want to see 04/06/06 on screen, but the DB wouldn't understand that anyway *** derek has quit IRC so forms would be adjusted to store two values per field then? IIRC it already does the displayhelpers have a "value" and a "work" variable yes but the gffield didn't know about that I didn't think it passed it's value into the displayhelper which produced the appropriate output though my memory is probably too outdated that's correct but IMHO the GFField should also be allowed to pass a datetime object and shouldn't have to bother with string representation i can see value in that and during the intermediate step say the partial entry of 2006-03-06 the GFField is only updated when you tab away from the field anyway the display helper/input mask system would keep the va so no need to convert during intermediate step yeah, that was what I was going to ask :) as a nice side effect the mask system would throw an exception if the conversion can't be done which would make it impossible to tab away from a wrong date so in the case of numbers we'd always return a Decimal instance or a Decimal and/or int for ints I think an int I have no idea where we stand with regards to decimals I don't know if all backends support Decimal i try to never use them in house (though I highly doubt it) why not provide an adaptor for db modules that require it as in my triggers in forms I convert all fields to Decimal when doing math as python's built in decimal will burn you but in any case I have to get them working prior to worrying about that :) *** btami has joined #gnuenterprise i figured input masks would be as good a component as any to make my 1st GAP test component from *** kilo has left #gnuenterprise man there were a lot of commits yday weren't there yes btw I really wonder how comes I get moderator messages from commit-gnue that's the gnu.org list isn't it? yes you'd have to be listed as a list administrator i imagine when you were made a moderator of the announce list one of us just slapped your name on all of them :) sigh, my gnu.org email address is a spam pit it's the only place I still really get spam from I am a moderator of the announce list? reinhard: i thought we did that so you could release your own annoucements ah no I am just set to "may post on this list" *** dimas__ has quit IRC anyway it would make more sense to discard any non-@gnuenterprise.org mails on commit-gnue than to moderate it *** docelic has quit IRC *** jcater has joined #gnuenterprise I missed the party input masks were supposed to return the appropriate data type it does separate out 3 types of masks numeric, date/times, and general strings each set having its own set of mask elements so MMDD isn't gonna work in numeric *** johannesV has quit IRC (this was the plans... don't want ot sound like a dictator :) (this is where I was taking them) jamest: I was putting all of my effort into only one of the 3 I forget which one but I wanted to get the core code down before writing the other two which may be why it just returns a string now I think it was numericd numeric that I was working on as it in my mind is by far the hardest to get right numeric is the one that is broken atm text and date work fine with comma-addition, fixed or floating decimal support, and support for optional characters (# iirc) yes cool iirc it's the decimal or comma tokens that puke jcater: is something missing in designer svn head? DB000: File "/adat/svn/gnue/.cvsdevelbase/gnue/designer/forms/PagePainter/skins/common.py", line 27, in ? DB000: from gnue.designer.ui.wx.uihelpers.doccanvas.colors import color_map DB000: ImportError: cannot import name color_map t hmm what svn version are you on? 8383 sigh that explains why my changes aren't showing up I renamed colors.py to settings.py as I added font info but that file is seeing my colors.pyc ah let me commit a fix you should know though, I'm actively working on designer it should run, but isn't fully functional yet yes, i know plus, I'm developing it at work on a Mac, then svn committing and editing at night on Ubuntu, so hopefully I don't have any platform-specific wx-oddities * jcater needs to set his windows laptop up to run it too, so I can test it there it's ok now, thx are you testing it out on windows, by chance? if so, could you do me a huge favor and open a form, view the page layout painter, and take a screenshot ... I have been having some issues with wx's mapping of system colors and fonts *** johannesV has joined #gnuenterprise jcater: downloading wxpython 2.6.3.2 for windows... ... if you have time DB000: File "c:\python24\Lib\site-packages\gnue\designer\forms\PagePainter\PagePainter.py", line 64, in init DB000: dc = wx.PaintDC(self) DB000: File "C:\Python24\Lib\site-packages\wx-2.6-msw-unicode\wx\_gdi.py", line 4540, in __init__ DB000: newobj = _gdi_.new_PaintDC(*args, **kwargs) DB000: PyAssertionError: C++ assertion "wxAssertFailure" failed in ..\..\src\msw\dcclient.cpp(221): wxPaintDC may ted only in EVT_PAINT handler! *** derek has joined #gnuenterprise well, fsck me thanks, btami guess I better set up a windows test machine :) :) roflmao googlign for that error returns an irc log from 2003 as the 2nd hit: DB000: File "c:\python23\Lib\site-packages\gnue\designer\base\startup\Startup.py", line 49, in startupStatus DB000: self.drawText(wxWHITE) DB000: File "c:\python23\Lib\site-packages\gnue\designer\base\startup\Startup.py", line 54, in drawText DB000: dc = wxPaintDC(self.GetSplashWindow()) DB000: File "C:\Python23\Lib\site-packages\wxPython\gdi.py", line 1077, in __init__ DB000: self.this = gdic.new_wxPaintDC(*_args,**_kwargs) unless it's an easy fix, then i might be able to right now DB000: wxPython.wxc.wxPyAssertionError: C++ assertion "wxAssertFailure" failed in c:\PROJECTS\wx\src\msw\dcclient.cpp(216): wxPaintDC may be create wha? I guess I never learn, eh? sure you have back then wha? now jcater: so you know the answer 3 yrs from now when you do this again, you were supposed to use wxClientDC outside of OnPaint, wxPaintDC inside of it well, fsck me you've learned that you're in for some rough wx loving rofl goat luvin or something :) *** derek has quit IRC *** derek has joined #gnuenterprise jcater: http://www.gnuenterprise.org/~btami/gnue-designer.png thanks btami: is that emulated winxp? yes what are you using? *** sacha has joined #gnuenterprise VMware Player notice that toolbar icons look same (wrong) on native XP, contrary to gnue-forms with wx26 johannesV knows something about wx toolbar icons on win32... hmm, and the toolbar for layout editor ismissing maybe it's by the reorganisation *** derek has quit IRC *** btami has quit IRC *** derek has joined #gnuenterprise off for today cu all *** reinhard has quit IRC *** derek has quit IRC what's the problem with toolbar icons ? for us guys - how you name registration mark on a car? sign, number, mark or what? license plate ? yes, that name? there's a problem with guessing the transparent colour on win32, so there's an option to turn that off ... # Make sure to disable the color-remapping in windows wx.SystemOptions.SetOption ('msw.remap', '0') this option has to be set *before* a toolbar get's created and the icons will look good :) *** derek has joined #gnuenterprise *** jcater has quit IRC *** derek has joined #gnuenterprise *** sjc has joined #gnuenterprise *** jcater has joined #gnuenterprise *** jcater has joined #gnuenterprise *** klasstek has joined #gnuenterprise *** yure has quit IRC *** derek has quit IRC *** derek has joined #gnuenterprise *** derek has joined #gnuenterprise *** weex has joined #gnuenterprise *** johannesV has quit IRC *** docelic has joined #gnuenterprise *** weex has quit IRC *** kilo has joined #gnuenterprise *** jamest has quit IRC *** kilo has left #gnuenterprise *** klasstek has quit IRC *** sjc has quit IRC *** derek has quit IRC *** jcater has quit IRC *** derek has joined #gnuenterprise *** sacha has quit IRC *** sacha has joined #gnuenterprise *** jcater has joined #gnuenterprise *** dimas has quit IRC *** dimas has joined #gnuenterprise