IRC log of #zope3-dev for Thursday, 2007-10-25

J1mapp5.cnhi00:02
*** malthe has joined #zope3-dev00:03
*** schwendinger has quit IRC00:07
*** hazmat has joined #zope3-dev00:12
*** ChanServ sets mode: +o hazmat00:12
panJ1m :-)00:12
J1msorry, wrong window00:13
pani thought so ;-)00:13
*** norro has quit IRC00:14
benjilaunch attack at 05:3000:15
benjioh, sorry, wrong window00:15
pan=)00:16
panfast question - i have users objects and message objects. messages can be for all users or just for some of them. how should it be implemented, if later i want to show users all messages that are for all, and messages that are only for him?00:18
panshould i use annotations and put on every message list of users for later searching?00:19
panand just look for messages that have empty list (thats for all), and look for messages where in annotations is name of this user?00:20
panor perhaps i should create some 'connecting' folder and put there objects matching user and message. but it will be realtion db solution i think...00:21
bigkevmcdyou could add the messages to the user object?00:27
bigkevmcdi.e. store them in a "messages" container which is a subobject of the user?00:27
bigkevmcdor at least, somewhere that you can easily discern the path based upon the user?00:27
panbut some messages are for few users, and some are for all users00:28
panand some can be only for one user, and then your solution would be ok. bet there is more cases...00:28
*** CSWookie has left #zope3-dev00:29
bigkevmcdok...so, catalog the message_users attribute, and search?00:29
panas i understand you want to create user object, where i will keep all data about user (username,login,pass,name, and so on), and this object would be also container (folder), where subfolder would be messages, right?00:29
pan< bigkevmcd> ok...so, catalog the message_users attribute, and search? - ok, but how this search should like? shoulw i create new object, where i will store just name of user and subject of message? and later search on those 2 keys?00:31
bigkevmcdI don't think you need to?00:31
bigkevmcdCatalog the messages?00:31
bigkevmcddoes a message know the users it's intended for?00:31
panyes. message can have field List, like that:00:32
pan        test = List(00:32
pan                title=_(u"Test"),00:32
pan                value_type=Choice(title=_(u"Testing"), vocabulary="test")00:32
pan                )00:32
panand vocabulary="test" is utility which provide users, from Users folder00:32
panso - yes - message can know the users.00:33
panbut how i will later find messages for those users? User will login and i have to show him messages for him. how to find them?00:33
bigkevmcdcatalog search, index the attribute that contains the list of users00:33
panbut, as i understand i can find on normal Fields, not on Lists (like in this example)... am i wrong?00:34
bigkevmcdYou should be able to search ok00:34
panso... if i will put in Message object List field with users, i will be able to make search based on that?00:35
panhuh! how ? from ZMI i can just create index on field, chose interface and chose attribute00:36
bigkevmcdyes00:36
* bigkevmcd digs for an example00:36
*** lucielejard has quit IRC00:37
* pan will send flowers to bigkevmcd for working example :-)00:37
pan;-)00:37
bigkevmcdpan: have you got philipp's book?00:38
panbigkevmcd: i have00:39
bigkevmcdChapter 19, is all about indexing and searching of the catalog00:39
bigkevmcdyou want to adapt your list to a straight text string00:39
bigkevmcdand just index that00:39
panyes, but there are only examples for simple Text00:39
pannot for List00:39
benjiwhat little I know of indexing, it would seem that a SetIndex would be good there00:40
panbut i dont have text string! i have list of users connected with message.00:40
bigkevmcdbenji: I'm not familiar with the SetIndex, but I can imagine what it does :-)00:40
bigkevmcdand if it does what it sounds like...00:40
panwhat is SetIndex ;-) ?00:41
* pan going on api page00:41
panNote: These are only interfaces that are registered with the site manager.00:41
benjihttp://svn.zope.org/zc.catalog/trunk/src/zc/catalog/setindex.txt?rev=73305&view=markup00:41
*** tarek has quit IRC00:42
*** pan is now known as Pan^00:42
Pan^benji: it looks like what i need... can i use it in zope3?00:45
Pan^ill try...00:45
benjimost certainly00:45
Pan^thanks a lot. i will try to fight with this :-)00:47
Pan^but as i understand my solution is ok? on the begining i was thinking about connectiong those object in schema interfaces ... somehow, but i didnt know how ;-)00:48
*** vlado has quit IRC00:49
*** pbugni has quit IRC00:50
*** quodt has quit IRC00:51
*** hazmat has quit IRC00:51
*** supton has joined #zope3-dev00:52
*** dobee has quit IRC00:54
*** supton has quit IRC00:55
*** dobee has joined #zope3-dev00:55
*** supton has joined #zope3-dev00:56
*** Ariel_Calzada has joined #zope3-dev00:57
*** benji has quit IRC00:58
*** hazmat has joined #zope3-dev01:07
*** ChanServ sets mode: +o hazmat01:07
*** fcorrea has quit IRC01:14
*** whit is now known as whit|out01:14
*** rlo has quit IRC01:22
*** alecm has joined #zope3-dev01:22
*** jodok has quit IRC01:23
*** redir has joined #zope3-dev01:24
*** aclark|away is now known as aclark01:25
*** jodok has joined #zope3-dev01:26
*** rlo has joined #zope3-dev01:33
*** faassen has quit IRC01:37
*** redir has quit IRC01:41
*** greenman has quit IRC01:41
*** dobee has quit IRC01:48
*** Ariel_Calzada has quit IRC01:51
*** J1m has quit IRC01:56
*** Doc_Dan has joined #zope3-dev02:02
*** gstratton has quit IRC02:07
*** malthe has quit IRC02:10
*** rlo has quit IRC02:11
*** nathany has quit IRC02:12
*** aclark is now known as aclark|away02:12
*** alecm_ has joined #zope3-dev02:34
*** alecm has quit IRC02:34
*** greenman has joined #zope3-dev02:39
*** alecm_ has quit IRC02:40
*** alecm has joined #zope3-dev02:41
*** alecm_ has joined #zope3-dev02:42
*** Ariel_Calzada has joined #zope3-dev02:42
*** alecm has quit IRC02:43
*** supton has quit IRC02:45
*** aclark|away is now known as aclark02:54
*** rmarianski has quit IRC03:00
*** deo has quit IRC03:01
*** alecm_ has quit IRC03:28
*** alecm has joined #zope3-dev03:31
*** redir has joined #zope3-dev03:37
*** rmarianski has joined #zope3-dev03:50
*** redir has quit IRC03:50
*** redir has joined #zope3-dev03:51
*** alecm has quit IRC03:54
*** redir has quit IRC03:55
*** redir has joined #zope3-dev03:56
*** b52laptop has quit IRC03:58
*** redir has quit IRC04:01
*** RaFromBRC has quit IRC04:12
*** rmarianski has quit IRC04:21
*** alecm has joined #zope3-dev04:31
*** alecm has quit IRC04:33
*** alecm has joined #zope3-dev04:34
*** stub has joined #zope3-dev04:46
*** Ariel_Calzada has quit IRC04:49
*** niemeyer has quit IRC04:55
*** aclark is now known as aclark|away04:56
*** stub has quit IRC05:12
*** alecm has quit IRC05:22
*** alecm has joined #zope3-dev05:37
*** alecm has quit IRC05:53
*** alecm has joined #zope3-dev05:59
*** alecm is now known as alecm|dinner06:01
*** greenman has quit IRC06:09
*** Doc_Dan has quit IRC06:16
*** alecm|dinner has quit IRC06:23
*** stub has joined #zope3-dev06:25
*** huajie has joined #zope3-dev07:09
*** cguardia has joined #zope3-dev07:27
*** baijum has joined #zope3-dev07:27
*** cguardia has left #zope3-dev07:27
*** projekt01 has joined #zope3-dev07:43
*** rcrafton has quit IRC07:43
*** projekt01 has quit IRC07:45
*** alecm has joined #zope3-dev07:57
*** chacha_chaudhry has joined #zope3-dev07:58
*** huajie has quit IRC08:02
*** huajie has joined #zope3-dev08:03
*** jukart has joined #zope3-dev08:05
*** greenman has joined #zope3-dev08:15
*** jukart has quit IRC08:25
*** alecm has quit IRC08:27
*** dobee has joined #zope3-dev08:41
*** sorin has joined #zope3-dev08:45
*** sorin is now known as sorindregan08:45
*** jukart has joined #zope3-dev08:50
*** jfroche has joined #zope3-dev08:52
*** schwendinger has joined #zope3-dev08:54
*** zagy has joined #zope3-dev08:58
*** quodt has joined #zope3-dev09:01
*** jodok has joined #zope3-dev09:13
*** ghendi has joined #zope3-dev09:23
*** agroszer has joined #zope3-dev09:24
*** timte has joined #zope3-dev09:41
*** philiKON has joined #zope3-dev09:50
*** jodok has quit IRC09:52
*** davidstryker has joined #zope3-dev09:57
*** davidstryker has left #zope3-dev09:57
*** schwendinger has quit IRC09:57
*** philiKON has quit IRC10:00
*** quodt has quit IRC10:01
*** quodt has joined #zope3-dev10:02
*** greenman has quit IRC10:09
*** greenman has joined #zope3-dev10:12
*** jodok has joined #zope3-dev10:12
*** jfroche has quit IRC10:17
*** stub has quit IRC10:17
*** stub has joined #zope3-dev10:18
*** regebro has joined #zope3-dev10:19
*** gstratton has joined #zope3-dev10:19
*** gstratton has joined #zope3-dev10:20
*** gstratton has quit IRC10:25
*** schwendinger has joined #zope3-dev10:26
*** stub has quit IRC10:48
*** MJ has joined #zope3-dev10:52
*** tarek has joined #zope3-dev11:01
*** ktwilight_ has joined #zope3-dev11:08
*** ktwilight has quit IRC11:21
*** ktwilight has joined #zope3-dev11:23
*** ghendi has quit IRC11:27
*** ignas has joined #zope3-dev11:32
*** ktwilight_ has quit IRC11:38
*** jfroche has joined #zope3-dev11:56
*** pelle__ has joined #zope3-dev12:03
*** pelle__ has joined #zope3-dev12:03
timteI buildout.cfg extends base.cfg and both files contain a develop= line, should they be merged or should one of them win?12:06
timteIf12:06
*** b52laptop has joined #zope3-dev12:08
zagytimte: one wins12:20
zagyeverything else would confuse me :)12:20
*** goschtl has joined #zope3-dev12:21
timtebecause it extends I expect them to be merged12:21
zagywell, different options are merged12:21
zagyalso, if develop would be merged, how would you specify to not merge it?12:22
*** vlado has joined #zope3-dev12:28
timteif I extend something I say that I want the stuff in there12:29
*** schwendinger has quit IRC12:29
timteif you don't want that develop egg it should probably not be in base.cfg that you extend12:30
timtenow I had to rename devel to develeggs and then do devel=${buildout:develeggs} in both files in order to not get circular references12:33
*** schwendinger has joined #zope3-dev12:34
*** stub has joined #zope3-dev12:53
*** aclark|away is now known as aclark12:58
*** mkerrin has joined #zope3-dev12:59
*** Ariel_Calzada has joined #zope3-dev13:02
*** dunny has quit IRC13:03
*** stub has quit IRC13:05
*** jodok has quit IRC13:12
*** markusleist has joined #zope3-dev13:22
*** chacha_chaudhry has quit IRC13:22
*** jodok has joined #zope3-dev13:28
*** MJ is now known as MJ|lunch13:30
*** regebro is now known as regebro|lunch13:37
*** ghendi has joined #zope3-dev13:39
*** stub has joined #zope3-dev13:39
*** instantfoo has quit IRC13:47
*** instantfoo has joined #zope3-dev13:47
*** MJ|lunch is now known as MJ13:53
*** deo has joined #zope3-dev14:03
*** stub has quit IRC14:09
*** Ariel_Calzada has quit IRC14:16
*** pyqwer has joined #zope3-dev14:17
*** malthe has joined #zope3-dev14:18
*** d2m has joined #zope3-dev14:20
*** d2m has left #zope3-dev14:20
*** alga has joined #zope3-dev14:21
*** mgedmin has joined #zope3-dev14:24
timtezagy: but it seems like parts option values are merged?14:25
*** hazmat has quit IRC14:27
*** niemeyer has joined #zope3-dev14:28
*** hazmat has joined #zope3-dev14:30
*** ChanServ sets mode: +o hazmat14:30
*** regebro|lunch is now known as regebro14:33
*** MJ has quit IRC14:36
zagytimte: really? wuah ;)14:37
timtewonder if the appropriate list to send an email to would be zope-dev or zope3-users?14:39
zagyzope-dev14:40
timtethen they go crazy and say that this is a list for development OF zope  :)14:40
zagysure14:41
zagy*G14:41
baijumtimte, if it is zc.buildout don't post it to zope-dev list, instead use distutils-sig list: http://mail.python.org/mailman/listinfo/distutils-sig14:43
timteoh14:43
timtehmm, distutils?14:44
timteok14:45
*** stub has joined #zope3-dev14:46
baijumyep, distutils-sig14:46
timtebaijum: but perhaps you know the answer already  :)14:47
timtedarn, I have to go14:47
*** sorindregan has quit IRC14:47
baijumtimte: actually what you expected, merged the values ?14:48
*** sorin has joined #zope3-dev14:49
baijumor override ?14:49
*** sorin is now known as sorindregan14:49
baijumtimte, anyway..I do not understand your question well..so better to ask in that list..14:51
*** projekt01 has joined #zope3-dev14:51
*** MJ has joined #zope3-dev14:58
*** greenman has quit IRC15:04
*** benji has joined #zope3-dev15:15
*** lucielejard has joined #zope3-dev15:28
*** harobed has joined #zope3-dev15:36
*** fcorrea has joined #zope3-dev15:38
*** huajie has quit IRC15:48
malthehmm when trying to use a Zope 3 zpt macro from a Zope 2 zpt I get "Unauthorized: You are not allowed to access 'a particular list' in this context"15:54
*** Pan^ has quit IRC15:56
*** jfroche has quit IRC16:00
*** stub has quit IRC16:09
*** fcorrea has quit IRC16:09
*** jfroche has joined #zope3-dev16:10
*** J1m has joined #zope3-dev16:10
*** redir has joined #zope3-dev16:13
*** stub has joined #zope3-dev16:16
*** stub has quit IRC16:20
*** projekt01 has quit IRC16:21
*** stub has joined #zope3-dev16:22
*** rlo has joined #zope3-dev16:23
*** rcrafton has joined #zope3-dev16:25
*** alga has quit IRC16:27
*** stub has quit IRC16:28
*** stub has joined #zope3-dev16:28
*** whit|out has quit IRC16:29
*** redir has quit IRC16:30
*** hazmat has quit IRC16:39
*** replicant has joined #zope3-dev16:39
*** whit has joined #zope3-dev16:40
*** stub has quit IRC16:43
*** whit has quit IRC16:44
*** stub has joined #zope3-dev16:47
*** stub has quit IRC16:53
*** aclark is now known as aclark|away16:54
*** stub has joined #zope3-dev16:54
*** thruflo has joined #zope3-dev16:58
*** rlo has quit IRC16:59
*** alecm has joined #zope3-dev17:03
*** whit has joined #zope3-dev17:08
*** jfroche has quit IRC17:13
*** jfroche has joined #zope3-dev17:14
timteIn a buidout, can I refer to the parent that I extend?17:16
timteso I can use for instance ${parent:buildout:develop} ?17:17
thruflocould someone point me to example usage of the zope.sendmail package?17:18
mgedminhm17:18
thrufloi can see that there's a zcml directive defined in zope.sendmail.meta.zcml for a smtpMailer but I can't find docs on what to do with that17:18
mgedminI know how to use zope.sendmail, but I'm not sure I could find an example online17:19
thrufloi basically want to expose a view class that sends an email...17:19
mgedminthe design of zope.sendmail is not the best, and I'm partially to blame17:19
thrufloyou coded the package?17:20
mgedminparts of it17:20
mgedminduring one of the early zope 3 sprints17:20
mgedminbasically, you need two zcml directives17:20
mgedminone to register a mailer, and one to register a mail delivery utility17:20
mgedminthen in your code you getUtility(IMailDelivery, name='name-of-your-util') and hand the email message to it17:20
mgedminI'll write up a short README17:21
*** alecm has quit IRC17:21
thruflovia it's send method?17:21
mgedminyes17:21
mgedminI have working code in front of me, but it's not open source17:21
thruflowell let that be a lesson to you :p17:22
thrufloi was slightly confused by the comment in zope.sendmail.configure.zcml17:23
*** alecm has joined #zope3-dev17:24
*** jfroche has quit IRC17:24
lisppaste6thruflo pasted "sendmail configure.zcml" at http://paste.lisp.org/display/4980317:24
thrufloi would have presumed not to change the config of the zope src but to have includes app specifics like queue dir in my zope instance17:26
thruflohowever I may not be understanding things correctly17:26
mgedminno, you don't need to change anything in your zope sources17:27
mgedminbut you need to define those two utilities in your site.zcml17:27
thrufloright ok17:27
*** sorindregan has quit IRC17:27
mgedminI see zope.sendmail.interfaces has some description17:27
* thruflo nods17:27
mgedminoh dear, it's more complicated than I remembered17:34
mgedmin(the message formatting bit, not the actual sending bit)17:34
mgedminthe stdlib 'email' module is not very unicode friendly: http://mg.pov.lt/blog/unicode-emails-in-python.html17:35
thrufloyup, saw some discussion on that17:35
*** b52laptop has quit IRC17:36
*** b52laptop has joined #zope3-dev17:36
* thruflo attempts to test his getUtility(IMailDelivery, name='name-of-your-util')17:37
*** baijum has quit IRC17:45
* thruflo discovers examples 16.3.4 & 16.3.5 in web component development 2nd edn17:48
thruflo(tx for the help again mgedmin - much appreciated!)17:51
*** malthe has quit IRC17:51
*** rmarianski has joined #zope3-dev17:52
*** markusleist has quit IRC17:55
*** jsadjohnson_ has quit IRC18:01
*** jsadjohnson has joined #zope3-dev18:01
*** nathany has joined #zope3-dev18:07
mgedminthruflo: http://svn.zope.org/zope.sendmail/trunk/src/zope/sendmail/README.txt?view=auto18:14
mgedminI'd appreciate feedback18:14
mgedminespecially if you find any inaccuracies18:14
mgedminI based the examples on working code from a zope 3.2-based app, when zope.sendmail was still zope.app.mail18:15
mgedminthere've been changes made to zope.sendmail since then (e.g. I noticed it now has TLS support)18:15
*** sm has quit IRC18:16
*** sm has joined #zope3-dev18:16
mgedminaargh, right, I noticed one problem myself18:17
*** norro has joined #zope3-dev18:19
*** jsadjohnson has quit IRC18:21
* thruflo tests with the code18:23
thrufloin the readme18:23
*** jsadjohnson has joined #zope3-dev18:24
*** pelle__ has quit IRC18:31
*** goschtl has quit IRC18:32
*** pelle__ has joined #zope3-dev18:33
*** pelle__ has quit IRC18:36
*** aclark|away is now known as aclark|1018:42
*** jsadjohnson_ has joined #zope3-dev18:42
*** jfroche has joined #zope3-dev18:43
*** pyqwer has quit IRC18:48
*** jsadjohnson has quit IRC18:49
*** cguardia has joined #zope3-dev18:52
*** pbugni has joined #zope3-dev18:52
*** sm has quit IRC18:52
*** sm has joined #zope3-dev18:54
thruflohmm18:55
lisppaste6thruflo pasted "dovecot ready?" at http://paste.lisp.org/display/4981018:56
thrufloSMTPConnectError: (-1, 'Dovecot ready.')18:56
*** ignas has quit IRC19:01
thruflomgedmin: that code works fine for me and the readme makes perfect sense to me.  the only suggestion I would make is that the maildelivery queuepath="var/mailqueue" should be queuepath="../var/mailqueue" seeings how it's in a file in the etc directory - ie: I have nothing really to add!19:07
mgedminactually, I've no idea what the relative paths are relative to19:08
mgedminI suspect $PWD from where you start the server19:08
mgedminI tend to place absolute paths there, just in case19:08
mgedminthe dovecot error is strange-ish19:09
mgedminafaik dovecot is an imap/pop3 server19:09
mgedminit shouldn't be listening on port 2519:09
* thruflo nods - running it here on osx using ./bin/runzope i find I have to use the ../ from a directive in etc/overrides.zcml but presumably people can tweak that as they see fit19:10
thruflo^ yup, I was using port 11019:10
thruflochanging to default 25 got me a successful test email through :)19:10
*** malthe has joined #zope3-dev19:13
*** harobed has quit IRC19:22
*** malthe is now known as malthe|away19:23
*** vlado has quit IRC19:35
*** pbugni has quit IRC19:36
*** gstratton has joined #zope3-dev19:38
*** gstratton has joined #zope3-dev19:39
*** MJ has quit IRC19:45
*** jodok has quit IRC19:48
*** pan has joined #zope3-dev19:51
*** jsadjohnson_ has quit IRC19:53
*** tarek_ has joined #zope3-dev19:53
*** jukart has quit IRC20:00
*** supton has joined #zope3-dev20:07
*** tarek has quit IRC20:09
*** RaFromBRC has joined #zope3-dev20:18
*** agroszer has quit IRC20:18
*** bung_vijay_ has joined #zope3-dev20:22
*** mgedmin has quit IRC20:24
*** dunny has joined #zope3-dev20:24
*** jfroche has quit IRC20:51
*** gstratton has quit IRC21:05
*** thruflo has left #zope3-dev21:12
*** dobee has quit IRC21:23
*** whit is now known as meatloaf21:30
*** MJ has joined #zope3-dev21:34
*** dobee has joined #zope3-dev21:41
*** ghendi has quit IRC21:51
*** _tarek_ has joined #zope3-dev21:51
*** norro_ has joined #zope3-dev21:56
*** mkerrin has quit IRC21:57
*** MrTopf has joined #zope3-dev22:01
*** gnosis has joined #zope3-dev22:03
*** Ariel_Calzada has joined #zope3-dev22:05
*** tarek_ has quit IRC22:06
*** pbugni has joined #zope3-dev22:11
*** quodt has quit IRC22:11
*** meatloaf is now known as whit22:12
*** deo has quit IRC22:16
*** deo has joined #zope3-dev22:17
*** dobee has quit IRC22:24
*** bung_vijay_ has quit IRC22:31
*** greenman has joined #zope3-dev22:51
*** dobee has joined #zope3-dev22:54
*** malthe|away is now known as malthe22:54
*** lucielejard has quit IRC23:07
*** aclark|10 is now known as aclark23:14
*** gnosis has quit IRC23:18
*** schwendinger has quit IRC23:19
*** tomus has quit IRC23:29
*** tomus has joined #zope3-dev23:30
*** norro_ has quit IRC23:33
*** norro has quit IRC23:39
*** MrTopf has quit IRC23:52
*** ignas has joined #zope3-dev23:53
*** dunny has quit IRC23:57

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