*** jan_s has joined #zope3-dev | 00:03 | |
*** mgedmin has quit IRC | 00:03 | |
jhauser | is there something special with the function of property in Z3? | 00:23 |
---|---|---|
jhauser | I get this error | 00:23 |
jhauser | ForbiddenAttribute: ('data', <zope.app.file.mimefield.FileDataValue object at 0x3b2f1b0>) | 00:23 |
jhauser | FileDataValue subclasses File | 00:23 |
jhauser | If I use File directly it works at least with data | 00:24 |
jhauser | not with further attributes I set at the File() instance | 00:24 |
*** gintas has quit IRC | 00:34 | |
*** jhauser has quit IRC | 00:56 | |
*** stub has joined #zope3-dev | 01:53 | |
*** stub has quit IRC | 02:20 | |
*** tav is now known as tav2 | 02:23 | |
*** tav has joined #zope3-dev | 02:25 | |
*** ChanServ sets mode: +o tav | 02:25 | |
*** stub has joined #zope3-dev | 02:25 | |
*** tav2 has quit IRC | 02:25 | |
*** tav is now known as tav|offline | 02:26 | |
*** hazmat has joined #zope3-dev | 02:59 | |
*** `anthony has quit IRC | 05:38 | |
*** `anthony has joined #zope3-dev | 06:48 | |
*** Suresh-E has joined #zope3-dev | 07:05 | |
*** __gotcha_ has quit IRC | 07:56 | |
*** __gotcha has joined #zope3-dev | 07:56 | |
*** ChanServ sets mode: +o hazmat | 08:06 | |
*** jan_s has quit IRC | 08:15 | |
*** sashav has quit IRC | 08:59 | |
*** hdima has joined #zope3-dev | 09:07 | |
*** zagy has joined #zope3-dev | 09:09 | |
*** jhauser has joined #zope3-dev | 09:35 | |
*** `anthony has quit IRC | 09:38 | |
*** `anthony has joined #zope3-dev | 09:57 | |
*** Theuni has joined #zope3-dev | 10:19 | |
*** sashav has joined #zope3-dev | 10:57 | |
*** Theuni has quit IRC | 11:01 | |
*** Theuni has joined #zope3-dev | 11:03 | |
*** Theuni has quit IRC | 11:07 | |
*** Theuni has joined #zope3-dev | 11:13 | |
*** MalcolmC has joined #zope3-dev | 11:13 | |
*** [nicknam] has joined #zope3-dev | 11:52 | |
*** AJC has joined #zope3-dev | 12:26 | |
*** Aiste has joined #zope3-dev | 12:27 | |
*** jhauser_ has joined #zope3-dev | 12:47 | |
*** jhauser has quit IRC | 12:55 | |
*** kaczordek has joined #zope3-dev | 13:04 | |
*** J1m has joined #zope3-dev | 13:05 | |
jhauser_ | Hi J1m, have you a short moment of time? | 13:11 |
J1m | sure | 13: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 |
J1m | did you make security declarations for FileDataValue? | 13:13 |
jhauser_ | no | 13:13 |
J1m | That's your problem. | 13:13 |
jhauser_ | ah ok, than I will solve it :-) | 13:13 |
J1m | ForbiddenAttribute 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 attribute | 13:16 |
jhauser_ | in file/configure is the declaration for the schema | 13:16 |
J1m | declarations are made for attributes defined by classes. | 13:16 |
jhauser_ | this is then for all the schema defined attributes, right? | 13:16 |
J1m | It doesn't matter how an attribute is defined. | 13:17 |
J1m | Please see the tutorial. It is explained there. | 13:17 |
jhauser_ | ok thanks | 13:17 |
*** `anthony has quit IRC | 13:32 | |
*** zagy has quit IRC | 13:36 | |
*** zagy has joined #zope3-dev | 13:38 | |
*** SteveA has joined #zope3-dev | 13:38 | |
jhauser_ | ah works :-), thanks | 13:43 |
*** niemeyer has joined #zope3-dev | 13:45 | |
J1m | jhauser_, see my 2 responses to Roger | 13:57 |
J1m | jhauser_, do you understand my desire to combine data, mime type and encoding into a single field? | 13:59 |
SteveA | data is meaningless without the other two | 14:00 |
J1m | exactly | 14:00 |
SteveA | when is python going to do that for strings? | 14:01 |
J1m | why should it? | 14:01 |
SteveA | that old bytes-of-data vs encoded string thing | 14:01 |
J1m | This is pretty application domain dependent. | 14:01 |
SteveA | i'd really like to see a "bytes" or "data" or "bytesdata" type | 14:02 |
SteveA | and an encodedstring type, which is a str that knows its encoding | 14:02 |
J1m | you mean, when is Python going to add a "bytes" type and merge str and unicode? | 14:02 |
SteveA | yep, pretty much | 14:02 |
SteveA | it's caught people out on my project a number of times | 14:03 |
J1m | I think that encoded string shoul dbe something above python. | 14:03 |
SteveA | it's caught people out on zope3 before | 14:03 |
J1m | It could, of course be a standard library module. | 14:03 |
J1m | yes | 14:03 |
jhauser_ | J1m I understand what you want, I approach this slowly, need to pick up some things on the way | 14:04 |
jhauser_ | the only thing I do not see, why there should be suddently a text edit field for a special mime type | 14:05 |
jhauser_ | I think this can be done by a custom widget | 14:05 |
J1m | text files are very common. People want and expect to be able to edit these. | 14:07 |
J1m | IMO, 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 also | 14:07 |
jhauser_ | so the field can put the fieldvalue at the cobj | 14:07 |
jhauser_ | ok to text edit form input | 14:08 |
J1m | However, once you have a text area, you have unicode and you need to know the etxt encoding. | 14:08 |
*** kaczordek has quit IRC | 14:08 | |
J1m | I 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 wrong | 14:09 |
*** [nicknam] has quit IRC | 14:09 | |
jhauser_ | FileData is the field class | 14:09 |
jhauser_ | That's like subclassing DateTime field from datetime :-) | 14:10 |
J1m | ok. I think this is more general than files, which is why I suggested a name like "mime". | 14:10 |
J1m | sure | 14:10 |
jhauser_ | sure I change this to mime | 14:10 |
*** tvon has quit IRC | 14:10 | |
J1m | What we are really talking about is a non-multi mime part. | 14:11 |
J1m | I sugest then that the mime standard should guide us. | 14:11 |
J1m | I suggest then that the mime standard should guide us. | 14:11 |
jhauser_ | :-) phew | 14:13 |
jhauser_ | I will read there and come back with questions :-) | 14:13 |
*** [nicknam] has joined #zope3-dev | 14:22 | |
jhauser_ | bye | 14:23 |
*** jhauser_ has quit IRC | 14:23 | |
*** J1m has quit IRC | 14:26 | |
*** mgedmin has joined #zope3-dev | 14:35 | |
*** tvon has joined #zope3-dev | 14:46 | |
*** Aiste has quit IRC | 15:04 | |
*** `anthony has joined #zope3-dev | 15:07 | |
*** Suresh-E has left #zope3-dev | 15:21 | |
*** MalcolmC has quit IRC | 15:24 | |
*** MalcolmC has joined #zope3-dev | 15:50 | |
*** Theuni has quit IRC | 15:55 | |
*** faassen has joined #zope3-dev | 16:06 | |
*** benji_york has joined #zope3-dev | 16:07 | |
*** bradb has joined #zope3-dev | 16:12 | |
*** benji_york has quit IRC | 16:18 | |
*** mkerrin has joined #zope3-dev | 16: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-dev | 16:25 | |
*** stub has quit IRC | 16:31 | |
*** J1m has joined #zope3-dev | 16:42 | |
*** _nicknam_ has joined #zope3-dev | 16:49 | |
*** `anthony has quit IRC | 16:55 | |
*** `anthony has joined #zope3-dev | 16:56 | |
*** [nicknam] has quit IRC | 17:07 | |
*** vlado has joined #zope3-dev | 17:08 | |
*** mkerrin has quit IRC | 17:09 | |
*** gintas has joined #zope3-dev | 17:12 | |
*** hdima has quit IRC | 17:14 | |
*** gintas has left #zope3-dev | 17:20 | |
*** SteveA has quit IRC | 17:20 | |
srichter | J1m: I am contemplating whether I should merge my branch today | 17:21 |
srichter | J1m: it has still several XXX and zope.app.presentation does not work yet, but the longer I wait the harder it will be | 17:22 |
srichter | what do you think? | 17:22 |
*** sashav has quit IRC | 17:23 | |
J1m | I think it's important not to break people's sandboxes. | 17:23 |
srichter | then these people have to send my code examples | 17:23 |
J1m | So, if checking something in would break sandboxes, then I think it should wait. | 17:23 |
srichter | there is no way I can guess what they need | 17:23 |
J1m | Then you should not have embarked on this project. | 17:24 |
J1m | we have to maje a reasonable attempt to preserve apis that people use | 17:24 |
J1m | we have to preserve their data | 17:24 |
J1m | we have to make a reasonable attempt to preserve apis that people use | 17:24 |
srichter | you talk about data or code? | 17:24 |
J1m | Both | 17:24 |
srichter | ok | 17:25 |
J1m | It's a safe assumption that nobody is writing configuration directives. | 17:25 |
J1m | Now, presenattion is tricier. | 17:25 |
J1m | We know that persistent modules don't work. | 17:25 |
J1m | That makes it somewhat unlikely that anyone is doing TTW adapters and presentation components (page folders). | 17:26 |
srichter | that's all peanuts | 17:26 |
srichter | there are problems with respect to view classes reuse | 17:26 |
J1m | I think it would be reasonable to send a note to the list and ask if anyone is using TTW adapters or views. | 17:26 |
J1m | Changes are, no one will say they are. | 17:26 |
srichter | one of the bugs that was filed by marius (I think) was that he used a view class that is not there anymore | 17:26 |
srichter | other examples include a probable dependence of RegistrationStack behavior | 17:27 |
J1m | If 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 |
J1m | It's a judgement call. | 17:27 |
srichter | or what about the case that someone wrote their own Authentication sErvice? | 17:27 |
J1m | That's harder. | 17:27 |
J1m | You can ask. | 17:27 |
srichter | Surely their custom authentications ervice is still registered, but it will not be used | 17:28 |
J1m | I think that's a pretty serious problem. | 17:28 |
srichter | right, I agree | 17:28 |
J1m | IN 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 |
srichter | ok, I will do that | 17:30 |
srichter | I'll send a mail asking for code snippets that should still work or other information | 17:30 |
srichter | should I send the mail beyond zope3-users and zope3-dev? | 17:31 |
*** Aiste has joined #zope3-dev | 17:31 | |
J1m | no | 17:31 |
J1m | I wouldn't ask for code snippets. | 17:31 |
J1m | I 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 |
J1m | 17:32 | |
J1m | And then ask more focussed questions based on their answers. | 17:32 |
srichter | ok | 17:33 |
srichter | will do | 17:33 |
*** SteveA has joined #zope3-dev | 17:33 | |
*** bskahan has joined #zope3-dev | 17:45 | |
*** jhauser has joined #zope3-dev | 18:02 | |
*** alga has joined #zope3-dev | 18:04 | |
*** regebro has joined #zope3-dev | 18:05 | |
regebro | Hi all! Are there any way to get menuItems only defined with for="*"? | 18:05 |
regebro | object=None gets everything, of course.... | 18:06 |
J1m | what do you mean by "only" above. | 18:07 |
regebro | I should say "get only menuItems" I guess. | 18:07 |
regebro | I.e. I would like the menuItems that have "*" specified for interface. "Global" menuitems if you want. | 18:08 |
*** Voblia has joined #zope3-dev | 18:10 | |
regebro | Hang on, I'm not sure I need it... | 18:13 |
* regebro looks confused. | 18:13 | |
*** Voblia has quit IRC | 18:14 | |
*** Voblia has joined #zope3-dev | 18:15 | |
regebro | Nope, didn't need it, I got things backwards. Thanks anyway. | 18:22 |
*** Voblia has quit IRC | 18:23 | |
*** Voblia has joined #zope3-dev | 18:23 | |
*** jack-e|away has quit IRC | 18:27 | |
*** zagy has quit IRC | 18:42 | |
*** zagy has joined #zope3-dev | 18:42 | |
*** tav|offline has quit IRC | 18:44 | |
*** tav|offline has joined #zope3-dev | 18:44 | |
*** jack-e|away has joined #zope3-dev | 18:48 | |
*** jhauser has quit IRC | 18:49 | |
*** tav|offline has quit IRC | 19:02 | |
*** bskahan has quit IRC | 19:04 | |
*** tav|offline has joined #zope3-dev | 19:04 | |
*** jhauser has joined #zope3-dev | 19:05 | |
*** tvon has quit IRC | 19:07 | |
*** regebro has quit IRC | 19:13 | |
*** jhauser has quit IRC | 19:31 | |
*** d2m has joined #zope3-dev | 19:36 | |
*** Speedjet has joined #zope3-dev | 19:52 | |
Speedjet | hi everyone | 19:52 |
Speedjet | anyone played with zsync/fssync? | 19:52 |
Speedjet | I'm looking information if it could be back-ported to zope2... | 19:55 |
*** deo has joined #zope3-dev | 19:56 | |
*** MalcolmC has quit IRC | 19:58 | |
*** Speedjet has left #zope3-dev | 20:03 | |
J1m | I'm sure it could be | 20:03 |
J1m | There are some securuty issues with it | 20:04 |
J1m | which is why we're not really using it in z3 yet. | 20:04 |
*** Aiste has quit IRC | 20:20 | |
*** faassen has quit IRC | 20:29 | |
*** Voblia has quit IRC | 20:41 | |
*** sashav has joined #zope3-dev | 20:45 | |
*** _nicknam_ has quit IRC | 20:54 | |
*** niemeyer has quit IRC | 20:57 | |
*** niemeyer has joined #zope3-dev | 21:12 | |
*** VladDrac has quit IRC | 21:24 | |
*** VladDrac has joined #zope3-dev | 21:25 | |
*** srichter has quit IRC | 21:38 | |
*** hazmat has quit IRC | 21:54 | |
*** hazmat has joined #zope3-dev | 21:59 | |
*** mgedmin has quit IRC | 22:00 | |
*** Nicolas__ has joined #zope3-dev | 22:41 | |
*** alga has quit IRC | 22:43 | |
*** niemeyer has quit IRC | 23:02 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!