*** efrerich has joined #zope3-dev | 00:12 | |
*** clueck has quit IRC | 00:45 | |
*** alienoid has quit IRC | 00:48 | |
*** alienoid has joined #zope3-dev | 00:49 | |
*** bradb has quit IRC | 01:02 | |
*** andrew_m has quit IRC | 01:02 | |
*** andrew_m has joined #zope3-dev | 01:06 | |
*** mgedmin has left #zope3-dev | 01:11 | |
*** mgedmin has quit IRC | 01:11 | |
*** efrerich has quit IRC | 01:24 | |
*** _graham has quit IRC | 02:04 | |
*** srichter has quit IRC | 02:04 | |
*** srichter has joined #zope3-dev | 02:04 | |
*** vlado has quit IRC | 02:06 | |
*** _graham has joined #zope3-dev | 02:07 | |
*** ChanServ sets mode: +o srichter | 02:08 | |
*** srichter has quit IRC | 02:08 | |
*** MJ has quit IRC | 02:15 | |
*** srichter has joined #zope3-dev | 02:19 | |
*** MJ has joined #zope3-dev | 02:19 | |
*** ChanServ sets mode: +o srichter | 02:28 | |
*** efge has quit IRC | 02:42 | |
*** natea has joined #zope3-dev | 02:42 | |
*** niemeyer has quit IRC | 02:48 | |
*** MiUlEr has joined #zope3-dev | 02:51 | |
*** xenru|clone has joined #zope3-dev | 02:52 | |
*** xenru|clone has quit IRC | 02:59 | |
*** xenru has quit IRC | 03:00 | |
*** xenru has joined #zope3-dev | 03:02 | |
*** sashav has quit IRC | 03:05 | |
*** natea has quit IRC | 03:23 | |
*** jinty has left #zope3-dev | 03:31 | |
*** alienoid has quit IRC | 03:35 | |
*** zmi_junkie has quit IRC | 03:40 | |
*** xenru has quit IRC | 04:03 | |
*** xenru has joined #zope3-dev | 04:36 | |
*** hazmat_ has joined #zope3-dev | 04:41 | |
*** hazmat has quit IRC | 04:41 | |
*** _graham has quit IRC | 04:50 | |
*** _graham has joined #zope3-dev | 04:51 | |
*** _graham has quit IRC | 05:01 | |
*** _graham has joined #zope3-dev | 05:01 | |
*** graham_ has joined #zope3-dev | 05:26 | |
*** _graham has quit IRC | 05:42 | |
*** xenru has quit IRC | 05:55 | |
*** yota has quit IRC | 05:57 | |
*** sashav has joined #zope3-dev | 06:11 | |
*** graham_ has quit IRC | 06:24 | |
*** WebMaven_ has joined #zope3-dev | 06:31 | |
*** WebMaven_ is now known as WebMaven | 06:32 | |
*** stub has joined #zope3-dev | 07:07 | |
*** MacYET has joined #zope3-dev | 07:44 | |
*** MacYET has left #zope3-dev | 07:44 | |
*** alga has joined #zope3-dev | 08:08 | |
*** natea has joined #zope3-dev | 08:33 | |
*** dobee has joined #zope3-dev | 08:37 | |
*** alga has quit IRC | 09:07 | |
*** dobee has quit IRC | 09:15 | |
*** pcardune has joined #zope3-dev | 09:15 | |
*** dobee has joined #zope3-dev | 09:17 | |
*** hazmat_ has quit IRC | 09:20 | |
*** sashav has quit IRC | 09:24 | |
*** pcardune has quit IRC | 09:27 | |
*** hdima has joined #zope3-dev | 09:32 | |
*** agroszer has joined #zope3-dev | 10:03 | |
*** sashav has joined #zope3-dev | 10:36 | |
VladDrac | does BaseRequest/HTTPRequest support keyword arguments? | 11:00 |
---|---|---|
VladDrac | _args contains positional arguments, is there a kw equiv? | 11:00 |
*** ChrisW has joined #zope3-dev | 11:06 | |
ChrisW | anyone who knows testbrowser: ping? | 11:06 |
ChrisW | is there a method that gets called whenever a post or get is issues by testbrowser that I can hook into? | 11:07 |
ChrisW | I want to keep track of the cumulative time taken to do a series of requests... | 11:07 |
*** zmi_junkie has joined #zope3-dev | 11:13 | |
d2m | there is http://svn.zope.org/zope.formlib/trunk/src/zope/formlib/ and http://svn.zope.org/Zope3/trunk/src/zope/formlib/ -- is the first one to be removed ? | 11:20 |
*** dlk has joined #zope3-dev | 11:32 | |
*** faassen has joined #zope3-dev | 11:47 | |
*** drzoltron_ has joined #zope3-dev | 11:51 | |
drzoltron_ | anyone got sqlos running with zope3.1 ? | 11:51 |
*** ChrisW has left #zope3-dev | 11:51 | |
drzoltron_ | I get this one ConfigurationError: ('Unknown directive', u'http://namespaces.sqlobject.org/sqlos', u'ConnectionName') | 12:11 |
drzoltron_ | ... any ideas ? | 12:11 |
*** MiUlEr has quit IRC | 12:25 | |
*** mgedmin has joined #zope3-dev | 12:33 | |
*** Aiste has quit IRC | 12:39 | |
*** Aiste has joined #zope3-dev | 12:55 | |
drzoltron_ | looks like theres no namespace sqlobject ... any idea how to get that ? | 13:03 |
agroszer | drzoltron: have a look at sqlos\doc\examples\sqlos_sample | 13:12 |
drzoltron_ | sure | 13:12 |
*** faasse1 has joined #zope3-dev | 13:12 | |
drzoltron_ | agroszer: works with zope 3.0 but not 3.1 | 13:13 |
agroszer | can't help you regarding that, I used it with the trunk | 13:13 |
*** xenru has joined #zope3-dev | 13:13 | |
drzoltron_ | agroszer: the trunk of what, zope ? | 13:13 |
agroszer | yep, Z3 trunk | 13:14 |
drzoltron_ | at which point of time ? | 13:14 |
agroszer | nov. 07 | 13:14 |
drzoltron_ | agroszer: it looks to me as the namespace sqlobject is not loaded ... | 13:14 |
drzoltron_ | might try that | 13:14 |
drzoltron_ | and it is working ok ? | 13:15 |
agroszer | hope so | 13:15 |
agroszer | have you copied sqlos-meta.zcml to the package-includes? | 13:15 |
drzoltron_ | nope | 13:15 |
agroszer | sqlos-configure.zcml too | 13:15 |
drzoltron_ | sqlos-conf: yes | 13:16 |
drzoltron_ | have you put a sqlobject-configure.zcml in you pack-incl ? | 13:17 |
drzoltron_ | ah: new error: ConfigurationError: ('Invalid value for', 'handler', "Couldn't import sqlos.metaconfigure, cannot import name MetaSQLObject") ;) | 13:17 |
*** yota has joined #zope3-dev | 13:18 | |
*** xenru has quit IRC | 13:18 | |
agroszer | about sqlobject i'm not sure, i don't have the nov 07. state now | 13:18 |
drzoltron_ | np: i can see in the meta that the namespace is defined there, cool | 13:19 |
drzoltron_ | thanxalot | 13:19 |
*** mkerrin has joined #zope3-dev | 13:19 | |
agroszer | welcome | 13:19 |
*** faassen has quit IRC | 13:29 | |
drzoltron_ | agroszer: where do I define the name of the table to show in a sqlos container ? | 13:29 |
agroszer | I think it's the same as the class name | 13:30 |
agroszer | I can't tell you more | 13:30 |
agroszer | from that point I'm also a beginner | 13:30 |
drzoltron_ | hehe | 13:31 |
agroszer | look for "jinty" here | 13:31 |
agroszer | he is currenlty actively developing sqlos | 13:32 |
drzoltron_ | will, thanx | 13:32 |
drzoltron_ | I saw that an ivo did a z3.1 branch | 13:33 |
*** ignas has joined #zope3-dev | 13:33 | |
*** SteveA has quit IRC | 13:47 | |
*** zmi_junkie has quit IRC | 13:50 | |
*** SteveA has joined #zope3-dev | 13:57 | |
*** vlado has joined #zope3-dev | 14:00 | |
*** bradb has joined #zope3-dev | 14:03 | |
agroszer | drzoltron: there is a project using sqlos | 14:12 |
agroszer | http://www.zope.org/Members/runyaga/sip_lims_release | 14:12 |
drzoltron_ | agroszer: yeah, looking at that right now, thanx ;) | 14:12 |
*** philiKON has joined #zope3-dev | 14:15 | |
*** drzoltron_ has quit IRC | 14:18 | |
*** jinty has joined #zope3-dev | 14:22 | |
*** Jim7J1AJH has joined #zope3-dev | 14:26 | |
*** andres has joined #zope3-dev | 14:29 | |
*** MJ has quit IRC | 14:38 | |
*** drzoltron_ has joined #zope3-dev | 14:47 | |
*** faasse1 has quit IRC | 15:01 | |
*** faassen has joined #zope3-dev | 15:01 | |
*** dlk has quit IRC | 15:08 | |
*** _anguenot has quit IRC | 15:26 | |
*** efge has joined #zope3-dev | 15:51 | |
*** vlado has quit IRC | 15:57 | |
*** vlado has joined #zope3-dev | 15:57 | |
andres | I have a question regarding path traversal. Lets say i have an interface IPerson and IProject (and implementations for those). IPerson references multiple Projects. so i want to do /basepath/personxyz/projectname. What i tried was implementing IReadContainer with Person. This worked, but had a big drawback. I couldnt delete /basepath anymore, as single object would get deleted twice. | 16:03 |
andres | Which is the intended way to do something like that? | 16:04 |
philiKON | write an ITraversable adapter for your IPerson object | 16:08 |
philiKON | and have IPerson not extend IReadContainer | 16:08 |
*** ChrisW has joined #zope3-dev | 16:16 | |
*** srichter has quit IRC | 16:22 | |
*** bradb has quit IRC | 16:26 | |
ChrisW | ooh | 16:26 |
ChrisW | damn, was just hoping to catch stefan | 16:26 |
ChrisW | anyone here used file fields in testbrowser? | 16:26 |
* mgedmin thinks they might have been used in schooltool's functional tests | 16:28 | |
ChrisW | marius: you got an example handy? | 16:28 |
* ChrisW can't get 'em to work :-S | 16:28 | |
andres | philiKON, thanks. | 16:29 |
mgedmin | ignas, do you remember where we use file fields in schooltool's ftests? | 16:32 |
* ignas must grep | 16:32 | |
* mgedmin is about to walk out of the office, citing extreme hunger | 16:32 | |
ChrisW | hehe | 16:32 |
*** mgedmin has quit IRC | 16:32 | |
* ChrisW is already sated with big fat Thai lunch ;-) | 16:32 | |
* ChrisW notes the example zope.tesrbrowser's README.txt | 16:33 | |
ChrisW | but it didn't work in the real world :-( | 16:33 |
*** niemeyer has joined #zope3-dev | 16:36 | |
*** lifeless has quit IRC | 16:43 | |
*** _anguenot has joined #zope3-dev | 16:45 | |
ChrisW | ignas: any clue? | 16:46 |
*** drzoltron_ has quit IRC | 16:48 | |
*** bradb has joined #zope3-dev | 16:51 | |
ignas | i think we are not using it :/ | 16:53 |
ignas | the case is not functionally tested :/ and the project that works with file upload is not using testbrowser :/ | 16:54 |
*** SteveA has quit IRC | 16:54 | |
ChrisW | *sigh* | 16:54 |
ChrisW | so file upload in mechanize is likely geb0rken :-(* | 16:55 |
ignas | ChrisW, in what way are you using it ? | 16:57 |
ignas | and where is the readmi with a broken example | 16:58 |
ignas | ? | 16:58 |
ChrisW | the README.txt in zope.testbrowser | 16:58 |
ChrisW | yes, the tets passes there | 16:58 |
ignas | you should actually do this: | 16:58 |
ChrisW | but it doesn't test that if you actually set a value it'll get uploaded to the server ;-) | 16:59 |
* ChrisW waits... | 16:59 | |
ignas | ctrl.add_file(StringIO('File contents')) | 16:59 |
ChrisW | yeah, that's what zope.testbrowser.browser does behind the scenes | 16:59 |
ignas | optionally providinf content_type and filename | 16:59 |
ignas | as keyword arguments | 16:59 |
ignas | oh | 16:59 |
ChrisW | hmm | 17:00 |
ChrisW | I wonder if it's not the filename thing that's the problem... | 17:00 |
ChrisW | I believe our server spits out files without filenames... | 17:00 |
ignas | The value attribute of a FileControl is always None. Use add_file instead. | 17:00 |
ignas | the documentation | 17:00 |
ignas | :) | 17:00 |
ChrisW | yes, well, that's not how the functional test in README.txt does it | 17:01 |
ignas | did you try running that test ? | 17:02 |
ChrisW | I'm sure it's run nightly | 17:02 |
ChrisW | it's a doc test | 17:02 |
ChrisW | it'll pass, it's just that no server will use the uploaded file, since it doesn't have a filename ;-) | 17:02 |
ignas | if test is not failing but should fail - it is not being run :) | 17:02 |
ChrisW | no, it wil PASS | 17:02 |
ignas | oh | 17:02 |
ignas | i see | 17:02 |
ChrisW | it's just a USELESS test | 17:02 |
ChrisW | ;-) | 17:02 |
*** sashav has quit IRC | 17:03 | |
*** mgedmin has joined #zope3-dev | 17:03 | |
ChrisW | how do I run doc tests in current Zope 3 trunk? | 17:04 |
ignas | ChrisW, doctests are registered (added to suites) in some test_blah.py file | 17:04 |
ignas | find that file | 17:04 |
ignas | and run tests in it | 17:04 |
ChrisW | and how do I run that? | 17:06 |
ChrisW | contcretely, I want to fix README.txt, how do I run the doctests in it? | 17:06 |
philiKON | ChrisW, python test.py -s zope.testbrowser | 17:07 |
ChrisW | thanks, I'll give it a go | 17:07 |
* ChrisW is just busy updating his windows checkout | 17:08 | |
philiKON | test.py is the Zope 3 test runner | 17:08 |
ChrisW | what PYTHONPATH do I have to have set up for that to work? | 17:08 |
philiKON | ChrisW, for every doctest file, there needs to be a module exposing it as a doctestsuite... so you'll just have to grep for README.txt in tests/* | 17:08 |
philiKON | if you want to run just that one doctest | 17:08 |
philiKON | ChrisW, no pythonpath necessary, if you're in Zope3 | 17:08 |
* ChrisW bravely firess up a dos box | 17:09 | |
ChrisW | python2.4, right? | 17:09 |
philiKON | yep | 17:09 |
philiKON | ugh, get cygwin, mate | 17:09 |
ChrisW | wagh | 17:10 |
ignas | i think -s takes zope/testbrowser (might be teribly wrong though) | 17:10 |
ChrisW | why do I have to compile all of zope just to run the tests in a python-only package? | 17:11 |
philiKON | ignas, yes, *terribly* wrong :) | 17:11 |
philiKON | ignas, seriously, the new testrunner accepts a dottedname for -s | 17:12 |
ignas | i must svn up then | 17:12 |
philiKON | ignas, uh, how old is your checkout? ;) | 17:12 |
ignas | 1 month :D | 17:12 |
ChrisW | does Fred Drake or Tim still put up nightly windows binaries? | 17:14 |
*** zmi_junkie has joined #zope3-dev | 17:14 | |
philiKON | ChrisW, think so; at least C extensions haven't been changed for a while, so they should still be good | 17:16 |
philiKON | oh, and btw, get a real OS :) | 17:16 |
ChrisW | I'm trying | 17:17 |
ChrisW | stil lwaiting for a free weekend to get ubuntu on this box | 17:17 |
ChrisW | BUT | 17:17 |
ignas | why do you need a weekend ? | 17:17 |
ChrisW | bear in mind you cut out large potential groups of the zope userbase if you go windows only... | 17:17 |
ignas | it takes less than an hour :) | 17:17 |
ChrisW | I have a touch screen | 17:18 |
philiKON | ChrisW, you mean linux only? | 17:18 |
ChrisW | I NEED it to work | 17:18 |
ChrisW | sorry, yeah, linux only | 17:18 |
ChrisW | I doubt I would have got into zope at all had it not been for the windows support | 17:19 |
*** SteveA has joined #zope3-dev | 17:20 | |
ChrisW | couldn't have kept bashing away on my desktop box or home box when all the sysadmins were goign "zope - no, we don't know what that is, and you're not putting it on our servers" ;-) | 17:20 |
ChrisW | annnnnyway, that aside, can anyone remember where I can download the binaries from, and what I do with them in a fresh Zope 3 checkout? | 17:20 |
*** SteveA has quit IRC | 17:20 | |
*** einheit_ has joined #zope3-dev | 17:21 | |
*** einheit_ is now known as SteveA | 17:23 | |
*** hdima has quit IRC | 17:24 | |
ChrisW | IOError: [Errno 2] No such file or directory: 'C:\\LocalSVN\\Zope3\\zopeskel | 17:29 |
ChrisW | \\etc\\securitypolicy.zcml' | 17:29 |
ChrisW | hurm | 17:29 |
ChrisW | what am I doing wrong now? | 17:29 |
ignas | did you read the readme file ? | 17:31 |
ignas | is there a file in that folder ? | 17:31 |
ignas | oh, | 17:32 |
ignas | wrong file, sorry | 17:32 |
ChrisW | what readme? | 17:32 |
philiKON | ChrisW, python setup.py install_data --install-dir . | 17:32 |
*** zagy has quit IRC | 17:33 | |
ChrisW | cool, looks like they all passed | 17:34 |
ChrisW | now I can start fuzting ;-) | 17:34 |
philiKON | have fun :) | 17:34 |
philiKON | i'm going to bed | 17:34 |
philiKON | see y'all | 17:34 |
*** philiKON has quit IRC | 17:34 | |
*** zagy has joined #zope3-dev | 17:35 | |
*** mgedmin has quit IRC | 17:39 | |
*** drzoltron_ has joined #zope3-dev | 17:40 | |
*** tlotze has quit IRC | 17:43 | |
*** MrTopf has joined #zope3-dev | 17:46 | |
*** JoaoJoao has joined #zope3-dev | 17:59 | |
JoaoJoao | hello | 18:00 |
ChrisW | hi | 18:01 |
*** mgedmin has joined #zope3-dev | 18:01 | |
* ChrisW feels morally pure having given something back to Zope 3 at long last ;-) | 18:01 | |
ChrisW | mgedmin: I got the file thing figured | 18:01 |
ChrisW | see my recent checkin to the readme.txt | 18:01 |
*** xenru has joined #zope3-dev | 18:06 | |
*** bradb has quit IRC | 18:10 | |
mgedmin | good | 18:14 |
*** yota_ has joined #zope3-dev | 18:16 | |
drzoltron_ | jinty: ayt ? | 18:17 |
*** yota has quit IRC | 18:19 | |
*** yota_ is now known as yota | 18:19 | |
jinty | drzoltron: yeah | 18:20 |
drzoltron_ | jinty: hi, agroszer told me you worked a lot with sqlos, I am trying to get it to work with z3.1 but have not been very lucky ...:( | 18:21 |
jinty | yeah, i've done devel on sqlos. unlucky, howso? | 18:22 |
drzoltron_ | jinty: throws a lot of errors | 18:22 |
drzoltron_ | which branch is working for you ? | 18:23 |
*** ChrisW has left #zope3-dev | 18:23 | |
jinty | I actually use my jinty-Five branch | 18:23 |
jinty | but you should _really use the trunk | 18:23 |
jinty | _really_ | 18:23 |
drzoltron_ | jinty: ok, I'll give it another try | 18:23 |
jinty | why don't you show me an erorr message? | 18:24 |
drzoltron_ | will just a sec | 18:24 |
drzoltron_ | jinty: ImportError: Module mysqldbda.adapter has no global IMySQLZopeConnection in mysqldbda.adapter.IMySQLZopeConnection | 18:25 |
drzoltron_ | looks like my mysqlda is old | 18:26 |
jinty | yep, get the trunk one | 18:26 |
drzoltron_ | jinty: ok: File "/Users/bes/instances/absalon.nu/lib/python/sqlos/container/__init__.py", line 168, in __len__ | 18:31 |
drzoltron_ | i += factory.select().count() # optimal, does not get all objects | 18:31 |
drzoltron_ | looks like something is wrong with the factory | 18:31 |
jinty | whats the actual error? | 18:32 |
andres | What failure do you get? | 18:32 |
drzoltron_ | ah sorry: AttributeError: 'NoneType' object has no attribute 'select' | 18:33 |
jinty | I think you just hit one of the warts... | 18:33 |
andres | drzoltron_, but the tests work? | 18:34 |
drzoltron_ | haven't tried yet | 18:34 |
drzoltron_ | test_verify.py runs ok | 18:34 |
andres | jinty, if you think its a bug, do you have a clue, where it sits? | 18:35 |
drzoltron_ | the getFactory() returns NOne, hmmm | 18:36 |
andres | drzoltron_, can you show your code somewhere? | 18:36 |
drzoltron_ | sure | 18:37 |
drzoltron_ | one sec | 18:37 |
drzoltron_ | andres: http://pastebin.com/437224 do you need more ? | 18:39 |
jinty | which sqlobject version are you using? | 18:40 |
drzoltron_ | getFactory() gives me three strings: [u'absalon.ctr.AbsalonContentType', u'absalon.ctr.ContentType', u'BrowserAdd__absalon.ctr.ctr.AbsalonContentType'] | 18:41 |
andres | jinty, have you defined a Container for that? | 18:41 |
drzoltron_ | the first one returns None, the second <class 'absalon.ctr.ctr.AbsalonContentType'> | 18:41 |
*** sashav has joined #zope3-dev | 18:43 | |
jinty | andres: i'm not sure what you mean | 18:43 |
jinty | drzoltron_: firstly factory id's have to follow the form ${package}.${class} | 18:44 |
drzoltron_ | I have sqlobject 0.7.0 | 18:44 |
andres | arg, i wanted to asked drzoltron_ if he also created a class deriving from SQLobjectContainer | 18:44 |
jinty | thats a wart, but not the present problem | 18:44 |
drzoltron_ | andres: yes, I have a container | 18:44 |
drzoltron_ | class ICtr(ISQLObjectContainer): | 18:45 |
JoaoJoao | when will Z3 have a cool video? :P | 18:46 |
drzoltron_ | where do the factory id's come from in self.allowedFactories() | 18:46 |
drzoltron_ | because u'absalon.ctr.ContentType' is an old one I am not using anymore ... | 18:46 |
jinty | and the container implements an interface with a condition like: contains(IAbsolonContentType)? | 18:47 |
jinty | dzoltron_: getAllowedFactories is black voodoo to me... | 18:48 |
jinty | dzoltron_: allowedFactories is black voodoo to me... | 18:48 |
drzoltron_ | gege | 18:50 |
drzoltron_ | hehe even ;) | 18:50 |
drzoltron_ | jinty: __setitem__.precondition = ItemTypePrecondition( IAbsalonContentType ) | 18:50 |
andres | drzoltron_, could you perhaps also share your zcml etc? | 18:50 |
drzoltron_ | andres: sure | 18:50 |
drzoltron_ | andres. http://pastebin.com/437231 | 18:51 |
*** hazmat has joined #zope3-dev | 18:53 | |
*** ChanServ sets mode: +o hazmat | 18:53 | |
*** dobee has quit IRC | 18:54 | |
andres | drzoltron_, the only idea i have atm, is, that you try to alter the example in tiny steps till you find your error. | 18:55 |
jinty | drzoltron_: perhaps try removing <factory> from the <content> declaration | 18:55 |
*** natea_ has joined #zope3-dev | 18:56 | |
drzoltron_ | andres, jinty: ok, will give it a try | 18:58 |
jinty | have a look at the sqlos ftesting.zcml, and how SamplePerson is registered | 18:59 |
andres | drzoltron_, why do you register the container as a local utility? | 19:00 |
* jinty dreams of getting rid of <sqlos:factory> and just using <zope:factory> | 19:00 | |
*** natea has quit IRC | 19:01 | |
drzoltron_ | andres because I need it afterwards as a utility | 19:02 |
drzoltron_ | now I get this one: ('Could not adapt', <zope.app.rdb.ZopeConnection object at 0x403ccb0>, <InterfaceClass sqlos.interfaces.IZopeSQLConnection>) | 19:03 |
andres | Ok, that one i know. | 19:03 |
jinty | heh, andres: what about that patch you were talking about;;;)) | 19:04 |
andres | jinty, i need to get zope commiter bits first. | 19:04 |
andres | And i forgot to fill out the fax this week. | 19:04 |
andres | drzoltron_, uncomment this: | 19:04 |
andres | line 129-140 | 19:05 |
andres | in configure.zcml of sqlos | 19:05 |
andres | or apply those patches: | 19:05 |
andres | (would be good to get more coverage): | 19:05 |
andres | part 1: http://pastebin.com/437258 | 19:07 |
drzoltron_ | File "/Users/bes/instances/absalon.nu/lib/python/sqlos/adapter.py", line 91, in __init__ | 19:07 |
drzoltron_ | pgconnection.PsycoBinaryConverter) | 19:07 |
drzoltron_ | AttributeError: 'module' object has no attribute 'PsycoBinaryConverter' | 19:07 |
drzoltron_ | hehe | 19:07 |
drzoltron_ | glumpert | 19:08 |
andres | Part2: http://pastebin.com/437261 | 19:09 |
andres | But the problem will be equal. Wait a min. | 19:09 |
andres | is you sqlos updated? | 19:10 |
drzoltron_ | i use the trunc | 19:10 |
drzoltron_ | trunk even | 19:11 |
andres | drzoltron_, very strange. This funcion is in sqlobject. | 19:13 |
drzoltron_ | yeah, not in mine :( | 19:13 |
*** vlado has quit IRC | 19:13 | |
drzoltron_ | looks as if I have a quite old sqlobject here | 19:14 |
drzoltron_ | SQLObject.py | 19:14 |
drzoltron_ | Ian Bicking <ianb@colorstudy.com> 17 Oct 2002 | 19:14 |
andres | what are the last lines in your sqlobject/postgres/pgconnection? | 19:14 |
drzoltron_ | andres: # Converter for psycopg Binary type. | 19:17 |
drzoltron_ | def PsycoBinaryConverter(value, db): | 19:17 |
drzoltron_ | assert db == 'postgres' | 19:17 |
drzoltron_ | return str(value) | 19:17 |
drzoltron_ | looks much better | 19:17 |
*** jhauser_ has joined #zope3-dev | 19:17 | |
andres | Very strange. Why doesnt it find that? | 19:17 |
drzoltron_ | looks as if port installed some old shit | 19:18 |
drzoltron_ | new error: TypeError: __init__() got an unexpected keyword argument '_SO_fetch_no_create' | 19:18 |
drzoltron_ | ;) | 19:18 |
drzoltron_ | sqlobject/main.py", line 906, in get | 19:18 |
andres | How did you get rid of the former error? | 19:19 |
drzoltron_ | I deleted some sqlobjects and installed a brand new one ;) | 19:19 |
andres | Ok. | 19:19 |
andres | drzoltron_, traceback? | 19:20 |
drzoltron_ | andres: http://pastebin.com/437275 | 19:23 |
andres | jinty, btw, i think we should document somewhere, that we require a recent sqlobject, or? | 19:27 |
drzoltron_ | sqlobject 0.70 | 19:27 |
drzoltron_ | or 0.7rc1 ? | 19:27 |
andres | jinty, "Sqlos is known to work with sqlobject 0.7rc1 but may work with older versions" | 19:28 |
*** jhauser has quit IRC | 19:30 | |
jinty | andres: sure, feel free to make the readme more verbose | 19:31 |
jinty | btw, I just ran the tests against sqlobject 0.7.0 with no issues | 19:32 |
drzoltron_ | installed now sqlobject trunk, still the same error | 19:32 |
andres | drzoltron_, i will install 0.7.0 now. I still had rc1 | 19:32 |
jinty | so there is something really screwy going on. | 19:33 |
drzoltron_ | yes | 19:34 |
drzoltron_ | I think I'll try the example | 19:34 |
drzoltron_ | thanx for your help | 19:34 |
jinty | the only half suggestion I have is that you use the new sqlobject way of declaring columns | 19:34 |
jinty | so don't use _columns = [xxx], but template = StringCol(length=20) | 19:35 |
andres | I can also use 0.7 without problems. | 19:36 |
drzoltron_ | grr | 19:36 |
drzoltron_ | zope 3.1 or zope trunc | 19:36 |
andres | both i think. I cant try trunk here, as im on windows, and currently i have no visualstudio installed, but at home it worked (under linux) some days ago with trunk. | 19:38 |
drzoltron_ | ok | 19:39 |
andres | drzoltron_, have you changed you column spec? | 19:39 |
drzoltron_ | yes | 19:39 |
drzoltron_ | still same error | 19:39 |
andres | what are you doing (in code) when this error occurs? | 19:41 |
andres | If you create a container via zmi, can you "open" it without errors? | 19:44 |
drzoltron_ | andres: no it throws the error | 19:45 |
andres | Is the database table empty? | 19:46 |
drzoltron_ | no theres one record | 19:47 |
andres | Can you delete if for a test? | 19:47 |
drzoltron_ | sure | 19:48 |
JoaoJoao | hum Basecamp is really a cool website | 19:48 |
drzoltron_ | andres: back to this one: File "/Users/bes/instances/absalon.nu/lib/python/sqlos/container/__init__.py", line 105, in items | 19:49 |
drzoltron_ | for obj in factory.select(): | 19:49 |
drzoltron_ | AttributeError: 'NoneType' object has no attribute 'select' | 19:49 |
*** stub has quit IRC | 19:50 | |
andres | Sorry, but i dont see an other way, than starting from the example. | 19:50 |
andres | Propably its just a stupid error we both dont catch. | 19:50 |
andres | Please try the example first. (then change, the dbname, then the columns...) | 19:51 |
drzoltron_ | andres: yeah, I am trying the example | 19:51 |
*** bradb has joined #zope3-dev | 19:53 | |
*** drzoltron_ has quit IRC | 19:55 | |
*** drzoltron_ has joined #zope3-dev | 20:01 | |
*** suse-joe has joined #zope3-dev | 20:03 | |
drzoltron_ | trying the sqlos_test I can add a container but nothing appears in it and I cannot add persons to it, hmmm | 20:04 |
andres | If you create objects in the database, do they appear? | 20:04 |
drzoltron_ | nope | 20:05 |
drzoltron_ | i had this working with z 3.0 hmmmm | 20:05 |
drzoltron_ | funny: in the add portlet it says "SQL Object container" | 20:06 |
*** hazmat has quit IRC | 20:06 | |
andres | Could you watch the database log, after putting it into verbose mode? | 20:06 |
andres | drzoltron_, thats the false one. | 20:06 |
drzoltron_ | andres: i am, quite silent | 20:07 |
drzoltron_ | one sec | 20:07 |
andres | drzoltron_, add the container you created... | 20:07 |
drzoltron_ | ahhh | 20:07 |
drzoltron_ | was not properly added to site-packages | 20:08 |
andres | You have to add the "Person Container" | 20:08 |
drzoltron_ | yeah | 20:08 |
drzoltron_ | i just found out that the .zcml file had a .txt extension grrr | 20:09 |
drzoltron_ | persom container is working | 20:10 |
andres | Then alter it to suit you condition ;-) | 20:11 |
drzoltron_ | sure | 20:11 |
drzoltron_ | funny | 20:11 |
drzoltron_ | thanx for your help | 20:12 |
andres | God im tired... I will go home now. | 20:12 |
andres | Enough of work. | 20:12 |
drzoltron_ | me too :) | 20:13 |
andres | And i have to clean up my flat, as tomorow my gf will come... *g* | 20:13 |
drzoltron_ | hehe | 20:13 |
* drzoltron_ is constantly cleaning after his son | 20:13 | |
*** dobee has joined #zope3-dev | 20:15 | |
andres | drzoltron_, neither me nor my gf are really old enough for children... (20) | 20:15 |
andres | Anyway, a weekend nearly without work will be good. | 20:17 |
drzoltron_ | andres: sounds good | 20:17 |
drzoltron_ | i wasted half a day on this sqlos-crap :) | 20:18 |
drzoltron_ | so I will work in the weekend | 20:18 |
drzoltron_ | but first I will make some Topfenpalatschinken | 20:18 |
andres | drzoltron_, the first time i wanted to use sqlos, it didnt work with postgres at all, and i had to port it to 3.1 first ;-) | 20:18 |
drzoltron_ | hehe | 20:19 |
andres | i think it used ab one and a half day... so your half day is not that bad *g* | 20:19 |
drzoltron_ | worked greatly under 3.0 | 20:19 |
drzoltron_ | I even made some foreign keys at that time | 20:19 |
drzoltron_ | hehe | 20:19 |
drzoltron_ | have to run before the shop closes, thanx very much for your help, cheers | 20:19 |
andres | drzoltron_, here foreign keys and join are working without problem. | 20:20 |
*** mkerrin has quit IRC | 20:20 | |
*** andres has quit IRC | 20:30 | |
*** faassen has quit IRC | 20:49 | |
*** suse-joe has left #zope3-dev | 20:57 | |
*** dunny has joined #zope3-dev | 21:28 | |
*** deo has joined #zope3-dev | 21:34 | |
*** zagy has quit IRC | 21:44 | |
*** zagy has joined #zope3-dev | 21:45 | |
*** efge has quit IRC | 21:52 | |
*** mgedmin has quit IRC | 21:56 | |
*** srichter has joined #zope3-dev | 21:59 | |
*** MrTopf has quit IRC | 22:02 | |
*** ChanServ sets mode: +o srichter | 22:04 | |
*** agroszer has quit IRC | 22:09 | |
*** JoaoJoao has quit IRC | 22:11 | |
*** hazmat has joined #zope3-dev | 22:12 | |
*** ChanServ sets mode: +o hazmat | 22:12 | |
*** _anguenot has quit IRC | 22:19 | |
*** zmi_junkie has quit IRC | 22:23 | |
*** tarek_ has joined #zope3-dev | 22:38 | |
*** hazmat has quit IRC | 22:40 | |
*** natea_ has quit IRC | 22:45 | |
*** tarek has quit IRC | 22:51 | |
*** tarek_ has quit IRC | 22:55 | |
*** tarek has joined #zope3-dev | 22:56 | |
*** ignas has quit IRC | 22:56 | |
*** drzoltron_ has quit IRC | 23:19 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!