| roym | Is there a more "modern" way to restrict the possible types for a container (than using __setitem__.precondition)? | 00:07 |
|---|---|---|
| projekt01 | roym, yes, see contains and containers(interface or dotted name as string) | 00:11 |
| projekt01 | from zope.app.container.constraints import containers | 00:12 |
| projekt01 | from zope.app.container.constraints import contains | 00:12 |
| roym | gracias. | 00:12 |
| projekt01 | np | 00:12 |
| *** Aiste is now known as Aiste|away | 00:25 | |
| *** rockyburt has quit IRC | 00:27 | |
| *** dunny has quit IRC | 00:41 | |
| *** deo has joined #zope3-dev | 00:49 | |
| *** MJ has quit IRC | 00:51 | |
| *** natea has joined #zope3-dev | 01:02 | |
| *** natea has quit IRC | 01:03 | |
| *** natea has joined #zope3-dev | 01:08 | |
| *** natea has quit IRC | 01:26 | |
| *** RaFromBRC has joined #zope3-dev | 01:31 | |
| *** RaFromBRC has quit IRC | 01:40 | |
| roym | I 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 |
| roym | File "/usr/local/Zope3-trunk/src/zope/component/__init__.py", line 154, | 01:55 |
| roym | in getMultiAdapter | 01:55 |
| roym | raise ComponentLookupError(objects, interface, name) | 01:55 |
| roym | ComponentLookupError: ((<zope.schema._bootstrapfields.Field object at | 01:55 |
| roym | 0x44ee0b6c>, <zope.publisher.browser.BrowserRequest instance | 01:55 |
| roym | URL=http://.../@@+/action.html>), | 01:56 |
| roym | <InterfaceClass zope.app.form.interfaces.IInputWidget>, u'') | 01:56 |
| *** jinty has joined #zope3-dev | 01:56 | |
| roym | All is well if I remove the container constraint. | 01:56 |
| roym | What am I missing? | 01:56 |
| projekt01 | The container method used in interfaces add implicit a __parent__ field to the interface | 01:58 |
| projekt01 | can you post the form configure registration? | 01:58 |
| roym | projekt01: are you talking about the FULL request? | 01:59 |
| roym | or the ZCML registration.... | 01:59 |
| projekt01 | no just the configure.zcml | 01:59 |
| projekt01 | ...and the interface of the object | 02:00 |
| roym | so you're saying the missing widget is that that corresponds to the implicit __parent__? | 02:01 |
| projekt01 | yes, but you have to register the view exluding a __parent__ field | 02:01 |
| projekt01 | you can do this with fields="foo bar butNotParent" | 02:02 |
| roym | I see - that's it then! | 02:02 |
| roym | thanks. | 02:02 |
| roym | so I would modify the addform directive.. but not the containerViews, correct. | 02:03 |
| *** tarek has quit IRC | 02:05 | |
| projekt01 | yes | 02:05 |
| projekt01 | and all other form directive like editform | 02:06 |
| roym | thankyou. | 02:07 |
| projekt01 | no problem | 02:07 |
| *** roym has quit IRC | 02:15 | |
| *** J1m has quit IRC | 02:19 | |
| *** dunny has joined #zope3-dev | 03:01 | |
| *** deo has quit IRC | 03:07 | |
| *** projekt01 has left #zope3-dev | 03:19 | |
| *** cilkay has joined #zope3-dev | 03:41 | |
| *** yota has quit IRC | 04:19 | |
| *** jinty has quit IRC | 04:26 | |
| *** natea has joined #zope3-dev | 04:33 | |
| *** natea is now known as natea|sanfran | 04:33 | |
| *** natea|sanfran has quit IRC | 05:17 | |
| *** stub has joined #zope3-dev | 06:33 | |
| *** gnibbler has joined #zope3-dev | 07:04 | |
| *** eins has joined #zope3-dev | 08:05 | |
| eins | hi | 08:05 |
| *** dobee has joined #zope3-dev | 08:05 | |
| *** philiKON has quit IRC | 08:06 | |
| *** RaFromBRC has joined #zope3-dev | 08:16 | |
| *** zopePloneConsult has joined #zope3-dev | 08:18 | |
| *** dobee has quit IRC | 08:22 | |
| *** mcdonc has quit IRC | 08:33 | |
| *** dobee has joined #zope3-dev | 08:48 | |
| *** jukart has joined #zope3-dev | 09:05 | |
| *** The|uni has joined #zope3-dev | 09:12 | |
| *** zagy has joined #zope3-dev | 09:16 | |
| *** natea has joined #zope3-dev | 09:17 | |
| *** RaFromBRC has quit IRC | 09:27 | |
| eins | how do I specify several preconditions for lets say __setitem__? | 09:32 |
| *** natea has quit IRC | 09:37 | |
| *** hdima has joined #zope3-dev | 09:43 | |
| *** yota has joined #zope3-dev | 09:44 | |
| *** romanofski has joined #zope3-dev | 09:49 | |
| romanofski | moin | 09:51 |
| *** yota has quit IRC | 09:54 | |
| *** yota has joined #zope3-dev | 09:58 | |
| dobee | jukart: ayt? | 10:00 |
| *** The|uni has quit IRC | 10:05 | |
| eins | is there a way to set default value for schema field that would depend on context? | 10:39 |
| *** sashav has joined #zope3-dev | 10:41 | |
| *** MJ has joined #zope3-dev | 10:48 | |
| *** alecm has joined #zope3-dev | 10:53 | |
| *** povbot` has joined #zope3-dev | 11:01 | |
| *** alecm has quit IRC | 11:08 | |
| *** jukart has quit IRC | 11:14 | |
| *** povbot has quit IRC | 11:15 | |
| *** stub has quit IRC | 11:23 | |
| *** stub has joined #zope3-dev | 11:32 | |
| *** MJ has quit IRC | 11:41 | |
| *** Aiste|away is now known as Aiste | 11:58 | |
| *** stub has quit IRC | 12:33 | |
| *** Aiste has quit IRC | 12:43 | |
| *** The|uni has joined #zope3-dev | 12:45 | |
| *** rockyburt has joined #zope3-dev | 12:51 | |
| *** philiKON has joined #zope3-dev | 12:52 | |
| *** zopePloneConsult has quit IRC | 12:53 | |
| *** philiKON has quit IRC | 13:02 | |
| *** philiKON has joined #zope3-dev | 13:03 | |
| *** J1m has joined #zope3-dev | 13:03 | |
| *** mkerrin has joined #zope3-dev | 13:04 | |
| *** Aiste has joined #zope3-dev | 13:07 | |
| *** mgedmin has joined #zope3-dev | 13:07 | |
| *** mkerrin has joined #zope3-dev | 13:08 | |
| *** jinty has joined #zope3-dev | 13:39 | |
| *** dobee has quit IRC | 13:45 | |
| *** dobee has joined #zope3-dev | 13:49 | |
| *** TrevorP has joined #zope3-dev | 13:51 | |
| *** philiKON has quit IRC | 13:51 | |
| *** alga has joined #zope3-dev | 13:54 | |
| *** sashav has quit IRC | 13:57 | |
| *** sashav has joined #zope3-dev | 13:57 | |
| *** rockyburt is now known as rockyburt|away | 14:06 | |
| *** ignas has joined #zope3-dev | 14:07 | |
| *** zbir has quit IRC | 14:08 | |
| *** MJ has joined #zope3-dev | 14:17 | |
| *** J1m has quit IRC | 14:19 | |
| *** andres has joined #zope3-dev | 14:31 | |
| *** dunny has quit IRC | 14:33 | |
| *** jinty has quit IRC | 14:39 | |
| *** stub has joined #zope3-dev | 14:42 | |
| *** The|uni is now known as theuni | 14:46 | |
| *** alecm has joined #zope3-dev | 14:51 | |
| *** alecm has quit IRC | 14:59 | |
| *** jinty has joined #zope3-dev | 14:59 | |
| *** mgedmin has quit IRC | 15:08 | |
| *** benji has joined #zope3-dev | 15:18 | |
| *** niemeyer has joined #zope3-dev | 15:21 | |
| *** faassen has joined #zope3-dev | 15:21 | |
| *** MJ has quit IRC | 15:27 | |
| *** ignas has quit IRC | 15:30 | |
| *** jinty has quit IRC | 15:32 | |
| *** seang has quit IRC | 15:33 | |
| *** ignas has joined #zope3-dev | 15:41 | |
| *** jinty has joined #zope3-dev | 15:42 | |
| *** zagy_ has joined #zope3-dev | 15:45 | |
| *** efge has joined #zope3-dev | 15:51 | |
| *** zagy has quit IRC | 15:56 | |
| *** eins has quit IRC | 16:14 | |
| *** philiKON has joined #zope3-dev | 16:17 | |
| *** gumpa has joined #zope3-dev | 16:18 | |
| *** zagy_ has quit IRC | 16:29 | |
| *** aaalex has joined #zope3-dev | 16:33 | |
| aaalex | hi | 16:33 |
| *** zagy has joined #zope3-dev | 16:33 | |
| aaalex | anybody here? | 16:35 |
| *** jmorliaguet has joined #zope3-dev | 16:40 | |
| *** zbir has joined #zope3-dev | 16:46 | |
| aaalex | hello? | 16:52 |
| *** sashav has quit IRC | 16:54 | |
| Aiste | aaalex: I suggest you ask the question first and then see if anyone will answer it | 16:54 |
| aaalex | okay... at least somebody is reading | 16:55 |
| aaalex | question: 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-dev | 16:57 | |
| aaalex | what I did find was prinzipals.zcml and pluggable-authentication-modules | 16:57 |
| aaalex | but I want zope to manage the users not some external source | 16:58 |
| aaalex | :-( | 17:07 |
| ignas | aaalex: you can use pluggable-authentication-modules with zopes principal folders | 17:13 |
| ignas | so zope will track users | 17:13 |
| ignas | pluggable-authentication-modules are not just for external sources | 17:13 |
| *** TrevorP has quit IRC | 17:15 | |
| *** andres_ has joined #zope3-dev | 17:15 | |
| *** wiggy has joined #zope3-dev | 17:18 | |
| *** _sussi has joined #zope3-dev | 17:24 | |
| *** _sussi has quit IRC | 17:28 | |
| *** regebro has joined #zope3-dev | 17:28 | |
| *** goschtel_ has joined #zope3-dev | 17:28 | |
| *** roym has joined #zope3-dev | 17:28 | |
| aaalex | ignas: thanks for the answer... do you have an URL with an example? | 17:29 |
| *** andres has quit IRC | 17:30 | |
| ignas | aaalex: no, sorry, the code i have worked on is not open source :/ | 17:30 |
| *** seang has joined #zope3-dev | 17:31 | |
| *** whit has joined #zope3-dev | 17:37 | |
| aaalex | ignas: hmm... so I will have to read the zope3 source .... | 17:37 |
| ignas | just the documentation | 17:37 |
| ignas | for PrincipalFolders | 17:37 |
| ignas | LocalAuthentictionUtility | 17:37 |
| ignas | etc. | 17:37 |
| *** natea has joined #zope3-dev | 17:38 | |
| aaalex | ignas: thanks for your time | 17:38 |
| *** gumpa has quit IRC | 17:43 | |
| *** gumpa has joined #zope3-dev | 17:43 | |
| *** aaalex has quit IRC | 17:50 | |
| *** TrevorP has joined #zope3-dev | 17:52 | |
| *** zbir` has joined #zope3-dev | 17:54 | |
| *** zbir has quit IRC | 17:56 | |
| *** goschtel_ has left #zope3-dev | 18:03 | |
| *** natea has quit IRC | 18:14 | |
| *** zbir` is now known as zbir | 18:17 | |
| *** stub has quit IRC | 18:18 | |
| *** alga has quit IRC | 18:18 | |
| *** jmorliaguet has left #zope3-dev | 18:19 | |
| *** hdima has quit IRC | 18:20 | |
| *** whit is now known as whit|inlaws | 18:22 | |
| *** TrevorP has quit IRC | 18:22 | |
| *** sm has joined #zope3-dev | 18:26 | |
| *** zagy has quit IRC | 18:27 | |
| *** mkerrin has quit IRC | 18:34 | |
| *** niemeyer is now known as nie_lunch | 18:36 | |
| *** mkerrin has joined #zope3-dev | 18:46 | |
| *** stub has joined #zope3-dev | 19:11 | |
| roym | Is 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 |
| efge | session is stored in ram, not zodb | 19:12 |
| roym | I 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 |
| roym | If it is always in RAM, then why the cautionary note? | 19:14 |
| *** zbir has quit IRC | 19:15 | |
| faassen | roym: 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 common | 19:16 |
| *** zbir has joined #zope3-dev | 19:16 | |
| regebro | It 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 IRC | 19:18 | |
| roym | The only implementations that I see for ISessionDataContainer are PersistentSessionDataContainer and RAMSessionDataContainer (which unfortunately extends PersistentSessionDataContainer despite the name). | 19:18 |
| roym | am I missing a lighter weight one? | 19:18 |
| *** whit|inlaws is now known as whit | 19:19 | |
| roym | The 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 niemeyer | 19:21 | |
| regebro | That's it, yes. | 19:24 |
| roym | ok. thanks for confirming. Hope its not too ambitious, but I might try to roll my own SessionDataContainer. | 19:27 |
| regebro | Yeah, 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-dev | 19:50 | |
| *** natea has joined #zope3-dev | 19:59 | |
| *** theuni has quit IRC | 20:09 | |
| *** Aiste has quit IRC | 20:19 | |
| *** alga has joined #zope3-dev | 20:21 | |
| *** faassen has quit IRC | 20:23 | |
| *** mgedmin has joined #zope3-dev | 20:27 | |
| *** dobee has quit IRC | 20:29 | |
| *** RaFromBRC has joined #zope3-dev | 20:40 | |
| *** fcorrea has joined #zope3-dev | 20:48 | |
| *** dobee has joined #zope3-dev | 20:49 | |
| *** Theuni has joined #zope3-dev | 20:50 | |
| *** tarek has joined #zope3-dev | 20:56 | |
| *** sashav has joined #zope3-dev | 20:58 | |
| mgedmin | how do you uncheck a checkbox with testbrowser? | 20:58 |
| mgedmin | browser.getControl('Label').selected = False? | 20:59 |
| mgedmin | (this didn't work for me when I tried it) | 20:59 |
| mgedmin | oh, I forgot form validation | 20:59 |
| mgedmin | no, the form validates just fine | 21:00 |
| * mgedmin hates testbrowser at times like this | 21:03 | |
| Theuni | poor mgedmin ... | 21:06 |
| mgedmin | poor testbrowser -- it works just fine, but my app behaves strangely | 21:08 |
| mgedmin | aaagh, I'm an idiot! | 21:09 |
| mgedmin | although I expected testbrowser's getLink('foo') raise an exception when there are several links with text 'foo' | 21:10 |
| mgedmin | and not just follow the first one | 21:10 |
| *** Aiste has joined #zope3-dev | 21:12 | |
| *** kamalgill has joined #zope3-dev | 21:14 | |
| *** zagy has quit IRC | 21:15 | |
| *** stub has quit IRC | 21:20 | |
| *** jinty has quit IRC | 21:21 | |
| *** regebro has quit IRC | 21:21 | |
| *** dobee has quit IRC | 21:23 | |
| *** agroszer has joined #zope3-dev | 21:32 | |
| *** efge has quit IRC | 21:35 | |
| *** tarek has quit IRC | 21:41 | |
| benji | mgedmin, It would be a backward-incompatible change, but making getLink raise an AmbiguityError like getControl does would probably be an improvement | 21:49 |
| *** tarek has joined #zope3-dev | 21:50 | |
| *** mgedmin has quit IRC | 21:59 | |
| *** niemeyer_ has joined #zope3-dev | 22:04 | |
| *** niemeyer has quit IRC | 22:04 | |
| *** alga has quit IRC | 22:04 | |
| *** natea has quit IRC | 22:09 | |
| *** alecm has joined #zope3-dev | 22:16 | |
| *** MJ has joined #zope3-dev | 22:17 | |
| *** ignas has quit IRC | 22:18 | |
| *** mkerrin has quit IRC | 22:22 | |
| *** niemeyer_ is now known as niemeyer | 22:24 | |
| *** kamalgill is now known as kamalnearby | 22:25 | |
| *** sashav has quit IRC | 22:37 | |
| *** alecm has quit IRC | 22:59 | |
| *** zbir has quit IRC | 23:20 | |
| *** MJ has quit IRC | 23:21 | |
| *** rockyburt|away has quit IRC | 23:22 | |
| *** kamalnearby is now known as kamalgill | 23:23 | |
| *** rockyburt has joined #zope3-dev | 23:24 | |
| *** rockyburt is now known as rockyburt|away | 23:27 | |
| *** natea has joined #zope3-dev | 23:29 | |
| *** natea is now known as natea|sanfran | 23:44 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!