Monday, 2009-05-25

*** sverbois has joined #grok04:07
*** sverbois has quit IRC04:26
*** d2m has joined #grok04:54
*** redir has quit IRC05:43
*** zagy has quit IRC05:51
*** zagy has joined #grok05:57
*** mhora has joined #grok06:16
*** sverbois has joined #grok06:17
*** mhora has quit IRC06:29
*** sunoano has joined #grok06:33
*** tisto has joined #grok06:35
*** zagy has quit IRC06:39
*** zagy has joined #grok06:39
*** zagy has quit IRC06:57
*** reinout has joined #grok06:58
*** zagy has joined #grok06:59
*** olavgg_ has joined #grok07:05
*** gary_poster has joined #grok07:10
*** jpcw has joined #grok07:12
*** mhora has joined #grok07:21
*** gary_poster has quit IRC07:23
*** goschtl has joined #grok07:31
*** sylvain has joined #grok07:37
*** gary_poster has joined #grok07:40
*** gary_poster has quit IRC07:55
*** valentim has joined #grok07:59
*** maurits has joined #grok08:15
*** jodc has joined #grok08:26
*** ignas has joined #grok08:28
*** trollfot has joined #grok08:45
*** lzdych has joined #grok09:01
*** jodc1 has joined #grok09:03
*** jodc has quit IRC09:03
*** bob2 has quit IRC09:05
*** mkerrin has joined #grok09:14
*** gary_poster has joined #grok09:16
*** sunoano has quit IRC09:20
*** garbas has joined #grok10:26
*** binseer has joined #grok10:32
*** pingviini has joined #grok10:37
*** fredvd has joined #grok10:45
*** lzdych has quit IRC10:50
rmtWhat are grok's rules for grokking packages?  I have one dependency library that's grokked, when I don't want it to be.11:03
d2mrmt: grokking works be executing the configure.zcml files configure.zcml?11:06
rmtI have it only in ., including . ..11:07
d2min your project configure.zcml you likely have an <includeDependencies package="." /> directive11:07
rmtAhah11:08
rmtThanks11:08
rmtThat's better - loads faster now too. :)11:09
d2myou could replace that by <include package=".." /> statements11:09
rmtNot necessary.. ../ only has non-grokkable dependencies.11:11
*** binseer has quit IRC11:13
d2msorry, should read <include package="..." /> or <include package="packagename" />11:13
*** gary_poster has quit IRC11:14
rmt:-)11:14
rmtOk - now, any way to make paster server --reload only check the one directory?11:14
rmtThe subprocess eats quite a lot of CPU11:14
* trollfot doesn't like autoinclude11:15
rmtI could imagine it grokking already loaded modules with the dependencies, but loading each .py in there and then grokking it only causes headaches..11:17
rmtOther people's unused or buggy .py files become my problem.11:18
d2mrmt: how do you inject the altered file list into the paster process?11:20
d2mnot sure if 'reload' is worth it, my grok instance needs 1 sec to restart11:21
rmtI'm just running a standard buildout in a virtualenv created with grokproject11:21
rmtMine needs 3 (now) .. but it's on my laptop.11:22
rmtreload's just nice if you're hacking away.. but a simple ^C in a while loop works reasonably well too11:23
rmtI must say, that developing apps with Grok is a lot nicer than developing apps with Plone.  Something about waiting 40 seconds for a restart vs waiting 3. ;)11:25
d2mrmt: running bin/test is even faster11:29
* trollfot nods in approval11:30
*** binseer has joined #grok11:30
rmtd2m, Sure, if I'm not testing PDF generation and how something looks 1px to the left. :)11:31
rmtBut still easier ways, yeah.11:31
*** hexsprite has quit IRC11:32
*** sylvain has quit IRC11:41
*** binseer has quit IRC11:47
*** binseer has joined #grok11:53
*** binseer_ has joined #grok12:04
*** azazel has joined #grok12:11
azazelhi all12:11
trollfothi12:13
*** binseer has quit IRC12:15
*** garbas has quit IRC12:17
*** binseer__ has joined #grok12:18
*** bob2 has joined #grok12:21
azazelwhat's the best way to get the application ?12:25
azazelfrom another object?12:25
*** binseer_ has quit IRC12:28
*** binseer_ has joined #grok12:29
d2mazazel: i use grok.getSite()12:32
*** garbas has joined #grok12:32
*** binseer__ has quit IRC12:34
*** sylvain has joined #grok12:35
azazeld2m: thanks12:41
sylvainHello people12:42
d2mhi sylvain12:43
azazeli'm writing some kind of photo repository/digital library in grok12:44
*** reinout has quit IRC12:47
*** binseer__ has joined #grok12:48
*** binseer_ has quit IRC12:49
*** valentim_ has joined #grok12:53
*** faassen has joined #grok12:56
*** valentim has quit IRC13:11
*** gary_poster has joined #grok13:22
d2mfaassen: hi, got my mail re zope.publisher bugfix release?13:23
*** gary_poster has joined #grok13:24
trollfotd2m: I saw that a new version was release in the past days, does it fix any of your problems ?13:33
d2mif we want to move from 3.4.6 to 3.8 :)13:33
d2mno, no real help with the new release13:33
trollfotd2m: Just thinking of backporting a fix, that is all. zope.publisher is very critical, I f***ed my app instance by moving to 3.5 to try13:35
d2mi already created at 3.4.6.1 http://svn.zope.org/zope.publisher/tags/3.4.6.1/13:36
d2mneed the rights to push it to PyPI13:36
trollfotJust asking => anyone worked on copying blob files with grok ? with the old versions used, no way to use correctly zope.copy. It needs a newer publisher. I have problems on recursive copy13:38
faassend2m: I don't know. I got a lot of mails recently with you involved. :)13:38
d2m:), got some spare time on the weekend13:38
faassend2m: did you see Christian Theune's reponse?13:41
faassend2m: I myself don't have time to really dig into this issue to evaluate what's going on, I'm afraid.13:41
faassend2m: Christian mentions passing in 0 fixes things where None is passed.13:41
d2myes, i used the fix jens klein proposed13:41
faassend2m: oh, for some reason that isn't in my thread.13:42
faassenstrange. never saw that post on zope-dev.13:42
faassend2m: could you verify whether it was sent to zope-dev?13:42
faassend2m: anyway, I'm fine with doing a release if it looks good.13:43
faassend2m: i.e. 3.4.6.113:43
d2mthe fix is here: https://bugs.launchpad.net/zope3/+bug/283089/comments/313:44
*** sverbois has quit IRC13:44
d2mit just replaces readlines() with readline()13:44
faassend2m: so could you bring that to the attention of the thread on zope-dev?13:44
d2mok, will do13:44
faassend2m: in the mean time I'll give you access to zope.publisher.13:45
faassend2m: you can now release zope.publisher on pypi.13:45
faassend2m: I think it's all right to release a 3.4.6.1 for now, but do continue the thread to see what should be done in the trunk.13:45
faassend2m: and keep an issue open for that too.13:45
d2mok13:46
*** garbas has quit IRC13:51
faassend2m: oh, also see stephan's comment. I think you should just release a zope.publisher 3.4.7, not a 3.4.6.113:53
faassenthis after all is a bugfix release.13:53
faassenalso if you need a *branch* don't create it in 'tags' (you seem to imply such in the checkin comment). if you want a maintenance branch of 3.4, make a copy of 3.4.6 if there is no 3.4maintenance branch yet.13:54
faassend2m: don't do updates in the tag directly, always do it in 'branches', *except* the one dev marker removal during the release process.13:54
d2mok13:56
faassend2m: thanks. :)13:57
*** mhora has quit IRC14:00
*** gary_poster has quit IRC14:04
*** sancho_0 has joined #grok14:15
*** redir has joined #grok14:33
*** thibaud has joined #grok14:39
*** goschtl has quit IRC14:40
*** gary_poster has joined #grok14:47
*** __gotcha has joined #grok14:48
*** garbas has joined #grok15:20
thibaudDoes anything special need to happen in ZODB to store a byte object? I'm trying to save a file uploaded by browser and it works fine when I go through grok.AddForm but when I try to do it via my own view I get this error15:35
thibaud  File "/Users/thibaud/.buildout/eggs/ZODB3-3.8.1-py2.5-macosx-10.5-i386.egg/ZODB/serialize.py", line 415, in _dump15:35
thibaud    self._p.dump(classmeta)15:35
thibaudTypeError: expected string or Unicode object, NoneType found15:35
thibaudCode I use to store the file is simply self.context[repo][name] = file15:36
*** fredvd has quit IRC15:37
*** sylvain has quit IRC15:47
d2mthibaud: what is 'file' in your code?15:51
*** __gotcha_ has joined #grok15:54
thibaudd2m: just the file passed from the form. It's a FileUpload object. I get it from the update() in the view: def update(self,submit=None,file=None,name=None):15:57
d2mthibaud: ok, use self.context[repo][name] = file.read() then15:58
*** mkerrin has quit IRC15:58
thibaudThanks a lot d2m, that worked.16:00
*** __gotcha has quit IRC16:00
d2mbut i think you won't be able to access the data later16:00
thibaudWorking on that now. Should be able to by defining a traverse() function right?16:01
thibaudin the container?16:01
d2mwhat is the type of object at self.context[repo][name] after you did the upload?16:01
thibaudI was trying with both the raw FileUpload initially, now it's part of just a generic 'File' class that is a grok.Model, with a content attribute16:02
thibaudAnd I'll try to return that attribute in traverse16:02
d2myou should create a grok.Model to hold the upload data in a property, save the file data into it and add the model to the container16:02
d2mah, ok16:03
*** gary_poster has quit IRC16:03
thibaudI may try it that way, I dunno. I don't have traverse quite down yet.16:04
thibaudThanks a lot for the help d2m.16:04
d2myw16:04
*** gary_poster has joined #grok16:12
*** garbas has quit IRC16:13
*** binseer__ has quit IRC16:16
*** gary_poster_ has joined #grok16:19
*** gary_poster_ has quit IRC16:27
*** ignas has quit IRC16:34
*** trollfot has quit IRC16:35
*** gary_poster has quit IRC16:37
*** valentim_ has quit IRC16:38
*** maurits has quit IRC16:38
*** sunoano has joined #grok16:39
rmtHmm - what's the proper way to handle database connections in grok, when SQLAlchemy is too buggy?16:48
rmtAnd you want to use the driver directly.16:48
azazelsqlalchemy too bugged?16:49
rmtIssues with mssql and encodings.. comes out fine from pymssql, and then sqlalchemy fucks it up.. despite having all encoding variables set correctly.16:51
rmtExcuse the language, kids.16:51
rmtAnd since I don't really need SQLAlchemy anyway, since I'm doing lots of calls to stored procedures (legacy crap), it would be nice to eliminate it.16:51
azazelah, never used it with mssql16:52
*** garbas has joined #grok16:57
*** jodc1 has quit IRC17:03
*** sverbois has joined #grok17:21
*** sverbois_ has joined #grok17:32
*** __gotcha_ has quit IRC17:33
*** sverbois has quit IRC17:34
*** sverbois_ has quit IRC17:55
*** encolpe has joined #grok17:57
*** garbas has quit IRC18:15
*** encolpe_ has joined #grok18:16
*** encolpe has quit IRC18:17
azazelwhat can be used to produce batches for catalog searches output?18:19
*** faassen has quit IRC18:40
*** garbas has joined #grok18:48
*** sunoano has quit IRC19:49
*** d2m has left #grok20:10
*** maurits has joined #grok20:34
*** pumazi has quit IRC20:38
*** fredvd has joined #grok20:38
*** tisto has quit IRC20:56
*** sancho_0 has quit IRC21:00
*** rmt_ has joined #grok21:01
*** rmt has quit IRC21:14
*** maurits has quit IRC21:17
*** kevin7kal has joined #grok21:39
*** encolpe_ has quit IRC22:34
*** kevin7kal has quit IRC22:42
*** rmt_ has quit IRC23:04
*** fredvd has quit IRC23:15
*** thibaud has quit IRC23:17

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!