*** lekma_ has joined #gnuenterprise *** lekma has quit IRC *** dimas has joined #gnuenterprise *** reinhard has joined #gnuenterprise *** holycow has joined #gnuenterprise *** sjc has joined #gnuenterprise *** SachaS has quit IRC *** btami has joined #gnuenterprise good morning *** johannesV has joined #gnuenterprise morning everyone good morning good morning Europe! good morning reinhard, i've just tried that unicode-thingy you've mailed me .... :) RUN: returns Unicode(fetchmany): NO handles Unicode Statements: NO /home/johannes/bin/gcvs: line 9: 7620 Speicherzugriffsfehler /usr/bin/python2.3 "$@" that's a segfault :) wow for unicode parameters? yeah *** kilo has joined #gnuenterprise johannesV/reinhard: in form's field attrib of field tag can contain only lowercase chars, unless it's not updated is it normal? no that is a bug probably introduced by my ongoing changes thanks for reporting np *** holycow has quit IRC Traceback (most recent call last): File "", line 12, in blkItem_fldQuantity_POST_CHANGE_onchange File "/home/tamas/svn/gnue/.cvsdevelbase/gnue/common/logic/NamespaceCore.py", line 317, in __call__ return self._objectFunction(*args, **kwargs) File "/home/tamas/svn/gnue/.cvsdevelbase/gnue/forms/GFObjects/GFBlock.py", line 708, in callFunction parameters) File "/home/tamas/svn/gnue/.cvsdevelbase/gnue/common/datasources/GDataSource.py", line 208, in callFuncOfCurrentRecordsetEntry self._currentResultSet.current.call (name, params) File "/home/tamas/svn/gnue/.cvsdevelbase/gnue/common/datasources/drivers/Base/RecordSet.py", line 502, in call raise errors.ApplicationError, u_("Function call on empty record") ApplicationError: Function call on empty record got it with gnue-invoice (in gnue-contrib) grid.gfd when trying to create a new invoice btami: and? is it true? is the record you call a function of empty? reinhard: i know nothing about it's internals just testing things it worked before hmm let me test something *** dcmwai has joined #gnuenterprise *** dimas has quit IRC btami: ok, I can reproduce, will look into it well actually as gnue-invoice uses *exclusively* mixed-case field names it might well be related to the other bug you reported btw the goat is nice ;-) it is one of Jason's *** sjc has quit IRC *** btami has quit IRC *** StarDeep has joined #gnuenterprise *** mnemoc_ has joined #gnuenterprise bbl *** reinhard has quit IRC *** mnemoc has quit IRC *** jamest has joined #gnuenterprise *** jamest has quit IRC *** tiredbones has joined #gnuenterprise *** dimas has joined #gnuenterprise *** kilo has quit IRC *** jamest has joined #gnuenterprise *** johannesV_ has joined #gnuenterprise *** johannesV has quit IRC *** titopbs has joined #gnuenterprise *** johannesV_ has quit IRC *** johannesV has joined #gnuenterprise Added a fish-hook element to address_person johannesV: what does a fish-hook mean in here? that's a column of a table referencing itself address_person.address_senior is a reference to address_person how and when is it usefull? is it used in contrib projects? oh, in that sample hmm, i don't know ... but that doesn't matter ... i think lekma had such classes ... ok the problem was the order in which appserver did the processing of such related records to explain what was our case some cleaver consultant (namely yours truly) decided to put offers and orders in the same class :) and transform offers to orders by copying data and referencing the offer * lekma thinks he must be the dumbest designer in the worlds :) world_S_ :) :) *** titopbs has quit IRC one thing that i really learned the hard way with this project is: do one thing at a time and don't rely on expected behaviour TEST :) that's true ... you guys are just great! but we've startet to integrate unittests quite a lot now this should make things a little more stable ... * jamest looks out the window at all the kids gnue'n in the yard johannesV: svn settling down any? jamest, what do you mean ? i run svn in production here and try to follow the curve just a bit w/ all the changes in datasources recently i wasn't sure how svn head is, vs a week or so ago oh, wow ... :) hmm, i don't know wether reinhard's changes are *all* bug-free atm, but at least appserver's unittest runs fine cool, most my apps are custom against gnue-common (but i've found a little bug in requery () though ... it fails if the requeried record does not exist ...) and so far the only thing that bit me was loss of implied fields if none specified and requery is what I'm wanting to gaim gain maybe we should consider a unittest for that db-driver tree i planned to write some that'd be really great but work on the house is taking more time that expected so i imagine it'll be may hm, yeah, better in may then never .... :) lol hmmm i thought we allowed for sql passthru on datasources so I could manually do an insert / update / or whatever * jamest needs to manipulate a postgresql sequence from a python script i think that was eliminated by reinhard yesterday ... but I'm not sure about that lol, timing is everything I guess :0 er, :) On page 13 in the Common Developer's Guide there is a reference to a registration.gsd file, does is matter where I put this file? *** kilo_ has joined #gnuenterprise tiredbones: no you specify that file as a command line argument to gnue-schema so it should work like a form in that it can be anywhere Thanks jamest. *** StarDeep has quit IRC jamest: would it be good practice to put all gsd file relating to giving package in a separate directory? i don't know if using appserver i believe it supports a directory where you put these wait, i'm thinking gcd's gcd files yes what i do here is still based on .sql but i put all table definition scripts in a stucture like dbname/tables/tablename.sql Thanks jamest and kilo. I keyed in the registration.gsd and then ran the command "gnue-schema --vendor=postrgesql registration.gsd"Having gotten an error, I looked at gnue-schema --help. Should --vendor parameter be replace with --connection? looks like it tiredbones, gnue-schema takes a connection name, which you will have defined in your connections.conf *** SachaS has joined #gnuenterprise jamest: are you fluent in gnue-reports? :) johannesV what is a fish hook? :) :) :) a table is called to have a fish-hook if it has a column referencing it's own table a reference to the same class ? ok. if you draw an erd it looks like a fish-hook ... right, a ref to the same class (if speaking in appserver terms) ok. thanks. np lekma: not really, every time i create a new report i have to relearn it :( bbl *** reinhard has joined #gnuenterprise jamest: re passthrough SQL DBSIG2.Connection still supports an "sql (query, parameters = None)" method returning a 2-dimensional array for the result sql1 for something that is expected to only return a single value and sql0 for statements that are expected to return nothing but if you really just want to do arbitary inserts, deletes, and updated updates you might want to look at the (new) Base.Connection.insert/update/delete methods that don't require you to build SQL but accept fieldname/value dictionaries plus they are portable to non-SQL backends in case that ever matters reinhard: i'd have to call postgresql specific functions to manipulate sequences as they aren't really fields so you would stick to sql() gotta run again btw jamest: current SVN seems to have a problem with uppercase letters in field names will fix tomorrow probably l8r all *** reinhard has quit IRC jonannesV; Well, if I look at what was setup in the connectios.conf vs. that of the command that was entered, there is no clue as to what that connection name should be.Here is the connection.conf that was entered: [pros] s/[pros]/[prod] comment = Production DB provider = psycopg host = rdbms.example.com dbname = prod [web] comment = Web DB provider = psycopg host = www.example.com dbname = web the command entered; gnue-schema --vendor=postgresql registration.gsd --vendor probalbe should be --connection So, if it is --connection what part of the connections.conf should --connections point to? to [prod] or [web] just through away [] dimas: Is this what I what, --connection=prod? s/I what/ I want/ should be that Thanks When I run the gnue-schema command I get an error informing me that psycopg module not installed. However, I just verify that I did installed it using synaptic and it does show that it is installed. can you give an exact message of the error? File "/usr/lib/gnue/python/gnue/common/apps/plugin.py", line 168, in find DB000: raise LoadError, (name, result) DB000: LoadError: Cannot load plugin psycopg DB000: The following plugins failed: DB000: * gnue.common.datasources.drivers.postgresql.psycopg: DependencyError: Module 'psycopg' is not installed I just ran a find command on psycopg.py, it comes up empty. hmm try to run gnue-common/src/apps/plugin.py i do gcvs plugin.py it gives more info as why plugin was not loaded what is gcvs command *** jcater has joined #gnuenterprise it just adds gnue modules into pythonpath it is for cvs installation I use deb's. gnue-common a command? I use deb's. is gnue-common a command? no when I try man gnue-common, it comes up empty try gnue-common python plugin.py *** sjc has joined #gnuenterprise *** Amorphous has quit IRC *** tiredbones has quit IRC is there a "serial" fieldtype in postgresql? like something that gets incremented with each now record? yes There is something akin to this hmm, trying to remember the details *** johannesV has quit IRC you cerate a sequence and set the default value of a column to the next value of the sequence, I think yes, i remember this create sequence serial_seq; create table serialized ( serial_number integer default nextval(serial_seq) ); I think. *** Amorphous has joined #gnuenterprise nickr: thanks, someone is trying to setup a billing apps for asterisk, will look into how it create the db myself *** tiredbones has joined #gnuenterprise i think there is a serial type too nickr: there is serial in postgresql from 7.3 and up CREATE TABLE tablename (colname SERIAL); yep which automates the creation of the sequence but you lose control of naming the sequence and iirc the sequence isn't autodropped if you drop the table so manual gives you better control jamest: thanks *** titopbs has joined #gnuenterprise night all *** lekma has quit IRC *** Amorphous has quit IRC *** Amorphous has joined #gnuenterprise *** jamest has left #gnuenterprise interesting I think I'll stick to manual sequences :) *** reinhard has joined #gnuenterprise *** jamest has joined #gnuenterprise *** jamest has left #gnuenterprise *** jcater has quit IRC When the connections.conf file is read do all the db have to exist? What I mean is can I put a entry in the connections.conf without using it? I'm running this command and I getting and message telling me that db gnue does not exist. This is what I'm running gnue-schema --connection=prod registration.gsd It appears that the prod db is ok. Can someone tell how to solve this? File "/usr/lib/gnue/python/gnue/common/datasources/drivers/DBSIG2/Connection.py", line 299, in makecursor DB000: cursor.execute (s) DB000: ProgrammingError: ERROR: syntax error at or near "-" at character 30 DB000: DB000: CREATE SEQUENCE registration_-1216706252_seq; erm that doesn't look like a message that the db gnue doesn't exist I went ahead and created the gnue db so that I could get by the error message. Now I'm getting this error. where do you have this gsd file from? Is this error telling me that my gsd file is wrong? at first sight yes This gsd file is the one in "Common Developer's Introduction Guide" on page 13. you planning to write common based non-gnue apps? I'm trying to do all the guides that has something to tech me at the moment. ouch seems like you found a bug in gnue-schema ************************ johannesV gnue.common.datasources.drivers.Base.Schema.Creation.Creation._getSequenceName uses the id() of an object for generating a "unique" name but the id can contain a - singn (it can be negative) ******************** tiredbones: you can work around that bug by using shorter table and field names so table name + field name < 27 characters ok, thanks FWIW I am not sure how current or outdated this documentation is It looks like its outdated, but some of the stuff works and I'm getting some idea what's happening. This info is good to know in the overall scheme of things. kilo_: oh my, I just saw your .dia files in gnue-common/doc they cover *exactly* what I am messing around with for some weeks now lol so they will be heavily outdated for the next release :( np i will redo them i am happy you fight this monster kilo_: I see some overlap between your .dia files and our epydoc documentation hmm common-techref.lyx dia was earlier i think This is version 0.0.1 of the Technical Reference it covers GNUe Common 0.3.0 hehee building-static-distro.txt refers to wxgtk 2.3 and some other quite old versions :) ok, good night now night *** kilo_ has quit IRC reinhard: I hope I'm not causing use extra work, doing the things that I do. no problem reinhard: I shorten a values to be < 27 and it worked. good night all *** reinhard has quit IRC *** sjc has quit IRC *** tiredbones has quit IRC *** dcmwai has quit IRC *** jcater has joined #gnuenterprise *** holycow has joined #gnuenterprise