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

*** mkerrin has quit IRC00:02
srichterJ1m: ping00:04
J1mBTW did I miss discussion on the web SIG about logging?00:04
srichterno, I have been dragging my feet00:04
srichter:-(00:05
srichterI was very busy recently00:05
srichter(SchoolTool is in its end sprint of features for the upcoming school year)00:05
*** sashav has quit IRC00:05
J1mwe should really try to get this resolved this month.00:06
srichterI am fully booked for the next 3 weeks (due to the sprint)00:06
srichterand I am slo going to Rotterdam for a better part of a week00:07
*** J1m has quit IRC00:20
*** zmi_junkie has quit IRC00:30
*** zmi_junkie has joined #zope3-dev00:32
*** zbir has quit IRC00:39
*** benji has quit IRC00:51
*** natea_ has quit IRC00:51
*** natea has joined #zope3-dev00:59
*** zmi_junkie has quit IRC01:01
*** sawdog has left #zope3-dev01:09
*** d2m has quit IRC01:31
*** d2m_ has joined #zope3-dev01:31
*** d2m_ is now known as d2m01:31
*** jinty has joined #zope3-dev01:32
*** wrobel has quit IRC01:35
*** ruda_porto has quit IRC01:43
*** jinty has quit IRC01:50
*** yota has quit IRC02:00
*** fluff has quit IRC02:15
*** WebMaven has joined #zope3-dev02:24
*** alga has joined #zope3-dev02:34
WebMavenHi, 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
WebMavenI have gcc 4.0 installed.02:45
efgeWebMaven: gcc 4.0 works fine here on Mac OS X02:47
WebMavenis there a pastebin commonly used by this channel?02:49
WebMavenhere is what I get from doing ./configure and then make: http://paste.plone.org/198302:52
efgeno idea what that could be, something fucked up in your gcc install?03:08
WebMavenmaybe... but i just installed gcc via synaptic (on Ubuntu), so I don't think that's too likely.03:14
*** niemeyer has quit IRC03:27
*** taf2 has quit IRC03:45
*** stub has joined #zope3-dev03:56
WebMavensrichter: AYT?04:00
WebMavenphiliKON: AYT?04:09
*** stub has quit IRC04:43
WebMavenCman 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 signedness04:44
*** zbir has joined #zope3-dev04:55
*** efge has quit IRC04:57
philiKONWebMaven, now i am04:58
*** tahara has joined #zope3-dev05:50
*** alga has quit IRC07:08
*** dobee has joined #zope3-dev07:09
*** philiKON has quit IRC07:10
*** deo has quit IRC07:56
*** philiKON has joined #zope3-dev08:05
*** sashav has joined #zope3-dev08:50
*** dobee has quit IRC08:50
*** dobee has joined #zope3-dev09:54
*** yota has joined #zope3-dev10:53
*** RockyBurt has quit IRC11:12
*** RockyBurt has joined #zope3-dev11:12
*** wrobel has joined #zope3-dev11:25
*** agroszer has joined #zope3-dev11:31
*** tahara has quit IRC11:40
*** alga has joined #zope3-dev11:52
*** Aiste has joined #zope3-dev12:09
*** dunny has quit IRC12:23
*** mleist has quit IRC12:32
*** markus_ has joined #zope3-dev12:33
*** mleist has joined #zope3-dev12:33
*** markus__ has joined #zope3-dev12:41
*** markus_ has quit IRC12:42
*** mleist has left #zope3-dev12:45
*** mleist has joined #zope3-dev12:46
*** markus__ has quit IRC12:46
*** jinty has joined #zope3-dev12:57
*** J1m has joined #zope3-dev14:07
*** wrobel has quit IRC14:28
*** wrobel has joined #zope3-dev14:33
*** J1m has quit IRC15:00
*** Aiste_ has joined #zope3-dev15:02
*** Aiste has quit IRC15:02
*** romanofski has joined #zope3-dev15:06
romanofskimoin15:08
philiKONmoin romanofski15:14
romanofskihey philiKON :)15:24
*** roym has joined #zope3-dev15:35
*** sashav_ has joined #zope3-dev15:49
*** sashav has quit IRC15:49
*** sashav_ is now known as sashav15:49
*** RockyBurt has left #zope3-dev16:02
*** RockyBurt has joined #zope3-dev16:17
*** RockyBurt has quit IRC16:32
*** RockyBurt has joined #zope3-dev16:33
*** romanofski has quit IRC16:40
roymIf 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 _stat16:51
roym    raise ftp.WrongFiletype()16:51
roymtwisted.protocols.ftp.WrongFiletype:16:51
d2mroym: quick solution: use ExternaleEditor16:56
roymHow would I use it? - would I need to use webdav (I see that there is a page called "external_edit" defined).17:07
d2mroym: working with the trunk you already got "src/zope/app/externaleditor"17:12
roymWhat 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
d2mroym: 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
roymd2m: thanks!17:14
d2mroym: check if zopeskel/etc/package-includes/zope.app.externaleditor-configure.zcml is available too17:16
roymyes, it is indeed. I guess I just need to follow your suggestions for both PythonPage and TemplateFile types.17:19
philiKONd2m, <content> for zope.app.pythonpage.PythonPage has nothing to do with the External Edit tab17:19
philiKON<content> is all about security declarations (and some minor things like factories from class and additional interfaces)17:19
d2mphiliKON: oh, did not know that17:20
philiKON<content> is a bad name17:20
d2mbut it made it work for me17:20
philiKONit ahs an alias17:20
philiKON<class>17:20
philiKONthat's weird17:20
philiKONhere's the deal17:20
philiKONthe External Edit tab is only shown for objects providing zope.app.externaleditor.interfaces.IExternallyEditable17:20
philiKONthis is a marker interface with an implied contract17:20
philiKONsee its docstring17:21
roymphiliKON: is it possible to enable externaleditor for zpt and py files?17:23
d2mphiliKON: thats what i did, <content class="zope.app.pythonpage.PythonPage"><implements interface="zope.app.externaleditor.interfaces.IExternallyEditable"/></content>17:23
philiKONroym, py files?17:33
philiKONd2m, ah, well, that's something different :)17:33
philiKONd2m, you didn't say anything about what you put inside the <content> thing17:33
d2mphiliKON: i see, it might better go into the overrides.zcml file ?17:33
philiKONoverrides.zcml is old-school17:34
philiKONmake an overrides.zcml in your package and hten include it via an *-overrides.zcml slug17:34
roymphiliKON: You were alluding to something about "what goes inside" the content decl.17:42
roymI 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
roymTypeError: ('Could not adapt', <zope.app.pythonpage.PythonPage object at 0x4396112c>, <InterfaceClass zope.app.filerepresentation.interfaces.IReadFile>)17:43
philiKONroym, read the docstring to IExternallyEditable17:43
philiKONi *said* it implies a contract17:43
philiKONa part of that contract is being adaptable to IReadFile17:43
roymIs this adapter already available or do I have to roll my own?17:44
philiKONwell, if you're getting "Could not adapt" it's probably not available :)17:45
roymWould 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
philiKONfirst, anything in overrides.zcml overrides17:50
philiKONit doesn't augment17:50
philiKONhence the name17:50
philiKONsecond, the TTW editing has nothing to do with IReadFile adapters17:50
philiKONgot my book?17:50
roymyes, I do.17:51
philiKONchapter 10, adapters17:51
philiKONfile representation17:51
philiKONthat's what IReadFile is about17:51
philiKONTTW forms are rendered from the schema17:52
roymI used that to build an ftp adapter to my custom objects - sadly, that is now broken with the twisted implementation :(17:52
philiKONhow so??17:52
philiKONshouldn't be17:52
philiKONwhat's the error?17:53
roymAny attempt to ftp edit gives me:17:53
philiKONplease use a pastebin if it's a lot17:53
roym    result = f(*args, **kwargs)17:53
roym  File "/usr/local/Zope3-trunk/src/zope/app/twisted/ftp/ftp.py", line 177, in _stat17:53
roym    raise ftp.WrongFiletype()17:53
roymtwisted.protocols.ftp.WrongFiletype:17:53
philiKONthen what?17:54
philiKONwhat's the wrong file type?17:54
roymI get a blank screen..17:54
roymI think it doesn't like the 'd' type17:55
philiKON'd' type?17:55
roymThis error shows up even when editing a 'ZPT Page' added TTW, via ftp17:55
philiKON"even"17:55
philiKONnot sure what you're saying17:56
philiKONtry editing a regular file object via HTTP17:57
philiKONdoes that work?17:57
roymdo you mean http as in TTW, or with External Editor?17:57
philiKONerr, FTP i meant17:58
philiKONtry editing a regular file object via FTP17:58
roymI 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
roymThanks18:01
roymQuick question: is there an equivalent of Z2's Local File System in z3?18:01
philiKONhaven't seen one yet. but blobs are promising18:04
*** ignas has joined #zope3-dev18:11
*** Aiste has joined #zope3-dev18:44
*** roym has quit IRC18:45
d2mif 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." exception18:46
d2mwhere would i return that text content type ?18:46
philiKONnot sure. i think returning anything else than an 8byte string in a ReadFile adapter is asking for bad news18:47
d2mthats true18:47
*** Aiste_ has quit IRC18:58
*** ignas has quit IRC19:04
*** natea has quit IRC19:09
*** efge has joined #zope3-dev19:15
*** natea has joined #zope3-dev19:29
*** jinty has quit IRC19:31
*** efge has quit IRC19:46
*** efge has joined #zope3-dev19:49
*** natea has quit IRC19:52
*** wrobel has quit IRC19:57
*** wrobel has joined #zope3-dev19:58
*** ChanServ sets mode: +o tav20:32
*** dunny has joined #zope3-dev20:35
*** roym has joined #zope3-dev21:25
*** xenru|clone has joined #zope3-dev21:59
*** agroszer has quit IRC22:06
*** xenru has quit IRC22:17
*** natea has joined #zope3-dev22:41
roymI'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
philiKONhuh?22:50
philiKONare you trying to provide a custom means of extracting credentials from a request?22:51
roymAm trying to use SQL (to store user/pw info in a table).22:51
philiKONor are you trying to provide custom authentication of credentials with an existing user database22:51
roymyes, the latter.22:51
philiKONok22:51
philiKONi assume you're using zope.app.authentication and not zope.app.pluggableauth?22:52
roymyes, the new version of authentication (and not based on the examples in the book).22:52
philiKONyou need to write an IAuthenticatorPlugin22:52
philiKONyou can look that interface up in apidoc22:52
roymIf I subclassed PrincipalFolder wouldn't that work well22:53
roymand overrode getCredentials.22:53
philiKONit's basically a local utility sitting a pluggable authentication instance22:53
philiKONhmm22:53
philiKONi don't see getCredentials22:53
philiKONplus, i don't think it's what you want]22:54
roymsorry, authenticateCredentials22:54
philiKONyeah, but a PrincipalFolder is geared towards holding persistent principal objects22:54
philiKONi mean, hey, IAuthenticatorPlugin is pretty easy22:54
roymaah, that is what I was struggling with.22:54
philiKONjust two methods22:54
philiKONauthenticateCredentials and principalInfo22:55
philiKONshould be pretty easy to implement those22:55
philiKONdon't try to reuse stuff that isn't fit for reuse, especially not *that* kind of reuse22:55
roymyes, agreed - am thrilled at having gotten over some basic issues in understanding how the whole PAU stuff works.22:56
philiKONPAU is pretty easy22:56
philiKONi like the simplicity of the framework22:56
philiKONnext edition of the book will cover it :)22:56
roymAre you serious about making a 2nd ed?22:57
philiKONyes22:57
philiKONsaid it from the beginning22:57
philiKONthat i won't leave it at just the 1st edition22:57
roymI'll be thrilled when it comes out. the first was helpful, but I didn't grok the new auth scheme till today.22:57
roymWhat is the difference between "Found Principal" and "created principal" events? Do I need to care....22:57
philiKONfound principal created event is a special principal created event22:58
philiKONit's one that's fired when an principal object is created by means of searching22:59
philiKONe.g. for a search result set22:59
roymAlso, 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
philiKONbasically yes23:00
*** mleist has left #zope3-dev23:00
*** mleist has joined #zope3-dev23:00
philiKONi mean, it depends on the means you store the principals23:00
philiKONpersistent principals are obviously always there :)23:00
philiKONbecause they live in the zodb23:00
philiKONstuff coming from sql might not23:00
philiKONperhaps sqlobject might be a good way to automate some of this23:01
roymIs SQLObject ready for use w/trunk?23:01
philiKONsqlobject is always ready :)23:01
roym:)23:01
philiKONyou're probably talkign about sqlos23:01
philiKONthe sqlobject support package23:01
roymsorry - yes.23:01
philiKONi'm not sure, ask on #z3-base23:02
philiKONbut i thikn sqlos primarily focuses on content objects coming from sql23:02
philiKONthough principals coming from sql would be a nice feature for sqlos23:02
philiKONperhaps you can contribute :)23:02
roymAs soon as I become more confident about my implementation, will be happy to..23:02
philiKONgreat23:03
philiKONyour contact is jinty at #z3-base23:03
roymthanks23:03
philiKONhe's sort of maintaining sqlos23:03
philiKONOMG, 5am23:03
* philiKON heads to bed23:03
*** RockyBurt is now known as rocky23:57
*** rocky is now known as RockyBurt23:58

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