*** johannesV has joined #gnuenterprise *** btami has joined #gnuenterprise good morning *** johannesV_ has joined #gnuenterprise good morning *** kilo has joined #gnuenterprise *** reinhard has joined #gnuenterprise good morning *** johannesV has quit IRC good morning all good morning :) *** bigbrother` has joined #gnuenterprise *** bigbrother has quit IRC *** yure has joined #gnuenterprise *** btami has quit IRC *** jamest has joined #gnuenterprise reinhard: you started validating the typecasts in fields? as I'm getting an odd error with svn head XML markup error 'datetime' is not valid for typecast-attribute which allows these values only: 'Default', 'Description', 'ValueSet', 'Typecase', 'Label' not that I remember might be however that johannesV_ changed it ok, that error msg is wack :) that was me, indeed I'm searching a differnt bug right now this is because the options defined in a ValueSet will be checked now johannesV_: i think it's reporting the wrong level though it typechecks right sure ? i just switched a typecast='number' to 'numberz' and instead of printing the allowed values it prints these as allowed values 'Default', 'Description', 'ValueSet', 'Typecase', 'Label' ah, i think i see it already which look more like gparse dict keys also I think I found my bug... i'm building a glimpse index on the source to look but it takes a while :) jamest: if a trigger is defined within a , what should "form" point to in your opinion? the main form, or the dialog? also, fwiw pylint 0.11 is out with the block level disable jamest, found and fixed reinhard: it should point to the dialog form all is is an alias for
or some such so in a dialog you have an on-startup trigger that does so there would be no way to access the main from from within a dialog? form.setFeature('GUI:MENUBAR:SUPPRESS',1) so you can flip the ui elements of that dialog form off reinhard: you passed values back and forth via the activateDialog() function yes ok activateDialog('dialogFormName', parameters) so we want to keep it that way, right? though I think this broken when parameters became a caseless dict every dialog would get its own global namespace? i hacked something in to get things working for me but i think it was flaky enough i redid my forms here to not depend on it i don't see any reason to share them and, for example, blocks and datasources from the main form would also not be visible in a dialog trigger? i had hoped that dialogs would be self contained with a standard API that way if I wanted a custom dialog that asks for the base info on a new customer i could hook that dialog into multiple forms ok makes perfect sense via the import we support(ed) actually it seems like it was like that before I wonder where I broke it :-) caseless dict for parameters on forms broke stuff there i don't think it was ever really fixed after that it was fixed as far as it works again for me :) :) I wonder where I broke it :-) <--- I meant the separate namespace per dialog looking at that now hmmmm found it date, text, number is all we have i thought we did a datetime too *** kilo has left #gnuenterprise hmm implementation of GFField even only checks for "number" and treats all other values the same AFAICT jamest: could you please do me a favour and remove me from the list of commit-gnue mailing list moderators? *** derek has quit IRC reinhard: they are the same to the field it's the input handler that cares about how they are presented to the UI as text iirc yes but that's not dependent on the "typecast" attribute :) hmmm what about boolean i swore boolean worked *** johannesV__ has joined #gnuenterprise I would guess that it was not checked at all in earlier versions *** johannesV_ has quit IRC yep revision 8376, johannes, check for valid attributes if a value-set is defined 1 week 1 day ago *** yure has quit IRC *** derek has joined #gnuenterprise *** sacha has quit IRC *** jamest has quit IRC jamest: could you please do me a favour and remove me from the list of commit-gnue mailing list moderators? <-- did you see that? reinhard: I removed you *** jamest has joined #gnuenterprise *** yure has joined #gnuenterprise *** sjc has joined #gnuenterprise jcater: thanks in the old forms namespace you could do a startup trigger on-startup that does something like *** johannesV__ has quit IRC global FixedPoint from gnue.common.external.fixedpoint import FixedPoint then in other triggers in the form you could just use FixedPoint other examples of this are in the forms tech reference that no longer works which will break a ton of stuff for me :) as you can also define functions in on-startup with a global then use those functions form wide I tried to make that work but I failed what is the trick about it? it always told me that the variable name I had after "global" doesn't exist hmmmm let me try something erm it actually works for me I wonder does your case invove any dialogs? as it might have changed that dialogs got their own global namespace i'll have to look later, the users figured out my day was going good so took care of that this afternoon ok just let me know because within the same form, globals get shared between triggers OK for me ok the difference for me that jumps out is that this is a from foo import bar (I was wrong when I said it wouldn't work - it had always worked, but I had a bug in my test..) not that that makes sense even that works for me AFAICT in ON-STARTUP I have global DateTime from mx import DateTime and in a button trigger I can use DateTime perfectly ok, thanks, i'll dig in more later to see what's up in that form *** dimas has quit IRC *** yure has quit IRC *** sandroid has joined #gnuenterprise http://www.gestix.com/ spammed me toeday and you share with us? *** lupo__ has joined #gnuenterprise How would you call this if A is the parent of B, B is the parent of C, and C is the parent of A ? reinhard: a circular list? reinhard: a design error? jcater: yes jcater: I would need a name for this design error to present to the user in an error message :) circular reference? derek issue 00321.4 ok, thanks *** kilo has joined #gnuenterprise jamest: yeah i like to share my spam :) * derek just wondered if anyone here had looked at it since it claims to be an ERP never heard of it before funny thing is it calls itself "open source based" but seems to be 100% proprietary it runs on linux that makes it open source based right? ;) hah jamest, jcater: just committed the lowest level of the class hierarchy we talked about yesterday. Please have a look whether this matches what you expected reinhard: cool, i'll look at it tonight when I get home I'll try to tonight too nice not that it's much though I've implemented a Node class I consider a TypedNode subclass that introduces what we now call _type that can implement find_parent_of_type, find_children_of_type etc heading home now, will read logs I have a wife who unfortunately wants to spend time with me tonight so not sure when I can read it and maybe a NamedNode subclass that adds the possibility to define a name for each node that can be used in __repr__, debug tree output etc no hurry though, I'm just hacking around a little :) good night all *** reinhard has quit IRC http://www.debianhelp.co.uk/sugarcrm.htm sugarcrm on debian *** lupo__ has quit IRC *** jamest has quit IRC *** sandroid has quit IRC *** kilo has left #gnuenterprise *** jamest has joined #gnuenterprise *** jcater has quit IRC *** sjc has quit IRC *** nickr has quit IRC *** nickr has joined #gnuenterprise *** nickr has quit IRC *** nickr has joined #gnuenterprise *** derek has quit IRC *** nickr has quit IRC *** nickr has joined #gnuenterprise *** jamest has quit IRC *** sacha has joined #gnuenterprise *** bigbrother has joined #gnuenterprise *** bigbrother_ has quit IRC