*** wt has joined #gnuenterprise anyone here? jcater maybe? guess no one * ajmitch is around but probably can't help at all :) well...if someone comes on, where can I donate? umm you could donate to me ;) but definitely ask derek, jcater, or one of the active core people ajmitch: what do you do for the project? ajmitch: I can't even seem to acquire ssh access to the svn *** wt has quit IRC *** holycow has joined #gnuenterprise *** holycow has quit IRC *** holycow has joined #gnuenterprise *** wt has joined #gnuenterprise w00t *** wt has quit IRC *** sjc has joined #gnuenterprise *** ccfiel has joined #gnuenterprise heloo ppl!!! :D *** reinhard has joined #gnuenterprise *** btami has joined #gnuenterprise good morning good moring all *** aries has joined #gnuenterprise hi all erm, the setup.py needs the pygettext, but I couldn't find it... On Mandrake, there's no python-i18n, -gettext, others, and it's not in the -devel pygettext should actually be included in python or python-devel but as a workaround you could edit po/Makefile there's no such file, python-devel has installed and replace "pygettext" by "xgettext --language=Python" (but keep the --keyword!) in the py2.1, there's a package python-tools, but nowadays this pack has disappeared hi aries btami: hi * btami is away: i'm busy Yesterday, I look inside in to the contribs and I don't understand something. You use too much "string" var. types, like gnue_id i think they should contains number values where they can gnue_id is not guaranteed to contain only numbers apart from that, I doubt all databases can DECIMAL(32) reinhard: why can contain nonnumerical values? *** holycow has quit IRC reinhard: why can contain nonnumerical values? *** ccfiel has quit IRC *** btami has quit IRC *** ccfiel has joined #gnuenterprise *** btami has joined #gnuenterprise *** kilo has joined #gnuenterprise good morning hi ccfiel hi reinhard hi dimas hi aries hello kilo.. :D hi, how are you? fine...how about you... :) it been long when i visited this IRC..:D how is gnue? gnuenterprise?:) *** ccfiel has quit IRC aries: reading you rmail now, will answer that asap *** ccfiel has joined #gnuenterprise *** sjc has quit IRC aries: we intend to use a UUID for gnue_id at some time which is a 32 char hexadecimal number i.e. a 128 bit number *** johannesV has joined #gnuenterprise *** ccfiel_ has joined #gnuenterprise *** ccfiel__ has joined #gnuenterprise *** ccfiel__ has joined #gnuenterprise *** ccfiel has quit IRC *** ccfiel_ has quit IRC reinhard: in optimizing for performance, the data sizes should be register sizes. Eg on 64bit systems, the number values should be adjusted to 64bit that would make data non-portable between different systems IMHO wouldn't it? i think not it just a constraint about the sizes 64bit long integers should be enough for a while :) if it's matter, oracle using 64bit integers for primary keys but I'll write an essey or a buggy implementation for CRM-ERP-etc and I try to answer this reinhard: code snippet from a procedure szamfejtesek = find('PAYROLL_Szamfejtes', {'PAYROLL_jogviszony': jogviszony}, [], []) ... for szf in szamfejtesek: if szf.PAYROLL_haviAdo is None: szf.PAYROLL_haviAdo = VEA/12 * len(szamfejtesek) - eddigiAdo break return szf.PAYROLL_haviAdo and then in the calling form: form.commit() and it complains about a non-null field being None. why? isn't szf referencing an existing PAYROLL_Szamfejtes object? kilo: hi! hi kilo: please change the "if foo is None" to "if foo" errr "if not foo" of course bbl lunch *** btami has quit IRC * aries hacked his mandrake with python-tools from python.org, there's no a clear mandrake solution for pygettext yet :( reinhard: thx. still not good *** dcmwai has quit IRC *** kilo has quit IRC *** Amorphous has quit IRC bye *** aries has quit IRC for the record: kilo, maybe you want to do the same test with all instances in the list (szamfejtesek) ... ? *** jamest_ has joined #gnuenterprise *** aries has joined #gnuenterprise hi all I've a problem with installing gnue-appserver (cd ../..; echo "import src; print src.VERSION" | gcvs) >> version.texi /bin/sh: line 1: gcvs: command not found what is gcvs? i can't find it did you download from svn? and if yes did you run setup-cvs.py in common? not yet :) because I dl it from svn, not cvs well we didn't change the filename when we moved from CVS to SVN sorry if that caused confusion okay, nope *** johannesV_ has joined #gnuenterprise :) reinhard: maybe that should be setup-devel.py that way in the future we can switch to something else without confusion of course we still have gfcvs gcvs etc etc *** johannesV has quit IRC *** aries has quit IRC reinhard: i'm still getting 'demoa' is not valid filter-value for 'base_company' *** kilo has joined #gnuenterprise *** wendall911 has joined #gnuenterprise dimas: you have loaded the samples? what form do you try? loaded appserver://appserver/form/base_company" oh i think i know what your problem is your test database does contain other data? most probably not because a property (base_currency) was removed from a class (base_company) you would have to manually remove it from the class dictionary tables in the db most easy way: dropdb and reload it again i just loaded base.gcd gl.gcd and demo.gsd i could try again from the beginning yep johannesV_: i search for a given object in the list, the only one with PAYROLL_haviAdo==null. and i want to store a number there. that works ok, but it does not commit changes, because it says that that object has a property null which should not be, although that property is not null for sure. seems like it acts on a not-exact copy of the original object reinhard: what is class dictionary tables? gnue_property (for example) but you can't use gnue_forms on them like I said easiest way is drop db and reload from beginning does it work for you? dropped and reloaded same thing do you have authentication set on? no no auth i have --devug-level=8 on both sides and not any string after i hit login button hmmm just message on login dialog you have sample.gsd loaded, too? I think I see a problem no if only i'm not connected to the wrong datasource I think we hit a bug here let me please test a few things will it drive to yet another dirtyread rewrite? j/k you have no sample.gsd? so actually your base_company table is empty? where it should be? there is demo.gsd with demoa as base_company code base/demo.gsd kilo, will look at it later ... (as i'm about to change NullObject anyway) anyway, have to leave for a short while now ahm, ok, thx. wont be around really for some hours dimas: can you please check with psql if your base_company table is empty? err sorry i meant demo.gsd did you load demo.gsd? yes load loaded ok gnue=# select * from base_company; base_code | base_name | gnue_id | gnue_createdate | gnue_createuser | gnue_modifydate | gnue_modifyuser -----------+-----------------------------+----------------------------------+---------------------+-----------------+---------------------+----------------- demoa | Austria Elektrohandels-GmbH | 91094290434119931310213246688146 | 2005-01-06 15:03:58 | | 2005-01-06 15:04:20 | (1 запись) it should work then if you enter demoa in your login dialog thats a big id number dimas: can you please edit gnue-common/src/datasources/drivers/appserver/appserver/Connection.py? wait a minute line 202 "vDict = item [3][masterkey]" after that add "print field, vDict" gnue_id [{'gnue_id': '91094290434119931310213246688146'}] is that it? ah aaaaaahhhhhhhhh you didn't read in the gld files? sure not ok you should and we probably should improve the behaviour if people forget... *** bigbrother has joined #gnuenterprise *** bigbrother` has joined #gnuenterprise dimas: when (and where) does that happen? and does it stop actually? *** bigbrother has quit IRC *** agile has quit IRC we use dictionaries with empty string as key test one more reinhard: it works with py_xmlrpc on python2.2 ok what was your other test? where it didn't work? error was with pw_xmlrpc when calling form, before login screen appeared with python 2.2? yep ok thanks interesting *** agile has joined #gnuenterprise pw_xmlrpc 2.2 seems to not like empty dictionary keys while py_xmlrpc 2.2 and pw_xmlrpc 2.3 get along with it I think we would have to fix that somehow reinhard: why gld is so important at this point? to define which of the fields of base_company should be asked base_company has several fields code, name, could have even more so forms has to know whether the user should enter a code or a name it's what i did not get before without gld it was undefined so forms expected you to enter the gnue_id of the company search="100" what 100 means here? it's the order ok it's not active yet but we planned to extend the login dialog at some point to allow for several dropdowns per questino so for "Company:" you would have a dropdown with all the codes and another dropdown with all the names i would like to provide default values for filters and ability to exclude it from login dialog in connections.conf [appserver] section you can do base_company=demoa but currently it only helps if you define *all* login dialog fields great will try that reinhard: round proc is working like that >>> ru=0.01 >>> x=23.47+ru/2 >>> x 23.474999999999998 >>> int(x/ru)*ru 23.469999999999999 >>> ouch >>> x = 23.47 >>> x 23.469999999999999 it's not exactly a problem of the round procedure... ok *** holycow has joined #gnuenterprise reinhard, this is a number you can't express correctly using binary system yes like x = 0.1 I even think it's not a problem for us I *hope* the db would store it correctly in a DECIMAL (9.2) field haven't looked at that till now but i can add it onto my *todo* list :) i'm off again but will bbl looks like i can commit the null_first_asc/dsc option for appserver today, as well as an improved version of NullObject but the latter one is still in test-cycle *** btami has joined #gnuenterprise *** Amorphous has joined #gnuenterprise *** jcater has joined #gnuenterprise *** kilo has quit IRC *** kilo has joined #gnuenterprise *** kilo has quit IRC *** kilo has joined #gnuenterprise *** johannesV_ has quit IRC *** jcater has quit IRC *** johannesV has joined #gnuenterprise *** johannesV_ has joined #gnuenterprise *** btami has quit IRC kilo, are you still there ? *** btami has joined #gnuenterprise *** sjc has joined #gnuenterprise *** suitable has joined #gnuenterprise *** jcater has joined #gnuenterprise for the record: kilo, please svn-up and try it again off for today *** johannesV has left #gnuenterprise *** SachaS has joined #gnuenterprise i see unittest in appserver directory :) ohh that is gnue-commons sorry *** jamest_ has left #gnuenterprise night all *** reinhard has left #gnuenterprise good night *** btami has quit IRC *** SachaS has quit IRC hi, what's the standard --connection=foo or --database=foo? --connection where do you see --database ? appserver it depends hmm at least on the win32 version available on the site then they may be 2 different things but real database is specified on connections.conf isn't it? I know gnue-common deprecated --database a long time ago, but appserver may still use it for something else *** jamest_ has joined #gnuenterprise i tryed --connection and it screamed mnemoc: I'm not sure about appserver sorry is it normal that gnue-schema say nothing always? appserver uses --database, and that corresponds to the backend database appserver should use, as defined in the connections.conf you can see several examples for that in gnue-contrib psycopg instead of gnue? not the provider, the db itself oh gnue-schema.exe does nothing :( *** suitable has left #gnuenterprise what do you want it to do? create schema needed by appserver bin\gnue-schema.exe --conection=socomep share\gnue\appserver\gnue.gsd <--- no output, no tables created hmmm, will report to btami tomorrow. i guess all paths are valid, and 'connection' includes 3 'n' characters good point what's the --help argument? --help -? -h /? /h show nothing --help iirc :\ dunno about windozie version but should be --help, as jcater said --help works for gnue-appserver i don'0t know python, can i add something somewhere to see what it is doing and where it is failing? (trace or something) --debug-level=10 no output! :\ *** holy_cow has joined #gnuenterprise i guess i'll have to install python on the server :'( ... without boss notice it no, you can use it completely locally that was what i was trying to do, but this silent gnue-schema is not helping my 'newbie experience' gnue-appserver tries to start but 'DB000: ProgrammingError: relation "gnue_module" does not exist' that's ok, since you dont have the system database, that gnue-schema should build up i cannot start a windows machine now, sorry, but will try it tomorrow * mnemoc wants strace for win32 :( you only want to build up the main - or system - database for appserver? that's my start point i guess do you have sql for postgres to do that? in fact we use interbase/firebird, not postgres. :( is your connection.conf set up ok, and are you sure gnue-schema tries to read that conf file, not some other? i 'next next next' those .exe --> http://www.gnuenterprise.org/downloads/current.php and modify connections.conf at least gnue-appserver is happy with my changes i'll try installing -debug.exe-s *** holycow has quit IRC kilo: gnue-common-debug.exe gives output :) and works and does gnue-schema work? uhm, no DB000: File "C:\Archivos de programa\GNUe\bin\gnue\common\datasources\driver\postgresql\Schema\Discovery\Introspection.py", line 77, in find DB000: TypeError: iteration over non-sequence DB000: is that my fault? Introspection.py:77 for rs in cursor.fetchall (): what version of postgresql do you use? 8rc2 i ask only for reporting the error... and which driver? i installed none, but connections.conf has psycopg as provider pypgsql worked did you follow http://www.gnuenterprise.org/cgi-bin/twiki/view/Main/WindowsQuickStart ? it looks outdated, because you now provide: gnue-runtime-environment-2004.07.31.exe hmmm, ok, will modify it then, thx for the info 'pypgsql worked' - what does that mean? updating table 'gnue_parameter' ... Rows: 4 inserted, 0 updated, 0 unchanged. pygresql is not installed and psycopg gives the "iteration over non-sequence" error *** jamest_ has left #gnuenterprise have you tried pypgsql? http://pypgsql.sourceforge.net/ it created the tables, that was my only test 2003-07-16: pyPgSQL 2.4 released! <--- is it alive? well, i have a 31-yr old wife, and she still works 8-))) :D in the irc log for 2004-12-21, btami said "just tried win32 packages, pypgsql is working with" at least i'm not the problem :p and also on 2004-12-23 dimas: i find that the psycopg module in setup exe is for pg 7.4, so you have to overwrite the psycopg.pyd in installed bin dir from http://stickpeople.com/projects/python/win-psycopg/win-psycopg23.zip it's for 7.3 great will try now provider = pypgsql is ok for me too *** ra3vat has quit IRC *** jcater has joined #gnuenterprise btami: it works with psycopg now *** holycow has joined #gnuenterprise btami: thanks with pypgsql also works if you try with older versions of Postgresql like 7.3 and dimas: just tried win32 packages, pypgsql is working with postgresql 8.0 RC1 on XP psycopg fails tryed with appserver's sample.gfd so i think you should try pypgsql @monologue kilo: Your current monologue is at least 26 lines long. wow @roulette kilo: *click* huh hehe *** kilo has quit IRC *** lxf has joined #gnuenterprise *** mmealling has joined #gnuenterprise *** jcater has quit IRC *** jcater has joined #gnuenterprise *** sjc has quit IRC *** holy_cow has quit IRC *** lxf has quit IRC *** holycow has joined #gnuenterprise *** dcmwai has joined #gnuenterprise *** booyaa has joined #gnuenterprise *** booyaa has left #gnuenterprise