*** holycow has joined #gnuenterprise *** holycow has quit IRC good morning hi rynik hi mnemoc, Have you done some imports? after 5 hours doing that silly import i decided to abort i moved the commit inside the loop, and it's lots faster and i see the results inmediately i also saw that my 'user' was too long and aborted on the first iteration s/aborted/failed/ But what now, can you sit back and let it work for you? Although I don't think you will make it in time for your deadline two days ago. Unless you have a very swift macine. :) :) real 29m12.617s user 2m31.853s sys 0m34.806s much better 7189 records last time it had processed around 4000 in 5 hours i'll go to sleep, and do some tests of the full importer in the morning, now it 2:20am here :) and my girls wake up around 6:30 i'm liking this thing.... i guess i'll do the plone (python again, puaj) module for it milk bottles ready, cu in some hours :) cu mnemoc *** reinhard has joined #gnuenterprise good morning all mnemoc: sorry, I wanted to help you more yesterday, but I had internet outrage :( *** reinhard has quit IRC *** reinhard has joined #gnuenterprise *** docelic has joined #gnuenterprise *** docelic has quit IRC huh? reinhard: how to initialize appserver session if authentication = True ? when switched off session = app.newSession ('dimas', 'secret') session.setcontext ('PERSON') works fine should work with 1st parameter username and 2nd parameter password IIRC you might run into troubles if you have filters but regardlessly whether you have authentication or not it says app: User 'None' does not exist svn or release? svn yesterday's what troubles with filters? how to get it work properly? or what would you recommend? dimas: I think I fixed the login problem will talk to johannes that he should fix filters with App.Session sessions reinhard: thanks updating.. *** johannesV has joined #gnuenterprise palim palim hello johannesV: erm hello, johannesV :-) i'm just about to test my new (external) 250gb usb hard-driver erm harddrive *** docelic has joined #gnuenterprise reinhard, have you noticed that problems in file-based drivers regarding import of modules (in initplugin) i.e. dbffile.py does not import that dbf module in initplugin yes, fixed it it does import that but appearantly it imports it into the local namespace of the __initplugin__ procedure which doesn't help much :) well, but now we have an import statement in both functions _loadFile and _listFields yes I am not sure if there is a better way of doing it like adding a "global dbf" to __initplugin__ anyway, i've downloaded xbase specs from web and i will do our own implementation of a dbf-driver so that silly question 'which driver to use' get's obsolete (and we could make it iterable:) you would do your own dbf.py? or directly integrate it into dbffile.py? i'm not sure about that what would you prefer ? *** johannesV_ has joined #gnuenterprise *** wendall911 has joined #gnuenterprise I think it would make sense to have a gnue-independent dbf.py ok, and where to put that ? include it into python 2.5 standard ;-) *lol* gnue-common/src/utils/dbf.py we have lots of other useful non-gnue-dependent stuff there already like CaselessDict or uuid *** johannesV has quit IRC all stuff one could easily rip out of gnue and use in another project to save the world in other projects ;) right, i think that's a good idea johannesV_: I'm just not sure if the dbffile should be an iterator yielding lists (like the existing dbf.py's are) or an iterator yielding dictionaries you could even try to subclass list and dict for the dbf objects although I do not yet see the advantage in that as opposed to creating a new class and implementing all those functions that are needed for dict/list emulation well, i think we should keep that dbf.py driver quite simple (as we can decide over it's design :) yeah I envision something like for row in dbffile ('/path/to/file.dbf'): print row ['name'] what's dbffile here ? our datasource.driver.file.dbffile ? btw. i'd prefer an iterator yielding dictionaries (where we have to decide about case then) johannesV_: no, sorry johannesV_: i meant the class for row in dbf.dbffile or dbf.dbf or however we want to call that class ok, i'd prefer to call it 'dbf.dbf' to avoid confusion with our dbffile.py ok actually my reason to call it dbffile was to avoid confusion with the current dbf :) so it certainly makes sense :) ok, great :) what about that idea mentioned the last days having a 'database' attribute in a connections.conf entry for file-based drivers pointing to a directory, having all files (of a given type/extension) beeing a table of that db ? johannesV_: you can already do that with current svn ah, ok i wasn't sure about that ... but then .... that's great ! you can for example have how would i configure such a connections.conf entry ? filename = %(home)s/mydata/%(table)s.dbf or filename = /home/johannes/dbftest/%(table)s/data.dbf and %(table)s will be replaced by the respective table names works for all file based drivers: csvfile, dbffile, and inifile ok, great ! thanks, will try that later ... i'm not sure if i'll add ndx-support to the first version cause we're having sort-support by file.Base anyway johannesV_: I don't think it makes sense for a read only driver who said it will be read-only ? lol j/k ok, i'm off for the next time (playing with the kids ...) bbl *** docelic has quit IRC bbl *** reinhard has quit IRC how can i use COMMAND_OPTIONS if i use appserver.language.app directly on __main__ ? or, how can i use appserver.language.app as class base? *** johannesV_ has quit IRC *** reinhard has joined #gnuenterprise mnemoc: you should be able to use gnue.common.language.App.App as a base class instead of GBaseApp or GClientApp I think you just have to try with App.App instead of App gnue.common.language.App is the python module if you do "from gnue.common.language import App" then App will be the whole module and App.App is the class bbl *** jcater has joined #gnuenterprise *** sjc has joined #gnuenterprise good night all *** rm-away has quit IRC *** Vee has joined #gnuenterprise *** holycow has joined #gnuenterprise *** kilo has joined #gnuenterprise *** kilo has quit IRC *** wendall911 has quit IRC *** yure has quit IRC *** mnemoc has quit IRC *** sjc has quit IRC *** jcater has quit IRC *** jcater has joined #gnuenterprise *** Vee has quit IRC *** jcater has quit IRC *** yure has joined #gnuenterprise *** dimas has quit IRC *** holycow has quit IRC *** holycow has joined #gnuenterprise *** holycow has quit IRC