*** mkerrin has quit IRC | 00:02 | |
srichter | J1m: ping | 00:04 |
---|---|---|
J1m | BTW did I miss discussion on the web SIG about logging? | 00:04 |
srichter | no, I have been dragging my feet | 00:04 |
srichter | :-( | 00:05 |
srichter | I was very busy recently | 00:05 |
srichter | (SchoolTool is in its end sprint of features for the upcoming school year) | 00:05 |
*** sashav has quit IRC | 00:05 | |
J1m | we should really try to get this resolved this month. | 00:06 |
srichter | I am fully booked for the next 3 weeks (due to the sprint) | 00:06 |
srichter | and I am slo going to Rotterdam for a better part of a week | 00:07 |
*** J1m has quit IRC | 00:20 | |
*** zmi_junkie has quit IRC | 00:30 | |
*** zmi_junkie has joined #zope3-dev | 00:32 | |
*** zbir has quit IRC | 00:39 | |
*** benji has quit IRC | 00:51 | |
*** natea_ has quit IRC | 00:51 | |
*** natea has joined #zope3-dev | 00:59 | |
*** zmi_junkie has quit IRC | 01:01 | |
*** sawdog has left #zope3-dev | 01:09 | |
*** d2m has quit IRC | 01:31 | |
*** d2m_ has joined #zope3-dev | 01:31 | |
*** d2m_ is now known as d2m | 01:31 | |
*** jinty has joined #zope3-dev | 01:32 | |
*** wrobel has quit IRC | 01:35 | |
*** ruda_porto has quit IRC | 01:43 | |
*** jinty has quit IRC | 01:50 | |
*** yota has quit IRC | 02:00 | |
*** fluff has quit IRC | 02:15 | |
*** WebMaven has joined #zope3-dev | 02:24 | |
*** alga has joined #zope3-dev | 02:34 | |
WebMaven | Hi, I am trying to install 3.2 from source and am running into compilation problems. Does 3.2 need a particular gcc version? | 02:43 |
WebMaven | I have gcc 4.0 installed. | 02:45 |
efge | WebMaven: gcc 4.0 works fine here on Mac OS X | 02:47 |
WebMaven | is there a pastebin commonly used by this channel? | 02:49 |
WebMaven | here is what I get from doing ./configure and then make: http://paste.plone.org/1983 | 02:52 |
efge | no idea what that could be, something fucked up in your gcc install? | 03:08 |
WebMaven | maybe... but i just installed gcc via synaptic (on Ubuntu), so I don't think that's too likely. | 03:14 |
*** niemeyer has quit IRC | 03:27 | |
*** taf2 has quit IRC | 03:45 | |
*** stub has joined #zope3-dev | 03:56 | |
WebMaven | srichter: AYT? | 04:00 |
WebMaven | philiKON: AYT? | 04:09 |
*** stub has quit IRC | 04:43 | |
WebMaven | Cman anyone tell me what this warning means when building Zope 3.2 from source?: pointer targets in passing argument 1 of ‘PyString_FromStringAndSize’ differ in signedness | 04:44 |
*** zbir has joined #zope3-dev | 04:55 | |
*** efge has quit IRC | 04:57 | |
philiKON | WebMaven, now i am | 04:58 |
*** tahara has joined #zope3-dev | 05:50 | |
*** alga has quit IRC | 07:08 | |
*** dobee has joined #zope3-dev | 07:09 | |
*** philiKON has quit IRC | 07:10 | |
*** deo has quit IRC | 07:56 | |
*** philiKON has joined #zope3-dev | 08:05 | |
*** sashav has joined #zope3-dev | 08:50 | |
*** dobee has quit IRC | 08:50 | |
*** dobee has joined #zope3-dev | 09:54 | |
*** yota has joined #zope3-dev | 10:53 | |
*** RockyBurt has quit IRC | 11:12 | |
*** RockyBurt has joined #zope3-dev | 11:12 | |
*** wrobel has joined #zope3-dev | 11:25 | |
*** agroszer has joined #zope3-dev | 11:31 | |
*** tahara has quit IRC | 11:40 | |
*** alga has joined #zope3-dev | 11:52 | |
*** Aiste has joined #zope3-dev | 12:09 | |
*** dunny has quit IRC | 12:23 | |
*** mleist has quit IRC | 12:32 | |
*** markus_ has joined #zope3-dev | 12:33 | |
*** mleist has joined #zope3-dev | 12:33 | |
*** markus__ has joined #zope3-dev | 12:41 | |
*** markus_ has quit IRC | 12:42 | |
*** mleist has left #zope3-dev | 12:45 | |
*** mleist has joined #zope3-dev | 12:46 | |
*** markus__ has quit IRC | 12:46 | |
*** jinty has joined #zope3-dev | 12:57 | |
*** J1m has joined #zope3-dev | 14:07 | |
*** wrobel has quit IRC | 14:28 | |
*** wrobel has joined #zope3-dev | 14:33 | |
*** J1m has quit IRC | 15:00 | |
*** Aiste_ has joined #zope3-dev | 15:02 | |
*** Aiste has quit IRC | 15:02 | |
*** romanofski has joined #zope3-dev | 15:06 | |
romanofski | moin | 15:08 |
philiKON | moin romanofski | 15:14 |
romanofski | hey philiKON :) | 15:24 |
*** roym has joined #zope3-dev | 15:35 | |
*** sashav_ has joined #zope3-dev | 15:49 | |
*** sashav has quit IRC | 15:49 | |
*** sashav_ is now known as sashav | 15:49 | |
*** RockyBurt has left #zope3-dev | 16:02 | |
*** RockyBurt has joined #zope3-dev | 16:17 | |
*** RockyBurt has quit IRC | 16:32 | |
*** RockyBurt has joined #zope3-dev | 16:33 | |
*** romanofski has quit IRC | 16:40 | |
roym | If I create a python script in a folder via the ZMI, I find that I cannot edit it via ftp. Seems like a twisted issue.. | 16:51 |
roym | result = f(*args, **kwargs) | 16:51 |
roym | File "/usr/local/Zope3-trunk/src/zope/app/twisted/ftp/ftp.py", line 177, in _stat | 16:51 |
roym | raise ftp.WrongFiletype() | 16:51 |
roym | twisted.protocols.ftp.WrongFiletype: | 16:51 |
d2m | roym: quick solution: use ExternaleEditor | 16:56 |
roym | How would I use it? - would I need to use webdav (I see that there is a page called "external_edit" defined). | 17:07 |
d2m | roym: working with the trunk you already got "src/zope/app/externaleditor" | 17:12 |
roym | What confused me was that the "External Edit" tab didn't show up for a zpt page. I notice that it does show up for regular files. | 17:13 |
d2m | roym: in its config.zcml add a content configuration for <content class="zope.app.pythonpage.PythonPage"> (just like the one for <content class="zope.app.file.File">) | 17:13 |
roym | d2m: thanks! | 17:14 |
d2m | roym: check if zopeskel/etc/package-includes/zope.app.externaleditor-configure.zcml is available too | 17:16 |
roym | yes, it is indeed. I guess I just need to follow your suggestions for both PythonPage and TemplateFile types. | 17:19 |
philiKON | d2m, <content> for zope.app.pythonpage.PythonPage has nothing to do with the External Edit tab | 17:19 |
philiKON | <content> is all about security declarations (and some minor things like factories from class and additional interfaces) | 17:19 |
d2m | philiKON: oh, did not know that | 17:20 |
philiKON | <content> is a bad name | 17:20 |
d2m | but it made it work for me | 17:20 |
philiKON | it ahs an alias | 17:20 |
philiKON | <class> | 17:20 |
philiKON | that's weird | 17:20 |
philiKON | here's the deal | 17:20 |
philiKON | the External Edit tab is only shown for objects providing zope.app.externaleditor.interfaces.IExternallyEditable | 17:20 |
philiKON | this is a marker interface with an implied contract | 17:20 |
philiKON | see its docstring | 17:21 |
roym | philiKON: is it possible to enable externaleditor for zpt and py files? | 17:23 |
d2m | philiKON: thats what i did, <content class="zope.app.pythonpage.PythonPage"><implements interface="zope.app.externaleditor.interfaces.IExternallyEditable"/></content> | 17:23 |
philiKON | roym, py files? | 17:33 |
philiKON | d2m, ah, well, that's something different :) | 17:33 |
philiKON | d2m, you didn't say anything about what you put inside the <content> thing | 17:33 |
d2m | philiKON: i see, it might better go into the overrides.zcml file ? | 17:33 |
philiKON | overrides.zcml is old-school | 17:34 |
philiKON | make an overrides.zcml in your package and hten include it via an *-overrides.zcml slug | 17:34 |
roym | philiKON: You were alluding to something about "what goes inside" the content decl. | 17:42 |
roym | I see that simply using the content declaration doesn't work. I get: | 17:43 |
roym | File "/usr/local/Zope3-trunk/src/zope/interface/interface.py", line 682, in __call__ | 17:43 |
roym | raise TypeError("Could not adapt", obj, self) | 17:43 |
roym | TypeError: ('Could not adapt', <zope.app.pythonpage.PythonPage object at 0x4396112c>, <InterfaceClass zope.app.filerepresentation.interfaces.IReadFile>) | 17:43 |
philiKON | roym, read the docstring to IExternallyEditable | 17:43 |
philiKON | i *said* it implies a contract | 17:43 |
philiKON | a part of that contract is being adaptable to IReadFile | 17:43 |
roym | Is this adapter already available or do I have to roll my own? | 17:44 |
philiKON | well, if you're getting "Could not adapt" it's probably not available :) | 17:45 |
roym | Would adding the content declaration in my overrides.zcml hide the original decl for the PythonPage or does it augment it? I imagine that an IReadFile adapter is what allows the TTW editing that is available now. | 17:47 |
philiKON | first, anything in overrides.zcml overrides | 17:50 |
philiKON | it doesn't augment | 17:50 |
philiKON | hence the name | 17:50 |
philiKON | second, the TTW editing has nothing to do with IReadFile adapters | 17:50 |
philiKON | got my book? | 17:50 |
roym | yes, I do. | 17:51 |
philiKON | chapter 10, adapters | 17:51 |
philiKON | file representation | 17:51 |
philiKON | that's what IReadFile is about | 17:51 |
philiKON | TTW forms are rendered from the schema | 17:52 |
roym | I used that to build an ftp adapter to my custom objects - sadly, that is now broken with the twisted implementation :( | 17:52 |
philiKON | how so?? | 17:52 |
philiKON | shouldn't be | 17:52 |
philiKON | what's the error? | 17:53 |
roym | Any attempt to ftp edit gives me: | 17:53 |
philiKON | please use a pastebin if it's a lot | 17:53 |
roym | result = f(*args, **kwargs) | 17:53 |
roym | File "/usr/local/Zope3-trunk/src/zope/app/twisted/ftp/ftp.py", line 177, in _stat | 17:53 |
roym | raise ftp.WrongFiletype() | 17:53 |
roym | twisted.protocols.ftp.WrongFiletype: | 17:53 |
philiKON | then what? | 17:54 |
philiKON | what's the wrong file type? | 17:54 |
roym | I get a blank screen.. | 17:54 |
roym | I think it doesn't like the 'd' type | 17:55 |
philiKON | 'd' type? | 17:55 |
roym | This error shows up even when editing a 'ZPT Page' added TTW, via ftp | 17:55 |
philiKON | "even" | 17:55 |
philiKON | not sure what you're saying | 17:56 |
philiKON | try editing a regular file object via HTTP | 17:57 |
philiKON | does that work? | 17:57 |
roym | do you mean http as in TTW, or with External Editor? | 17:57 |
philiKON | err, FTP i meant | 17:58 |
philiKON | try editing a regular file object via FTP | 17:58 |
roym | I think it might be my ange-ftp client not setting the type correctly to 'f' - I can do a command line "get" via ftp without issues. | 17:59 |
roym | Thanks | 18:01 |
roym | Quick question: is there an equivalent of Z2's Local File System in z3? | 18:01 |
philiKON | haven't seen one yet. but blobs are promising | 18:04 |
*** ignas has joined #zope3-dev | 18:11 | |
*** Aiste has joined #zope3-dev | 18:44 | |
*** roym has quit IRC | 18:45 | |
d2m | if i implement the IReadFile adapter for an object that returns unicode data (like PythonPage does), i get a "ValueError: Unicode results must have a text content type." exception | 18:46 |
d2m | where would i return that text content type ? | 18:46 |
philiKON | not sure. i think returning anything else than an 8byte string in a ReadFile adapter is asking for bad news | 18:47 |
d2m | thats true | 18:47 |
*** Aiste_ has quit IRC | 18:58 | |
*** ignas has quit IRC | 19:04 | |
*** natea has quit IRC | 19:09 | |
*** efge has joined #zope3-dev | 19:15 | |
*** natea has joined #zope3-dev | 19:29 | |
*** jinty has quit IRC | 19:31 | |
*** efge has quit IRC | 19:46 | |
*** efge has joined #zope3-dev | 19:49 | |
*** natea has quit IRC | 19:52 | |
*** wrobel has quit IRC | 19:57 | |
*** wrobel has joined #zope3-dev | 19:58 | |
*** ChanServ sets mode: +o tav | 20:32 | |
*** dunny has joined #zope3-dev | 20:35 | |
*** roym has joined #zope3-dev | 21:25 | |
*** xenru|clone has joined #zope3-dev | 21:59 | |
*** agroszer has quit IRC | 22:06 | |
*** xenru has quit IRC | 22:17 | |
*** natea has joined #zope3-dev | 22:41 | |
roym | I'm looking to add my own means of authentication (using SQL lookup) to a custom class based on PrincipalFolder. Is overriding getCredentials() all that I need to do here (aside from making my class a utility)? | 22:50 |
philiKON | huh? | 22:50 |
philiKON | are you trying to provide a custom means of extracting credentials from a request? | 22:51 |
roym | Am trying to use SQL (to store user/pw info in a table). | 22:51 |
philiKON | or are you trying to provide custom authentication of credentials with an existing user database | 22:51 |
roym | yes, the latter. | 22:51 |
philiKON | ok | 22:51 |
philiKON | i assume you're using zope.app.authentication and not zope.app.pluggableauth? | 22:52 |
roym | yes, the new version of authentication (and not based on the examples in the book). | 22:52 |
philiKON | you need to write an IAuthenticatorPlugin | 22:52 |
philiKON | you can look that interface up in apidoc | 22:52 |
roym | If I subclassed PrincipalFolder wouldn't that work well | 22:53 |
roym | and overrode getCredentials. | 22:53 |
philiKON | it's basically a local utility sitting a pluggable authentication instance | 22:53 |
philiKON | hmm | 22:53 |
philiKON | i don't see getCredentials | 22:53 |
philiKON | plus, i don't think it's what you want] | 22:54 |
roym | sorry, authenticateCredentials | 22:54 |
philiKON | yeah, but a PrincipalFolder is geared towards holding persistent principal objects | 22:54 |
philiKON | i mean, hey, IAuthenticatorPlugin is pretty easy | 22:54 |
roym | aah, that is what I was struggling with. | 22:54 |
philiKON | just two methods | 22:54 |
philiKON | authenticateCredentials and principalInfo | 22:55 |
philiKON | should be pretty easy to implement those | 22:55 |
philiKON | don't try to reuse stuff that isn't fit for reuse, especially not *that* kind of reuse | 22:55 |
roym | yes, agreed - am thrilled at having gotten over some basic issues in understanding how the whole PAU stuff works. | 22:56 |
philiKON | PAU is pretty easy | 22:56 |
philiKON | i like the simplicity of the framework | 22:56 |
philiKON | next edition of the book will cover it :) | 22:56 |
roym | Are you serious about making a 2nd ed? | 22:57 |
philiKON | yes | 22:57 |
philiKON | said it from the beginning | 22:57 |
philiKON | that i won't leave it at just the 1st edition | 22:57 |
roym | I'll be thrilled when it comes out. the first was helpful, but I didn't grok the new auth scheme till today. | 22:57 |
roym | What is the difference between "Found Principal" and "created principal" events? Do I need to care.... | 22:57 |
philiKON | found principal created event is a special principal created event | 22:58 |
philiKON | it's one that's fired when an principal object is created by means of searching | 22:59 |
philiKON | e.g. for a search result set | 22:59 |
roym | Also, from looking at the code, I take it that PrincipalInfo objects are lightweight - ie: created and destroyed lots of times in a session. correct? | 22:59 |
philiKON | basically yes | 23:00 |
*** mleist has left #zope3-dev | 23:00 | |
*** mleist has joined #zope3-dev | 23:00 | |
philiKON | i mean, it depends on the means you store the principals | 23:00 |
philiKON | persistent principals are obviously always there :) | 23:00 |
philiKON | because they live in the zodb | 23:00 |
philiKON | stuff coming from sql might not | 23:00 |
philiKON | perhaps sqlobject might be a good way to automate some of this | 23:01 |
roym | Is SQLObject ready for use w/trunk? | 23:01 |
philiKON | sqlobject is always ready :) | 23:01 |
roym | :) | 23:01 |
philiKON | you're probably talkign about sqlos | 23:01 |
philiKON | the sqlobject support package | 23:01 |
roym | sorry - yes. | 23:01 |
philiKON | i'm not sure, ask on #z3-base | 23:02 |
philiKON | but i thikn sqlos primarily focuses on content objects coming from sql | 23:02 |
philiKON | though principals coming from sql would be a nice feature for sqlos | 23:02 |
philiKON | perhaps you can contribute :) | 23:02 |
roym | As soon as I become more confident about my implementation, will be happy to.. | 23:02 |
philiKON | great | 23:03 |
philiKON | your contact is jinty at #z3-base | 23:03 |
roym | thanks | 23:03 |
philiKON | he's sort of maintaining sqlos | 23:03 |
philiKON | OMG, 5am | 23:03 |
* philiKON heads to bed | 23:03 | |
*** RockyBurt is now known as rocky | 23:57 | |
*** rocky is now known as RockyBurt | 23:58 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!