IRC log of #zope3-dev for Saturday, 2006-10-21

*** RaFromBRC has quit IRC00:00
pelle_i had liked to check out the lovely flvplayer i have done a svn check out from and run the following command from the check out dir: /Users/pelle/Zope-Sandbox-243/bin/python install --home /Users/pelle/Zope-3.2.1/sites/instance1  ---- but i get an error in lovely.flvplayer setup command: Distribution contains no modules or packages for namespace package 'z3' ---- any hints / suggestions for solutions thanks in00:02
*** reco has joined #zope3-dev00:08
*** ktwilight has quit IRC00:10
*** ktwilight has joined #zope3-dev00:11
timteWhat calls AddFormBase.handle_add(self, action, data) ?00:20
philiKONwhy don't you do a pdb set trace and find out? ;)00:21
philiKONhandle_add isprobably an action00:22
philiKONthat means it'll be called when the corresponding button is pressed00:22
philiKONformlib dispatches button calls to actions00:22
timteah, I should be able to see the call stack, right?00:25
timtegood idea00:25
*** Londo_ has quit IRC00:26
timteI looked up the action class, but it didn't make much sense to me  :)00:27
*** dobee has quit IRC00:31
*** timte has quit IRC00:31
*** dobee has joined #zope3-dev00:32
*** ofer has joined #zope3-dev00:35
*** jinty has quit IRC00:51
*** dunny has quit IRC00:55
*** ofer has quit IRC01:11
*** tarek has quit IRC01:12
*** tarek has joined #zope3-dev01:13
*** pelle_ has quit IRC01:17
*** J1m has quit IRC01:19
*** tonico is now known as tonico|away01:35
*** jinty has joined #zope3-dev02:05
*** jinty has quit IRC02:29
*** alecm has quit IRC02:50
*** tiredbones__ has quit IRC03:01
*** povbot has joined #zope3-dev03:13
*** yutakashino_ has joined #zope3-dev03:18
*** povbot` has quit IRC03:21
*** yutakashino has quit IRC03:26
*** ksmith99 has left #zope3-dev03:29
*** yota has quit IRC03:43
*** alecm has joined #zope3-dev03:45
*** rocky has quit IRC03:47
*** yutakashino__ has joined #zope3-dev03:56
*** yutakashino__ is now known as yutakashino03:56
*** Simeoni has joined #zope3-dev04:02
Simeoniwhere could I find help on testing how zope3 works?04:03
*** yutakashino_ has quit IRC04:05
*** factor has joined #zope3-dev04:07
*** RaFromBRC has quit IRC05:03
*** reco has quit IRC05:25
*** alecm has quit IRC05:34
*** alecm has joined #zope3-dev05:36
*** alecm has quit IRC05:41
*** dunny has joined #zope3-dev06:06
*** dobee has quit IRC06:13
*** baijum has joined #zope3-dev06:19
*** projekt01 has left #zope3-dev06:21
*** niemeyer has quit IRC06:31
*** dobee has joined #zope3-dev07:18
*** yutakashino has quit IRC07:18
*** dobee has quit IRC07:35
*** zagy_ has quit IRC08:12
*** baijum has quit IRC08:12
*** febb has quit IRC08:12
*** srichter has quit IRC08:12
*** ktwilight has quit IRC08:12
*** dunny has quit IRC08:12
*** Simeoni has quit IRC08:12
*** natea_ has quit IRC08:12
*** d2m has quit IRC08:12
*** nouri has quit IRC08:12
*** SmokeyD has quit IRC08:12
*** dokai has quit IRC08:12
*** Aiste has quit IRC08:12
*** philiKON has quit IRC08:12
*** SteveA has quit IRC08:12
*** batlogg has quit IRC08:12
*** andrew_m has quit IRC08:12
*** BjornT has quit IRC08:12
*** jkakar has quit IRC08:12
*** srichter has joined #zope3-dev08:14
*** baijum has joined #zope3-dev08:14
*** dunny has joined #zope3-dev08:14
*** Simeoni has joined #zope3-dev08:14
*** Aiste has joined #zope3-dev08:14
*** ktwilight has joined #zope3-dev08:14
*** batlogg has joined #zope3-dev08:14
*** zagy_ has joined #zope3-dev08:14
*** natea_ has joined #zope3-dev08:14
*** d2m has joined #zope3-dev08:14
*** BjornT has joined #zope3-dev08:14
*** philiKON has joined #zope3-dev08:14
*** febb has joined #zope3-dev08:14
*** SmokeyD has joined #zope3-dev08:14
*** dokai has joined #zope3-dev08:14
*** andrew_m has joined #zope3-dev08:14
*** jkakar has joined #zope3-dev08:14
*** nouri has joined #zope3-dev08:14
*** SteveA has joined #zope3-dev08:14
*** sets mode: +o srichter08:14
*** oggers has quit IRC08:37
*** oggers has joined #zope3-dev08:38
*** tgkuo has joined #zope3-dev09:32
*** timte has joined #zope3-dev09:51
*** zagy_ has quit IRC10:22
*** tgkuo has quit IRC10:22
*** srichter has quit IRC10:22
*** febb has quit IRC10:22
*** baijum has quit IRC10:22
*** ktwilight has quit IRC10:22
*** d2m has quit IRC10:22
*** Simeoni has quit IRC10:22
*** dunny has quit IRC10:22
*** natea_ has quit IRC10:22
*** nouri has quit IRC10:22
*** SmokeyD has quit IRC10:22
*** dokai has quit IRC10:22
*** Aiste has quit IRC10:22
*** SteveA has quit IRC10:22
*** philiKON has quit IRC10:22
*** batlogg has quit IRC10:22
*** andrew_m has quit IRC10:22
*** BjornT has quit IRC10:22
*** jkakar has quit IRC10:22
*** srichter has joined #zope3-dev10:25
*** tgkuo has joined #zope3-dev10:25
*** baijum has joined #zope3-dev10:25
*** dunny has joined #zope3-dev10:25
*** Simeoni has joined #zope3-dev10:25
*** Aiste has joined #zope3-dev10:25
*** ktwilight has joined #zope3-dev10:25
*** batlogg has joined #zope3-dev10:25
*** zagy_ has joined #zope3-dev10:25
*** natea_ has joined #zope3-dev10:25
*** d2m has joined #zope3-dev10:25
*** BjornT has joined #zope3-dev10:25
*** philiKON has joined #zope3-dev10:25
*** febb has joined #zope3-dev10:25
*** SmokeyD has joined #zope3-dev10:25
*** dokai has joined #zope3-dev10:25
*** andrew_m has joined #zope3-dev10:25
*** jkakar has joined #zope3-dev10:25
*** nouri has joined #zope3-dev10:25
*** SteveA has joined #zope3-dev10:25
*** sets mode: +o srichter10:25
*** pelle_ has joined #zope3-dev10:27
timteDoes all of zope3 work with offset-aware datetime objects?10:29
*** HakTom has joined #zope3-dev10:53
*** romanofski has joined #zope3-dev11:22
timteHow do I add security declarations to my folders?11:24
timteI get ForbiddenAttribute: ('add', < object ...>)11:24
*** jinty has joined #zope3-dev11:28
*** SmokeyD has quit IRC11:28
*** flox_ has joined #zope3-dev11:30
timtehmm, folders should already have security declarations11:31
*** flox_ is now known as flox11:31
*** Aiste has quit IRC11:32
* timte is puzzled11:35
*** romanofs1i has joined #zope3-dev11:39
*** SmokeyD has joined #zope3-dev11:43
*** oggers has quit IRC11:48
*** romanofski has quit IRC11:52
timte<browser:page for="" name="addEvent" class=".eventforms.EventAddForm" permission="zope.ManageContent" />11:56
*** regebro has joined #zope3-dev11:57
regebroHey all!11:57
regebroA small question on contentproviders:11:57
regebroThe provider:expression is "single phase", right?11:58
timteI get a form when going to /addEvent, but I get a ForbittenAttribute 'add' when submitting the form. What do I need more to be able to add objects to the site?11:58
regebroIs support for two-phase providers in ZPT today?11:59
regebroMaybe srichter knows. ;)12:09
* timte never heard of one-phase and two-phase providers :)12:12
regebrotimte: A content provider has two methods: update and render.12:15
regebroIn theory, all contentproviders update method should be called first, and then all the render methods.12:15
regebroThis to allow providers to be interdependent.12:16
regebroThat's two-phase.12:16
timteok, got it12:16
regebroBut if you do tal:replace="structure provider:blablabla", each providers update and render will be called directly.12:16
regebroI don't know if there is any two-phase support today. But I think it would be possible to make two-phase support if it was a tal:provider expression instead. I think. :)12:17
timteyou want all privders' update method to be called first and then render?12:17
regebroWell, yeah. This is all For My Information, I don't actually need it.12:18
timtethe heavy developers didn't wake up yet or perhaps they take the weekend off sometimes  :)12:19
regebroCould be. :)12:20
timteluckily we have mailing lists12:20
timteam about to send one question myself12:20
SimeoniI'm new to zope and I'm trying to test how zope 3 works... I'm reading the online book for zope3 and trying to learn use the webgui. I can create the folder ok but then when I try to create the ZPT page it just gives "Asystem error occured in the browser12:21
regebroI'm too impatient. :)12:21
timteSimeoni: what do the terminal or logs say?12:22
Simeoni1  <html>12:23
Simeoni2    <body>12:23
Simeoni3      <h4>Folder Title</h4>12:23
Simeoni4      <br/>12:23
Simeoni5      <h1 tal:content="context/zope:title">title here</h1>12:23
Simeoni6    </body>12:23
Simeoni7  </html>12:23
Simeoni2006-10-21T12:21:21 ERROR SiteError http://localhost:808012:24
SimeoniTraceback (most recent call last):12:24
Simeoni  File "C:\Python24\Lib\site-packages\zope\publisher\", line 126, in p12:24
Simeoni    request.processInputs()12:24
Simeoni  File "C:\Python24\Lib\site-packages\zope\publisher\", line 263, in p12:24
Simeoni    fs = FieldStorage(fp=fp, environ=self._environ, keep_blank_values=1)12:24
Simeoni  File "C:\Python24\lib\", line 530, in __init__12:24
Simeoni    self.read_multi(environ, keep_blank_values, strict_parsing)12:24
Simeoni  File "C:\Python24\lib\", line 650, in read_multi12:24
Simeoni    environ, keep_blank_values, strict_parsing)12:24
Simeoni  File "C:\Python24\lib\", line 532, in __init__12:24
Simeoni    self.read_single()12:24
Simeoni  File "C:\Python24\lib\", line 665, in read_single12:24
Simeoni    self.read_lines()12:24
Simeoni  File "C:\Python24\lib\", line 687, in read_lines12:24
Simeoni    self.read_lines_to_outerboundary()12:24
Simeoni  File "C:\Python24\lib\", line 715, in read_lines_to_outerboundary12:24
Simeoni    line = self.fp.readline(1<<16)12:24
SimeoniTypeError: readline() takes exactly 1 argument (2 given)12:24
timteI think I've seen that error before12:25
timteWhat version of zope and python are you using?12:25
Simeonipython 2.4.4 and zope 3.3.012:26
* timte has no clue12:31
timtesomeone else seems to have had the same problem though12:31
regebroSimeoni: Itäs better to paste error messages into a pastebin.12:31
regebropaste code examples into or
regebroI think that's a known bug and has been fixed in trunk.12:32
regebroThe line "line = self.fp.readline(1<<16)" should be "line = self.fp.readline()"12:32
regebroSimeoni: So you can fix it yourself if you want to. :)12:32
timteit works for me though and I have an untouched zope12:33
regebrotimte:  But you have maybe Python 2.4.3?12:36
Simeoniso later version of python should help12:39
*** flox has quit IRC12:53
*** flox_ has joined #zope3-dev12:53
*** flox_ is now known as flox12:54
regebroSimeoni: Uh, no, earlier. :) 2.4.3 work 2.4.4 not.13:00
regebroOr you can change the line that gives you the error.13:00
Simeoniyeah yeah, earlier13:01
*** zagy_ has quit IRC13:03
*** zagy has joined #zope3-dev13:06
*** tgkuo has left #zope3-dev13:08
*** zagy has quit IRC13:15
*** dunny has quit IRC13:20
*** pelle_ has quit IRC13:30
Simeoniok, now got it installed and it works perfectly with 2.4.313:37
*** Aiste has joined #zope3-dev13:52
*** yota has joined #zope3-dev14:09
* baijum is looking at zope.configuration source, zope.i18n is given14:30
baijumas a dependancy in DEPENDENCIES.cfg, but it is not imported14:30
baijumin this package.14:30
baijumso, can I remove that dependancy ?14:30
baijumI mean, can I remove 'zope.i18n' line from  DEPENDENCIES.cfg file14:31
*** benji has joined #zope3-dev14:31
*** projekt01 has joined #zope3-dev14:39
*** dobee has joined #zope3-dev14:40
timteHow come IFolder doesn't have an add method?15:07
*** rocky has joined #zope3-dev15:21
*** rocky has quit IRC15:23
*** rocky has joined #zope3-dev15:26
*** ignas has joined #zope3-dev16:04
*** J1m has joined #zope3-dev16:16
J1mDoes anyone know the status of the Zope3 wiki?16:17
*** batlogg_ has joined #zope3-dev16:18
* benji wonders if "pinin' for the fjords" is applicable16:19
*** batlogg has quit IRC16:21
benjiJ1m: people seem to discuss it on occasion on zope3-dev16:21
J1mYou mean the mailing list?16:21
J1mI just want to post some proposals and need to know where. :)16:22
benjiBaiju has recently made some additions to the FAQ section16:22
benjino idea16:22
J1many idea what the ubject might be? :)16:24
J1mno hits for wiki16:24
*** pelle_ has joined #zope3-dev16:24
J1mI'll just publish to the old place and let people tell me to publish elsewhere if the wish. :)16:25
*** batlogg has joined #zope3-dev16:26
benjisounds like a plan16:26
*** batlogg_ has quit IRC16:26
*** batlogg_ has joined #zope3-dev16:26
*** dman13 has joined #zope3-dev16:27
baijumJim, Zope3 wiki is here:
*** batlogg has quit IRC16:43
*** J1m has quit IRC16:46
*** baijum changes topic to "logs available at || paste code examples into or || Zope 3.3.0 is out || bugs live at || New wiki is at || FAQ at"17:09
*** baijum has quit IRC17:11
*** pelle_ has quit IRC17:14
*** tonico|away has quit IRC17:21
*** batlogg has joined #zope3-dev17:33
srichterregebro: no, unfortunately, the "provider" TALES namespace does not support two-phase rendering for content providers yet17:34
*** batlogg_ has quit IRC17:50
timteIs an add method inappropriate for IFolder?17:51
*** jinty has quit IRC17:53
*** projekt01 is now known as projekt01_18:09
*** romanofs1i has quit IRC18:09
*** natea has joined #zope3-dev18:16
*** febb is now known as febb_18:26
*** febb_ is now known as febb18:26
febbHello all18:26
*** natea_ has quit IRC18:29
regebrotimte: add what?18:55
regebrosrichter: ok, thanks.18:55
timteregebro: IAdding has an add method, I'd like that in IFolder as well.18:56
regebrotimte: To do what?18:57
timteto add an object to the folder18:57
regebrofolder[id] = object18:58
timteyeah, but then you don't have pluggable naming choosers like IAdding has18:58
regebroWell that's what IAdding is for.18:58
timtethen I'd end up reimplementing the add method that's in IAdding18:58
regebroYes, so, use IAdding. :)18:59
timtethere doesn't seem to be any adapters from IFolder to IAdding18:59
timteand it still wouldn't make sense I think, because IAdding has menu methods that has nothing to do with the folder19:00
*** stub has joined #zope3-dev19:00
regebroThats possibe, but you should be able to use the adapters that exist for standard folders.19:01
regebroIAdding is the interface made for adding stuff to folderish things.19:02
timtewhat adapters?19:02
regebroI a sense IAdding *is* the add method.19:02
timtethen it should only contain that method  :)19:03
regebroThe addview is view, so I guess (but I'äm not 100%) you can't just adapt IFodler.19:03
regebroMaybe that's the problem.19:03
regebroTry looking it up as a view.19:04
timteI sent an email to zope3-dev now19:04
timteit has the subject "IFolder and IAdding", read it and enlighten me please  ;)19:06
*** xenru has joined #zope3-dev19:07
timteregebro: are you still doing zope3 stuff for nuxeo?19:08
*** xenru has quit IRC19:11
regebrotimte: Not much no. But then again, I have never done any zope3 stuff for nuxeo, actually. :)19:11
regebroBut I have done Five stuff.19:11
timteregebro: buy you're employed by nuxeo, right?19:12
regebrotimte: Well, as mentioned, to add stuff to a folder, you just add it. If you want the fancy stuff that IAdding gives you, use IAdding. It really is that simple.19:12
regebrotimte: yUP.19:12
regebroIf you put the add method on the fodler, then everything folderish needs to implement it.19:13
*** xenru has joined #zope3-dev19:13
timteregebro: but how do I adapter the folder/context to IAdding?19:14
timtewell, IWriteContainer has some api method, all containers has to implement them19:15
*** jinty has joined #zope3-dev19:15
regebroWell, I think it is a view, so you look it up for the object and a request.19:16
regebrotimte: Yes, because those methods are there so that they are able to do what an IWriteConteiner does.19:17
*** batlogg is now known as batlogg|boston19:21
xenruI'm using images in CSS, this mean that I need to use paths in style declarations """url('somepath')""", looks like I need to use dynamic path generation, but my css file linked us resource (browser:resource)19:22
xenruIn Zope2 I use DTML19:22
xenruWhat is right way in Zope3 for this case?19:22
timteregebro: hmm, I'll try something19:23
timteregebro: it worked if I made a new view and in its __call__ method called the EventAddForm with the context wrapped in an Adding object19:38
*** pelle_ has joined #zope3-dev19:38
*** jinty has quit IRC19:49
*** regebro has left #zope3-dev19:57
*** afd_ has joined #zope3-dev20:03
*** stub has quit IRC20:25
timteIf I want to redirect to / after submitting an add form, should I use "@action def handle_add" and redirect inside that method?20:39
*** Londo_ has joined #zope3-dev20:55
*** Simeoni has left #zope3-dev20:55
*** romanofski has joined #zope3-dev21:01
*** jinty has joined #zope3-dev21:17
*** projekt01_ is now known as projekt0121:19
*** pelle_ has quit IRC21:27
*** HakTom has quit IRC21:28
*** factor has left #zope3-dev21:34
*** tonico has joined #zope3-dev21:45
*** afd_ has quit IRC21:56
*** afd_ has joined #zope3-dev21:56
*** dunny has joined #zope3-dev22:06
*** philiKON has quit IRC22:24
*** eldafar has joined #zope3-dev22:54
eldafaranyone alive?22:59
eldafarI have some issues arising when I move Data.fs files from instance to instance23:00
eldafarthe hashing messes up23:00
eldafarso my getters that operate through hashes return mixed up data23:00
eldafaranyone have any idea what's going on?23:00
*** tonico is now known as tonico|away23:55

Generated by 2.15.1 by Marius Gedminas - find it at!