IRC log of #zope3-dev for Monday, 2006-04-24

roymIs there a more "modern" way to restrict the possible types for a container (than using __setitem__.precondition)?00:07
projekt01roym, yes, see contains and containers(interface or dotted name as string)00:11
projekt01from zope.app.container.constraints import containers00:12
projekt01from zope.app.container.constraints import contains00:12
roymgracias.00:12
projekt01np00:12
*** Aiste is now known as Aiste|away00:25
*** rockyburt has quit IRC00:27
*** dunny has quit IRC00:41
*** deo has joined #zope3-dev00:49
*** MJ has quit IRC00:51
*** natea has joined #zope3-dev01:02
*** natea has quit IRC01:03
*** natea has joined #zope3-dev01:08
*** natea has quit IRC01:26
*** RaFromBRC has joined #zope3-dev01:31
*** RaFromBRC has quit IRC01:40
roymI know its late - but I have a baffling error. If I specify a container constraint on my object and then try to add it, I get a message as follows:01:55
roym  return zapi.getMultiAdapter((field, request), viewType)01:55
roymFile "/usr/local/Zope3-trunk/src/zope/component/__init__.py", line 154,01:55
roym  in getMultiAdapter01:55
roym  raise ComponentLookupError(objects, interface, name)01:55
roymComponentLookupError: ((<zope.schema._bootstrapfields.Field object at01:55
roym0x44ee0b6c>, <zope.publisher.browser.BrowserRequest instance01:55
roymURL=http://.../@@+/action.html>),01:56
roym<InterfaceClass zope.app.form.interfaces.IInputWidget>, u'')01:56
*** jinty has joined #zope3-dev01:56
roymAll is well if I remove the container constraint.01:56
roymWhat am I missing?01:56
projekt01The container method used in interfaces add implicit a __parent__ field to the interface01:58
projekt01can you post the form configure registration?01:58
roymprojekt01: are you talking about the FULL request?01:59
roymor the ZCML registration....01:59
projekt01no just the configure.zcml01:59
projekt01...and the interface of the object02:00
roymso you're saying the missing widget is that that corresponds to the implicit __parent__?02:01
projekt01yes, but you have to register the view exluding a __parent__ field02:01
projekt01you can do this with fields="foo bar butNotParent"02:02
roymI see - that's it then!02:02
roymthanks.02:02
roymso I would modify the addform directive.. but not the containerViews, correct.02:03
*** tarek has quit IRC02:05
projekt01yes02:05
projekt01and all other form directive like editform02:06
roymthankyou.02:07
projekt01no problem02:07
*** roym has quit IRC02:15
*** J1m has quit IRC02:19
*** dunny has joined #zope3-dev03:01
*** deo has quit IRC03:07
*** projekt01 has left #zope3-dev03:19
*** cilkay has joined #zope3-dev03:41
*** yota has quit IRC04:19
*** jinty has quit IRC04:26
*** natea has joined #zope3-dev04:33
*** natea is now known as natea|sanfran04:33
*** natea|sanfran has quit IRC05:17
*** stub has joined #zope3-dev06:33
*** gnibbler has joined #zope3-dev07:04
*** eins has joined #zope3-dev08:05
einshi08:05
*** dobee has joined #zope3-dev08:05
*** philiKON has quit IRC08:06
*** RaFromBRC has joined #zope3-dev08:16
*** zopePloneConsult has joined #zope3-dev08:18
*** dobee has quit IRC08:22
*** mcdonc has quit IRC08:33
*** dobee has joined #zope3-dev08:48
*** jukart has joined #zope3-dev09:05
*** The|uni has joined #zope3-dev09:12
*** zagy has joined #zope3-dev09:16
*** natea has joined #zope3-dev09:17
*** RaFromBRC has quit IRC09:27
einshow do I specify several preconditions for lets say __setitem__?09:32
*** natea has quit IRC09:37
*** hdima has joined #zope3-dev09:43
*** yota has joined #zope3-dev09:44
*** romanofski has joined #zope3-dev09:49
romanofskimoin09:51
*** yota has quit IRC09:54
*** yota has joined #zope3-dev09:58
dobeejukart: ayt?10:00
*** The|uni has quit IRC10:05
einsis there a way to set default value for schema field that would depend on context?10:39
*** sashav has joined #zope3-dev10:41
*** MJ has joined #zope3-dev10:48
*** alecm has joined #zope3-dev10:53
*** povbot` has joined #zope3-dev11:01
*** alecm has quit IRC11:08
*** jukart has quit IRC11:14
*** povbot has quit IRC11:15
*** stub has quit IRC11:23
*** stub has joined #zope3-dev11:32
*** MJ has quit IRC11:41
*** Aiste|away is now known as Aiste11:58
*** stub has quit IRC12:33
*** Aiste has quit IRC12:43
*** The|uni has joined #zope3-dev12:45
*** rockyburt has joined #zope3-dev12:51
*** philiKON has joined #zope3-dev12:52
*** zopePloneConsult has quit IRC12:53
*** philiKON has quit IRC13:02
*** philiKON has joined #zope3-dev13:03
*** J1m has joined #zope3-dev13:03
*** mkerrin has joined #zope3-dev13:04
*** Aiste has joined #zope3-dev13:07
*** mgedmin has joined #zope3-dev13:07
*** mkerrin has joined #zope3-dev13:08
*** jinty has joined #zope3-dev13:39
*** dobee has quit IRC13:45
*** dobee has joined #zope3-dev13:49
*** TrevorP has joined #zope3-dev13:51
*** philiKON has quit IRC13:51
*** alga has joined #zope3-dev13:54
*** sashav has quit IRC13:57
*** sashav has joined #zope3-dev13:57
*** rockyburt is now known as rockyburt|away14:06
*** ignas has joined #zope3-dev14:07
*** zbir has quit IRC14:08
*** MJ has joined #zope3-dev14:17
*** J1m has quit IRC14:19
*** andres has joined #zope3-dev14:31
*** dunny has quit IRC14:33
*** jinty has quit IRC14:39
*** stub has joined #zope3-dev14:42
*** The|uni is now known as theuni14:46
*** alecm has joined #zope3-dev14:51
*** alecm has quit IRC14:59
*** jinty has joined #zope3-dev14:59
*** mgedmin has quit IRC15:08
*** benji has joined #zope3-dev15:18
*** niemeyer has joined #zope3-dev15:21
*** faassen has joined #zope3-dev15:21
*** MJ has quit IRC15:27
*** ignas has quit IRC15:30
*** jinty has quit IRC15:32
*** seang has quit IRC15:33
*** ignas has joined #zope3-dev15:41
*** jinty has joined #zope3-dev15:42
*** zagy_ has joined #zope3-dev15:45
*** efge has joined #zope3-dev15:51
*** zagy has quit IRC15:56
*** eins has quit IRC16:14
*** philiKON has joined #zope3-dev16:17
*** gumpa has joined #zope3-dev16:18
*** zagy_ has quit IRC16:29
*** aaalex has joined #zope3-dev16:33
aaalexhi16:33
*** zagy has joined #zope3-dev16:33
aaalexanybody here?16:35
*** jmorliaguet has joined #zope3-dev16:40
*** zbir has joined #zope3-dev16:46
aaalexhello?16:52
*** sashav has quit IRC16:54
Aisteaaalex: I suggest you ask the question first and then see if anyone will answer it16:54
aaalexokay... at least somebody is reading16:55
aaalexquestion: digging myself into zope3 site development... I haven't found anything about user management... can anybody tell me how I would integrate that into a simple site?16:56
*** j1m has joined #zope3-dev16:57
aaalexwhat I did find was prinzipals.zcml and pluggable-authentication-modules16:57
aaalexbut I want zope to manage the users not some external source16:58
aaalex:-(17:07
ignasaaalex: you can use pluggable-authentication-modules with zopes principal folders17:13
ignasso zope will track users17:13
ignas pluggable-authentication-modules are not just for external sources17:13
*** TrevorP has quit IRC17:15
*** andres_ has joined #zope3-dev17:15
*** wiggy has joined #zope3-dev17:18
*** _sussi has joined #zope3-dev17:24
*** _sussi has quit IRC17:28
*** regebro has joined #zope3-dev17:28
*** goschtel_ has joined #zope3-dev17:28
*** roym has joined #zope3-dev17:28
aaalexignas: thanks for the answer... do you have an URL with an example?17:29
*** andres has quit IRC17:30
ignasaaalex: no, sorry, the code i have worked on is not open source :/17:30
*** seang has joined #zope3-dev17:31
*** whit has joined #zope3-dev17:37
aaalexignas: hmm... so I will have to read the zope3 source ....17:37
ignasjust the documentation17:37
ignasfor PrincipalFolders17:37
ignasLocalAuthentictionUtility17:37
ignasetc.17:37
*** natea has joined #zope3-dev17:38
aaalexignas: thanks for your time17:38
*** gumpa has quit IRC17:43
*** gumpa has joined #zope3-dev17:43
*** aaalex has quit IRC17:50
*** TrevorP has joined #zope3-dev17:52
*** zbir` has joined #zope3-dev17:54
*** zbir has quit IRC17:56
*** goschtel_ has left #zope3-dev18:03
*** natea has quit IRC18:14
*** zbir` is now known as zbir18:17
*** stub has quit IRC18:18
*** alga has quit IRC18:18
*** jmorliaguet has left #zope3-dev18:19
*** hdima has quit IRC18:20
*** whit is now known as whit|inlaws18:22
*** TrevorP has quit IRC18:22
*** sm has joined #zope3-dev18:26
*** zagy has quit IRC18:27
*** mkerrin has quit IRC18:34
*** niemeyer is now known as nie_lunch18:36
*** mkerrin has joined #zope3-dev18:46
*** stub has joined #zope3-dev19:11
roymIs session data automatically persisted to ZODB? I have plans to store a very large set of data in the session, and am wondering if the performance impact will kill this idea.19:11
efgesession is stored in ram, not zodb19:12
roymI was a little unsure, because the introductory para in session/api.txt gives a rather stern warning about modifying session data too frequently.19:14
roymIf it is always in RAM, then why the cautionary note?19:14
*** zbir has quit IRC19:15
faassenroym: it's possible to have sessions be stored in ZODB I think but it takes special action.. sometimes done in ZEO setups. don't know whethe it is common19:16
*** zbir has joined #zope3-dev19:16
regebroIt still takes processing power. Session data is available over threads, through a special type of ZODB storage.19:17
regebro(At least, I assume this is the same in Zope3 as in Zope2).19:17
*** romanofski has quit IRC19:18
roymThe only implementations that I see for ISessionDataContainer are PersistentSessionDataContainer and RAMSessionDataContainer (which unfortunately extends PersistentSessionDataContainer despite the name).19:18
roymam I missing a lighter weight one?19:18
*** whit|inlaws is now known as whit19:19
roymThe last time I asked this question, I was told that it might have been done that way to accomodate ZEO.19:21
*** nie_lunch is now known as niemeyer19:21
regebroThat's it, yes.19:24
roymok. thanks for confirming. Hope its not too ambitious, but I might try to roll my own SessionDataContainer.19:27
regebroYeah, I have no clue how much you can simplify. You still need to make the data safely accessible between threads, and be transactional Iguess.19:37
*** zagy has joined #zope3-dev19:50
*** natea has joined #zope3-dev19:59
*** theuni has quit IRC20:09
*** Aiste has quit IRC20:19
*** alga has joined #zope3-dev20:21
*** faassen has quit IRC20:23
*** mgedmin has joined #zope3-dev20:27
*** dobee has quit IRC20:29
*** RaFromBRC has joined #zope3-dev20:40
*** fcorrea has joined #zope3-dev20:48
*** dobee has joined #zope3-dev20:49
*** Theuni has joined #zope3-dev20:50
*** tarek has joined #zope3-dev20:56
*** sashav has joined #zope3-dev20:58
mgedminhow do you uncheck a checkbox with testbrowser?20:58
mgedminbrowser.getControl('Label').selected = False?20:59
mgedmin(this didn't work for me when I tried it)20:59
mgedminoh, I forgot form validation20:59
mgedminno, the form validates just fine21:00
* mgedmin hates testbrowser at times like this21:03
Theunipoor mgedmin ...21:06
mgedminpoor testbrowser -- it works just fine, but my app behaves strangely21:08
mgedminaaagh, I'm an idiot!21:09
mgedminalthough I expected testbrowser's getLink('foo') raise an exception when there are several links with text 'foo'21:10
mgedminand not just follow the first one21:10
*** Aiste has joined #zope3-dev21:12
*** kamalgill has joined #zope3-dev21:14
*** zagy has quit IRC21:15
*** stub has quit IRC21:20
*** jinty has quit IRC21:21
*** regebro has quit IRC21:21
*** dobee has quit IRC21:23
*** agroszer has joined #zope3-dev21:32
*** efge has quit IRC21:35
*** tarek has quit IRC21:41
benji mgedmin, It would be a backward-incompatible change, but making getLink raise an AmbiguityError like getControl does would probably be an improvement21:49
*** tarek has joined #zope3-dev21:50
*** mgedmin has quit IRC21:59
*** niemeyer_ has joined #zope3-dev22:04
*** niemeyer has quit IRC22:04
*** alga has quit IRC22:04
*** natea has quit IRC22:09
*** alecm has joined #zope3-dev22:16
*** MJ has joined #zope3-dev22:17
*** ignas has quit IRC22:18
*** mkerrin has quit IRC22:22
*** niemeyer_ is now known as niemeyer22:24
*** kamalgill is now known as kamalnearby22:25
*** sashav has quit IRC22:37
*** alecm has quit IRC22:59
*** zbir has quit IRC23:20
*** MJ has quit IRC23:21
*** rockyburt|away has quit IRC23:22
*** kamalnearby is now known as kamalgill23:23
*** rockyburt has joined #zope3-dev23:24
*** rockyburt is now known as rockyburt|away23:27
*** natea has joined #zope3-dev23:29
*** natea is now known as natea|sanfran23:44

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