| *** sverbois has joined #grok | 04:07 | |
| *** sverbois has quit IRC | 04:26 | |
| *** d2m has joined #grok | 04:54 | |
| *** redir has quit IRC | 05:43 | |
| *** zagy has quit IRC | 05:51 | |
| *** zagy has joined #grok | 05:57 | |
| *** mhora has joined #grok | 06:16 | |
| *** sverbois has joined #grok | 06:17 | |
| *** mhora has quit IRC | 06:29 | |
| *** sunoano has joined #grok | 06:33 | |
| *** tisto has joined #grok | 06:35 | |
| *** zagy has quit IRC | 06:39 | |
| *** zagy has joined #grok | 06:39 | |
| *** zagy has quit IRC | 06:57 | |
| *** reinout has joined #grok | 06:58 | |
| *** zagy has joined #grok | 06:59 | |
| *** olavgg_ has joined #grok | 07:05 | |
| *** gary_poster has joined #grok | 07:10 | |
| *** jpcw has joined #grok | 07:12 | |
| *** mhora has joined #grok | 07:21 | |
| *** gary_poster has quit IRC | 07:23 | |
| *** goschtl has joined #grok | 07:31 | |
| *** sylvain has joined #grok | 07:37 | |
| *** gary_poster has joined #grok | 07:40 | |
| *** gary_poster has quit IRC | 07:55 | |
| *** valentim has joined #grok | 07:59 | |
| *** maurits has joined #grok | 08:15 | |
| *** jodc has joined #grok | 08:26 | |
| *** ignas has joined #grok | 08:28 | |
| *** trollfot has joined #grok | 08:45 | |
| *** lzdych has joined #grok | 09:01 | |
| *** jodc1 has joined #grok | 09:03 | |
| *** jodc has quit IRC | 09:03 | |
| *** bob2 has quit IRC | 09:05 | |
| *** mkerrin has joined #grok | 09:14 | |
| *** gary_poster has joined #grok | 09:16 | |
| *** sunoano has quit IRC | 09:20 | |
| *** garbas has joined #grok | 10:26 | |
| *** binseer has joined #grok | 10:32 | |
| *** pingviini has joined #grok | 10:37 | |
| *** fredvd has joined #grok | 10:45 | |
| *** lzdych has quit IRC | 10:50 | |
| rmt | What 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 |
|---|---|---|
| d2m | rmt: grokking works be executing the configure.zcml files configure.zcml? | 11:06 |
| rmt | I have it only in ., including . .. | 11:07 |
| d2m | in your project configure.zcml you likely have an <includeDependencies package="." /> directive | 11:07 |
| rmt | Ahah | 11:08 |
| rmt | Thanks | 11:08 |
| rmt | That's better - loads faster now too. :) | 11:09 |
| d2m | you could replace that by <include package=".." /> statements | 11:09 |
| rmt | Not necessary.. ../ only has non-grokkable dependencies. | 11:11 |
| *** binseer has quit IRC | 11:13 | |
| d2m | sorry, should read <include package="..." /> or <include package="packagename" /> | 11:13 |
| *** gary_poster has quit IRC | 11:14 | |
| rmt | :-) | 11:14 |
| rmt | Ok - now, any way to make paster server --reload only check the one directory? | 11:14 |
| rmt | The subprocess eats quite a lot of CPU | 11:14 |
| * trollfot doesn't like autoinclude | 11:15 | |
| rmt | I 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 |
| rmt | Other people's unused or buggy .py files become my problem. | 11:18 |
| d2m | rmt: how do you inject the altered file list into the paster process? | 11:20 |
| d2m | not sure if 'reload' is worth it, my grok instance needs 1 sec to restart | 11:21 |
| rmt | I'm just running a standard buildout in a virtualenv created with grokproject | 11:21 |
| rmt | Mine needs 3 (now) .. but it's on my laptop. | 11:22 |
| rmt | reload's just nice if you're hacking away.. but a simple ^C in a while loop works reasonably well too | 11:23 |
| rmt | I 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 |
| d2m | rmt: running bin/test is even faster | 11:29 |
| * trollfot nods in approval | 11:30 | |
| *** binseer has joined #grok | 11:30 | |
| rmt | d2m, Sure, if I'm not testing PDF generation and how something looks 1px to the left. :) | 11:31 |
| rmt | But still easier ways, yeah. | 11:31 |
| *** hexsprite has quit IRC | 11:32 | |
| *** sylvain has quit IRC | 11:41 | |
| *** binseer has quit IRC | 11:47 | |
| *** binseer has joined #grok | 11:53 | |
| *** binseer_ has joined #grok | 12:04 | |
| *** azazel has joined #grok | 12:11 | |
| azazel | hi all | 12:11 |
| trollfot | hi | 12:13 |
| *** binseer has quit IRC | 12:15 | |
| *** garbas has quit IRC | 12:17 | |
| *** binseer__ has joined #grok | 12:18 | |
| *** bob2 has joined #grok | 12:21 | |
| azazel | what's the best way to get the application ? | 12:25 |
| azazel | from another object? | 12:25 |
| *** binseer_ has quit IRC | 12:28 | |
| *** binseer_ has joined #grok | 12:29 | |
| d2m | azazel: i use grok.getSite() | 12:32 |
| *** garbas has joined #grok | 12:32 | |
| *** binseer__ has quit IRC | 12:34 | |
| *** sylvain has joined #grok | 12:35 | |
| azazel | d2m: thanks | 12:41 |
| sylvain | Hello people | 12:42 |
| d2m | hi sylvain | 12:43 |
| azazel | i'm writing some kind of photo repository/digital library in grok | 12:44 |
| *** reinout has quit IRC | 12:47 | |
| *** binseer__ has joined #grok | 12:48 | |
| *** binseer_ has quit IRC | 12:49 | |
| *** valentim_ has joined #grok | 12:53 | |
| *** faassen has joined #grok | 12:56 | |
| *** valentim has quit IRC | 13:11 | |
| *** gary_poster has joined #grok | 13:22 | |
| d2m | faassen: hi, got my mail re zope.publisher bugfix release? | 13:23 |
| *** gary_poster has joined #grok | 13:24 | |
| trollfot | d2m: I saw that a new version was release in the past days, does it fix any of your problems ? | 13:33 |
| d2m | if we want to move from 3.4.6 to 3.8 :) | 13:33 |
| d2m | no, no real help with the new release | 13:33 |
| trollfot | d2m: 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 try | 13:35 |
| d2m | i already created at 3.4.6.1 http://svn.zope.org/zope.publisher/tags/3.4.6.1/ | 13:36 |
| d2m | need the rights to push it to PyPI | 13:36 |
| trollfot | Just 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 copy | 13:38 |
| faassen | d2m: I don't know. I got a lot of mails recently with you involved. :) | 13:38 |
| d2m | :), got some spare time on the weekend | 13:38 |
| faassen | d2m: did you see Christian Theune's reponse? | 13:41 |
| faassen | d2m: I myself don't have time to really dig into this issue to evaluate what's going on, I'm afraid. | 13:41 |
| faassen | d2m: Christian mentions passing in 0 fixes things where None is passed. | 13:41 |
| d2m | yes, i used the fix jens klein proposed | 13:41 |
| faassen | d2m: oh, for some reason that isn't in my thread. | 13:42 |
| faassen | strange. never saw that post on zope-dev. | 13:42 |
| faassen | d2m: could you verify whether it was sent to zope-dev? | 13:42 |
| faassen | d2m: anyway, I'm fine with doing a release if it looks good. | 13:43 |
| faassen | d2m: i.e. 3.4.6.1 | 13:43 |
| d2m | the fix is here: https://bugs.launchpad.net/zope3/+bug/283089/comments/3 | 13:44 |
| *** sverbois has quit IRC | 13:44 | |
| d2m | it just replaces readlines() with readline() | 13:44 |
| faassen | d2m: so could you bring that to the attention of the thread on zope-dev? | 13:44 |
| d2m | ok, will do | 13:44 |
| faassen | d2m: in the mean time I'll give you access to zope.publisher. | 13:45 |
| faassen | d2m: you can now release zope.publisher on pypi. | 13:45 |
| faassen | d2m: 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 |
| faassen | d2m: and keep an issue open for that too. | 13:45 |
| d2m | ok | 13:46 |
| *** garbas has quit IRC | 13:51 | |
| faassen | d2m: oh, also see stephan's comment. I think you should just release a zope.publisher 3.4.7, not a 3.4.6.1 | 13:53 |
| faassen | this after all is a bugfix release. | 13:53 |
| faassen | also 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 |
| faassen | d2m: 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 |
| d2m | ok | 13:56 |
| faassen | d2m: thanks. :) | 13:57 |
| *** mhora has quit IRC | 14:00 | |
| *** gary_poster has quit IRC | 14:04 | |
| *** sancho_0 has joined #grok | 14:15 | |
| *** redir has joined #grok | 14:33 | |
| *** thibaud has joined #grok | 14:39 | |
| *** goschtl has quit IRC | 14:40 | |
| *** gary_poster has joined #grok | 14:47 | |
| *** __gotcha has joined #grok | 14:48 | |
| *** garbas has joined #grok | 15:20 | |
| thibaud | Does 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 error | 15:35 |
| thibaud | File "/Users/thibaud/.buildout/eggs/ZODB3-3.8.1-py2.5-macosx-10.5-i386.egg/ZODB/serialize.py", line 415, in _dump | 15:35 |
| thibaud | self._p.dump(classmeta) | 15:35 |
| thibaud | TypeError: expected string or Unicode object, NoneType found | 15:35 |
| thibaud | Code I use to store the file is simply self.context[repo][name] = file | 15:36 |
| *** fredvd has quit IRC | 15:37 | |
| *** sylvain has quit IRC | 15:47 | |
| d2m | thibaud: what is 'file' in your code? | 15:51 |
| *** __gotcha_ has joined #grok | 15:54 | |
| thibaud | d2m: 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 |
| d2m | thibaud: ok, use self.context[repo][name] = file.read() then | 15:58 |
| *** mkerrin has quit IRC | 15:58 | |
| thibaud | Thanks a lot d2m, that worked. | 16:00 |
| *** __gotcha has quit IRC | 16:00 | |
| d2m | but i think you won't be able to access the data later | 16:00 |
| thibaud | Working on that now. Should be able to by defining a traverse() function right? | 16:01 |
| thibaud | in the container? | 16:01 |
| d2m | what is the type of object at self.context[repo][name] after you did the upload? | 16:01 |
| thibaud | I 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 attribute | 16:02 |
| thibaud | And I'll try to return that attribute in traverse | 16:02 |
| d2m | you 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 container | 16:02 |
| d2m | ah, ok | 16:03 |
| *** gary_poster has quit IRC | 16:03 | |
| thibaud | I may try it that way, I dunno. I don't have traverse quite down yet. | 16:04 |
| thibaud | Thanks a lot for the help d2m. | 16:04 |
| d2m | yw | 16:04 |
| *** gary_poster has joined #grok | 16:12 | |
| *** garbas has quit IRC | 16:13 | |
| *** binseer__ has quit IRC | 16:16 | |
| *** gary_poster_ has joined #grok | 16:19 | |
| *** gary_poster_ has quit IRC | 16:27 | |
| *** ignas has quit IRC | 16:34 | |
| *** trollfot has quit IRC | 16:35 | |
| *** gary_poster has quit IRC | 16:37 | |
| *** valentim_ has quit IRC | 16:38 | |
| *** maurits has quit IRC | 16:38 | |
| *** sunoano has joined #grok | 16:39 | |
| rmt | Hmm - what's the proper way to handle database connections in grok, when SQLAlchemy is too buggy? | 16:48 |
| rmt | And you want to use the driver directly. | 16:48 |
| azazel | sqlalchemy too bugged? | 16:49 |
| rmt | Issues with mssql and encodings.. comes out fine from pymssql, and then sqlalchemy fucks it up.. despite having all encoding variables set correctly. | 16:51 |
| rmt | Excuse the language, kids. | 16:51 |
| rmt | And 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 |
| azazel | ah, never used it with mssql | 16:52 |
| *** garbas has joined #grok | 16:57 | |
| *** jodc1 has quit IRC | 17:03 | |
| *** sverbois has joined #grok | 17:21 | |
| *** sverbois_ has joined #grok | 17:32 | |
| *** __gotcha_ has quit IRC | 17:33 | |
| *** sverbois has quit IRC | 17:34 | |
| *** sverbois_ has quit IRC | 17:55 | |
| *** encolpe has joined #grok | 17:57 | |
| *** garbas has quit IRC | 18:15 | |
| *** encolpe_ has joined #grok | 18:16 | |
| *** encolpe has quit IRC | 18:17 | |
| azazel | what can be used to produce batches for catalog searches output? | 18:19 |
| *** faassen has quit IRC | 18:40 | |
| *** garbas has joined #grok | 18:48 | |
| *** sunoano has quit IRC | 19:49 | |
| *** d2m has left #grok | 20:10 | |
| *** maurits has joined #grok | 20:34 | |
| *** pumazi has quit IRC | 20:38 | |
| *** fredvd has joined #grok | 20:38 | |
| *** tisto has quit IRC | 20:56 | |
| *** sancho_0 has quit IRC | 21:00 | |
| *** rmt_ has joined #grok | 21:01 | |
| *** rmt has quit IRC | 21:14 | |
| *** maurits has quit IRC | 21:17 | |
| *** kevin7kal has joined #grok | 21:39 | |
| *** encolpe_ has quit IRC | 22:34 | |
| *** kevin7kal has quit IRC | 22:42 | |
| *** rmt_ has quit IRC | 23:04 | |
| *** fredvd has quit IRC | 23:15 | |
| *** thibaud has quit IRC | 23:17 | |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!