IRC log of #zope3-dev for Monday, 2005-01-17

*** jan_s has joined #zope3-dev00:03
*** mgedmin has quit IRC00:03
jhauseris there something special with the function of property in Z3?00:23
jhauserI get this error00:23
jhauserForbiddenAttribute: ('data', <zope.app.file.mimefield.FileDataValue object at 0x3b2f1b0>)00:23
jhauserFileDataValue subclasses File00:23
jhauserIf I use File directly it works at least with data00:24
jhausernot with further attributes I set at the File() instance00:24
*** gintas has quit IRC00:34
*** jhauser has quit IRC00:56
*** stub has joined #zope3-dev01:53
*** stub has quit IRC02:20
*** tav is now known as tav202:23
*** tav has joined #zope3-dev02:25
*** ChanServ sets mode: +o tav02:25
*** stub has joined #zope3-dev02:25
*** tav2 has quit IRC02:25
*** tav is now known as tav|offline02:26
*** hazmat has joined #zope3-dev02:59
*** `anthony has quit IRC05:38
*** `anthony has joined #zope3-dev06:48
*** Suresh-E has joined #zope3-dev07:05
*** __gotcha_ has quit IRC07:56
*** __gotcha has joined #zope3-dev07:56
*** ChanServ sets mode: +o hazmat08:06
*** jan_s has quit IRC08:15
*** sashav has quit IRC08:59
*** hdima has joined #zope3-dev09:07
*** zagy has joined #zope3-dev09:09
*** jhauser has joined #zope3-dev09:35
*** `anthony has quit IRC09:38
*** `anthony has joined #zope3-dev09:57
*** Theuni has joined #zope3-dev10:19
*** sashav has joined #zope3-dev10:57
*** Theuni has quit IRC11:01
*** Theuni has joined #zope3-dev11:03
*** Theuni has quit IRC11:07
*** Theuni has joined #zope3-dev11:13
*** MalcolmC has joined #zope3-dev11:13
*** [nicknam] has joined #zope3-dev11:52
*** AJC has joined #zope3-dev12:26
*** Aiste has joined #zope3-dev12:27
*** jhauser_ has joined #zope3-dev12:47
*** jhauser has quit IRC12:55
*** kaczordek has joined #zope3-dev13:04
*** J1m has joined #zope3-dev13:05
jhauser_Hi J1m, have you a short moment of time?13:11
J1msure13:11
jhauser_ForbiddenAttribute: ('data', <zope.app.file.mimefield.FileDataValue object at 0x3b301b0>)13:11
jhauser_I have this error, if I try to set the data attribute in an subclass of File()13:12
jhauser_Where is the error coming from, so I can look what it is?13:13
J1mdid you make security declarations for FileDataValue?13:13
jhauser_no13:13
J1mThat's your problem.13:13
jhauser_ah ok, than I will solve it :-)13:13
J1mForbiddenAttribute errors happen when you try to access at attribute for which there is no declaration.13:14
jhauser_the declarations need to be for the object, or the attribute13:16
jhauser_in file/configure is the declaration for the schema13:16
J1mdeclarations are made for attributes defined by classes.13:16
jhauser_this is then for all the schema defined attributes, right?13:16
J1mIt doesn't matter how an attribute is defined.13:17
J1mPlease see the tutorial. It is explained there.13:17
jhauser_ok thanks13:17
*** `anthony has quit IRC13:32
*** zagy has quit IRC13:36
*** zagy has joined #zope3-dev13:38
*** SteveA has joined #zope3-dev13:38
jhauser_ah works :-), thanks13:43
*** niemeyer has joined #zope3-dev13:45
J1mjhauser_, see my 2 responses to Roger13:57
J1mjhauser_, do you understand my desire to combine data, mime type and encoding into a single field?13:59
SteveAdata is meaningless without the other two14:00
J1mexactly14:00
SteveAwhen is python going to do that for strings?14:01
J1mwhy should it?14:01
SteveAthat old bytes-of-data vs encoded string thing14:01
J1mThis is pretty application domain dependent.14:01
SteveAi'd really like to see a "bytes" or "data" or "bytesdata" type14:02
SteveAand an encodedstring type, which is a str that knows its encoding14:02
J1myou mean, when is Python going to add a "bytes" type and merge str and unicode?14:02
SteveAyep, pretty much14:02
SteveAit's caught people out on my project a number of times14:03
J1mI think that encoded string shoul dbe something above python.14:03
SteveAit's caught people out on zope3 before14:03
J1mIt could, of course be a standard library module.14:03
J1myes14:03
jhauser_J1m I understand what you want, I approach this slowly, need to pick up some things on the way14:04
jhauser_the only thing I do not see, why there should be suddently a text edit field for a special mime type14:05
jhauser_I think this can be done by a custom widget14:05
J1mtext files are very common.  People want and expect to be able to edit these.14:07
J1mIMO, this should be default behavior.14:07
jhauser_I learned yesterday again, that not the field is the file data, but that I need to define a fieldvalue also14:07
jhauser_so the field can put the fieldvalue at the cobj14:07
jhauser_ok to text edit form input14:08
J1mHowever, once you have a text area, you have unicode and you need to know the etxt encoding.14:08
*** kaczordek has quit IRC14:08
J1mI don't know what you mean "not the field is the file data, but that I need to define a fieldvalue also so the field can put the fieldvalue at the cobj"14:08
jhauser_I started with subclassing FileData from File, which was wrong14:09
*** [nicknam] has quit IRC14:09
jhauser_FileData is the field class14:09
jhauser_That's like subclassing DateTime field from datetime :-)14:10
J1mok.  I think this is more general than files, which is why I suggested a name like "mime".14:10
J1msure14:10
jhauser_sure I change this to mime14:10
*** tvon has quit IRC14:10
J1mWhat we are really talking about is a non-multi mime part.14:11
J1mI sugest then that the mime standard should guide us.14:11
J1mI suggest then that the mime standard should guide us.14:11
jhauser_:-) phew14:13
jhauser_I will read there and come back with questions :-)14:13
*** [nicknam] has joined #zope3-dev14:22
jhauser_bye14:23
*** jhauser_ has quit IRC14:23
*** J1m has quit IRC14:26
*** mgedmin has joined #zope3-dev14:35
*** tvon has joined #zope3-dev14:46
*** Aiste has quit IRC15:04
*** `anthony has joined #zope3-dev15:07
*** Suresh-E has left #zope3-dev15:21
*** MalcolmC has quit IRC15:24
*** MalcolmC has joined #zope3-dev15:50
*** Theuni has quit IRC15:55
*** faassen has joined #zope3-dev16:06
*** benji_york has joined #zope3-dev16:07
*** bradb has joined #zope3-dev16:12
*** benji_york has quit IRC16:18
*** mkerrin has joined #zope3-dev16:20
*** mgedmin changes topic to "Zope 3 Development :: Zope X3 3.0.0 final released: http://dev.zope.org/Zope3/ZopeX3300 || IRC logs available at http://irclogs.espnow.net/zope3/ || working IRC logs available at http://zope3.pov.lt/irclogs/"16:25
*** Theuni has joined #zope3-dev16:25
*** stub has quit IRC16:31
*** J1m has joined #zope3-dev16:42
*** _nicknam_ has joined #zope3-dev16:49
*** `anthony has quit IRC16:55
*** `anthony has joined #zope3-dev16:56
*** [nicknam] has quit IRC17:07
*** vlado has joined #zope3-dev17:08
*** mkerrin has quit IRC17:09
*** gintas has joined #zope3-dev17:12
*** hdima has quit IRC17:14
*** gintas has left #zope3-dev17:20
*** SteveA has quit IRC17:20
srichterJ1m: I am contemplating whether I should merge my branch today17:21
srichterJ1m: it has still several XXX and zope.app.presentation does not work yet, but the longer I wait the harder it will be17:22
srichterwhat do you think?17:22
*** sashav has quit IRC17:23
J1mI think it's important not to break people's sandboxes.17:23
srichterthen these people have to send my code examples17:23
J1mSo, if checking something in would break sandboxes, then I think it should wait.17:23
srichterthere is no way I can guess what they need17:23
J1mThen you should not have embarked on this project.17:24
J1mwe have to maje a reasonable attempt to preserve apis that people use17:24
J1mwe have to preserve their data17:24
J1mwe have to make a reasonable attempt to preserve apis that people use17:24
srichteryou talk about data or code?17:24
J1mBoth17:24
srichterok17:25
J1mIt's a safe assumption that nobody is writing configuration directives.17:25
J1mNow, presenattion is tricier.17:25
J1mWe know that persistent modules don't work.17:25
J1mThat makes it somewhat unlikely that anyone is doing TTW adapters and presentation components (page folders).17:26
srichterthat's all peanuts17:26
srichterthere are problems with respect to view classes reuse17:26
J1mI think it would be reasonable to send a note to the list and ask if anyone is using TTW adapters or views.17:26
J1mChanges are, no one will say they are.17:26
srichterone of the bugs that was filed by marius (I think) was that he used a view class that is not there anymore17:26
srichterother examples include a probable dependence of RegistrationStack behavior17:27
J1mIf you don't get any response after a few days, then I think it would be safe to start ripping thise code out.17:27
J1mIt's a judgement call.17:27
srichteror what about the case that someone wrote their own Authentication sErvice?17:27
J1mThat's harder.17:27
J1mYou can ask.17:27
srichterSurely their custom authentications ervice is still registered, but it will not be used17:28
J1mI think that's a pretty serious problem.17:28
srichterright, I agree17:28
J1mIN any case, you need to send a heads up message a day or two before the merge as this is likely to be very disruptive.17:29
srichterok, I will do that17:30
srichterI'll send a mail asking for code snippets that should still work or other information17:30
srichtershould I send the mail beyond zope3-users and zope3-dev?17:31
*** Aiste has joined #zope3-dev17:31
J1mno17:31
J1mI wouldn't ask for code snippets.17:31
J1mI would ask some very high-level questions like:17:31
J1m- Is anyone using TTW views or adapters?  Page folders?17:32
J1m- Has anyone written their own services?17:32
J1m17:32
J1mAnd then ask more focussed questions based on their answers.17:32
srichterok17:33
srichterwill do17:33
*** SteveA has joined #zope3-dev17:33
*** bskahan has joined #zope3-dev17:45
*** jhauser has joined #zope3-dev18:02
*** alga has joined #zope3-dev18:04
*** regebro has joined #zope3-dev18:05
regebroHi all! Are there any way to get menuItems only defined with for="*"?18:05
regebroobject=None gets everything, of course....18:06
J1mwhat do you mean by "only" above.18:07
regebroI should say "get only menuItems" I guess.18:07
regebroI.e. I would like the menuItems that have "*" specified for interface. "Global" menuitems if you want.18:08
*** Voblia has joined #zope3-dev18:10
regebroHang on, I'm not sure I need it...18:13
* regebro looks confused.18:13
*** Voblia has quit IRC18:14
*** Voblia has joined #zope3-dev18:15
regebroNope, didn't need it, I got things backwards. Thanks anyway.18:22
*** Voblia has quit IRC18:23
*** Voblia has joined #zope3-dev18:23
*** jack-e|away has quit IRC18:27
*** zagy has quit IRC18:42
*** zagy has joined #zope3-dev18:42
*** tav|offline has quit IRC18:44
*** tav|offline has joined #zope3-dev18:44
*** jack-e|away has joined #zope3-dev18:48
*** jhauser has quit IRC18:49
*** tav|offline has quit IRC19:02
*** bskahan has quit IRC19:04
*** tav|offline has joined #zope3-dev19:04
*** jhauser has joined #zope3-dev19:05
*** tvon has quit IRC19:07
*** regebro has quit IRC19:13
*** jhauser has quit IRC19:31
*** d2m has joined #zope3-dev19:36
*** Speedjet has joined #zope3-dev19:52
Speedjethi everyone19:52
Speedjetanyone played with zsync/fssync?19:52
SpeedjetI'm looking information if it could be back-ported to zope2...19:55
*** deo has joined #zope3-dev19:56
*** MalcolmC has quit IRC19:58
*** Speedjet has left #zope3-dev20:03
J1mI'm sure it could be20:03
J1mThere are some securuty issues with it20:04
J1mwhich is why we're not really using it in z3 yet.20:04
*** Aiste has quit IRC20:20
*** faassen has quit IRC20:29
*** Voblia has quit IRC20:41
*** sashav has joined #zope3-dev20:45
*** _nicknam_ has quit IRC20:54
*** niemeyer has quit IRC20:57
*** niemeyer has joined #zope3-dev21:12
*** VladDrac has quit IRC21:24
*** VladDrac has joined #zope3-dev21:25
*** srichter has quit IRC21:38
*** hazmat has quit IRC21:54
*** hazmat has joined #zope3-dev21:59
*** mgedmin has quit IRC22:00
*** Nicolas__ has joined #zope3-dev22:41
*** alga has quit IRC22:43
*** niemeyer has quit IRC23:02

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