From darci.hanning at gmail.com Mon Dec 11 22:29:52 2006 From: darci.hanning at gmail.com (Darci Hanning) Date: Mon, 11 Dec 2006 21:29:52 +0000 (UTC) Subject: [COREblog-en] Breadcrumbs issue with Coreblog2 Message-ID: Has anyone else experienced this? http://coreblog.org/trac/coreblog2/ticket/39 I'm on Plone 2.1.2 / Zope 2.8 and I'm seeing this and other similar breadcrumbs issues... I'm using a nightly build from late last week (sorry, didn't track the time/date). Cheers, Darci From shibata at webcore.co.jp Wed Dec 13 05:05:11 2006 From: shibata at webcore.co.jp (Atsushi Shibata) Date: Wed, 13 Dec 2006 13:05:11 +0900 Subject: [COREblog-en] Breadcrumbs issue with Coreblog2 In-Reply-To: References: Message-ID: <20061213130511.134512.efca62ad@webcore.co.jp> Hi :-). On Mon, 11 Dec 2006 21:29:52 +0000 (UTC), wrote: > > Has anyone else experienced this? > http://coreblog.org/trac/coreblog2/ticket/39 > > I'm on Plone 2.1.2 / Zope 2.8 and I'm seeing this and other > similar breadcrumbs issues... Sorry, I can't see what's going on URL in Track ticket. http://www.domainname.com/portal_factory/COREBlog2/coreblog2.2006-02-04.5181725835/comments Can I have working URL which the probrem appears ? Thanks in advance. ---------------------------------------- Atsushi Shibata (Webcore Corp.) shibata at webcore.co.jp http://www.webcore.co.jp/ ---------------------------------------- From darci.hanning at gmail.com Wed Dec 13 17:35:07 2006 From: darci.hanning at gmail.com (Darci Hanning) Date: Wed, 13 Dec 2006 16:35:07 +0000 (UTC) Subject: [COREblog-en] Breadcrumbs issue with Coreblog2 References: <20061213130511.134512.efca62ad@webcore.co.jp> Message-ID: Atsushi Shibata writes: > > Hi . > > On Mon, 11 Dec 2006 21:29:52 +0000 (UTC), wrote: > > > > Has anyone else experienced this? > > http://coreblog.org/trac/coreblog2/ticket/39 > > > > I'm on Plone 2.1.2 / Zope 2.8 and I'm seeing this and other > > similar breadcrumbs issues... > > Sorry, I can't see what's going on URL in Track ticket. > > http://www.domainname.com/portal_factory/COREBlog2/coreblog2.2006-02-04.5181725835/comments > > Can I have working URL which the probrem appears ? > > Thanks in advance. > I'll try setting up a separate site to reproduce the problem. I have since removed COREblog on the site that had the issue because I needed a working blog product ASAP. My first choice is still COREblog but this bug made it unusable for a public site :( Cheers, Darci From john.habermann at wilderness.org.au Thu Dec 14 07:34:24 2006 From: john.habermann at wilderness.org.au (john habermann) Date: Thu, 14 Dec 2006 17:34:24 +1100 Subject: [COREblog-en] accessing description_length through ZMI Message-ID: Hi I would like to change the description_length which is used in the recent entry portlet I believe. I can see that it is specified in the etc/coreblog2.conf.in and the configuration/component.xml as 128 characters but I can't see it in the "Blog Settings" although I can see that some of the other fields in the configuration files are available. Is this field available through plone or the ZMI or do you have to customise it by creating a etc/coreblog2.conf file. Thanks for any help -- John Habermann Internet Programmer, System Administrator The Wilderness Society Inc http://www.wilderness.org.au From manrique at cim.sld.cu Thu Dec 14 22:43:43 2006 From: manrique at cim.sld.cu (manrique) Date: Thu, 14 Dec 2006 16:43:43 -0500 Subject: [COREblog-en] (no subject) Message-ID: <000001c71fc8$ed8057c0$c8810740$@sld.cu> MSc. Jos? Manrique Garc?a Center of Molecular Immunology 216 esq. 15. Atabey. Playa Habana 11 600. Cuba PO BOX. 16040 Fax. 53 7 272-0644 Ph. 53 7 271 33 57 manrique at cim.sld.cu www.cim.sld.cu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://postaria.com/pipermail/coreblog-en/attachments/20061214/70cea2b5/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 862 bytes Desc: not available Url : http://postaria.com/pipermail/coreblog-en/attachments/20061214/70cea2b5/attachment.gif From tcorbet at ix.netcom.com Fri Dec 15 09:27:07 2006 From: tcorbet at ix.netcom.com (Terry Corbet) Date: Fri, 15 Dec 2006 00:27:07 -0800 Subject: [COREblog-en] Security/Permission Settings Message-ID: <000601c72022$cfc43df0$0400a8c0@hq.sss.com> I realize that this is more of a basic Plone question than a specific CoreBlog question, but I would certainly appreciate it if someone could go down the list of 7 CoreBlog2 items and tell me how to accomplish: a. Only the Manager can create Blogs. b. Blogs will only be created on Member home pages by Admin c. Only the 'owner' of the Blog can post to his Blog. d. All Members can comment on all Blogs. Thank you. A half-day of playing with the Product looks very promising. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://postaria.com/pipermail/coreblog-en/attachments/20061215/ddb02eaf/attachment.htm From nekstrand at gmail.com Sat Dec 16 21:43:05 2006 From: nekstrand at gmail.com (Niklas) Date: Sat, 16 Dec 2006 21:43:05 +0100 Subject: [COREblog-en] Comment reply handling Message-ID: Hi, I have been wondering if CoreBlog2 only sends the notification mail to the email set in the blog settings or if it mails a notice to the prior commentators for that post as well, my guess would be the first option. If so would it be possible to change the behavior to send a notice mail to the prior commentators as well? -- With best regards / med v?nlig h?lsning Niklas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://postaria.com/pipermail/coreblog-en/attachments/20061216/c1be3ab9/attachment.htm From nyusuke at nagosui.org Sun Dec 17 06:58:44 2006 From: nyusuke at nagosui.org (Yusuke NAKAI) Date: Sun, 17 Dec 2006 14:58:44 +0900 Subject: [COREblog-en] Security/Permission Settings In-Reply-To: <000601c72022$cfc43df0$0400a8c0@hq.sss.com> References: <000601c72022$cfc43df0$0400a8c0@hq.sss.com> Message-ID: <4584DC94.9030308@nagosui.org> Hi, > could go down the list of 7 CoreBlog2 items You can cut&paste entries from zmi. > a. Only the Manager can create Blogs. > b. Blogs will only be created on Member home pages by Admin > c. Only the 'owner' of the Blog can post to his Blog. > d. All Members can comment on all Blogs. They seem to be accomplished by 'Security' settings on zmi. But a and b are looked contradictory at first glance. Who is Admin? Manager = Admin? Regards, -- Yusuke NAKAI mail: nyusuke at nagosui.org web : http://nagosui.org From nyusuke at nagosui.org Sun Dec 17 06:07:18 2006 From: nyusuke at nagosui.org (Yusuke NAKAI) Date: Sun, 17 Dec 2006 14:07:18 +0900 Subject: [COREblog-en] Comment reply handling In-Reply-To: References: Message-ID: <4584D086.7090102@nagosui.org> Hi, > If so would it be possible to change the behavior to send a notice mail > to the prior commentators as well? How about customizing /plone/portal_skins/COREBlog2/cbaddComment? Regards, -- Yusuke NAKAI mail: nyusuke at nagosui.org web : http://nagosui.org From nyusuke at nagosui.org Sun Dec 17 07:05:28 2006 From: nyusuke at nagosui.org (Yusuke NAKAI) Date: Sun, 17 Dec 2006 15:05:28 +0900 Subject: [COREblog-en] accessing description_length through ZMI Message-ID: <4584DE28.6080307@nagosui.org> Hi, > Is this field available through plone or the ZMI or do you have to > customise it by creating a etc/coreblog2.conf file. Default description_length can be set by editting coreblog2.conf.in and renaming it coreblog2.conf. But this doesn't affect existing entries' description_length. I don't have good idea to change this. Anyone have? Regards, -- Yusuke NAKAI mail: nyusuke at nagosui.org web : http://nagosui.org From nekstrand at gmail.com Mon Dec 18 11:01:37 2006 From: nekstrand at gmail.com (Niklas) Date: Mon, 18 Dec 2006 11:01:37 +0100 Subject: [COREblog-en] Comment reply handling In-Reply-To: <4584D086.7090102@nagosui.org> References: <4584D086.7090102@nagosui.org> Message-ID: I guess thats a yes to my first question? I would really like to do it, but my programming skills is limited at a very low level for now, but i guess i will have to add it as a feature request. /Niklas On 12/17/06, Yusuke NAKAI wrote: > > Hi, > > > If so would it be possible to change the behavior to send a notice mail > > to the prior commentators as well? > > How about customizing /plone/portal_skins/COREBlog2/cbaddComment? > > > Regards, > > -- > Yusuke NAKAI > > mail: nyusuke at nagosui.org > web : http://nagosui.org > _______________________________________________ > COREblog-en mailing list > COREblog-en at postaria.com > http://postaria.com/mailman/listinfo/coreblog-en > Unsubscription writing to coreblog-en-leave at postaria.com > -- With best regards / med v?nlig h?lsning Niklas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://postaria.com/pipermail/coreblog-en/attachments/20061218/580f1b72/attachment.htm From nyusuke at nagosui.org Mon Dec 18 17:55:17 2006 From: nyusuke at nagosui.org (Yusuke NAKAI) Date: Tue, 19 Dec 2006 01:55:17 +0900 Subject: [COREblog-en] Comment reply handling In-Reply-To: References: <4584D086.7090102@nagosui.org> Message-ID: <4586C7F5.9080003@nagosui.org> Hi, > I would really like to do it, > but my programming skills is limited at a very low level for now Me too! But you're lucky to get chance to learning python, aren't you? First of all, there is a typo in cbaddComment around line 40: -------------------------------------------------- #Send notify mail if need if context.getSend_comment_notification(): try: to_addr = context.getNotify_to() from_addr = context.getNotify_to() <- here -------------------------------------------------- This should be: from_addr = context.getNotify_from() ^^^^^^ Well, let's customize. You can customize notification mail by assorting these objects and setting them to 'to_addr' or 'from_addr'. - context.getNotify_to() -> e-mail address entered to 'Notify To' field on 'blog settings' - context.getNotity_from() -> e-mail address entered to 'Notify From' field on 'blog settings' - REQUEST.form['email'] -> e-mail address entered by comment form Now assuming in your blog settings: - Notify From: spam at example.com - Notify To: egg at example.com - checked 'Require email' Let's see some cases. 1.To send notification mail from spam at example.com to egg at example.com, no customization is needed(default action). 2.To send notification mail from spam at example.com to person who post comment, customization in cbaddComment will be like this: -------------------------------------------------- #Send notify mail if need if context.getSend_comment_notification(): try: to_addr = REQUEST.form['email'] from_addr = context.getNotify_from() -------------------------------------------------- 3.To send notification mail from person who post comment to egg at example.com, customization in cbaddComment will be like this: -------------------------------------------------- #Send notify mail if need if context.getSend_comment_notification(): try: to_addr = context.getNotify_to() from_addr = REQUEST.form['email'] -------------------------------------------------- Note: If 'Require email' is 'not' checked in your blog setting, it seems to be better to do conditional branch where 'REQUEST.form['email']' appears. For example, in case 3. on above, -------------------------------------------------- #Send notify mail if need if context.getSend_comment_notification(): try: to_addr = context.getNotify_to() if REQUEST.form['email'] == "": from_addr = 'someone_posting_comment at example.com' else: from_addr = REQUEST.form['email'] -------------------------------------------------- Unfortunately I'm not skilled at programming, so I'm not confident these codes help you, and afraid if I misunderstood your intention. I hope for someone's following up. Regards, -- Yusuke NAKAI mail: nyusuke at nagosui.org web : http://nagosui.org From nekstrand at gmail.com Mon Dec 18 21:33:10 2006 From: nekstrand at gmail.com (Niklas) Date: Mon, 18 Dec 2006 21:33:10 +0100 Subject: [COREblog-en] Comment reply handling In-Reply-To: <4586C7F5.9080003@nagosui.org> References: <4584D086.7090102@nagosui.org> <4586C7F5.9080003@nagosui.org> Message-ID: Thanx for your efforts Mr, NAKAI, If i understand what you are describing correctly, its not entirely what i wold like to do, 1. I make a post. 2. person A makes a comment in the above post (i get notified). 3. person B makes a comment in the same post, this is where i wold like to have a notification to me (this is what is built in at the moment i think) and person A (i dont think this is implemented). 4. if more comments are added i would like to be notified as well as have notifying mails sent to the persons who already made comments in that post. /Niklas On 12/18/06, Yusuke NAKAI wrote: > > Hi, > > > I would really like to do it, > > but my programming skills is limited at a very low level for now > > Me too! > But you're lucky to get chance to learning python, aren't you? > > > First of all, there is a typo in cbaddComment around line 40: > > -------------------------------------------------- > #Send notify mail if need > if context.getSend_comment_notification(): > try: > to_addr = context.getNotify_to() > from_addr = context.getNotify_to() <- here > -------------------------------------------------- > > This should be: > from_addr = context.getNotify_from() > ^^^^^^ > > > Well, let's customize. > You can customize notification mail by assorting these objects and > setting them to 'to_addr' or 'from_addr'. > > - context.getNotify_to() > -> e-mail address entered to 'Notify To' field on 'blog settings' > > - context.getNotity_from() > -> e-mail address entered to 'Notify From' field on 'blog settings' > > - REQUEST.form['email'] > -> e-mail address entered by comment form > > > Now assuming in your blog settings: > - Notify From: spam at example.com > - Notify To: egg at example.com > - checked 'Require email' > > > Let's see some cases. > > 1.To send notification mail > from spam at example.com > to egg at example.com, > no customization is needed(default action). > > 2.To send notification mail > from spam at example.com > to person who post comment, > customization in cbaddComment will be like this: > -------------------------------------------------- > #Send notify mail if need > if context.getSend_comment_notification(): > try: > to_addr = REQUEST.form['email'] > from_addr = context.getNotify_from() > -------------------------------------------------- > > 3.To send notification mail > from person who post comment > to egg at example.com, > customization in cbaddComment will be like this: > -------------------------------------------------- > #Send notify mail if need > if context.getSend_comment_notification(): > try: > to_addr = context.getNotify_to() > from_addr = REQUEST.form['email'] > -------------------------------------------------- > > > Note: If 'Require email' is 'not' checked in your blog setting, it seems > to be better to do conditional branch where 'REQUEST.form['email']' > appears. > > For example, in case 3. on above, > -------------------------------------------------- > #Send notify mail if need > if context.getSend_comment_notification(): > try: > to_addr = context.getNotify_to() > if REQUEST.form['email'] == "": > from_addr = 'someone_posting_comment at example.com' > else: > from_addr = REQUEST.form['email'] > -------------------------------------------------- > > > Unfortunately I'm not skilled at programming, so I'm not confident these > codes help you, and afraid if I misunderstood your intention. I hope for > someone's following up. > > Regards, > > -- > Yusuke NAKAI > > mail: nyusuke at nagosui.org > web : http://nagosui.org > _______________________________________________ > COREblog-en mailing list > COREblog-en at postaria.com > http://postaria.com/mailman/listinfo/coreblog-en > Unsubscription writing to coreblog-en-leave at postaria.com > -- With best regards / med v?nlig h?lsning Niklas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://postaria.com/pipermail/coreblog-en/attachments/20061218/b14c2e30/attachment.htm From nyusuke at nagosui.org Tue Dec 19 17:02:34 2006 From: nyusuke at nagosui.org (Yusuke NAKAI) Date: Wed, 20 Dec 2006 01:02:34 +0900 Subject: [COREblog-en] Comment reply handling In-Reply-To: References: <4584D086.7090102@nagosui.org> <4586C7F5.9080003@nagosui.org> Message-ID: <45880D1A.7060202@nagosui.org> Hi, > 1. I make a post. > 2. person A makes a comment in the above post (i get notified). > 3. person B makes a comment in the same post, this is where i wold like > to have a notification to me (this is what is built in at the moment i > think) and person A (i dont think this is implemented). > 4. if more comments are added i would like to be notified as well as > have notifying mails sent to the persons who already made comments in > that post. Oh, I'm sorry for my misunderstanding. So, let's more customize! To achieve your goal, it needs that 'to_addr' indicates email addresses of persons who post comments. How can we get such email addresses? Well, coreblogcomment object has 'email' field which stores email address of person who post comment. So we can get email address by getEmail() method(getToolByName). Then, how can we get coreblogcomment object which is referenced to an entry? Luckily, good method, 'getComment()' is ready in advance(in COREBlog2/content/coreblogentry.py, line 471). So we can get comments by getComment() method. Now let's get email addresses list. -------------------------------------------------- # Get comments referenced to an entry com_list = context.getComment() # Ready address list # Default address for notification is ready addr_list = [context.getNotify_to()] # Get emails from comments and append them to address list # But omit duplicated address for com in com_list: if not addr_list.count(com.getEmail()): addr_list.append(com.getEmail()) -------------------------------------------------- Here, addr_list includes email addresses you want. So give them to 'to_addr'. -------------------------------------------------- to_addr = ','.join(addr_list) -------------------------------------------------- Putting together all customization and default code: -------------------------------------------------- #Get email addresses com_list = context.getComment() addr_list = [context.getNotify_to()] for com in com_list: if not addr_list.count(com.getEmail()): addr_list.append(com.getEmail()) #Send notify mail if need if context.getSend_comment_notification(): try: to_addr = ','.join(addr_list) from_addr = context.getNotify_from() ... -------------------------------------------------- This code may look ugly or have wrong expression because of my less programming experience. So I will be happy to hear any comments. Regards, -- Yusuke NAKAI mail: nyusuke at nagosui.org web : http://nagosui.org From welter at betabug.ch Tue Dec 19 18:26:50 2006 From: welter at betabug.ch (Sascha Welter) Date: Tue, 19 Dec 2006 18:26:50 +0100 Subject: [COREblog-en] Comment reply handling In-Reply-To: <45880D1A.7060202@nagosui.org> References: <4584D086.7090102@nagosui.org> <4586C7F5.9080003@nagosui.org> <45880D1A.7060202@nagosui.org> Message-ID: <20061219172650.GD4382@betabug.ch> (Wed, Dec 20, 2006 at 01:02:34AM +0900) Yusuke NAKAI wrote/schrieb/egrapse: > to_addr = ','.join(addr_list) Instant security / privacy problem. Every recipient of the mail will learn all the email addresses of all the other recipients. Either use BCC or send each recipient a separate mail. Regards, Sascha From nekstrand at gmail.com Tue Dec 19 21:40:37 2006 From: nekstrand at gmail.com (Niklas) Date: Tue, 19 Dec 2006 21:40:37 +0100 Subject: [COREblog-en] Comment reply handling In-Reply-To: <20061219172650.GD4382@betabug.ch> References: <4584D086.7090102@nagosui.org> <4586C7F5.9080003@nagosui.org> <45880D1A.7060202@nagosui.org> <20061219172650.GD4382@betabug.ch> Message-ID: Thanx again Mr. NAKAI and Mr. Welter, Mr. NAKAI for saying you dont have a lot of experiance, you sure know your way around this code. The code seems to be working ok, I tried to find where to change to BCC but could not find the right reference, i agree with this beeing a problem, is it hard to change?. This might be to ask for to much but i will still ask, is it a hard job to add a check box (notify me when furter comments are added to this post) in the comment form and have the mails selected bu this check box? /Niklas On 12/19/06, Sascha Welter wrote: > > (Wed, Dec 20, 2006 at 01:02:34AM +0900) Yusuke NAKAI > wrote/schrieb/egrapse: > > to_addr = ','.join(addr_list) > > Instant security / privacy problem. > > Every recipient of the mail will learn all the email addresses of all > the other recipients. Either use BCC or send each recipient a separate > mail. > > Regards, > > Sascha > > _______________________________________________ > COREblog-en mailing list > COREblog-en at postaria.com > http://postaria.com/mailman/listinfo/coreblog-en > Unsubscription writing to coreblog-en-leave at postaria.com > -- With best regards / med v?nlig h?lsning Niklas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://postaria.com/pipermail/coreblog-en/attachments/20061219/25d85c4c/attachment.htm From nyusuke at nagosui.org Wed Dec 20 16:22:16 2006 From: nyusuke at nagosui.org (Yusuke NAKAI) Date: Thu, 21 Dec 2006 00:22:16 +0900 Subject: [COREblog-en] Comment reply handling In-Reply-To: <20061219172650.GD4382@betabug.ch> References: <4584D086.7090102@nagosui.org> <4586C7F5.9080003@nagosui.org> <45880D1A.7060202@nagosui.org> <20061219172650.GD4382@betabug.ch> Message-ID: <45895528.4080501@nagosui.org> Hi, Sascha Welter wrote: > (Wed, Dec 20, 2006 at 01:02:34AM +0900) Yusuke NAKAI wrote/schrieb/egrapse: >> to_addr = ','.join(addr_list) > > Instant security / privacy problem. > > Every recipient of the mail will learn all the email addresses of all > the other recipients. Either use BCC or send each recipient a separate > mail. Thanks a lot! I have a shame of feeling for my lack of basic security sense... Regards, -- Yusuke NAKAI mail: nyusuke at nagosui.org web : http://nagosui.org From nyusuke at nagosui.org Wed Dec 20 17:33:16 2006 From: nyusuke at nagosui.org (Yusuke NAKAI) Date: Thu, 21 Dec 2006 01:33:16 +0900 Subject: [COREblog-en] Comment reply handling In-Reply-To: References: <4584D086.7090102@nagosui.org> <4586C7F5.9080003@nagosui.org> <45880D1A.7060202@nagosui.org> <20061219172650.GD4382@betabug.ch> Message-ID: <458965CC.2090501@nagosui.org> Hi, > I tried to find where to change to BCC but could not find the right > reference, i agree with this beeing a problem, is it hard to change?. Notification mail is send by cbtool.send_mail() method: -------------------------------------------------- ... mgsheader = """To: %s From: %s Mime-Version: 1.0 Content-Type: text/plain; Charset=utf-8 """ % (to_addr,from_addr) cbtool.send_mail(mgsheader+msgbody, to_addr, from_addr, ... ^^^^^^^^^^^^^^^^ -------------------------------------------------- This method is defined in COREBlog2/COREBlogTool.py from line 238. And this uses send() method of SecureMailHost. But this method can't handle BCC. To handle BCC, using secureSend() method of SecureMailHost is needed. But this approach seems to be a bit trouble. How about taking separate sending approach? To send mail separately, you can use 'for' loop for addr_list. For example: -------------------------------------------------- #Send notify mail if need if context.getSend_comment_notification(): try: for addr in addr_list: to_addr = addr ... -------------------------------------------------- > This might be to ask for to much but i will still ask, is it a hard job > to add a check box (notify me when furter comments are added to this > post) in the comment form and have the mails selected bu this check box? It seems to be hard. At least beyond my reach. Regards, -- Yusuke NAKAI mail: nyusuke at nagosui.org web : http://nagosui.org From nekstrand at gmail.com Thu Dec 21 07:49:05 2006 From: nekstrand at gmail.com (Niklas) Date: Thu, 21 Dec 2006 07:49:05 +0100 Subject: [COREblog-en] Comment reply handling In-Reply-To: <458965CC.2090501@nagosui.org> References: <4584D086.7090102@nagosui.org> <4586C7F5.9080003@nagosui.org> <45880D1A.7060202@nagosui.org> <20061219172650.GD4382@betabug.ch> <458965CC.2090501@nagosui.org> Message-ID: Thanx again, I have not had the time to check the last code but i'm sure it will work fine. The checkbox is also fine to leave out, the only problem would be if someone gets mail and tells me he don't like to have it, but they will have to live with it. I always have the possibility to erase their address in the comment. Is it ok if i add a feature request and adds this sample code? and adds you to the reference Mr NAKAI? /Niklas On 12/20/06, Yusuke NAKAI wrote: > > Hi, > > > I tried to find where to change to BCC but could not find the right > > reference, i agree with this beeing a problem, is it hard to change?. > > Notification mail is send by cbtool.send_mail() method: > > -------------------------------------------------- > ... > mgsheader = """To: %s > From: %s > Mime-Version: 1.0 > Content-Type: text/plain; Charset=utf-8 > > """ % (to_addr,from_addr) > cbtool.send_mail(mgsheader+msgbody, to_addr, from_addr, ... > ^^^^^^^^^^^^^^^^ > -------------------------------------------------- > > This method is defined in COREBlog2/COREBlogTool.py from line 238. And > this uses send() method of SecureMailHost. But this method can't handle > BCC. > > To handle BCC, using secureSend() method of SecureMailHost is needed. > But this approach seems to be a bit trouble. How about taking separate > sending approach? > > To send mail separately, you can use 'for' loop for addr_list. > For example: > > -------------------------------------------------- > #Send notify mail if need > if context.getSend_comment_notification(): > try: > for addr in addr_list: > to_addr = addr > ... > -------------------------------------------------- > > > > This might be to ask for to much but i will still ask, is it a hard job > > to add a check box (notify me when furter comments are added to this > > post) in the comment form and have the mails selected bu this check > box? > > It seems to be hard. At least beyond my reach. > > > Regards, > > -- > Yusuke NAKAI > > mail: nyusuke at nagosui.org > web : http://nagosui.org > _______________________________________________ > COREblog-en mailing list > COREblog-en at postaria.com > http://postaria.com/mailman/listinfo/coreblog-en > Unsubscription writing to coreblog-en-leave at postaria.com > -- With best regards / med v?nlig h?lsning Niklas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://postaria.com/pipermail/coreblog-en/attachments/20061221/4bfefa7c/attachment.htm From asen.quintana at barcelona.msf.org Thu Dec 21 09:13:07 2006 From: asen.quintana at barcelona.msf.org (Asen QUINTANA) Date: Thu, 21 Dec 2006 09:13:07 +0100 Subject: [COREblog-en] Cpu 99% when instaling CoreBlog2 0.9 (in Plone) Message-ID: I have tested this product in my "test" enviroment, with some customizations all looks fine. But when I load it in the produce server, suddenly my CPU reached to 99.9% (in python processs).. and only when I uninstall it from Plone, normal CPU come back !! Has anyone else this problem ?? any idea on how to solve it? I'm very interesting in use this CoreBlog3 v0.9 product asap??? Plone 2.1.2, Zope (Zope 2.8.6-final, python 2.3.5, linux2), Python 2.3.5 (#2, Jun 13 2006, 15:33:23) [GCC 3.3.3 (SuSE Linux)], Asen Quintana From nekstrand at gmail.com Fri Dec 22 12:05:22 2006 From: nekstrand at gmail.com (Niklas) Date: Fri, 22 Dec 2006 12:05:22 +0100 Subject: [COREblog-en] Comment reply handling In-Reply-To: References: <4584D086.7090102@nagosui.org> <4586C7F5.9080003@nagosui.org> <45880D1A.7060202@nagosui.org> <20061219172650.GD4382@betabug.ch> <458965CC.2090501@nagosui.org> Message-ID: Hi again, This how i have solved it now, it probably could be done in a better way but at least it seems to be working: I have added the send mail function twice to be able to get the full information to the blog admin but only the "comment added" and URL to the commentators. Also i have moved the send notification flag to commentators part as the blog admin always should be notified but now i can turn off the commentator notification. I only have one small problem left, with this aproach the commentator gets a notification mail even when he makes the comment himself, is there anyone who knows an easy way to fix that, it would be very welcome :) . --------------------------------------------------------------------------------------------- #Send notify mail to blog admin try: to_addr = context.getNotify_to() from_addr = context.getNotify_from() msgbody = context.translate('comment_notify_body') elements = {} for k in ('title','author','url','body'): if REQUEST.form.has_key(k): elements[k] = REQUEST.form[k] else: elements[k] = '' elements['post_ip'] = REQUEST.getClientAddr() elements['entry_url'] = context.absolute_url() msgbody = msgbody % (elements) msgsubject = context.translate('comment_notify_title') mgsheader = """To: %s From: %s Mime-Version: 1.0 Content-Type: text/plain; Charset=utf-8 """ % (to_addr,from_addr) cbtool.send_mail(mgsheader+msgbody, to_addr, from_addr, msgsubject) if context.getSend_comment_notification(): #Get email addresses com_list = context.getComment() addr_list = [] for com in com_list: if not addr_list.count(com.getEmail()): addr_list.append(com.getEmail()) #Send notify mail if need to commentators try: for addr in addr_list: to_addr = addr from_addr = context.getNotify_from() msgbody = context.absolute_url() msgsubject = context.translate('comment_notify_title') mgsheader = """To: %s From: %s Mime-Version: 1.0 Content-Type: text/plain; Charset=utf-8 """ % (to_addr,from_addr) cbtool.send_mail(mgsheader+msgbody, to_addr, from_addr, msgsubject) except Exception,e: log( 'COREBlog2/cbaddComment: ' 'Some exception occured, %s' % e ) except Exception,e: log( 'COREBlog2/cbaddComment: ' 'Some exception occured, %s' % e ) --------------------------------------------------------------------------------------------- On 12/21/06, Niklas wrote: > > Thanx again, > > I have not had the time to check the last code but i'm sure it will work > fine. > > The checkbox is also fine to leave out, the only problem would be if > someone gets mail and tells me he don't like to have it, but they will have > to live with it. I always have the possibility to erase their address in the > comment. > > Is it ok if i add a feature request and adds this sample code? and adds > you to the reference Mr NAKAI? > > /Niklas > > > > On 12/20/06, Yusuke NAKAI wrote: > > > > Hi, > > > > > I tried to find where to change to BCC but could not find the right > > > reference, i agree with this beeing a problem, is it hard to change?. > > > > Notification mail is send by cbtool.send_mail() method: > > > > -------------------------------------------------- > > ... > > mgsheader = """To: %s > > From: %s > > Mime-Version: 1.0 > > Content-Type: text/plain; Charset=utf-8 > > > > """ % (to_addr,from_addr) > > cbtool.send_mail(mgsheader+msgbody, to_addr, from_addr, ... > > ^^^^^^^^^^^^^^^^ > > -------------------------------------------------- > > > > This method is defined in COREBlog2/COREBlogTool.py from line 238. And > > this uses send() method of SecureMailHost. But this method can't handle > > BCC. > > > > To handle BCC, using secureSend() method of SecureMailHost is needed. > > But this approach seems to be a bit trouble. How about taking separate > > sending approach? > > > > To send mail separately, you can use 'for' loop for addr_list. > > For example: > > > > -------------------------------------------------- > > #Send notify mail if need > > if context.getSend_comment_notification (): > > try: > > for addr in addr_list: > > to_addr = addr > > ... > > -------------------------------------------------- > > > > > > > This might be to ask for to much but i will still ask, is it a hard > > job > > > to add a check box (notify me when furter comments are added to this > > > post) in the comment form and have the mails selected bu this check > > box? > > > > It seems to be hard. At least beyond my reach. > > > > > > Regards, > > > > -- > > Yusuke NAKAI > > > > mail: nyusuke at nagosui.org > > web : http://nagosui.org > > _______________________________________________ > > COREblog-en mailing list > > COREblog-en at postaria.com > > http://postaria.com/mailman/listinfo/coreblog-en > > Unsubscription writing to coreblog-en-leave at postaria.com > > > > > > -- > With best regards / med v?nlig h?lsning > > Niklas > -- With best regards / med v?nlig h?lsning Niklas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://postaria.com/pipermail/coreblog-en/attachments/20061222/76ce87a8/attachment.htm From nyusuke at nagosui.org Fri Dec 22 15:30:17 2006 From: nyusuke at nagosui.org (Yusuke NAKAI) Date: Fri, 22 Dec 2006 23:30:17 +0900 Subject: [COREblog-en] Cpu 99% when instaling CoreBlog2 0.9 (in Plone) In-Reply-To: References: Message-ID: <458BEBF9.8030703@nagosui.org> Hi, > I have tested this product in my "test" enviroment, with some > customizations all looks fine. But when I load it in the produce server, > suddenly my CPU reached to 99.9% (in python processs).. and only when I > uninstall it from Plone, normal CPU come back !! Your test evironment is the same as product server's one? If so, i think probably anyone can't advise you unless you reveal customized stuffs. Regards, -- Yusuke NAKAI mail: nyusuke at nagosui.org web : http://nagosui.org From nyusuke at nagosui.org Fri Dec 22 18:11:34 2006 From: nyusuke at nagosui.org (Yusuke NAKAI) Date: Sat, 23 Dec 2006 02:11:34 +0900 Subject: [COREblog-en] Comment reply handling In-Reply-To: References: <4584D086.7090102@nagosui.org> <4586C7F5.9080003@nagosui.org> <45880D1A.7060202@nagosui.org> <20061219172650.GD4382@betabug.ch> <458965CC.2090501@nagosui.org> Message-ID: <458C11C6.5010405@nagosui.org> Hi, > I only have one small problem left, with this aproach the commentator > gets a notification mail even when he makes the comment himself Email address being posted is got by 'REQUEST.form[email]' (if entered). So you can check if it's included in 'addr_list' before sending notification email. For example: -------------------------------------------------- for addr in addr_list: if addr == REQUEST.form[email]: continue else: to_addr = addr from_addr = context.getNotify_from() ... -------------------------------------------------- Regards, -- Yusuke NAKAI mail: nyusuke at nagosui.org web : http://nagosui.org From shibata at webcore.co.jp Sat Dec 23 06:03:10 2006 From: shibata at webcore.co.jp (Atsushi Shibata) Date: Sat, 23 Dec 2006 14:03:10 +0900 Subject: [COREblog-en] Comment reply handling In-Reply-To: <458C11C6.5010405@nagosui.org> References: <4584D086.7090102@nagosui.org> <4586C7F5.9080003@nagosui.org> <45880D1A.7060202@nagosui.org> <20061219172650.GD4382@betabug.ch> <458965CC.2090501@nagosui.org> <458C11C6.5010405@nagosui.org> Message-ID: <20061223140310.231121.1a40b52d@webcore.co.jp> On Sat, 23 Dec 2006 02:11:34 +0900, wrote: > for addr in addr_list: > if addr == REQUEST.form[email]: This line should be... > if addr == REQUEST.form['email']: Regards. ---------------------------------------- Atsushi Shibata (Webcore Corp.) shibata at webcore.co.jp http://www.webcore.co.jp/ ---------------------------------------- From nyusuke at nagosui.org Sat Dec 23 06:30:06 2006 From: nyusuke at nagosui.org (Yusuke NAKAI) Date: Sat, 23 Dec 2006 14:30:06 +0900 Subject: [COREblog-en] Comment reply handling In-Reply-To: <20061223140310.231121.1a40b52d@webcore.co.jp> References: <4584D086.7090102@nagosui.org> <4586C7F5.9080003@nagosui.org> <45880D1A.7060202@nagosui.org> <20061219172650.GD4382@betabug.ch> <458965CC.2090501@nagosui.org> <458C11C6.5010405@nagosui.org> <20061223140310.231121.1a40b52d@webcore.co.jp> Message-ID: <458CBEDE.2000004@nagosui.org> Hi, >> for addr in addr_list: >> if addr == REQUEST.form[email]: > > This line should be... > >> if addr == REQUEST.form['email']: Sorry for my mistake... Regards, -- Yusuke NAKAI mail: nyusuke at nagosui.org web : http://nagosui.org From nekstrand at gmail.com Sat Dec 23 14:00:38 2006 From: nekstrand at gmail.com (Niklas) Date: Sat, 23 Dec 2006 14:00:38 +0100 Subject: [COREblog-en] Comment reply handling In-Reply-To: <458CBEDE.2000004@nagosui.org> References: <45880D1A.7060202@nagosui.org> <20061219172650.GD4382@betabug.ch> <458965CC.2090501@nagosui.org> <458C11C6.5010405@nagosui.org> <20061223140310.231121.1a40b52d@webcore.co.jp> <458CBEDE.2000004@nagosui.org> Message-ID: Thanx a lot to you all for the help, It is now working very well, i (as blog administrator) get a comment notification with all information on every comment added, commentators get a notification of all added comments exept when they write their own but only with the url as information. Blog admin always gets a notification, commentator notification can be dissabled by send notification setting and by letting the commentators leave the email field empty (i have not tested the last option but i guess it would work). Here is the "final" code for the record: ----------------------------------------------------- #Send notify mail to blog admin try: to_addr = context.getNotify_to() from_addr = context.getNotify_from() msgbody = context.translate('comment_notify_body') elements = {} for k in ('title','author','url','body'): if REQUEST.form.has_key(k): elements[k] = REQUEST.form[k] else: elements[k] = '' elements['post_ip'] = REQUEST.getClientAddr() elements['entry_url'] = context.absolute_url() msgbody = msgbody % (elements) msgsubject = context.translate('comment_notify_title') mgsheader = """To: %s From: %s Mime-Version: 1.0 Content-Type: text/plain; Charset=utf-8 """ % (to_addr,from_addr) cbtool.send_mail(mgsheader+msgbody, to_addr, from_addr, msgsubject) # check status of notification mail setting if context.getSend_comment_notification(): #Get email addresses for commentators com_list = context.getComment() addr_list = [] for com in com_list: if not addr_list.count(com.getEmail()): addr_list.append(com.getEmail()) #Send notify mail if need to commentators try: for addr in addr_list: if addr == REQUEST.form['email']: continue else: to_addr = addr from_addr = context.getNotify_from() msgbody = context.absolute_url() msgsubject = context.translate('comment_notify_title') mgsheader = """To: %s From: %s Mime-Version: 1.0 Content-Type: text/plain; Charset=utf-8 """ % (to_addr,from_addr) cbtool.send_mail(mgsheader+msgbody, to_addr, from_addr, msgsubject) except Exception,e: log( 'COREBlog2/cbaddComment: ' 'Some exception occured, %s' % e ) except Exception,e: log( 'COREBlog2/cbaddComment: ' 'Some exception occured, %s' % e ) ----------------------------------------------------- On 12/23/06, Yusuke NAKAI wrote: > > Hi, > > >> for addr in addr_list: > >> if addr == REQUEST.form[email]: > > > > This line should be... > > > >> if addr == REQUEST.form['email']: > > Sorry for my mistake... > > Regards, > > -- > Yusuke NAKAI > > mail: nyusuke at nagosui.org > web : http://nagosui.org > _______________________________________________ > COREblog-en mailing list > COREblog-en at postaria.com > http://postaria.com/mailman/listinfo/coreblog-en > Unsubscription writing to coreblog-en-leave at postaria.com > -- With best regards / med v?nlig h?lsning Niklas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://postaria.com/pipermail/coreblog-en/attachments/20061223/489e58e9/attachment.htm From donnamsnow at gmail.com Sat Dec 23 20:43:44 2006 From: donnamsnow at gmail.com (Donna M. Snow) Date: Sat, 23 Dec 2006 11:43:44 -0800 Subject: [COREblog-en] happy holidays all.. (and question.. of course) Message-ID: <458D86F0.20409@gmail.com> OK digitalmusicnews.com is now live! both the "stories" and the "blog" are CoreBlog.. Here is my question.. how do I force "commenters" to log in to the system to leave a message?? I already have comment spam (and we just went live with new Plone site yesterday). I'm planning on adding PloneCaptcha as well... Any suggests...?? Best Regards, Donna M. Snow, Owner C Squared Enterprises illuminate your web http://www.csquaredtech.com From nekstrand at gmail.com Sat Dec 23 20:51:13 2006 From: nekstrand at gmail.com (Niklas) Date: Sat, 23 Dec 2006 20:51:13 +0100 Subject: [COREblog-en] Comment editing Message-ID: Hi, First, Merry Christmas, I hope you are not tired of me ;) When editing a comment the author and email fields always changes to the information from the logged in user and the time/date changes to the edited. Is there any way to get the original information in the fields instead and the comment to keep the time date? -- With best regards / med v?nlig h?lsning Niklas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://postaria.com/pipermail/coreblog-en/attachments/20061223/93df6cc0/attachment.htm From nekstrand at gmail.com Sat Dec 23 21:03:05 2006 From: nekstrand at gmail.com (Niklas) Date: Sat, 23 Dec 2006 21:03:05 +0100 Subject: [COREblog-en] happy holidays all.. (and question.. of course) In-Reply-To: <458D86F0.20409@gmail.com> References: <458D86F0.20409@gmail.com> Message-ID: Hi, In ZMI security for the blog there is an option COREBlog2: Add COREBlogComment, i guess it should do the trick if you set this to Authenticated (I have not tried myself). Just a little note about PloneCaptcha, i had some problem with it together with Firefox, it made me change to PloneCaptchas (Quinta group product) instead and also have the advantage of being totally stand alone. -- With best regards / med v?nlig h?lsning Niklas On 12/23/06, Donna M. Snow wrote: > > OK digitalmusicnews.com is now live! both the "stories" and the "blog" > are CoreBlog.. > > Here is my question.. how do I force "commenters" to log in to the > system to leave a message?? > I already have comment spam (and we just went live with new Plone site > yesterday). I'm planning on adding PloneCaptcha as well... > > > Any suggests...?? > > Best Regards, > Donna M. Snow, Owner > C Squared Enterprises > illuminate your web > http://www.csquaredtech.com > > _______________________________________________ > COREblog-en mailing list > COREblog-en at postaria.com > http://postaria.com/mailman/listinfo/coreblog-en > Unsubscription writing to coreblog-en-leave at postaria.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://postaria.com/pipermail/coreblog-en/attachments/20061223/9e8cd72f/attachment.htm From coreblog.low at gmail.com Sun Dec 31 11:11:03 2006 From: coreblog.low at gmail.com (Low Kian Seong) Date: Sun, 31 Dec 2006 18:11:03 +0800 Subject: [COREblog-en] How do i add the full text description to rss_template ? Message-ID: <7e0a44d80612310211w324ef782t8069cbbdf486d3c4@mail.gmail.com> Dear all, I am using Plone-2.5 and CoreBlog2. My question is how do i add the full text Description to the rss_template so that my full description appears on my rss feed generated by plone. The howtos that appear on the net are normally catered for plone-2.1.x and as the format has changed... the howtos can no longer be used. Thank you in advanced. Low Kian Seong ( http://lowks.inigo-tech.com/blog/)