From r.ritz at biologie.hu-berlin.de Mon Aug 1 12:03:06 2011 From: r.ritz at biologie.hu-berlin.de (Raphael Ritz) Date: Mon, 01 Aug 2011 14:03:06 +0200 Subject: [Product-Developers] collective.portlet.explore ragged margin workaround In-Reply-To: References: Message-ID: On 7/29/11 7:51 PM, ken manheimer wrote: > i love collective.portlet.explore's functionality, but find the ragged > right margin of wrapped titles - where the second-line is far tot the > right of the first - to defeat the readability of the nesting structure. > i have a fix, and would be happy to check it in, but the approach is > dubious, and am looking for better suggestions. Have you seen http://dev.plone.org/plone/ticket/2776 It suggests to use a negative 'text-indent' together with appropriate 'margin-left' settings. Not sure this is what you are after but maybe it is ... Cheers, Raphael > > the problem is that conventional css approaches to indenting second > lines fail, because at sufficient nesting depths they cause the > open/close toggle glyph (the triangle) to be covered by the leading > line. i haven't found a way, using just css on the enclosing the > title, to get around that. > > the easy fix is to enclose the title in a >
...
. actually, i need to use style="border-spacing: 0px">... to get rid of extraneous spacing imposed > by user-agent stylesheets. i'm far from certain this is the best way to > do it, or even an acceptible one. for quick and dirty, though, it works > like a charm. > > what's the right way to do this? (and why do people tolerate the ragged > right margin, as is? do people just not use collective.portlet.explore? > or always use very short titles?) > > i should add that my time for attention to this is extremely limited - > i'm just trying to make the thing useful, in a centrally maintainable way. > > ken manheimer > > > _______________________________________________ > Product-Developers mailing list > Product-Developers at lists.plone.org > https://lists.plone.org/mailman/listinfo/plone-product-developers From imran.azad at bradfordhospitals.nhs.uk Mon Aug 1 18:04:16 2011 From: imran.azad at bradfordhospitals.nhs.uk (Imran Azad) Date: Mon, 1 Aug 2011 11:04:16 -0700 (PDT) Subject: [Product-Developers] Hide "Sharing tab" in Dexterity content type Message-ID: <1312221856449-6641961.post@n2.nabble.com> Hi, I'm aware that it's possible to hide the "Sharing tab" by making the workflow manage the "Sharing page: Delegate roles" permission, however is it possible to do this within an xml file instead via GenericSetup? Thanks -- View this message in context: http://plone.293351.n2.nabble.com/Hide-Sharing-tab-in-Dexterity-content-type-tp6641961p6641961.html Sent from the Product Developers mailing list archive at Nabble.com. From ken.manheimer at gmail.com Mon Aug 1 22:27:15 2011 From: ken.manheimer at gmail.com (ken manheimer) Date: Mon, 1 Aug 2011 18:27:15 -0400 Subject: [Product-Developers] collective.portlet.explore ragged margin workaround In-Reply-To: References: Message-ID: On Mon, Aug 1, 2011 at 8:03 AM, Raphael Ritz wrote: > On 7/29/11 7:51 PM, ken manheimer wrote: > >> i love collective.portlet.explore's functionality, but find the ragged >> right margin of wrapped titles - where the second-line is far tot the >> right of the first - to defeat the readability of the nesting structure. >> i have a fix, and would be happy to check it in, but the approach is >> dubious, and am looking for better suggestions. >> > > Have you seen > http://dev.plone.org/plone/**ticket/2776 > > It suggests to use a negative 'text-indent' together with > appropriate 'margin-left' settings. > i hadn't seen that tracker issue, but the negative text-indent is what i was referring to by conventional techniques that wind up stomping the toggle/expand bullet. resolving that, plus the general complexity of the CSS approach as described in the issue even if that proves solvable, makes me comfortable with the very simple wrapping of the entry title in table/tr/td. since i heard no objections, yesterday i checked the change in to the collective.portlet.explore trunk, noting the whole situation in bug tracker issue 11 . > Not sure this is what you are after but maybe it is ... > yep - thanks for pointing it out! ken > Cheers, > > Raphael > > >> the problem is that conventional css approaches to indenting second >> lines fail, because at sufficient nesting depths they cause the >> open/close toggle glyph (the triangle) to be covered by the leading >> line. i haven't found a way, using just css on the enclosing the >> title, to get around that. >> >> the easy fix is to enclose the title in a >>
...<**td>. actually, i need to use
> style="border-spacing: 0px">... to get rid of extraneous spacing imposed >> by user-agent stylesheets. i'm far from certain this is the best way to >> do it, or even an acceptible one. for quick and dirty, though, it works >> like a charm. >> >> what's the right way to do this? (and why do people tolerate the ragged >> right margin, as is? do people just not use collective.portlet.explore? >> or always use very short titles?) >> >> i should add that my time for attention to this is extremely limited - >> i'm just trying to make the thing useful, in a centrally maintainable way. >> >> ken manheimer >> >> >> ______________________________**_________________ >> Product-Developers mailing list >> Product-Developers at lists.**plone.org >> https://lists.plone.org/**mailman/listinfo/plone-**product-developers >> > > > ______________________________**_________________ > Product-Developers mailing list > Product-Developers at lists.**plone.org > https://lists.plone.org/**mailman/listinfo/plone-**product-developers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.manheimer at gmail.com Mon Aug 1 22:42:45 2011 From: ken.manheimer at gmail.com (ken manheimer) Date: Mon, 1 Aug 2011 18:42:45 -0400 Subject: [Product-Developers] showing the folder order in a collection? Message-ID: i've wanted for a long time to be able to show the contents of a folder, ordered as they would be in the folder, along with some text describing each item, plus some rich text above describing the folder, as a whole. there is a number of combinations of various facilities that come close to providing this simple arrangement, but fail in tantalizing ways. have i missed something? the obvious answer is to use a collection with "No sort order" for the sorting criterion. unfortunately, "No sort order" doesn't wind up being the same sort order as that of the items in the folder, except sometimes, by accident. (of course - the collection doesn't consults the catalog, not the folder, for the contents.) that's a showstopper for me - what i really want is to be able to adjust the ordering of the items in the folder in order to adjust their ordering in the collection. the other tantalizingly close option is to just use a folder, with an (optionally, customized) summary, standard, or table view, and use the folder Description text as the introductory text. alas, the folder Description is plain, not rich text. well, how about using a collage, with a folder inside it? aargh, that's a mess - navigation portlets don't track the contents properly, etc. i know i should just create a derivative folder content type that has an additional, rich-text area before the listing (and after, if i really want). unfortunately, i've given up on finding the time to do that, so i'm asking if anyone has faced the same need, and found a solution? ken -------------- next part -------------- An HTML attachment was scrubbed... URL: From gil at usecm.com Tue Aug 2 08:01:34 2011 From: gil at usecm.com (Gil Forcada) Date: Tue, 2 Aug 2011 10:01:34 +0200 Subject: [Product-Developers] showing the folder order in a collection? In-Reply-To: References: Message-ID: 2011/8/2 ken manheimer > i've wanted for a long time to be able to show the contents of a folder, > ordered as they would be in the folder, along with some text describing each > item, plus some rich text above describing the folder, as a whole. there is > a number of combinations of various facilities that come close to providing > this simple arrangement, but fail in tantalizing ways. have i missed > something? > > the obvious answer is to use a collection with "No sort order" for the > sorting criterion. unfortunately, "No sort order" doesn't wind up being the > same sort order as that of the items in the folder, except sometimes, by > accident. (of course - the collection doesn't consults the catalog, not the > folder, for the contents.) that's a showstopper for me - what i really want > is to be able to adjust the ordering of the items in the folder in order to > adjust their ordering in the collection. > > the other tantalizingly close option is to just use a folder, with an > (optionally, customized) summary, standard, or table view, and use the > folder Description text as the introductory text. alas, the folder > Description is plain, not rich text. > > well, how about using a collage, with a folder inside it? aargh, that's a > mess - navigation portlets don't track the contents properly, etc. > > i know i should just create a derivative folder content type that has an > additional, rich-text area before the listing (and after, if i really want). > unfortunately, i've given up on finding the time to do that, so i'm asking > if anyone has faced the same need, and found a solution? > > ken > > Hi, To me this is just a custom view of a folder (even selectable via the a Display menu) and the key is the method listFolderContents on the context object. Just add something like this on you pt:

Element title

Element description

Element body
Cheers, -- *Gil Forcada** *C/Llacuna, 166 2n.2a (Edifici Llacuna) telf: 93.188.88.12 - 619.65.34.92 fax: 93.320.93.97 (08018) BARCELONA gil at usecm.com www.usecm.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From r.ritz at biologie.hu-berlin.de Tue Aug 2 08:25:26 2011 From: r.ritz at biologie.hu-berlin.de (Raphael Ritz) Date: Tue, 02 Aug 2011 10:25:26 +0200 Subject: [Product-Developers] showing the folder order in a collection? In-Reply-To: References: Message-ID: On 8/2/11 12:42 AM, ken manheimer wrote: > i've wanted for a long time to be able to show the contents of a folder, > ordered as they would be in the folder, along with some text describing > each item, plus some rich text above describing the folder, as a whole. > there is a number of combinations of various facilities that come > close to providing this simple arrangement, but fail in tantalizing > ways. have i missed something? maybe ;-) The catalog does now about order in a folder through the getObjPositionInParent index. In case that's not available for sorting in a collection (I didn't check) you can enable it in /portal_atct/atct_manageTopicIndex Is that what you are looking for? Raphael > > the obvious answer is to use a collection with "No sort order" for the > sorting criterion. unfortunately, "No sort order" doesn't wind up being > the same sort order as that of the items in the folder, except > sometimes, by accident. (of course - the collection doesn't consults > the catalog, not the folder, for the contents.) that's a showstopper > for me - what i really want is to be able to adjust the ordering of the > items in the folder in order to adjust their ordering in the collection. > > the other tantalizingly close option is to just use a folder, with an > (optionally, customized) summary, standard, or table view, and use the > folder Description text as the introductory text. alas, the folder > Description is plain, not rich text. > > well, how about using a collage, with a folder inside it? aargh, that's > a mess - navigation portlets don't track the contents properly, etc. > > i know i should just create a derivative folder content type that has an > additional, rich-text area before the listing (and after, if i really > want). unfortunately, i've given up on finding the time to do that, so > i'm asking if anyone has faced the same need, and found a solution? > > ken > > > _______________________________________________ > Product-Developers mailing list > Product-Developers at lists.plone.org > https://lists.plone.org/mailman/listinfo/plone-product-developers From ken.manheimer at gmail.com Tue Aug 2 15:21:53 2011 From: ken.manheimer at gmail.com (ken manheimer) Date: Tue, 2 Aug 2011 11:21:53 -0400 Subject: [Product-Developers] showing the folder order in a collection? In-Reply-To: References: Message-ID: On Tue, Aug 2, 2011 at 4:25 AM, Raphael Ritz wrote: > On 8/2/11 12:42 AM, ken manheimer wrote: > >> i've wanted for a long time to be able to show the contents of a folder, >> ordered as they would be in the folder, along with some text describing >> each item, plus some rich text above describing the folder, as a whole. >> there is a number of combinations of various facilities that come >> close to providing this simple arrangement, but fail in tantalizing >> ways. have i missed something? >> > > maybe ;-) > > The catalog does now about order in a folder through the > > getObjPositionInParent > > index. In case that's not available for sorting in a > collection (I didn't check) you can enable it in > > /portal_atct/atct_**manageTopicIndex > > Is that what you are looking for? > yes, it looks like exactly what i'm seeking. (gil forcada's suggestion about using a custom folder display view is excellent, too. maybe i just need to read martin aspelli's book?) i'm running into problems getting it working, and have to investigate further. i did have to enable the getObjPositionInParent field in the collections configlet (thanks much for the clear path to find my way there), and that involved using the "All fields" link to expose the option. once that's done, though, i still don't see the "Order in folder" friendly name among the collections sort criteria. i double checked everything to see if i got the order wrong, etc, and even changed one of the working friendly names to verify that the change shows in the collection sort criteria list, which it did. will investigate further soon, but mention it in case i'm (again:-) missing something. ken Raphael > > >> the obvious answer is to use a collection with "No sort order" for the >> sorting criterion. unfortunately, "No sort order" doesn't wind up being >> the same sort order as that of the items in the folder, except >> sometimes, by accident. (of course - the collection doesn't consults >> the catalog, not the folder, for the contents.) that's a showstopper >> for me - what i really want is to be able to adjust the ordering of the >> items in the folder in order to adjust their ordering in the collection. >> >> the other tantalizingly close option is to just use a folder, with an >> (optionally, customized) summary, standard, or table view, and use the >> folder Description text as the introductory text. alas, the folder >> Description is plain, not rich text. >> >> well, how about using a collage, with a folder inside it? aargh, that's >> a mess - navigation portlets don't track the contents properly, etc. >> >> i know i should just create a derivative folder content type that has an >> additional, rich-text area before the listing (and after, if i really >> want). unfortunately, i've given up on finding the time to do that, so >> i'm asking if anyone has faced the same need, and found a solution? >> >> ken >> >> >> ______________________________**_________________ >> Product-Developers mailing list >> Product-Developers at lists.**plone.org >> https://lists.plone.org/**mailman/listinfo/plone-**product-developers >> > > > ______________________________**_________________ > Product-Developers mailing list > Product-Developers at lists.**plone.org > https://lists.plone.org/**mailman/listinfo/plone-**product-developers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hector.velarde at gmail.com Tue Aug 2 15:55:44 2011 From: hector.velarde at gmail.com (=?ISO-8859-1?Q?H=E9ctor_Velarde?=) Date: Tue, 02 Aug 2011 10:55:44 -0500 Subject: [Product-Developers] where is IRelatedItems in Dexterity 1.0.1? Message-ID: <4E381E00.9050307@gmail.com> I noticed there's a new 1.0.1 version of Dexterity available and that there have been some changes on the IRelatedItems behavior; as the following no longer works, what do I have to use now? can someone update the documentation? http://plone.org/products/dexterity/documentation/manual/developer-manual/reference/standard-behaviors best regards -- H?ctor Velarde -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4024 bytes Desc: Firma criptogr??fica S/MIME URL: From davidglick at groundwire.org Tue Aug 2 15:58:15 2011 From: davidglick at groundwire.org (David Glick) Date: Tue, 2 Aug 2011 11:58:15 -0400 Subject: [Product-Developers] where is IRelatedItems in Dexterity 1.0.1? In-Reply-To: <4E381E00.9050307@gmail.com> References: <4E381E00.9050307@gmail.com> Message-ID: <4E381E97.6000702@groundwire.org> On 8/2/11 11:55 AM, H?ctor Velarde wrote: > I noticed there's a new 1.0.1 version of Dexterity available and that > there have been some changes on the IRelatedItems behavior; as the > following no longer works, what do I have to use now? > > > > can someone update the documentation? > > http://plone.org/products/dexterity/documentation/manual/developer-manual/reference/standard-behaviors > > best regards It is now in plone.app.relationfield -- but the old one is supposed to just be deprecated, as opposed to not working. I'll try to check on that and update the documentation soon. David ---------- David Glick Web Developer davidglick at groundwire.org 206.286.1235x32 Online tools and strategies for the environmental movement. Sign up for our newsletter: http://www.groundwire.org/email-capture From hector.velarde at gmail.com Tue Aug 2 16:04:00 2011 From: hector.velarde at gmail.com (=?ISO-8859-1?Q?H=E9ctor_Velarde?=) Date: Tue, 02 Aug 2011 11:04:00 -0500 Subject: [Product-Developers] where is IRelatedItems in Dexterity 1.0.1? In-Reply-To: <4E381E97.6000702@groundwire.org> References: <4E381E00.9050307@gmail.com> <4E381E97.6000702@groundwire.org> Message-ID: <4E381FF0.6060406@gmail.com> I added the following to my content XML file inside profile/default/types but it is still not working: perhaps I'm missing something else... H?ctor Velarde El 02/08/11 10:58, David Glick escribi?: > On 8/2/11 11:55 AM, H?ctor Velarde wrote: > It is now in plone.app.relationfield -- but the old one is supposed to > just be deprecated, as opposed to not working. I'll try to check on that > and update the documentation soon. > David -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4024 bytes Desc: Firma criptogr??fica S/MIME URL: From hector.velarde at gmail.com Tue Aug 2 16:12:30 2011 From: hector.velarde at gmail.com (=?ISO-8859-1?Q?H=E9ctor_Velarde?=) Date: Tue, 02 Aug 2011 11:12:30 -0500 Subject: [Product-Developers] where is IRelatedItems in Dexterity 1.0.1? In-Reply-To: <4E38205B.2020903@gmail.com> References: <4E381E00.9050307@gmail.com> <4E381E97.6000702@groundwire.org> <4E381FF0.6060406@gmail.com> <4E38205B.2020903@gmail.com> Message-ID: <4E3821EE.5050603@gmail.com> sorry, David... I forgot to include that basic information the first time :-p I'm using Plone 4.1 and the problem is the behavior is not applied to my content type: no Related Items field is available and the behavior is not selected on the content type when I snoop around the Dexterity configlet. if I select the behavior on the configlet, then the field is available. best regards H?ctor Velarde El 02/08/11 11:05, David Glick escribi?: > On 8/2/11 12:04 PM, H?ctor Velarde wrote: >> I added the following to my content XML file inside >> profile/default/types but it is still not working: >> >> >> >> perhaps I'm missing something else... >> > What in particular is not working? What version of Plone are you on? > David -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4024 bytes Desc: Firma criptogr??fica S/MIME URL: From hector.velarde at gmail.com Tue Aug 2 17:55:33 2011 From: hector.velarde at gmail.com (=?ISO-8859-1?Q?H=E9ctor_Velarde?=) Date: Tue, 02 Aug 2011 12:55:33 -0500 Subject: [Product-Developers] where is IRelatedItems in Dexterity 1.0.1? In-Reply-To: <4E3821EE.5050603@gmail.com> References: <4E381E00.9050307@gmail.com> <4E381E97.6000702@groundwire.org> <4E381FF0.6060406@gmail.com> <4E38205B.2020903@gmail.com> <4E3821EE.5050603@gmail.com> Message-ID: <4E383A15.5000602@gmail.com> solved, David! I created a test to verify this was working: >>> fti.behaviors [] >>> browser.open('http://nohost/plone/++add++dinosaur') >>> 'Related Items' in browser.contents False We can declare that it supports the "related items" behavior defined in plone.app.relationfield (normally this would be done via Generic Setup): >>> fti.behaviors = ('plone.app.relationfield.behavior.IRelatedItems',) >>> browser.open('http://nohost/plone/++add++dinosaur') >>> 'Related Items' in browser.contents True after that, I erased my content type from the Dexterity configlet, remove the package and reinstalled it. it is working now... thanks! H?ctor Velarde -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4024 bytes Desc: Firma criptogr??fica S/MIME URL: From hector.velarde at gmail.com Tue Aug 2 21:38:04 2011 From: hector.velarde at gmail.com (=?ISO-8859-1?Q?H=E9ctor_Velarde?=) Date: Tue, 02 Aug 2011 16:38:04 -0500 Subject: [Product-Developers] location field on Dexterity based content types Message-ID: <4E386E3C.4090102@gmail.com> are there any plans to include a location field on a behavior of Dexterity content types? -- H?ctor Velarde -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4024 bytes Desc: Firma criptogr??fica S/MIME URL: From ken.manheimer at gmail.com Tue Aug 2 22:57:10 2011 From: ken.manheimer at gmail.com (ken manheimer) Date: Tue, 2 Aug 2011 18:57:10 -0400 Subject: [Product-Developers] showing the folder order in a collection? In-Reply-To: References: Message-ID: On Tue, Aug 2, 2011 at 11:21 AM, ken manheimer wrote: > On Tue, Aug 2, 2011 at 4:25 AM, Raphael Ritz > wrote: > >> On 8/2/11 12:42 AM, ken manheimer wrote: >> >>> i've wanted for a long time to be able to show the contents of a folder, >>> ordered as they would be in the folder, along with some text describing >>> each item, plus some rich text above describing the folder, as a whole. >>> there is a number of combinations of various facilities that come >>> close to providing this simple arrangement, but fail in tantalizing >>> ways. have i missed something? >>> >> >> maybe ;-) >> >> The catalog does now about order in a folder through the >> >> getObjPositionInParent >> >> index. In case that's not available for sorting in a >> collection (I didn't check) you can enable it in >> >> /portal_atct/atct_**manageTopicIndex >> >> Is that what you are looking for? >> > > yes, it looks like exactly what i'm seeking. (gil forcada's suggestion > about using a custom folder display view is excellent, too. maybe i just > need to read martin aspelli's book?) i'm running into problems getting it > working, and have to investigate further. > alas, this turns out to be a false lead. the collections configlet doesn't offer any way to change the selection of criteria for *sort order*. it only offers ways to change the indexes to be used for collection *searching* and *field display*. (moreover, adding getObjPositionInParent/'Order in folder' to the search criteria doesn't actually add an "Order in folder" option in the collection "Add new search criteria" menu! the getObjPositionInParent has no "Allowed Criteria", so there's nothing by which to qualify and disqualify items in the search. hence, the option is filtered out in the selection form. it probably should be filtered out from the "All fields" alternatives in the collection configlet, as well.) still, i appreciate the suggestion - i learned something about ways to adjust collection knobs (and limitations on those ways). i may be better off with a custom "display" view for a folder - except i have doubts that'll be trivial, because it requires something to hold and edit the rich text i want to include, and that's not part of a folder. aargh again. it's looking, once again, like the built-in types do not provide for my desired, basic use case, even by tailoring custom views... ken > i did have to enable the getObjPositionInParent field in the collections > configlet (thanks much for the clear path to find my way there), and that > involved using the "All fields" link to expose the option. > > once that's done, though, i still don't see the "Order in folder" friendly > name among the collections sort criteria. i double checked everything to > see if i got the order wrong, etc, and even changed one of the working > friendly names to verify that the change shows in the collection sort > criteria list, which it did. will investigate further soon, but mention it > in case i'm (again:-) missing something. > > ken > > Raphael >> >> >>> the obvious answer is to use a collection with "No sort order" for the >>> sorting criterion. unfortunately, "No sort order" doesn't wind up being >>> the same sort order as that of the items in the folder, except >>> sometimes, by accident. (of course - the collection doesn't consults >>> the catalog, not the folder, for the contents.) that's a showstopper >>> for me - what i really want is to be able to adjust the ordering of the >>> items in the folder in order to adjust their ordering in the collection. >>> >>> the other tantalizingly close option is to just use a folder, with an >>> (optionally, customized) summary, standard, or table view, and use the >>> folder Description text as the introductory text. alas, the folder >>> Description is plain, not rich text. >>> >>> well, how about using a collage, with a folder inside it? aargh, that's >>> a mess - navigation portlets don't track the contents properly, etc. >>> >>> i know i should just create a derivative folder content type that has an >>> additional, rich-text area before the listing (and after, if i really >>> want). unfortunately, i've given up on finding the time to do that, so >>> i'm asking if anyone has faced the same need, and found a solution? >>> >>> ken >>> >>> >>> ______________________________**_________________ >>> Product-Developers mailing list >>> Product-Developers at lists.**plone.org >>> https://lists.plone.org/**mailman/listinfo/plone-**product-developers >>> >> >> >> ______________________________**_________________ >> Product-Developers mailing list >> Product-Developers at lists.**plone.org >> https://lists.plone.org/**mailman/listinfo/plone-**product-developers >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.manheimer at gmail.com Tue Aug 2 23:16:10 2011 From: ken.manheimer at gmail.com (ken manheimer) Date: Tue, 2 Aug 2011 19:16:10 -0400 Subject: [Product-Developers] showing the folder order in a collection? In-Reply-To: References: Message-ID: [i forgot to cc the group on my initial response to gil, and then had a brainstorm about a small change to collections that would provide a good solution to my problem, which i'm including in this resend.] thanks, gil, for the suggestion. the problem i see is that i want to have a rich text description included before the listing of the items, and folders aren't structured to hold such a rich-text description. it's very good to know that i could fairly easily hook up a custom presentation (view) of the items in a folder, though. in lieue of a general solution i'm using a collection, and setting the short names of the folder contents so that i can use the collection's short name sorting to order them how i please. it really sucks that i have to go in and rename the objects if i want to change the sorting - particularly when folders have that beautiful drag-and-drop ordering mechanism, but collections just can't be made to obey it... it occurs to me that a great solution for the collection-based approach would be to have the "No sort order" respect the sorting order of the items in their respective folders. when combining items from different folders, they could be grouped by folder. more of a "Sorted by folder" sorting, which i think would be generally useful, including solving my use case. ken On Tue, Aug 2, 2011 at 4:01 AM, Gil Forcada wrote: > > > 2011/8/2 ken manheimer > >> i've wanted for a long time to be able to show the contents of a folder, >> ordered as they would be in the folder, along with some text describing each >> item, plus some rich text above describing the folder, as a whole. there is >> a number of combinations of various facilities that come close to providing >> this simple arrangement, but fail in tantalizing ways. have i missed >> something? >> >> the obvious answer is to use a collection with "No sort order" for the >> sorting criterion. unfortunately, "No sort order" doesn't wind up being the >> same sort order as that of the items in the folder, except sometimes, by >> accident. (of course - the collection doesn't consults the catalog, not the >> folder, for the contents.) that's a showstopper for me - what i really want >> is to be able to adjust the ordering of the items in the folder in order to >> adjust their ordering in the collection. >> >> the other tantalizingly close option is to just use a folder, with an >> (optionally, customized) summary, standard, or table view, and use the >> folder Description text as the introductory text. alas, the folder >> Description is plain, not rich text. >> >> well, how about using a collage, with a folder inside it? aargh, that's a >> mess - navigation portlets don't track the contents properly, etc. >> >> i know i should just create a derivative folder content type that has an >> additional, rich-text area before the listing (and after, if i really want). >> unfortunately, i've given up on finding the time to do that, so i'm asking >> if anyone has faced the same need, and found a solution? >> >> ken >> >> > Hi, > > To me this is just a custom view of a folder (even selectable via the a > Display menu) and the key is the method listFolderContents on the context > object. > > Just add something like this on you pt: > > >

> Element title

>

Element description

>
Element body
>
> > > Cheers, > > > > -- > > *Gil Forcada** > *C/Llacuna, 166 2n.2a (Edifici Llacuna) > telf: 93.188.88.12 - 619.65.34.92 > fax: 93.320.93.97 > (08018) BARCELONA > gil at usecm.com > www.usecm.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From r.ritz at biologie.hu-berlin.de Wed Aug 3 09:58:39 2011 From: r.ritz at biologie.hu-berlin.de (Raphael Ritz) Date: Wed, 03 Aug 2011 11:58:39 +0200 Subject: [Product-Developers] showing the folder order in a collection? In-Reply-To: References: Message-ID: On 8/3/11 12:57 AM, ken manheimer wrote: [..] > The catalog does now about order in a folder through the > > getObjPositionInParent > > index. In case that's not available for sorting in a > collection (I didn't check) you can enable it in > > /portal_atct/atct___manageTopicIndex > > Is that what you are looking for? > > > yes, it looks like exactly what i'm seeking. (gil forcada's > suggestion about using a custom folder display view is excellent, > too. maybe i just need to read martin aspelli's book?) i'm running > into problems getting it working, and have to investigate further. > > > alas, this turns out to be a false lead. the collections configlet > doesn't offer any way to change the selection of criteria for *sort > order*. it only offers ways to change the indexes to be used for > collection /searching/ and /field display/. That's disappointing :-( Which version of Plone? In a somewhat older Plone 3 based site I could enable the the index for sorting as described. Looking into this a bit my guess is that this is due to a new index type that was introduced for 'getObjPositionInParent' specifically. In Products/ATContentTypes/criteria/__init__.py ALL_INDICES and SORT_INDICES are hard coded. What happens if you add 'GopipIndex' (the new index type) there (to both)? If nothing happens there might be some configuration missing still. Feel free to file a ticket for this. At least I would consider this a regression. Oh, and this made me look whether there might be one already and sure enough there is http://dev.plone.org/plone/ticket/11151 Does the patch provided there work for you? Raphael > > (moreover, adding getObjPositionInParent/'Order in folder' to the search > criteria doesn't actually add an "Order in folder" option in the > collection "Add new search criteria" menu! the getObjPositionInParent > has no "Allowed Criteria", so there's nothing by which to qualify and > disqualify items in the search. hence, the option is filtered out in > the selection form. it probably should be filtered out from the "All > fields" alternatives in the collection configlet, as well.) > > still, i appreciate the suggestion - i learned something about ways to > adjust collection knobs (and limitations on those ways). i may be > better off with a custom "display" view for a folder - except i have > doubts that'll be trivial, because it requires something to hold and > edit the rich text i want to include, and that's not part of a folder. > aargh again. > > it's looking, once again, like the built-in types do not provide for my > desired, basic use case, even by tailoring custom views... > > ken > > i did have to enable the getObjPositionInParent field in the > collections configlet (thanks much for the clear path to find my way > there), and that involved using the "All fields" link to expose the > option. > > once that's done, though, i still don't see the "Order in folder" > friendly name among the collections sort criteria. i double checked > everything to see if i got the order wrong, etc, and even changed > one of the working friendly names to verify that the change shows in > the collection sort criteria list, which it did. will investigate > further soon, but mention it in case i'm (again:-) missing something. > > ken > > Raphael > > > the obvious answer is to use a collection with "No sort > order" for the > sorting criterion. unfortunately, "No sort order" doesn't > wind up being > the same sort order as that of the items in the folder, except > sometimes, by accident. (of course - the collection doesn't > consults > the catalog, not the folder, for the contents.) that's a > showstopper > for me - what i really want is to be able to adjust the > ordering of the > items in the folder in order to adjust their ordering in the > collection. > > the other tantalizingly close option is to just use a > folder, with an > (optionally, customized) summary, standard, or table view, > and use the > folder Description text as the introductory text. alas, the > folder > Description is plain, not rich text. > > well, how about using a collage, with a folder inside it? > aargh, that's > a mess - navigation portlets don't track the contents > properly, etc. > > i know i should just create a derivative folder content type > that has an > additional, rich-text area before the listing (and after, if > i really > want). unfortunately, i've given up on finding the time to > do that, so > i'm asking if anyone has faced the same need, and found a > solution? > > ken > > > _________________________________________________ > Product-Developers mailing list > Product-Developers at lists.__plone.org > > https://lists.plone.org/__mailman/listinfo/plone-__product-developers > > > > > _________________________________________________ > Product-Developers mailing list > Product-Developers at lists.__plone.org > > https://lists.plone.org/__mailman/listinfo/plone-__product-developers > > > > > > > _______________________________________________ > Product-Developers mailing list > Product-Developers at lists.plone.org > https://lists.plone.org/mailman/listinfo/plone-product-developers From ken.manheimer at gmail.com Wed Aug 3 17:51:23 2011 From: ken.manheimer at gmail.com (ken manheimer) Date: Wed, 3 Aug 2011 13:51:23 -0400 Subject: [Product-Developers] showing the folder order in a collection? In-Reply-To: References: Message-ID: On Wed, Aug 3, 2011 at 5:58 AM, Raphael Ritz wrote: > On 8/3/11 12:57 AM, ken manheimer wrote: > > [..] > > The catalog does now about order in a folder through the >> >> getObjPositionInParent >> >> index. In case that's not available for sorting in a >> collection (I didn't check) you can enable it in >> >> /portal_atct/atct___**manageTopicIndex >> >> Is that what you are looking for? >> >> yes, it looks like exactly what i'm seeking. (gil forcada's >> suggestion about using a custom folder display view is excellent, >> too. maybe i just need to read martin aspelli's book?) i'm running >> into problems getting it working, and have to investigate further. >> >> alas, this turns out to be a false lead. the collections configlet >> doesn't offer any way to change the selection of criteria for *sort >> order*. it only offers ways to change the indexes to be used for >> collection /searching/ and /field display/. >> > > That's disappointing :-( truly. but, happily, you've provided a resolution... > Which version of Plone? > 4.0.7 - i should have mentioned that earlier. > In a somewhat older Plone 3 based site I could enable the > the index for sorting as described. > > Looking into this a bit my guess is that this is due to a > new index type that was introduced for 'getObjPositionInParent' > specifically. > > In Products/ATContentTypes/**criteria/__init__.py ALL_INDICES and > SORT_INDICES are hard coded. What happens if you add > 'GopipIndex' (the new index type) there (to both)? > If nothing happens there might be some configuration missing still. > > Feel free to file a ticket for this. At least I would consider > this a regression. Oh, and this made me look whether there might > be one already and sure enough there is > > http://dev.plone.org/plone/**ticket/11151 > > Does the patch provided there work for you? > hooray - yes! i've added a comment in the issue asking for the patch to be included in plone. i should have mentioned the regression, and tests to protect against it happening again... this is great - thanks much for seeing this through! ken > Raphael > > > >> (moreover, adding getObjPositionInParent/'Order in folder' to the search >> criteria doesn't actually add an "Order in folder" option in the >> collection "Add new search criteria" menu! the getObjPositionInParent >> has no "Allowed Criteria", so there's nothing by which to qualify and >> disqualify items in the search. hence, the option is filtered out in >> the selection form. it probably should be filtered out from the "All >> fields" alternatives in the collection configlet, as well.) >> >> still, i appreciate the suggestion - i learned something about ways to >> adjust collection knobs (and limitations on those ways). i may be >> better off with a custom "display" view for a folder - except i have >> doubts that'll be trivial, because it requires something to hold and >> edit the rich text i want to include, and that's not part of a folder. >> aargh again. >> >> it's looking, once again, like the built-in types do not provide for my >> desired, basic use case, even by tailoring custom views... >> >> ken >> >> i did have to enable the getObjPositionInParent field in the >> collections configlet (thanks much for the clear path to find my way >> there), and that involved using the "All fields" link to expose the >> option. >> >> once that's done, though, i still don't see the "Order in folder" >> friendly name among the collections sort criteria. i double checked >> everything to see if i got the order wrong, etc, and even changed >> one of the working friendly names to verify that the change shows in >> the collection sort criteria list, which it did. will investigate >> further soon, but mention it in case i'm (again:-) missing something. >> >> ken >> >> Raphael >> >> >> the obvious answer is to use a collection with "No sort >> order" for the >> sorting criterion. unfortunately, "No sort order" doesn't >> wind up being >> the same sort order as that of the items in the folder, except >> sometimes, by accident. (of course - the collection doesn't >> consults >> the catalog, not the folder, for the contents.) that's a >> showstopper >> for me - what i really want is to be able to adjust the >> ordering of the >> items in the folder in order to adjust their ordering in the >> collection. >> >> the other tantalizingly close option is to just use a >> folder, with an >> (optionally, customized) summary, standard, or table view, >> and use the >> folder Description text as the introductory text. alas, the >> folder >> Description is plain, not rich text. >> >> well, how about using a collage, with a folder inside it? >> aargh, that's >> a mess - navigation portlets don't track the contents >> properly, etc. >> >> i know i should just create a derivative folder content type >> that has an >> additional, rich-text area before the listing (and after, if >> i really >> want). unfortunately, i've given up on finding the time to >> do that, so >> i'm asking if anyone has faced the same need, and found a >> solution? >> >> ken >> >> >> ______________________________**___________________ >> Product-Developers mailing list >> Product-Developers at lists.__plo**ne.org >> >> > >> >> https://lists.plone.org/__**mailman/listinfo/plone-__** >> product-developers >> > product-developers >> > >> >> >> >> ______________________________**___________________ >> Product-Developers mailing list >> Product-Developers at lists.__plo**ne.org >> >> > >> >> https://lists.plone.org/__**mailman/listinfo/plone-__** >> product-developers >> > product-developers >> > >> >> >> >> >> >> ______________________________**_________________ >> Product-Developers mailing list >> Product-Developers at lists.**plone.org >> https://lists.plone.org/**mailman/listinfo/plone-**product-developers >> > > > ______________________________**_________________ > Product-Developers mailing list > Product-Developers at lists.**plone.org > https://lists.plone.org/**mailman/listinfo/plone-**product-developers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From itconsense at gmail.com Thu Aug 4 09:56:13 2011 From: itconsense at gmail.com (Tom Gross) Date: Thu, 04 Aug 2011 11:56:13 +0200 Subject: [Product-Developers] Testing collective.contentleadimage Message-ID: Hi I have written a product which depends on collective.contentleadimage via a genericsetup dependency. Running the unittests of my product gives the following error: Traceback (most recent call last): File "/home/tom/workspace/eggs/zope.testing-3.8.3-py2.4.egg/zope/testing/testrunner/runner.py", line 364, in run_layer setup_layer(options, layer, setup_layers) File "/home/tom/workspace/eggs/zope.testing-3.8.3-py2.4.egg/zope/testing/testrunner/runner.py", line 629, in setup_layer layer.setUp() File "/home/tom/workspace/eggs/Products.PloneTestCase-0.9.13-py2.4.egg/Products/PloneTestCase/layer.py", line 33, in setUp func(*args, **kw) File "/home/tom/workspace/eggs/Products.PloneTestCase-0.9.13-py2.4.egg/Products/PloneTestCase/setup.py", line 169, in setupPloneSite base_profile, extension_profiles).run() File "/home/tom/workspace/eggs/Products.PloneTestCase-0.9.13-py2.4.egg/Products/PloneTestCase/setup.py", line 220, in run self._setupHomeFolder() File "/home/tom/workspace/eggs/Products.PloneTestCase-0.9.13-py2.4.egg/Products/PloneTestCase/setup.py", line 326, in _setupHomeFolder self._commit() File "/home/tom/workspace/eggs/Products.PloneTestCase-0.9.13-py2.4.egg/Products/PloneTestCase/setup.py", line 369, in _commit transaction.commit() File "/home/tom/workspace/eggs/ZODB3-3.8.6-py2.4-linux-x86_64.egg/transaction/_manager.py", line 93, in commit return self.get().commit() File "/home/tom/workspace/eggs/ZODB3-3.8.6-py2.4-linux-x86_64.egg/transaction/_transaction.py", line 325, in commit self._commitResources() File "/home/tom/workspace/eggs/ZODB3-3.8.6-py2.4-linux-x86_64.egg/transaction/_transaction.py", line 424, in _commitResources rm.commit(self) File "/home/tom/workspace/eggs/ZODB3-3.8.6-py2.4-linux-x86_64.egg/ZODB/Connection.py", line 545, in commit self._commit(transaction) File "/home/tom/workspace/eggs/ZODB3-3.8.6-py2.4-linux-x86_64.egg/ZODB/Connection.py", line 590, in _commit self._store_objects(ObjectWriter(obj), transaction) File "/home/tom/workspace/eggs/ZODB3-3.8.6-py2.4-linux-x86_64.egg/ZODB/Connection.py", line 628, in _store_objects raise Unsupported( Unsupported: Storing Blobs in is not supported. Uncommenting the dependency works as expected. Is there a) a way of disabeling the Blob-storage of collective.contentleadimage while unittesting or b) a way to conditionally include a dependency via generic setup or c) a solution a haven't thought of? Thanks -Tom -- Author of the book "Plone 3 Multimedia" - http://amzn.to/dtrp0C Tom Gross email..........tom at toms-projekte.de skype.....................tom_gross web.........http://toms-projekte.de blog...http://blog.toms-projekte.de From itconsense at gmail.com Thu Aug 4 10:26:18 2011 From: itconsense at gmail.com (Tom Gross) Date: Thu, 04 Aug 2011 12:26:18 +0200 Subject: [Product-Developers] Testing collective.contentleadimage In-Reply-To: References: Message-ID: Ok, I found the issue myself. Blobs in Demostorage are supported ZODB >= 3.9.0. I'm using Plone 3.3 with ZODB 3.8.6 (with blobs obviously ;) For the records. I'm now installing the product at a later time. Like this: class MyProductTestCase(ptc.PloneTestCase): """ A test case for MyProduct """ def afterSetUp(self): self.setRoles(['Manager']) gs_tool = self.portal['portal_setup'] gs_tool.runAllImportStepsFromProfile('profile-Products.MyProduct:default', ignore_dependencies=True) # good dependencies ... PROFILES = ['Products.ATVocabularyManager:default',] ptc.setupPloneSite(extension_profiles=PROFILES) Thanks and cheers -Tom On 08/04/2011 11:56 AM, Tom Gross wrote: > Hi > > I have written a product which depends on collective.contentleadimage > via a genericsetup dependency. Running the unittests of my product gives > the following error: > > Traceback (most recent call last): > File > "/home/tom/workspace/eggs/zope.testing-3.8.3-py2.4.egg/zope/testing/testrunner/runner.py", > line 364, in run_layer > setup_layer(options, layer, setup_layers) > File > "/home/tom/workspace/eggs/zope.testing-3.8.3-py2.4.egg/zope/testing/testrunner/runner.py", > line 629, in setup_layer > layer.setUp() > File > "/home/tom/workspace/eggs/Products.PloneTestCase-0.9.13-py2.4.egg/Products/PloneTestCase/layer.py", > line 33, in setUp > func(*args, **kw) > File > "/home/tom/workspace/eggs/Products.PloneTestCase-0.9.13-py2.4.egg/Products/PloneTestCase/setup.py", > line 169, in setupPloneSite > base_profile, extension_profiles).run() > File > "/home/tom/workspace/eggs/Products.PloneTestCase-0.9.13-py2.4.egg/Products/PloneTestCase/setup.py", > line 220, in run > self._setupHomeFolder() > File > "/home/tom/workspace/eggs/Products.PloneTestCase-0.9.13-py2.4.egg/Products/PloneTestCase/setup.py", > line 326, in _setupHomeFolder > self._commit() > File > "/home/tom/workspace/eggs/Products.PloneTestCase-0.9.13-py2.4.egg/Products/PloneTestCase/setup.py", > line 369, in _commit > transaction.commit() > File > "/home/tom/workspace/eggs/ZODB3-3.8.6-py2.4-linux-x86_64.egg/transaction/_manager.py", > line 93, in commit > return self.get().commit() > File > "/home/tom/workspace/eggs/ZODB3-3.8.6-py2.4-linux-x86_64.egg/transaction/_transaction.py", > line 325, in commit > self._commitResources() > File > "/home/tom/workspace/eggs/ZODB3-3.8.6-py2.4-linux-x86_64.egg/transaction/_transaction.py", > line 424, in _commitResources > rm.commit(self) > File > "/home/tom/workspace/eggs/ZODB3-3.8.6-py2.4-linux-x86_64.egg/ZODB/Connection.py", > line 545, in commit > self._commit(transaction) > File > "/home/tom/workspace/eggs/ZODB3-3.8.6-py2.4-linux-x86_64.egg/ZODB/Connection.py", > line 590, in _commit > self._store_objects(ObjectWriter(obj), transaction) > File > "/home/tom/workspace/eggs/ZODB3-3.8.6-py2.4-linux-x86_64.egg/ZODB/Connection.py", > line 628, in _store_objects > raise Unsupported( > Unsupported: Storing Blobs in 0x27f2a28> is not supported. > > Uncommenting the dependency works as expected. Is there > > a) a way of disabeling the Blob-storage of collective.contentleadimage > while unittesting > > or > > b) a way to conditionally include a dependency via generic setup > > or > > c) a solution a haven't thought of? > > Thanks > -Tom > > > -- Author of the book "Plone 3 Multimedia" - http://amzn.to/dtrp0C Tom Gross email..........tom at toms-projekte.de skype.....................tom_gross web.........http://toms-projekte.de blog...http://blog.toms-projekte.de From mikko+plone at redinnovation.com Thu Aug 4 14:31:22 2011 From: mikko+plone at redinnovation.com (Mikko Ohtamaa) Date: Thu, 4 Aug 2011 07:31:22 -0700 (PDT) Subject: [Product-Developers] Mr. Developer vs. GitHub Message-ID: <1312468282351-6652959.post@n2.nabble.com> Hi, Is it possible to have one URL on GitHub which would allow Mr. Developer to checkout the project so that * anonymous users do not need to set up SSH keys, or access to the project, etc. * people with commit access would still get commit enabled URL I don't want to have different buildout.cfg for developers with different access level to GitHub projects. Meanwhile what are the best practices to work around this little problem? Yours sincerely, Git hater (but github is almost ok) ----- Follow me in Twitter Download mFabrik News for iPhone or Android -- View this message in context: http://plone.293351.n2.nabble.com/Mr-Developer-vs-GitHub-tp6652959p6652959.html Sent from the Product Developers mailing list archive at Nabble.com. From roel at fourdigits.nl Thu Aug 4 14:55:39 2011 From: roel at fourdigits.nl (Roel Bruggink) Date: Thu, 4 Aug 2011 16:55:39 +0200 Subject: [Product-Developers] Mr. Developer vs. GitHub In-Reply-To: <1312468282351-6652959.post@n2.nabble.com> References: <1312468282351-6652959.post@n2.nabble.com> Message-ID: Just use the read-only urls, ie https://github.com/fschulze/mr.developer.gitor git:// github.com/fschulze/mr.developer.git On Thu, Aug 4, 2011 at 4:31 PM, Mikko Ohtamaa wrote: > Hi, > > Is it possible to have one URL on GitHub which would allow Mr. Developer to > checkout the project so that > > * anonymous users do not need to set up SSH keys, or access to the project, > etc. > > * people with commit access would still get commit enabled URL > > I don't want to have different buildout.cfg for developers with different > access level to GitHub projects. > > Meanwhile what are the best practices to work around this little problem? > > Yours sincerely, > Git hater > (but github is almost ok) > > ----- > > Follow me in Twitter > > > > Download mFabrik News for iPhone > or Android > > > > > -- > View this message in context: > http://plone.293351.n2.nabble.com/Mr-Developer-vs-GitHub-tp6652959p6652959.html > Sent from the Product Developers mailing list archive at Nabble.com. > _______________________________________________ > Product-Developers mailing list > Product-Developers at lists.plone.org > https://lists.plone.org/mailman/listinfo/plone-product-developers > -- Roel Bruggink http://www.fourdigits.nl/mensen/roel-bruggink Four Digits BV http://www.fourdigits.nl Willemsplein 44, 6811 KD, Arnhem tel: +31(0)26 4422700 fax: +31(0)26 7600012 KVK 091621370000 BTW 8161.22.234.B01 -------------- next part -------------- An HTML attachment was scrubbed... URL: From wichert at wiggy.net Thu Aug 4 15:22:04 2011 From: wichert at wiggy.net (Wichert Akkerman) Date: Thu, 04 Aug 2011 17:22:04 +0200 Subject: [Product-Developers] Mr. Developer vs. GitHub In-Reply-To: <1312468282351-6652959.post@n2.nabble.com> References: <1312468282351-6652959.post@n2.nabble.com> Message-ID: <4E3AB91C.5080606@wiggy.net> On 08/04/2011 04:31 PM, Mikko Ohtamaa wrote: > Hi, > > Is it possible to have one URL on GitHub which would allow Mr. Developer to > checkout the project so that > > * anonymous users do not need to set up SSH keys, or access to the project, > etc. > > * people with commit access would still get commit enabled URL > > I don't want to have different buildout.cfg for developers with different > access level to GitHub projects. > > Meanwhile what are the best practices to work around this little problem? Best suggestion is that you write a patch for mr.developer to solve either https://github.com/fschulze/mr.developer/issues/55 or https://github.com/fschulze/mr.developer/issues/56 Wichert. From andrew at elytra.net Thu Aug 4 17:22:01 2011 From: andrew at elytra.net (Andrew Pasquale) Date: Thu, 4 Aug 2011 13:22:01 -0400 Subject: [Product-Developers] Loading tinymce in an overlay Message-ID: Hi. I am trying to allow users to add content from overlays and allow rich text editing using tinymce from the overlay. This is similar to the interface used in the new plone.app.cmsui product, which is terrific, by the way. I'm using $('.overlay a').prepOverlay({...}) to load the plone url into an overlay. This works fine. I'm initializing the tinymce in the overlay like this: $(document).bind('loadInsideOverlay', function() { $('textarea.mce_editable').each(function() { var config = new TinyMCEConfig($(this).attr('id')); config.init(); }); }); When I try to add a "News Item", tinymce inits the way I'd expect. http://localhost:8080/Plone/createObject?type_name=News+Item But adding a dexterity content type doesn't work. http://localhost:8080/Plone/++add++my.product.type The overlay loads fine without the 'loadInsideOverlay' trigger. I haven't had much luck debugging this one. The proper element seems to be selected using the jQuery selector. The chrome js debugger tells me there's an "Uncaught SyntaxError: Unexpected token )", but nothing else useful. This might be unrelated, but tinymce in the overlayed "News Item" loads the first time the overlay is triggered. Subsequent loads don't initialize the editor. Thanks for any thoughts, Andrew From hector.velarde at gmail.com Thu Aug 4 18:56:52 2011 From: hector.velarde at gmail.com (=?ISO-8859-1?Q?H=E9ctor_Velarde?=) Date: Thu, 04 Aug 2011 13:56:52 -0500 Subject: [Product-Developers] location field on Dexterity based content types In-Reply-To: <4E386E3C.4090102@gmail.com> References: <4E386E3C.4090102@gmail.com> Message-ID: <4E3AEB74.1040006@gmail.com> in Archetypes location is declared in ExtensibleMetadata.py as: # Location, also known as Coverage in the DC metadata standard, but we # keep the term Location here for historical reasons. StringField( 'location', # why no accessor? http://dev.plone.org/plone/ticket/6424 searchable=True, widget = StringWidget( label = _(u'label_location', default=u'Location'), description=_(u'help_location_dc', default=u'The geographical location associated with the item, if applicable.'), ), ), why this was not included in the standard IDublinCore behavior? best regards H?ctor Velarde -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4024 bytes Desc: Firma criptogr??fica S/MIME URL: From davidglick at groundwire.org Thu Aug 4 22:02:36 2011 From: davidglick at groundwire.org (David Glick) Date: Thu, 4 Aug 2011 18:02:36 -0400 Subject: [Product-Developers] location field on Dexterity based content types In-Reply-To: <4E3AEB74.1040006@gmail.com> References: <4E386E3C.4090102@gmail.com> <4E3AEB74.1040006@gmail.com> Message-ID: <4E3B16FC.3040503@groundwire.org> On 8/4/11 2:56 PM, H?ctor Velarde wrote: > in Archetypes location is declared in ExtensibleMetadata.py as: > > # Location, also known as Coverage in the DC metadata standard, > but we > # keep the term Location here for historical reasons. > StringField( > 'location', > # why no accessor? http://dev.plone.org/plone/ticket/6424 > searchable=True, > widget = StringWidget( > label = _(u'label_location', default=u'Location'), > description=_(u'help_location_dc', > default=u'The geographical location > associated with the item, if applicable.'), > ), > ), > > why this was not included in the standard IDublinCore behavior? > I honestly can't remember; it was probably an oversight. Do you think it's important to add it? By the way, you might have more success asking Dexterity questions in the Dexterity google group: http://groups.google.com/group/dexterity-development David ---------- David Glick Web Developer davidglick at groundwire.org 206.286.1235x32 Online tools and strategies for the environmental movement. Sign up for our newsletter: http://www.groundwire.org/email-capture From kawagashira at issp.u-tokyo.ac.jp Fri Aug 5 02:58:01 2011 From: kawagashira at issp.u-tokyo.ac.jp (kawagashira) Date: Thu, 4 Aug 2011 19:58:01 -0700 (PDT) Subject: [Product-Developers] Ploneboard 2.2 has a problem with LinguaPlone 4.0.4 Message-ID: <1312513081619-6655123.post@n2.nabble.com> Hello, Developers, I am a user of Plone 4.0.7. I have a problem about Ploneboard 2.2. A messageboard and a forum objects were added to my plone site. But a conversation object was not created. After installing LinguaPlone 4.0.4, my plone site handles 2 languages of Japanese ja and English en. I think that Ploneboard 2.2 may not set the appropriate paths such as http://host/ja/~ or http://host/en/~. I need your help. Will you help me? Thanks in advance, Nobuyuki -- View this message in context: http://plone.293351.n2.nabble.com/Ploneboard-2-2-has-a-problem-with-LinguaPlone-4-0-4-tp6655123p6655123.html Sent from the Product Developers mailing list archive at Nabble.com. From wichert at wiggy.net Fri Aug 5 07:22:00 2011 From: wichert at wiggy.net (Wichert Akkerman) Date: Fri, 05 Aug 2011 09:22:00 +0200 Subject: [Product-Developers] location field on Dexterity based content types In-Reply-To: <4E3B16FC.3040503@groundwire.org> References: <4E386E3C.4090102@gmail.com> <4E3AEB74.1040006@gmail.com> <4E3B16FC.3040503@groundwire.org> Message-ID: <4E3B9A18.4000801@wiggy.net> On 08/05/2011 12:02 AM, David Glick wrote: > On 8/4/11 2:56 PM, H?ctor Velarde wrote: >> in Archetypes location is declared in ExtensibleMetadata.py as: >> >> # Location, also known as Coverage in the DC metadata >> standard, >> but we >> # keep the term Location here for historical reasons. >> StringField( >> 'location', >> # why no accessor? http://dev.plone.org/plone/ticket/6424 >> searchable=True, >> widget = StringWidget( >> label = _(u'label_location', default=u'Location'), >> description=_(u'help_location_dc', >> default=u'The geographical location >> associated with the item, if applicable.'), >> ), >> ), >> >> why this was not included in the standard IDublinCore behavior? >> > I honestly can't remember; it was probably an oversight. Do you think > it's important to add it? My guess would be because almost nobody uses the field. Personally I'ld rather have it removed (and especially its catalog index). Wichert. From heywyn at gmail.com Fri Aug 5 07:34:39 2011 From: heywyn at gmail.com (w.p.w) Date: Fri, 5 Aug 2011 10:34:39 +0300 Subject: [Product-Developers] location field on Dexterity based content types In-Reply-To: <4E3B9A18.4000801@wiggy.net> References: <4E386E3C.4090102@gmail.com> <4E3AEB74.1040006@gmail.com> <4E3B16FC.3040503@groundwire.org> <4E3B9A18.4000801@wiggy.net> Message-ID: The default location field is useful in some ways and can be called from other objects but is specific to some usecases (Server location, geo-location etc) that said more and more nowadays we find that people want there location to be shown for different sites so including it in the basic metadata is a good idea for a modern system. As it is already there would it be a better idea to extend it and hook it into a mapping system rather then exclude it, it seems a step backwards. Peace Wyn On Fri, Aug 5, 2011 at 10:22 AM, Wichert Akkerman wrote: > On 08/05/2011 12:02 AM, David Glick wrote: > >> On 8/4/11 2:56 PM, H?ctor Velarde wrote: >> >>> in Archetypes location is declared in ExtensibleMetadata.py as: >>> >>> # Location, also known as Coverage in the DC metadata standard, >>> but we >>> # keep the term Location here for historical reasons. >>> StringField( >>> 'location', >>> # why no accessor? http://dev.plone.org/plone/**ticket/6424 >>> searchable=True, >>> widget = StringWidget( >>> label = _(u'label_location', default=u'Location'), >>> description=_(u'help_location_**dc', >>> default=u'The geographical location >>> associated with the item, if applicable.'), >>> ), >>> ), >>> >>> why this was not included in the standard IDublinCore behavior? >>> >>> I honestly can't remember; it was probably an oversight. Do you think >> it's important to add it? >> > > My guess would be because almost nobody uses the field. Personally I'ld > rather have it removed (and especially its catalog index). > > Wichert. > > ______________________________**_________________ > Product-Developers mailing list > Product-Developers at lists.**plone.org > https://lists.plone.org/**mailman/listinfo/plone-**product-developers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wichert at wiggy.net Fri Aug 5 07:37:24 2011 From: wichert at wiggy.net (Wichert Akkerman) Date: Fri, 05 Aug 2011 09:37:24 +0200 Subject: [Product-Developers] location field on Dexterity based content types In-Reply-To: References: <4E386E3C.4090102@gmail.com> <4E3AEB74.1040006@gmail.com> <4E3B16FC.3040503@groundwire.org> <4E3B9A18.4000801@wiggy.net> Message-ID: <4E3B9DB4.3030007@wiggy.net> On 08/05/2011 09:34 AM, w.p.w wrote: > The default location field is useful in some ways and can be called > from other objects but is specific to some usecases (Server location, > geo-location etc) that said more and more nowadays we find that people > want there location to be shown for different sites so including it in > the basic metadata is a good idea for a modern system. A big problem is that the location field has no defined syntax. People use it to store coordinates, names of places, descriptions of places, etc. That makes it impossible for anything generic to use this field, making it in my opinion fit not for a standard (cataloged even) field. Wichert. From heywyn at gmail.com Fri Aug 5 07:50:23 2011 From: heywyn at gmail.com (w.p.w) Date: Fri, 5 Aug 2011 10:50:23 +0300 Subject: [Product-Developers] location field on Dexterity based content types In-Reply-To: <4E3B9DB4.3030007@wiggy.net> References: <4E386E3C.4090102@gmail.com> <4E3AEB74.1040006@gmail.com> <4E3B16FC.3040503@groundwire.org> <4E3B9A18.4000801@wiggy.net> <4E3B9DB4.3030007@wiggy.net> Message-ID: "People use it to store coordinates, names of places, descriptions of places, etc." would this not tend to suggest that its usage needs better defining and expanding or complementing its usage rather then removing it as not fit ? Wyn On Fri, Aug 5, 2011 at 10:37 AM, Wichert Akkerman wrote: > On 08/05/2011 09:34 AM, w.p.w wrote: > >> The default location field is useful in some ways and can be called from >> other objects but is specific to some usecases (Server location, >> geo-location etc) that said more and more nowadays we find that people want >> there location to be shown for different sites so including it in the basic >> metadata is a good idea for a modern system. >> > > A big problem is that the location field has no defined syntax. People use > it to store coordinates, names of places, descriptions of places, etc. That > makes it impossible for anything generic to use this field, making it in my > opinion fit not for a standard (cataloged even) field. > > Wichert. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.ledermann at gmail.com Fri Aug 5 07:51:04 2011 From: christian.ledermann at gmail.com (Christian Ledermann) Date: Fri, 5 Aug 2011 10:51:04 +0300 Subject: [Product-Developers] location field on Dexterity based content types In-Reply-To: <4E3B9DB4.3030007@wiggy.net> References: <4E386E3C.4090102@gmail.com> <4E3AEB74.1040006@gmail.com> <4E3B16FC.3040503@groundwire.org> <4E3B9A18.4000801@wiggy.net> <4E3B9DB4.3030007@wiggy.net> Message-ID: On Fri, Aug 5, 2011 at 10:37 AM, Wichert Akkerman wrote: > On 08/05/2011 09:34 AM, w.p.w wrote: >> >> The default location field is useful in some ways and can be called from >> other objects but is specific to some usecases (Server location, >> geo-location etc) that said more and more nowadays we find that people want >> there location to be shown for different sites so including it in the basic >> metadata is a good idea for a modern system. +1 > > A big problem is that the location field has no defined syntax. People use > it to store coordinates, names of places, descriptions of places, etc. That with geospatial add on products like collective.geo the usage as a descriptive field becomes more apparent, so it is used to store a place name like "Nairobi, Kenya". (collective.geo uses this field to do geocoding i.e looking up the coordinates for this location) The coordinates itself are then stored as geospatial annotations, not in the location field. > makes it impossible for anything generic to use this field, making it in my > opinion fit not for a standard (cataloged even) field. dc.coverage is defined as geographical or temporal coverage - this is vague I agree that cataloging this field does not make a lot of sense. there are too few use cases (imho) for this -- Best Regards, Christian Ledermann Nairobi - Kenya Mobile : +254 702978914 <*)))>{ If you save the living environment, the biodiversity that we have left, you will also automatically save the physical environment, too. But If you only save the physical environment, you will ultimately lose both. 1) Don?t drive species to extinction 2) Don?t destroy a habitat that species rely on. 3) Don?t change the climate in ways that will result in the above. }<(((*> From wichert at wiggy.net Fri Aug 5 07:53:54 2011 From: wichert at wiggy.net (Wichert Akkerman) Date: Fri, 05 Aug 2011 09:53:54 +0200 Subject: [Product-Developers] location field on Dexterity based content types In-Reply-To: References: <4E386E3C.4090102@gmail.com> <4E3AEB74.1040006@gmail.com> <4E3B16FC.3040503@groundwire.org> <4E3B9A18.4000801@wiggy.net> <4E3B9DB4.3030007@wiggy.net> Message-ID: <4E3BA192.3060908@wiggy.net> On 08/05/2011 09:50 AM, w.p.w wrote: > "People use it to store coordinates, names of places, descriptions of > places, etc." would this not tend to suggest that its usage needs > better defining and expanding or complementing its usage rather then > removing it as not fit ? There are valid reasons for all ways of using it, and trying to standardise on a single way to use the field is not going to work. So you either have a field that does not have a well-defined meaning, or you need multiple location fields for all different syntax types. My suggestions is to just keep Plone core simple and leave this to specific sites or add-on products that know how they need to use a location field. That also opens up the ability for people to do things like use a geo-index for the location field in sites, making it really useful. Wichert. From heywyn at gmail.com Fri Aug 5 07:56:59 2011 From: heywyn at gmail.com (w.p.w) Date: Fri, 5 Aug 2011 10:56:59 +0300 Subject: [Product-Developers] location field on Dexterity based content types In-Reply-To: <4E3BA192.3060908@wiggy.net> References: <4E386E3C.4090102@gmail.com> <4E3AEB74.1040006@gmail.com> <4E3B16FC.3040503@groundwire.org> <4E3B9A18.4000801@wiggy.net> <4E3B9DB4.3030007@wiggy.net> <4E3BA192.3060908@wiggy.net> Message-ID: +1 for keeping the field but removing the catalog and leaving it up to individual products to make use of the field and store the result. My main concern is the suggestion is / was to remove the field, good idea to move it inline with the other metadata though. Peace Wyn On Fri, Aug 5, 2011 at 10:53 AM, Wichert Akkerman wrote: > On 08/05/2011 09:50 AM, w.p.w wrote: > >> "People use it to store coordinates, names of places, descriptions of >> places, etc." would this not tend to suggest that its usage needs better >> defining and expanding or complementing its usage rather then removing it as >> not fit ? >> > > There are valid reasons for all ways of using it, and trying to standardise > on a single way to use the field is not going to work. So you either have a > field that does not have a well-defined meaning, or you need multiple > location fields for all different syntax types. My suggestions is to just > keep Plone core simple and leave this to specific sites or add-on products > that know how they need to use a location field. That also opens up the > ability for people to do things like use a geo-index for the location field > in sites, making it really useful. > > Wichert. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From eperez at yaco.es Fri Aug 5 08:06:21 2011 From: eperez at yaco.es (=?ISO-8859-1?Q?Enrique_P=E9rez_Arnaud?=) Date: Fri, 5 Aug 2011 10:06:21 +0200 Subject: [Product-Developers] Mr. Developer vs. GitHub In-Reply-To: <1312468282351-6652959.post@n2.nabble.com> References: <1312468282351-6652959.post@n2.nabble.com> Message-ID: Hi, I don't find it too bad to give mr.developer a read only 'origin' remote, and then push to the rw url instead of to the origin. You can of course add a new remote if you don't want to type the rw url every time. You then have to pull from origin to let git know that you are in sync with it: $ git remote add rw-origin git at github.com:xxx/yyy.git $ git push rw-origin master $ git pull origin master 2011/8/4 Mikko Ohtamaa : > Hi, > > Is it possible to have one URL on GitHub which would allow Mr. Developer to > checkout the project so that > > * anonymous users do not need to set up SSH keys, or access to the project, > etc. > > * people with commit access would still get commit enabled URL > > I don't want to have different buildout.cfg for developers with different > access level to GitHub projects. > > Meanwhile what are the best practices to work around this little problem? > > Yours sincerely, > Git hater > (but github is almost ok) > > ----- > > Follow me in Twitter > > > > Download mFabrik News for iPhone > or Android > > > > > -- > View this message in context: http://plone.293351.n2.nabble.com/Mr-Developer-vs-GitHub-tp6652959p6652959.html > Sent from the Product Developers mailing list archive at Nabble.com. > _______________________________________________ > Product-Developers mailing list > Product-Developers at lists.plone.org > https://lists.plone.org/mailman/listinfo/plone-product-developers > -- Enrique P?rez Arnaud Yaco Sistemas S.L. | http://www.yaco.es C/ Rioja 5, 41001 Sevilla (Espa?a) Tel?fono: (+34) 954 50 00 57 | Fax (+34) 954 50 09 29 From hector.velarde at gmail.com Fri Aug 5 18:54:19 2011 From: hector.velarde at gmail.com (=?ISO-8859-1?Q?H=E9ctor_Velarde?=) Date: Fri, 05 Aug 2011 13:54:19 -0500 Subject: [Product-Developers] location field on Dexterity based content types In-Reply-To: References: <4E386E3C.4090102@gmail.com> <4E3AEB74.1040006@gmail.com> <4E3B16FC.3040503@groundwire.org> <4E3B9A18.4000801@wiggy.net> <4E3B9DB4.3030007@wiggy.net> <4E3BA192.3060908@wiggy.net> Message-ID: <4E3C3C5B.2060007@gmail.com> El 05/08/11 02:56, w.p.w escribi?: > +1 for keeping the field but removing the catalog and leaving it up to > individual products to make use of the field and store the result. +1 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4024 bytes Desc: Firma criptogr??fica S/MIME URL: From lists at zopyx.com Tue Aug 9 06:37:49 2011 From: lists at zopyx.com (Andreas Jung) Date: Tue, 09 Aug 2011 08:37:49 +0200 Subject: [Product-Developers] IObjectInitializedEvent subscriber not triggered inside tests Message-ID: <4E40D5BD.5060605@zopyx.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Plone 4.X. I have an event subscriber registered for IObjectInitializedEvent. The subscriber is executed while creating a new object through the web but not when creating a new object inside a test using invokeFactory(). Is there some test magic I am missing? Andreas - -- ZOPYX Limited | zopyx group Charlottenstr. 37/1 | The full-service network for Zope & Plone D-72070 T?bingen | Produce & Publish www.zopyx.com | www.produce-and-publish.com - ------------------------------------------------------------------------ E-Publishing, Python, Zope & Plone development, Consulting -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQGUBAEBAgAGBQJOQNW8AAoJEADcfz7u4AZj9xMLvizftQMcLkaT3WWZDOjyzOZn Jaf1fHVjdoUJvQg8tdu2uFTjrJHtXfUojHAs5lB0LqxNfq1FSbOQgJcpKOr15DPE kpuLnJg4z+YjTHg7o++oFfZktV29uguckrwoof33fJ0rcSnXv7jtT9GHDqL/2ENb ad5FBPVuNsvxsAB4S/fFIwa29W8BiTpL8j2qB4/fFyv4HTIQtSXi7DcuWW++HYTk N1Lol4Ok9a4+owcLwpyLwUHqermhVOmRYSw/Mz97P29PVdq/b7ura3V7k+rXidLs mV0v7sWzjz/yhvpoZ1f/5vP5NT95YhGv6UL8Hy6FnFa2ZrQXvaHsoO2F6TGMDDr/ OY1D61frZEBLiOUpHT24kQNz/57btrfZ0kajzjiOzzgvhIR5a5a7wIkjwFmXxr45 6+7P5gOkwDZX2GENhB7mTHR9BZRQ3VXKSbXVHpslMdaoCM+XSTwornoJGhiHCt0Z XP2U0WnyQu5Wmo15GaVHJPQIdo1jDeI= =q7fi -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: lists.vcf Type: text/x-vcard Size: 310 bytes Desc: not available URL: From mikko+plone at redinnovation.com Tue Aug 9 06:44:27 2011 From: mikko+plone at redinnovation.com (Mikko Ohtamaa) Date: Tue, 9 Aug 2011 09:44:27 +0300 Subject: [Product-Developers] IObjectInitializedEvent subscriber not triggered inside tests In-Reply-To: <4E40D5BD.5060605@zopyx.com> References: <4E40D5BD.5060605@zopyx.com> Message-ID: It is probably called by processForm(), at_post_create() or whatever happens to be your magical AT function today what you should call after invokeFactory(). On Tue, Aug 9, 2011 at 9:37 AM, Andreas Jung wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Plone 4.X. > > I have an event subscriber registered for IObjectInitializedEvent. > The subscriber is executed while creating a new object through the web > but not when creating a new object inside a test using invokeFactory(). > Is there some test magic I am missing? > > Andreas > > - -- > ZOPYX Limited ? ? ? ? ? | zopyx group > Charlottenstr. 37/1 ? ? | The full-service network for Zope & Plone > D-72070 T?bingen ? ? ? ?| Produce & Publish > www.zopyx.com ? ? ? ? ? | www.produce-and-publish.com > - ------------------------------------------------------------------------ > E-Publishing, Python, Zope & Plone development, Consulting > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iQGUBAEBAgAGBQJOQNW8AAoJEADcfz7u4AZj9xMLvizftQMcLkaT3WWZDOjyzOZn > Jaf1fHVjdoUJvQg8tdu2uFTjrJHtXfUojHAs5lB0LqxNfq1FSbOQgJcpKOr15DPE > kpuLnJg4z+YjTHg7o++oFfZktV29uguckrwoof33fJ0rcSnXv7jtT9GHDqL/2ENb > ad5FBPVuNsvxsAB4S/fFIwa29W8BiTpL8j2qB4/fFyv4HTIQtSXi7DcuWW++HYTk > N1Lol4Ok9a4+owcLwpyLwUHqermhVOmRYSw/Mz97P29PVdq/b7ura3V7k+rXidLs > mV0v7sWzjz/yhvpoZ1f/5vP5NT95YhGv6UL8Hy6FnFa2ZrQXvaHsoO2F6TGMDDr/ > OY1D61frZEBLiOUpHT24kQNz/57btrfZ0kajzjiOzzgvhIR5a5a7wIkjwFmXxr45 > 6+7P5gOkwDZX2GENhB7mTHR9BZRQ3VXKSbXVHpslMdaoCM+XSTwornoJGhiHCt0Z > XP2U0WnyQu5Wmo15GaVHJPQIdo1jDeI= > =q7fi > -----END PGP SIGNATURE----- > > _______________________________________________ > Product-Developers mailing list > Product-Developers at lists.plone.org > https://lists.plone.org/mailman/listinfo/plone-product-developers > > -- Mikko Ohtamaa mFabrik - Freedom Delivered. Web site - http://mfabrik.com Mobile site - http://mfabrik.mobi Blog - http://blog.mfabrik.com From heywyn at gmail.com Tue Aug 9 19:20:41 2011 From: heywyn at gmail.com (w.p.w) Date: Tue, 9 Aug 2011 22:20:41 +0300 Subject: [Product-Developers] svn going read only Message-ID: Plone and Collective SVN going read only from 1300 GMT Wednesday 10th ALL DAY - Trac either read only or Offline ALL DAY - Happy Ploneing ! Best regards Wyn Williams on behalf of the Plone AI-Team -------------- next part -------------- An HTML attachment was scrubbed... URL: From v.errath at bcom.at Wed Aug 10 12:33:05 2011 From: v.errath at bcom.at (vii) Date: Wed, 10 Aug 2011 05:33:05 -0700 (PDT) Subject: [Product-Developers] Change "default view" and get it active quickly? Message-ID: <1312979585969-6672176.post@n2.nabble.com> Dear list At first a shirt introduction to myself: My name is viktor, I'm new to this list but I'm using and developing with/for Plone for about 5 years now. Until now I created the needed Content Types "by hand". I had a "Dummy-Product" and changed/added the things I needed. Now I wanted to create my first Content-Type "the right way" (and to get a product that also will work on Plone4) and red the book "Plone 3 Products development Cookbook" and many tutorials online. I got most of the things I needed working but I got a vew questions left. I created a folderish CT "NewBornGallery" (with paster). For the content of this folder I created a "normal" CT "NewBornBaby" (also with paster). I changed the baseCT of the NewBornBaby to ATImage. I added the fields and wigdets I needed and eventhing is fine. Now I want to create my own views and used paster to create these. After a lot of "try and error" I noticed that I have to fill in the choosen view in the "profiles/default/types/NewBornGallery.xml" in the property "default_view". Did I missed this hint in all the books and tutorials? Or should paster create this entry?? Is there an easier way to get this settings active than to de-install and install the product? (plone.reload does not work right??) regards viktor -- View this message in context: http://plone.293351.n2.nabble.com/Change-default-view-and-get-it-active-quickly-tp6672176p6672176.html Sent from the Product Developers mailing list archive at Nabble.com. From eperez at yaco.es Wed Aug 10 13:14:57 2011 From: eperez at yaco.es (=?ISO-8859-1?Q?Enrique_P=E9rez_Arnaud?=) Date: Wed, 10 Aug 2011 15:14:57 +0200 Subject: [Product-Developers] Change "default view" and get it active quickly? In-Reply-To: <1312979585969-6672176.post@n2.nabble.com> References: <1312979585969-6672176.post@n2.nabble.com> Message-ID: Hi, 2011/8/10 vii : > > I created a folderish CT "NewBornGallery" (with paster). For the content of > this folder I created a "normal" CT "NewBornBaby" (also with paster). I > changed the baseCT of the NewBornBaby to ATImage. I added the fields and > wigdets I needed and eventhing is fine. Now I want to create my own views > and used paster to create these. After a lot of "try and error" I noticed > that I have to fill in the choosen view in the > "profiles/default/types/NewBornGallery.xml" in the property "default_view". If you don't touch NewBornGallery.xml, your default_view will be base_view (Products/Archetypes/skins/archetypes/base_view.pt). Take a look at that template, if you name your intended default_view "newbornbaby_view", base_view will be able to pick it up (provided you put your markup in a "body" macro). > Did I missed this hint in all the books and tutorials? Or should paster > create this entry?? paster cannot know. > > Is there an easier way to get this settings active than to de-install and > install the product? (plone.reload does not work right??) You can just run the "Types Tool" import step in the import tab in the portal_setup tool (zmi) (don't forget to select your extension profile first). You can also directly edit the fti for your type in the portal_types tool (again, zmi). If you do this, do not forget to also record the changes in your generic setup profile (this would be profiles/default/types/NewBornGallery.xml). > > regards > viktor > > -- > View this message in context: http://plone.293351.n2.nabble.com/Change-default-view-and-get-it-active-quickly-tp6672176p6672176.html > Sent from the Product Developers mailing list archive at Nabble.com. > _______________________________________________ > Product-Developers mailing list > Product-Developers at lists.plone.org > https://lists.plone.org/mailman/listinfo/plone-product-developers > -- Enrique P?rez Arnaud Yaco Sistemas S.L. | http://www.yaco.es C/ Rioja 5, 41001 Sevilla (Espa?a) Tel?fono: (+34) 954 50 00 57 | Fax (+34) 954 50 09 29 From mike at netsight.co.uk Wed Aug 10 14:00:41 2011 From: mike at netsight.co.uk (Mike Rhodes) Date: Wed, 10 Aug 2011 15:00:41 +0100 Subject: [Product-Developers] IObjectInitializedEvent subscriber not triggered inside tests In-Reply-To: <4E40D5BD.5060605@zopyx.com> References: <4E40D5BD.5060605@zopyx.com> Message-ID: <4E428F09.1040908@netsight.co.uk> We ended up just calling it manually in our tests: from zope.event import notify from Products.Archetypes.event import ObjectInitializedEvent folder.invokeFactory('Page', 'new_page') ob = folder['new_page'] notify(ObjectInitializedEvent(ob)) Would love to hear if there's a better way, however. Mike. On 09/08/2011 07:37, Andreas Jung wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Plone 4.X. > > I have an event subscriber registered for IObjectInitializedEvent. > The subscriber is executed while creating a new object through the web > but not when creating a new object inside a test using invokeFactory(). > Is there some test magic I am missing? > > Andreas > > - -- > ZOPYX Limited | zopyx group > Charlottenstr. 37/1 | The full-service network for Zope& Plone > D-72070 T?bingen | Produce& Publish > www.zopyx.com | www.produce-and-publish.com > - ------------------------------------------------------------------------ > E-Publishing, Python, Zope& Plone development, Consulting > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iQGUBAEBAgAGBQJOQNW8AAoJEADcfz7u4AZj9xMLvizftQMcLkaT3WWZDOjyzOZn > Jaf1fHVjdoUJvQg8tdu2uFTjrJHtXfUojHAs5lB0LqxNfq1FSbOQgJcpKOr15DPE > kpuLnJg4z+YjTHg7o++oFfZktV29uguckrwoof33fJ0rcSnXv7jtT9GHDqL/2ENb > ad5FBPVuNsvxsAB4S/fFIwa29W8BiTpL8j2qB4/fFyv4HTIQtSXi7DcuWW++HYTk > N1Lol4Ok9a4+owcLwpyLwUHqermhVOmRYSw/Mz97P29PVdq/b7ura3V7k+rXidLs > mV0v7sWzjz/yhvpoZ1f/5vP5NT95YhGv6UL8Hy6FnFa2ZrQXvaHsoO2F6TGMDDr/ > OY1D61frZEBLiOUpHT24kQNz/57btrfZ0kajzjiOzzgvhIR5a5a7wIkjwFmXxr45 > 6+7P5gOkwDZX2GENhB7mTHR9BZRQ3VXKSbXVHpslMdaoCM+XSTwornoJGhiHCt0Z > XP2U0WnyQu5Wmo15GaVHJPQIdo1jDeI= > =q7fi > -----END PGP SIGNATURE----- > > > > _______________________________________________ > Product-Developers mailing list > Product-Developers at lists.plone.org > https://lists.plone.org/mailman/listinfo/plone-product-developers -- 0117 909 0901 (ext. 23) Netsight / www.netsight.co.uk From lists at zopyx.com Wed Aug 10 14:08:02 2011 From: lists at zopyx.com (Andreas Jung) Date: Wed, 10 Aug 2011 16:08:02 +0200 Subject: [Product-Developers] IObjectInitializedEvent subscriber not triggered inside tests In-Reply-To: <4E428F09.1040908@netsight.co.uk> References: <4E40D5BD.5060605@zopyx.com> <4E428F09.1040908@netsight.co.uk> Message-ID: <4E4290C2.1060706@zopyx.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mike Rhodes wrote: > We ended up just calling it manually in our tests: > > from zope.event import notify from Products.Archetypes.event import > ObjectInitializedEvent > > folder.invokeFactory('Page', 'new_page') ob = folder['new_page'] > notify(ObjectInitializedEvent(ob)) > I am now calling processForm() on the object which triggers the event as well. Your suggestion is more explicit and instead of triggering the event under the hood through processForm(). - -aj -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQGUBAEBAgAGBQJOQpDBAAoJEADcfz7u4AZj0hELviPXR7kD89yU9KXYVx7c/Amz Ed1420ZAYHu7Wxm0PWxdnMv/L/VmS6qcbjh3VOEH1968mYdDImZXLoFjfMJOWGoS MK+tXtHpj/5jUec/qmaGB6ZznBHmgzX+RvCmc1xO546krzEabWtcUHSTkHzX/gmk x+UaGsYk6oUBfkb73ODlLXUl2kfbANAIZ9kny8MKUBEQ0JAaFWRPBHmHU8X6yFTT z4bYzrcpG/YwGk/bPq5J0g5zHPqc9JPXoyQQj3S3sA1TFOR7WXXNAf3QUU5MrTrJ OV1R2vdHfVDjIczDwa3ZNaJFNoO8WAXgFaXyXuzyqi3VULUmpeM+FclplIeHajT1 n94HFVbyYyQor3GRWJSSNBt27wl8BOO1VhVHowV10nEJRsyEdvGlbkG1fO0OtGDY 1wio1lJ3Vo6nH9uk61rq3CnZrZZH91w8DMD6ShBlBPp7VZ/PRPpuqGL0YxB2wASO EtCCrMUcBTSEoQqm20RPW1LyiVxrreQ= =0/4i -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: lists.vcf Type: text/x-vcard Size: 310 bytes Desc: not available URL: From heywyn at gmail.com Wed Aug 10 14:09:42 2011 From: heywyn at gmail.com (w.p.w) Date: Wed, 10 Aug 2011 17:09:42 +0300 Subject: [Product-Developers] reminder Message-ID: SVN is offline for the next few hours Peace Wyn -------------- next part -------------- An HTML attachment was scrubbed... URL: From nnieto at noenieto.com Wed Aug 10 16:50:14 2011 From: nnieto at noenieto.com (Noe Nieto) Date: Wed, 10 Aug 2011 11:50:14 -0500 Subject: [Product-Developers] Whats the role/function of borg.localrole package in Plone 4.1? Message-ID: Hi, I'm developing some functionality that requires the use of local roles. I see that borg.localrole is included with the Plone 4.1 distribution. What function does it perform on a vainilla plone? -- --- Noe Nieto NNieto Consulting Services M: nnieto at noenieto.com W: http://noenieto.com T: @tzicatl Li: Perfil en LinkedIn -------------- next part -------------- An HTML attachment was scrubbed... URL: From heywyn at gmail.com Wed Aug 10 21:21:22 2011 From: heywyn at gmail.com (w.p.w) Date: Thu, 11 Aug 2011 00:21:22 +0300 Subject: [Product-Developers] SVN / Trac Message-ID: Due to the exceptionally long time it appears that the collective will take to load the svn dumps. It looks like the load time will be around 35 hours, this was my mistake (I should of planned better on that) we will do a rev dump form the last rev so we do not have to load the whole collective (hundreds of thousands of revs) again. I apologize for the inconvenience. Peace Wyn Williams -------------- next part -------------- An HTML attachment was scrubbed... URL: From gilles.lenfant at alterway.fr Wed Aug 10 21:35:49 2011 From: gilles.lenfant at alterway.fr (Gilles Lenfant) Date: Wed, 10 Aug 2011 23:35:49 +0200 Subject: [Product-Developers] Whats the role/function of borg.localrole package in Plone 4.1? In-Reply-To: References: Message-ID: <447CE2F6-DEEF-45C1-B162-C64B21D01987@alterway.fr> Le 10 ao?t 2011 ? 18:50, Noe Nieto a ?crit : > Hi, I'm developing some functionality that requires the use of local roles. > > I see that borg.localrole is included with the Plone 4.1 distribution. What function does it perform on a vainilla plone? Nothing (in a vanilla Plone) ;) More seriously, borg.localrole grants additional roles if you provide an adapter for your contents that implement borg.localrole.interfaces.ILocalroleProvider. This means that you need to put some code in your Plone site or add-on to have the effect of this plugin. Read the doctests in its various modules to see how this works. Have a look at the code in https://svn.plone.org/svn/collective/collective.groupspace.roles/ to see how it's used in real life. -- Gilles Lenfant > > > -- > --- > Noe Nieto > NNieto Consulting Services > M: nnieto at noenieto.com > W: http://noenieto.com > T: @tzicatl > Li: Perfil en LinkedIn > > _______________________________________________ > Product-Developers mailing list > Product-Developers at lists.plone.org > https://lists.plone.org/mailman/listinfo/plone-product-developers From m.van.rees at zestsoftware.nl Wed Aug 10 23:19:45 2011 From: m.van.rees at zestsoftware.nl (Maurits van Rees) Date: Thu, 11 Aug 2011 01:19:45 +0200 Subject: [Product-Developers] IObjectInitializedEvent subscriber not triggered inside tests In-Reply-To: References: <4E40D5BD.5060605@zopyx.com> Message-ID: Op 09-08-11 08:44, Mikko Ohtamaa schreef: > It is probably called by processForm(), at_post_create() or whatever > happens to be your magical AT function today what you should call > after invokeFactory(). my_new_object.processForm() should do the trick indeed. Or fire the event yourself: from zope.event import notify from Products.Archetypes.event import ObjectInitializedEvent notify(ObjectEditedEvent(my_new_object)) -- Maurits van Rees Web App Programmer at Zest Software: http://zestsoftware.nl Personal website: http://maurits.vanrees.org/ From nnieto at noenieto.com Thu Aug 11 02:47:59 2011 From: nnieto at noenieto.com (Noe Nieto) Date: Wed, 10 Aug 2011 21:47:59 -0500 Subject: [Product-Developers] Whats the role/function of borg.localrole package in Plone 4.1? In-Reply-To: <447CE2F6-DEEF-45C1-B162-C64B21D01987@alterway.fr> References: <447CE2F6-DEEF-45C1-B162-C64B21D01987@alterway.fr> Message-ID: Thanks for the input. And for the links also :) 2011/8/10 Gilles Lenfant > Le 10 ao?t 2011 ? 18:50, Noe Nieto a ?crit : > > > Hi, I'm developing some functionality that requires the use of local > roles. > > > > I see that borg.localrole is included with the Plone 4.1 distribution. > What function does it perform on a vainilla plone? > > Nothing (in a vanilla Plone) ;) > > More seriously, borg.localrole grants additional roles if you provide an > adapter for your contents that implement > borg.localrole.interfaces.ILocalroleProvider. > > This means that you need to put some code in your Plone site or add-on to > have the effect of this plugin. > > Read the doctests in its various modules to see how this works. Have a look > at the code in > https://svn.plone.org/svn/collective/collective.groupspace.roles/ to see > how it's used in real life. > > -- > Gilles Lenfant > > > > > > > -- > > --- > > Noe Nieto > > NNieto Consulting Services > > M: nnieto at noenieto.com > > W: http://noenieto.com > > T: @tzicatl > > Li: Perfil en LinkedIn > > > > _______________________________________________ > > Product-Developers mailing list > > Product-Developers at lists.plone.org > > https://lists.plone.org/mailman/listinfo/plone-product-developers > > -- --- Noe Nieto NNieto Consulting Services M: nnieto at noenieto.com W: http://noenieto.com T: @tzicatl Li: Perfil en LinkedIn -------------- next part -------------- An HTML attachment was scrubbed... URL: From v.errath at bcom.at Thu Aug 11 12:48:40 2011 From: v.errath at bcom.at (vii) Date: Thu, 11 Aug 2011 05:48:40 -0700 (PDT) Subject: [Product-Developers] Register an CSS-File?? Message-ID: <1313066920822-6676252.post@n2.nabble.com> Hello List Sorry for bordering you again but I've been reading and trying and testing for about 8 hours now and it seems that I'm to stupid to finish this rather simple task (I beliefe). I have a content type and want to give it its own css-File. I created the css-File in the browser-folder "browser/mycontenttype_styles.css" and an xml-file "profiles/default/cssregistry.xml" with this content: But after I de-installed and re-installed the product in my plonesite if I check the portal_css I always get the error message "(resource not found or not accessible)" next to the line for this css-file. Can you please tell me whats wrong? regards viktor -- View this message in context: http://plone.293351.n2.nabble.com/Register-an-CSS-File-tp6676252p6676252.html Sent from the Product Developers mailing list archive at Nabble.com. From aclark at aclark.net Thu Aug 11 13:12:03 2011 From: aclark at aclark.net (Alex Clark) Date: Thu, 11 Aug 2011 09:12:03 -0400 Subject: [Product-Developers] Register an CSS-File?? In-Reply-To: <1313066920822-6676252.post@n2.nabble.com> References: <1313066920822-6676252.post@n2.nabble.com> Message-ID: Hi, On 8/11/11 8:48 AM, vii wrote: > Hello List > > Sorry for bordering you again but I've been reading and trying and testing > for about 8 hours now and it seems that I'm to stupid to finish this rather > simple task (I beliefe). You are not too stupid, but if something is taking too long your approach may be wrong. > > I have a content type and want to give it its own css-File. I created the > css-File in the browser-folder "browser/mycontenttype_styles.css" and an > xml-file "profiles/default/cssregistry.xml" with this content: > > > > id="mycontenttye_styles.css" title="" > media="all" rel="stylesheet" rendering="import" > cacheable="True" compression="safe" cookable="True" > enabled="1" expression="" /> > > > But after I de-installed and re-installed the product in my plonesite if I > check the portal_css I always get the error message "(resource not found or > not accessible)" next to the line for this css-file. > > Can you please tell me whats wrong? I don't understand: * How is this stylesheet (assuming you are able to get it registered correctly) going to apply to *only* your content type? Generally we don't apply style sheets to a particular content type, or at least I'm not familiar with this approach. Another approach I'm sure would work: * In the "default view template" of your content type, inline the styles there. And/or use some custom CSS classes/ids that you can style from any stylesheet e.g. ploneCustom.css Alex > > regards > viktor > > -- > View this message in context: http://plone.293351.n2.nabble.com/Register-an-CSS-File-tp6676252p6676252.html > Sent from the Product Developers mailing list archive at Nabble.com. -- Alex Clark ? http://aclark.net From r.ritz at biologie.hu-berlin.de Thu Aug 11 13:34:16 2011 From: r.ritz at biologie.hu-berlin.de (Raphael Ritz) Date: Thu, 11 Aug 2011 15:34:16 +0200 Subject: [Product-Developers] Register an CSS-File?? In-Reply-To: <1313066920822-6676252.post@n2.nabble.com> References: <1313066920822-6676252.post@n2.nabble.com> Message-ID: On 8/11/11 2:48 PM, vii wrote: > Hello List > > Sorry for bordering you again but I've been reading and trying and testing > for about 8 hours now and it seems that I'm to stupid to finish this rather > simple task (I beliefe). > > I have a content type and want to give it its own css-File. I created the > css-File in the browser-folder "browser/mycontenttype_styles.css" and an > xml-file "profiles/default/cssregistry.xml" with this content: > > > > id="mycontenttye_styles.css" title="" > media="all" rel="stylesheet" rendering="import" > cacheable="True" compression="safe" cookable="True" > enabled="1" expression="" /> > > > But after I de-installed and re-installed the product in my plonesite if I > check the portal_css I always get the error message "(resource not found or > not accessible)" next to the line for this css-file. > While the XML snippet above adds the respective entry to the registry it does NOT make that file available to Zope/Plone per se - which is why you get the "resource not found" error. In order to make the css file available in the first place you need to register it as a browser resource as well. See, e.g., http://plone.org/documentation/kb/customization-for-developers/zope-3-browser-resources for how to do that. HTH Raphael > > regards > viktor > > -- > View this message in context: http://plone.293351.n2.nabble.com/Register-an-CSS-File-tp6676252p6676252.html > Sent from the Product Developers mailing list archive at Nabble.com. From mikko+plone at redinnovation.com Thu Aug 11 13:38:06 2011 From: mikko+plone at redinnovation.com (Mikko Ohtamaa) Date: Thu, 11 Aug 2011 16:38:06 +0300 Subject: [Product-Developers] Register an CSS-File?? In-Reply-To: References: <1313066920822-6676252.post@n2.nabble.com> Message-ID: > > See, e.g., > http://plone.org/documentation/kb/customization-for-developers/zope-3-browser-resources > for how to do that. This information might be more up to date: http://collective-docs.readthedocs.org/en/latest/templates_css_and_javascripts/resourcefolders.html > > HTH > > ? ? ? ?Raphael > > >> >> regards >> viktor >> >> -- >> View this message in context: >> http://plone.293351.n2.nabble.com/Register-an-CSS-File-tp6676252p6676252.html >> Sent from the Product Developers mailing list archive at Nabble.com. > > > _______________________________________________ > Product-Developers mailing list > Product-Developers at lists.plone.org > https://lists.plone.org/mailman/listinfo/plone-product-developers > -- Mikko Ohtamaa mFabrik - Freedom Delivered. Web site - http://mfabrik.com Mobile site - http://mfabrik.mobi Blog - http://blog.mfabrik.com From v.errath at bcom.at Thu Aug 11 14:41:19 2011 From: v.errath at bcom.at (vii) Date: Thu, 11 Aug 2011 07:41:19 -0700 (PDT) Subject: [Product-Developers] Register an CSS-File?? In-Reply-To: References: <1313066920822-6676252.post@n2.nabble.com> Message-ID: <1313073679815-6676637.post@n2.nabble.com> Hello Alex aclark wrote: > > .... > Generally we don't apply style sheets to a particular content type, or > at least I'm not familiar with this approach. Another approach I'm sure > would work: > > * In the "default view template" of your content type, inline the styles > there. And/or use some custom CSS classes/ids that you can style from > any stylesheet e.g. ploneCustom.css > Thank you for your answer. I understand your approach but it takes me to my next question: How can I include this css-File in my template? I think I have to use the style_slot but what is the path to my css-File that is in the browser directory? Thank's for your help regard viktor -- View this message in context: http://plone.293351.n2.nabble.com/Register-an-CSS-File-tp6676252p6676637.html Sent from the Product Developers mailing list archive at Nabble.com. From v.errath at bcom.at Thu Aug 11 14:56:31 2011 From: v.errath at bcom.at (vii) Date: Thu, 11 Aug 2011 07:56:31 -0700 (PDT) Subject: [Product-Developers] Register an CSS-File?? In-Reply-To: References: <1313066920822-6676252.post@n2.nabble.com> Message-ID: <1313074591233-6676691.post@n2.nabble.com> Hello Miko I managed it to now register the folder "browser/stylesheets" and get a css-file in this folder registered in portal_css. And this file now works. Just for my understanding: - Is it possible to register (and if --> how??) a css-file "browser/styles.css" without using a subfolder? Although I'm using the development-mode running the instance in foreground-mode and having activated the "debug-mode" for portal_css I have to press "Strg"+"F5" to see changes in the registered CSS-Files? Is this correct or do I have some configuration-errors? And my last question: What is the difference, or which version is "better": The approach from Alex (if I understood it right): using small css-Files that only belong to certain CT or views? Or the portal_css way. Letting plone combine, compress and deliver all the existing css-files? Many thanks in advance regards Viktor -- View this message in context: http://plone.293351.n2.nabble.com/Register-an-CSS-File-tp6676252p6676691.html Sent from the Product Developers mailing list archive at Nabble.com. From v.errath at bcom.at Thu Aug 11 15:49:58 2011 From: v.errath at bcom.at (vii) Date: Thu, 11 Aug 2011 08:49:58 -0700 (PDT) Subject: [Product-Developers] Register an CSS-File?? In-Reply-To: <1313074591233-6676691.post@n2.nabble.com> References: <1313066920822-6676252.post@n2.nabble.com> <1313074591233-6676691.post@n2.nabble.com> Message-ID: <1313077798532-6676881.post@n2.nabble.com> I can answer one question by myself ;-) With this in the "browser/configure.zcml" I can register a css-file direct in the browser-folder. And now it is not neccessary to press "Strg"+"F5". regards viktor -- View this message in context: http://plone.293351.n2.nabble.com/Register-an-CSS-File-tp6676252p6676881.html Sent from the Product Developers mailing list archive at Nabble.com. From hector.velarde at gmail.com Thu Aug 11 17:22:39 2011 From: hector.velarde at gmail.com (=?ISO-8859-1?Q?H=E9ctor_Velarde?=) Date: Thu, 11 Aug 2011 14:22:39 -0300 Subject: [Product-Developers] Register an CSS-File?? In-Reply-To: <1313073679815-6676637.post@n2.nabble.com> References: <1313066920822-6676252.post@n2.nabble.com> <1313073679815-6676637.post@n2.nabble.com> Message-ID: <4E440FDF.7040306@gmail.com> El 11/08/11 11:41, vii escribi?: > Thank you for your answer. I understand your approach but it takes me to my > next question: How can I include this css-File in my template? I think I > have to use the style_slot but what is the path to my css-File that is in > the browser directory? > > > > you can use something like this: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4024 bytes Desc: Firma criptogr??fica S/MIME URL: From v.errath at bcom.at Fri Aug 12 08:09:09 2011 From: v.errath at bcom.at (vii) Date: Fri, 12 Aug 2011 01:09:09 -0700 (PDT) Subject: [Product-Developers] Register an CSS-File?? In-Reply-To: <4E440FDF.7040306@gmail.com> References: <1313066920822-6676252.post@n2.nabble.com> <1313073679815-6676637.post@n2.nabble.com> <4E440FDF.7040306@gmail.com> Message-ID: <1313136549296-6679583.post@n2.nabble.com> Thank you all for your tipps. I've again learned some things about plone. I wish you all a nice weekend ;-) regards viktor -- View this message in context: http://plone.293351.n2.nabble.com/Register-an-CSS-File-tp6676252p6679583.html Sent from the Product Developers mailing list archive at Nabble.com. From m.van.rees at zestsoftware.nl Fri Aug 12 12:41:12 2011 From: m.van.rees at zestsoftware.nl (Maurits van Rees) Date: Fri, 12 Aug 2011 14:41:12 +0200 Subject: [Product-Developers] IObjectInitializedEvent subscriber not triggered inside tests In-Reply-To: References: <4E40D5BD.5060605@zopyx.com> Message-ID: Op 11-08-11 01:19, Maurits van Rees schreef: > Op 09-08-11 08:44, Mikko Ohtamaa schreef: >> It is probably called by processForm(), at_post_create() or whatever >> happens to be your magical AT function today what you should call >> after invokeFactory(). > > my_new_object.processForm() should do the trick indeed. > > Or fire the event yourself: > > from zope.event import notify > from Products.Archetypes.event import ObjectInitializedEvent > notify(ObjectEditedEvent(my_new_object)) Oh, that last one should have been ObjectInitializedEvent as well of course. -- Maurits van Rees Web App Programmer at Zest Software: http://zestsoftware.nl Personal website: http://maurits.vanrees.org/ From lists at zopyx.com Fri Aug 12 16:07:51 2011 From: lists at zopyx.com (Andreas Jung) Date: Fri, 12 Aug 2011 18:07:51 +0200 Subject: [Product-Developers] ComponentLookupErrors with various add-ons unter Plone 4.1 Message-ID: <4E454FD7.6060602@zopyx.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I encountered the following error with multiple add-ons under Plone 4.1 (working nicely with Plone 4.0). Any idea? - -aj /__init__.py", line 86, in prepare self.startZope() File "/home/ajung/.buildout/eggs/Zope2-2.13.8-py2.6.egg/Zope2/Startup/__init__.py", line 259, in startZope Zope2.startup() File "/home/ajung/.buildout/eggs/Zope2-2.13.8-py2.6.egg/Zope2/__init__.py", line 47, in startup _startup() File "/home/ajung/.buildout/eggs/Zope2-2.13.8-py2.6.egg/Zope2/App/startup.py", line 118, in startup load_zcml() File "/home/ajung/.buildout/eggs/Zope2-2.13.8-py2.6.egg/Zope2/App/startup.py", line 52, in load_zcml load_site() File "/home/ajung/.buildout/eggs/Zope2-2.13.8-py2.6.egg/Zope2/App/zcml.py", line 46, in load_site _context = xmlconfig.file(site_zcml) File "/home/ajung/.buildout/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/xmlconfig.py", line 651, in file context.execute_actions() File "/home/ajung/.buildout/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/config.py", line 626, in execute_actions callable(*args, **kw) File "/home/ajung/.buildout/eggs/Zope2-2.13.8-py2.6.egg/OFS/metaconfigure.py", line 120, in _registerClass permission_obj = getUtility(IPermission, permission) File "/home/ajung/.buildout/eggs/zope.component-3.9.5-py2.6.egg/zope/component/_api.py", line 169, in getUtility raise ComponentLookupError(interface, name) zope.configuration.config.ConfigurationExecutionError: : (, 'cmf.ManagePortal') in: File "/home/ajung/.buildout/eggs/alm.solrindex-1.1.1-py2.6.egg/alm/solrindex/configure.zcml", line 47.0-53.6 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQGUBAEBAgAGBQJORU/XAAoJEADcfz7u4AZjO08Lv3p6svZjhbjKLP10twpydsH4 LAdYH9q7WIv3QgfVEjE2uojEAX/21Ll7/B1BJGHNfGmKaremx2TW6Jsm1lp4UDDT nvtllJKFIxvhClNdK4ECBaYrr5fREfaNe2YB2IQFPkHGfVoqnP+kIWCeFEmgXxm6 OhF8ndxsN6JwT8KLtJrt4VTpJvptJ8mvI0VVhgQd4ZcempYLLcsviVJU9DoU49Jz othCRtMp/l9hiXFXJb9mBN41xZbYtoEYDv/YAQZnqoR+TmjtD3rNWp87xjEKNwwd MceyqL88n5obk7kJyUMePf+vf+RcKhLUTKaFUDJ3T0WXVxfi7CYzbFuoST94vgB5 up4uP8MlOCA2sOIk8N2MHL3sRErHvkOZXX1Hq8tmlmgKBUzO02bGEJOZpfYDMKS+ 5Fu4q1NDcEu2RAhPhi5qg/lQ0I6jXwFMBRxusiFoH8xtb0PLHBnP0eKdjbauwYf3 juNk0/HzXDHsq+Og2lg0b4ZROT6SODA= =9rrI -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: lists.vcf Type: text/x-vcard Size: 310 bytes Desc: not available URL: From r.ritz at biologie.hu-berlin.de Fri Aug 12 17:50:17 2011 From: r.ritz at biologie.hu-berlin.de (Raphael Ritz) Date: Fri, 12 Aug 2011 19:50:17 +0200 Subject: [Product-Developers] ComponentLookupErrors with various add-ons unter Plone 4.1 In-Reply-To: <4E454FD7.6060602@zopyx.com> References: <4E454FD7.6060602@zopyx.com> Message-ID: On 8/12/11 6:07 PM, Andreas Jung wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I encountered the following error with multiple add-ons > under Plone 4.1 (working nicely with Plone 4.0). http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.0-to-4.1/updating-add-on-products-for-plone-4.1/referencemanual-all-pages see 'updating permissions' in particular. If you aim for backwards compatibility I'd recommend to make this conditional on plone41 or skip the specification of the permissions file in ZCML. Otherwise stuff will break on Plone 3.x. Raphael > > Any idea? > > - -aj > > /__init__.py", line 86, in prepare > self.startZope() > File > "/home/ajung/.buildout/eggs/Zope2-2.13.8-py2.6.egg/Zope2/Startup/__init__.py", > line 259, in startZope > Zope2.startup() > File > "/home/ajung/.buildout/eggs/Zope2-2.13.8-py2.6.egg/Zope2/__init__.py", > line 47, in startup > _startup() > File > "/home/ajung/.buildout/eggs/Zope2-2.13.8-py2.6.egg/Zope2/App/startup.py", line > 118, in startup > load_zcml() > File > "/home/ajung/.buildout/eggs/Zope2-2.13.8-py2.6.egg/Zope2/App/startup.py", line > 52, in load_zcml > load_site() > File > "/home/ajung/.buildout/eggs/Zope2-2.13.8-py2.6.egg/Zope2/App/zcml.py", > line 46, in load_site > _context = xmlconfig.file(site_zcml) > File > "/home/ajung/.buildout/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/xmlconfig.py", > line 651, in file > context.execute_actions() > File > "/home/ajung/.buildout/eggs/zope.configuration-3.7.4-py2.6.egg/zope/configuration/config.py", > line 626, in execute_actions > callable(*args, **kw) > File > "/home/ajung/.buildout/eggs/Zope2-2.13.8-py2.6.egg/OFS/metaconfigure.py", line > 120, in _registerClass > permission_obj = getUtility(IPermission, permission) > File > "/home/ajung/.buildout/eggs/zope.component-3.9.5-py2.6.egg/zope/component/_api.py", > line 169, in getUtility > raise ComponentLookupError(interface, name) > zope.configuration.config.ConfigurationExecutionError: 'zope.component.interfaces.ComponentLookupError'>: ( zope.security.interfaces.IPermission>, 'cmf.ManagePortal') > in: > File > "/home/ajung/.buildout/eggs/alm.solrindex-1.1.1-py2.6.egg/alm/solrindex/configure.zcml", > line 47.0-53.6 > class=".index.SolrIndex" > meta_type="SolrIndex" > addview="addSolrIndex.html" > permission="cmf.ManagePortal" > global="False" > /> > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iQGUBAEBAgAGBQJORU/XAAoJEADcfz7u4AZjO08Lv3p6svZjhbjKLP10twpydsH4 > LAdYH9q7WIv3QgfVEjE2uojEAX/21Ll7/B1BJGHNfGmKaremx2TW6Jsm1lp4UDDT > nvtllJKFIxvhClNdK4ECBaYrr5fREfaNe2YB2IQFPkHGfVoqnP+kIWCeFEmgXxm6 > OhF8ndxsN6JwT8KLtJrt4VTpJvptJ8mvI0VVhgQd4ZcempYLLcsviVJU9DoU49Jz > othCRtMp/l9hiXFXJb9mBN41xZbYtoEYDv/YAQZnqoR+TmjtD3rNWp87xjEKNwwd > MceyqL88n5obk7kJyUMePf+vf+RcKhLUTKaFUDJ3T0WXVxfi7CYzbFuoST94vgB5 > up4uP8MlOCA2sOIk8N2MHL3sRErHvkOZXX1Hq8tmlmgKBUzO02bGEJOZpfYDMKS+ > 5Fu4q1NDcEu2RAhPhi5qg/lQ0I6jXwFMBRxusiFoH8xtb0PLHBnP0eKdjbauwYf3 > juNk0/HzXDHsq+Og2lg0b4ZROT6SODA= > =9rrI > -----END PGP SIGNATURE----- > > > > _______________________________________________ > Product-Developers mailing list > Product-Developers at lists.plone.org > https://lists.plone.org/mailman/listinfo/plone-product-developers From lists at zopyx.com Sat Aug 13 06:33:10 2011 From: lists at zopyx.com (Andreas Jung) Date: Sat, 13 Aug 2011 08:33:10 +0200 Subject: [Product-Developers] ComponentLookupErrors with various add-ons unter Plone 4.1 In-Reply-To: References: <4E454FD7.6060602@zopyx.com> Message-ID: <4E461AA6.80507@zopyx.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Raphael Ritz wrote: > On 8/12/11 6:07 PM, Andreas Jung wrote: I encountered the following > error with multiple add-ons under Plone 4.1 (working nicely with > Plone 4.0). > >> http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.0-to-4.1/updating-add-on-products-for-plone-4.1/referencemanual-all-pages > >> > >> see 'updating permissions' in particular. > >> If you aim for backwards compatibility I'd recommend to make this >> conditional on plone41 or skip the specification of the permissions >> file in ZCML. Otherwise stuff will break on Plone 3.x. This is strange - various of my own add-ons run without modifications on Plone 4.1 - and they do of course use cmf.XXX permissions to protect views. None of my add-ons contains That's why I am surprised. - -aj -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQGUBAEBAgAGBQJORhqlAAoJEADcfz7u4AZj/9wLv25QwIuXcYu3Xi+o69mULaiy QB7Ldq90RP+WiqKlc1+mfw8ydvnx4nWY8WJsdABXJPFkTuhCesFPDvb+TGfRTByq RQhZqlAngHk9NbP5tFjaisPlYNNwpUjX8LRA0Rdis6XJdjusqOUL0/5FbWlzT7Ne np3AHVM4dfbP1EKu2aqwWfJZFHOJ+7jYW7SF8I4873wtUcSWc7LPlnT1SiEZglH6 QchP8+l6obTfL+yi327v1nZWLP9ueL+r9QI28LPKXeBJr8XSVhpEwRCX8xgmeAC2 NOvGU4gEZpQH46Tf/KhVPvtNNSy4T3Xjrros5yerpMZlWuD2VtTKGUGGkdr+6NSr XHBE8q1mKLMoCJqG0IMz8CxHIBYcTTPzsUEr+QYUtG7IPsVQ8bJ/CBi6l/BFFEKg +g0y4Gh07TorJT/1MSdsO7Ug/BGT3O3+TuYIgqVmud3L9p9MauZT8BfOsvmM30l9 8qBjkk6J+bIeWHnX5Wae1zVQYWwr9YY= =pPo8 -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: lists.vcf Type: text/x-vcard Size: 310 bytes Desc: not available URL: From davidglick at groundwire.org Sat Aug 13 17:03:27 2011 From: davidglick at groundwire.org (David Glick) Date: Sat, 13 Aug 2011 10:03:27 -0700 Subject: [Product-Developers] ComponentLookupErrors with various add-ons unter Plone 4.1 In-Reply-To: <4E461AA6.80507@zopyx.com> References: <4E454FD7.6060602@zopyx.com> <4E461AA6.80507@zopyx.com> Message-ID: <4E46AE5F.3020202@groundwire.org> On 8/12/11 11:33 PM, Andreas Jung wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > > Raphael Ritz wrote: >> On 8/12/11 6:07 PM, Andreas Jung wrote: I encountered the following >> error with multiple add-ons under Plone 4.1 (working nicely with >> Plone 4.0). >> >>> http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.0-to-4.1/updating-add-on-products-for-plone-4.1/referencemanual-all-pages >>> see 'updating permissions' in particular. >>> If you aim for backwards compatibility I'd recommend to make this >>> conditional on plone41 or skip the specification of the permissions >>> file in ZCML. Otherwise stuff will break on Plone 3.x. > This is strange - various of my own add-ons run without > modifications on Plone 4.1 - and they do of course use cmf.XXX > permissions to protect views. None of my add-ons contains > > > > That's why I am surprised. > It's a matter of what order packages' ZCML gets loaded. If your packages that use CMF permissions happen to load after CMFPlone or something else that includes CMFCore's ZCML, it will work fine. If your packages load first, it won't unless your package also includes CMFCore's ZCML. David ---------- David Glick Web Developer davidglick at groundwire.org 206.286.1235x32 Online tools and strategies for the environmental movement. Sign up for our newsletter: http://www.groundwire.org/email-capture From aclark at aclark.net Sat Aug 13 22:10:10 2011 From: aclark at aclark.net (Alex Clark) Date: Sat, 13 Aug 2011 18:10:10 -0400 Subject: [Product-Developers] ComponentLookupErrors with various add-ons unter Plone 4.1 In-Reply-To: <4E46AE5F.3020202@groundwire.org> References: <4E454FD7.6060602@zopyx.com> <4E461AA6.80507@zopyx.com> <4E46AE5F.3020202@groundwire.org> Message-ID: On 8/13/11 1:03 PM, David Glick wrote: > On 8/12/11 11:33 PM, Andreas Jung wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> >> >> Raphael Ritz wrote: >>> On 8/12/11 6:07 PM, Andreas Jung wrote: I encountered the following >>> error with multiple add-ons under Plone 4.1 (working nicely with >>> Plone 4.0). >>> >>>> http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.0-to-4.1/updating-add-on-products-for-plone-4.1/referencemanual-all-pages >>>> >>>> see 'updating permissions' in particular. >>>> If you aim for backwards compatibility I'd recommend to make this >>>> conditional on plone41 or skip the specification of the permissions >>>> file in ZCML. Otherwise stuff will break on Plone 3.x. >> This is strange - various of my own add-ons run without >> modifications on Plone 4.1 - and they do of course use cmf.XXX >> permissions to protect views. None of my add-ons contains >> >> >> >> That's why I am surprised. >> > It's a matter of what order packages' ZCML gets loaded. If your packages > that use CMF permissions happen to load after CMFPlone or something else > that includes CMFCore's ZCML, it will work fine. If your packages load > first, it won't unless your package also includes CMFCore's ZCML. What determines the load order? And is it "safe" to just load the appropriate ZCML in our add-ons knowing it will get re-loaded later? > David > > > ---------- > David Glick > Web Developer > davidglick at groundwire.org > 206.286.1235x32 > > Online tools and strategies for the environmental movement. > Sign up for our newsletter: http://www.groundwire.org/email-capture -- Alex Clark ? http://aclark.net From davidglick at groundwire.org Sun Aug 14 04:37:14 2011 From: davidglick at groundwire.org (David Glick) Date: Sat, 13 Aug 2011 21:37:14 -0700 Subject: [Product-Developers] ComponentLookupErrors with various add-ons unter Plone 4.1 In-Reply-To: References: <4E454FD7.6060602@zopyx.com> <4E461AA6.80507@zopyx.com> <4E46AE5F.3020202@groundwire.org> Message-ID: <4E4750FA.6000009@groundwire.org> On 8/13/11 3:10 PM, Alex Clark wrote: > On 8/13/11 1:03 PM, David Glick wrote: >> On 8/12/11 11:33 PM, Andreas Jung wrote: >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA1 >>> >>> >>> >>> Raphael Ritz wrote: >>>> On 8/12/11 6:07 PM, Andreas Jung wrote: I encountered the following >>>> error with multiple add-ons under Plone 4.1 (working nicely with >>>> Plone 4.0). >>>> >>>>> http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.0-to-4.1/updating-add-on-products-for-plone-4.1/referencemanual-all-pages >>>>> >>>>> see 'updating permissions' in particular. >>>>> If you aim for backwards compatibility I'd recommend to make this >>>>> conditional on plone41 or skip the specification of the permissions >>>>> file in ZCML. Otherwise stuff will break on Plone 3.x. >>> This is strange - various of my own add-ons run without >>> modifications on Plone 4.1 - and they do of course use cmf.XXX >>> permissions to protect views. None of my add-ons contains >>> >>> >>> >>> That's why I am surprised. >>> >> It's a matter of what order packages' ZCML gets loaded. If your packages >> that use CMF permissions happen to load after CMFPlone or something else >> that includes CMFCore's ZCML, it will work fine. If your packages load >> first, it won't unless your package also includes CMFCore's ZCML. > What determines the load order? I'm not sure. > And is it "safe" to just load the > appropriate ZCML in our add-ons knowing it will get re-loaded later? Yes. The ZCML configuration will prevent a ZCML file from being processed. more than once. ---------- David Glick Web Developer davidglick at groundwire.org 206.286.1235x32 Online tools and strategies for the environmental movement. Sign up for our newsletter: http://www.groundwire.org/email-capture From developer at acsr.de Sun Aug 14 11:00:18 2011 From: developer at acsr.de (=?ISO-8859-1?Q?Armin_Stro=DF-Radschinski?=) Date: Sun, 14 Aug 2011 13:00:18 +0200 Subject: [Product-Developers] i18ndude with zopeskel-paster generated Archetypes is ignoring explicit msgids in the schema file Message-ID: Hi together, I am using i18ndude with zopeskel/paster generated Archetypes for Plone4.1 for the first time. i18ndude ignoring explicit msgids in the schema seems a known ploblem. It uses the label or description itself as the msgid instead. Environment: ================= ? Plone 4109 ? CMF 2.2.4 ? Zope 2.13.8 ? Python 2.6.7 (r267:88850, Jul 29 2011, 10:54:55) [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu4)] ? PIL 1.1.6.4 I used zettwerk.i18nduder as a wrapper for calling i18ndude 3.2.2 I am new to using zopeskel/paster to generate Archetypes with paster local commands. There are some pitfalls in preparation for internationalisation not documented yet I came over yesterday. I have to write rthis down soon. Now I have a running and installing package wit some Archetypes that translate well with LinguaPlone. Next step ist generating the .po / .pot files via i18ndude. I wrote the default text into the widget label and description parameters. Thgen I started to create "speaking" abstract msgids and added them to the widget definition as usual together with the i18n_domain. The msgid is simply ignored on running i18ndude. As you see trying putting the msgid definition before the i.e. label had no effect at all.. I tried the opposite too! Curious for pointing to an existing solution while looking for my own. Outlook: ----------------- The placement of the msgid first seems a good point to force the generation of the #Default: msg and using the ststed msgid. Question to ArchGenXML experts: ============================= Is it possible to use ArchGenXML generated POT feature with Archetypes not created via ArchGenXML? It seems that ArchGenXML has fixed this. Examples ================ This is one of my Archetype fields schema in one of my content types files: ~/instances/MySite/src/mytranslated.package/mytranslated/package/ content/tour.py The schema file: ------------------------------------------------- ... atapi.StringField('productCode', required=False, searchable=True, languageIndependent=False, storage=atapi.AnnotationStorage(), widget =atapi.StringWidget(label_msgid='MyTranslationDomain_label_productCode', label=_(u"Product Code"), i18n_domain='MyTranslationDomain', description_msgid='MyTranslationDomain_help_productCode', description=_(u"A short unique code to identify our products"), ), ), ... The i18ndude generated POT file: ------------------------------------------------- ~/instances/MySite/src/mytranslated.package/mytranslated/package/ locales/mytranslated.package.pot a usual entry is: ... #: ./../content/tour.py:45 msgid "A short unique code to identify our products" msgstr "" ... -- Armin Carl Stro?-Radschinski, Dipl. Designer acsr industrialdesign, Landgrafenstra?e 32, 53842 Troisdorf, Germany Telefon +49 (0) 22 41 / 94 69 94, FAX +49 (0) 22 41 / 94 69 96 eMail a.stross-radschinski at acsr.de - http://www.acsr.de UST. ID Nr: DE154092803 (EU VAT ID) From aclark at aclark.net Sun Aug 14 15:24:43 2011 From: aclark at aclark.net (Alex Clark) Date: Sun, 14 Aug 2011 11:24:43 -0400 Subject: [Product-Developers] ComponentLookupErrors with various add-ons unter Plone 4.1 In-Reply-To: <4E4750FA.6000009@groundwire.org> References: <4E454FD7.6060602@zopyx.com> <4E461AA6.80507@zopyx.com> <4E46AE5F.3020202@groundwire.org> <4E4750FA.6000009@groundwire.org> Message-ID: On 8/14/11 12:37 AM, David Glick wrote: > On 8/13/11 3:10 PM, Alex Clark wrote: >> On 8/13/11 1:03 PM, David Glick wrote: >>> On 8/12/11 11:33 PM, Andreas Jung wrote: >>>> -----BEGIN PGP SIGNED MESSAGE----- >>>> Hash: SHA1 >>>> >>>> >>>> >>>> Raphael Ritz wrote: >>>>> On 8/12/11 6:07 PM, Andreas Jung wrote: I encountered the following >>>>> error with multiple add-ons under Plone 4.1 (working nicely with >>>>> Plone 4.0). >>>>> >>>>>> http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.0-to-4.1/updating-add-on-products-for-plone-4.1/referencemanual-all-pages >>>>>> >>>>>> >>>>>> see 'updating permissions' in particular. >>>>>> If you aim for backwards compatibility I'd recommend to make this >>>>>> conditional on plone41 or skip the specification of the permissions >>>>>> file in ZCML. Otherwise stuff will break on Plone 3.x. >>>> This is strange - various of my own add-ons run without >>>> modifications on Plone 4.1 - and they do of course use cmf.XXX >>>> permissions to protect views. None of my add-ons contains >>>> >>>> >>>> >>>> That's why I am surprised. >>>> >>> It's a matter of what order packages' ZCML gets loaded. If your packages >>> that use CMF permissions happen to load after CMFPlone or something else >>> that includes CMFCore's ZCML, it will work fine. If your packages load >>> first, it won't unless your package also includes CMFCore's ZCML. >> What determines the load order? > I'm not sure. That might be fun to graph. >> And is it "safe" to just load the >> appropriate ZCML in our add-ons knowing it will get re-loaded later? > Yes. The ZCML configuration will prevent a ZCML file from being > processed. more than once. Ah, thanks. Good to know. > > > ---------- > David Glick > Web Developer > davidglick at groundwire.org > 206.286.1235x32 > > Online tools and strategies for the environmental movement. > Sign up for our newsletter: http://www.groundwire.org/email-capture -- Alex Clark ? http://aclark.net From m.van.rees at zestsoftware.nl Mon Aug 15 08:26:21 2011 From: m.van.rees at zestsoftware.nl (Maurits van Rees) Date: Mon, 15 Aug 2011 10:26:21 +0200 Subject: [Product-Developers] i18ndude with zopeskel-paster generated Archetypes is ignoring explicit msgids in the schema file In-Reply-To: References: Message-ID: Op 14-08-11 13:00, Armin Stro?-Radschinski schreef: > Examples > ================ > > This is one of my Archetype fields schema in one of my content types files: > ~/instances/MySite/src/mytranslated.package/mytranslated/package/content/tour.py > > > The schema file: > ------------------------------------------------- > > .... > > atapi.StringField('productCode', > required=False, > searchable=True, > languageIndependent=False, > storage=atapi.AnnotationStorage(), > widget=atapi.StringWidget(label_msgid='MyTranslationDomain_label_productCode', > > label=_(u"Product Code"), > i18n_domain='MyTranslationDomain', > description_msgid='MyTranslationDomain_help_productCode', > description=_(u"A short unique code to identify our products"), > ), > ), Here you are combining two ways of doing i18n: the archetypes specific way with label_msgid and i18n_domain and the general way of using the underscore (MessageFactory). I recommend using only the new way. So that would be like this: widget=atapi.StringWidget(label_msgid='', label=_(u'MyTranslationDomain_label_productCode', default=u"Product Code"), description=_(u'MyTranslationDomain_help_productCode', default=u"A short unique code to identify our products"), ), -- Maurits van Rees Web App Programmer at Zest Software: http://zestsoftware.nl Personal website: http://maurits.vanrees.org/ From m.van.rees at zestsoftware.nl Mon Aug 15 14:30:13 2011 From: m.van.rees at zestsoftware.nl (Maurits van Rees) Date: Mon, 15 Aug 2011 16:30:13 +0200 Subject: [Product-Developers] i18ndude with zopeskel-paster generated Archetypes is ignoring explicit msgids in the schema file In-Reply-To: References: Message-ID: Op 15-08-11 10:26, Maurits van Rees schreef: > Here you are combining two ways of doing i18n: the archetypes specific > way with label_msgid and i18n_domain and the general way of using the > underscore (MessageFactory). I recommend using only the new way. So that > would be like this: > > widget=atapi.StringWidget(label_msgid='', > label=_(u'MyTranslationDomain_label_productCode', > default=u"Product Code"), > description=_(u'MyTranslationDomain_help_productCode', > default=u"A short unique code to identify our products"), > ), Oh, rereading my own message I see I forgot to remove one string. It should be like this (barring typos): widget=atapi.StringWidget( label=_(u'MyTranslationDomain_label_productCode', default=u"Product Code"), description=_(u'MyTranslationDomain_help_productCode', default=u"A short unique code to identify our products"), ), -- Maurits van Rees Web App Programmer at Zest Software: http://zestsoftware.nl Personal website: http://maurits.vanrees.org/ From developer at acsr.de Mon Aug 15 16:33:49 2011 From: developer at acsr.de (=?WINDOWS-1252?Q?Armin_Stro=DF-Radschinski?=) Date: Mon, 15 Aug 2011 18:33:49 +0200 Subject: [Product-Developers] i18ndude with zopeskel-paster generated Archetypes is ignoring explicit msgids in the schema file In-Reply-To: References: Message-ID: <54ACE6E8-0856-4BC2-8994-854510D8C6A8@acsr.de> Hi Maurits, thanks for pointing this out. Indeed I oversaw first the atschema local command that did two things: Adding the correct underscore (MessageFactory) entry in the content .py file. This is not present when you only run paster addcontent mytype Because the at field skeleton injected from paster does not reflect the approach you describe later down, I started to edit the schema by hand. Without running paster addcontent atschema You get a name error for "_". It is quite difficult to search in google for something related to underscore and or "_(u". Finally I stumbled over a hint in Stackoverflow pointing to Django and figure out the approach documented in the "__init__.py" file of the inner namespace of the package. Do you know a reason why the line below the comment in the type schema in the content folder is omitted on initial creation of the type: file ../content/*.py ################################## ... # -*- Message Factory Imported Here -*- from package.mypackage import viewsMessageFactory as _ # this is only present after creating the first field! ################################## Hope this forum entry helps to look up this Three things: 1. Something next to the comment in the contenttype ../content/*.py file should be more verbose like: ################################## # Avoid adding initial field skeletons by hand, use atschema local command instead. # If not: On 'Name error: "_" is undefined' , uncomment the following line: # from {package.mypackage} import viewsMessageFactory as _ # {package.mypackage} must be replaced by paster on creation. ################################## 2. The skeleton you provided below, should be present in the schema generated by paster addcontent atschema. 3. The import of the atapi module should be already prepared with the safe 4 lines for LinguaPlone. Or the paster script should have an option to default to this (even dexterity is coming up, but as I know it is still not i18n aware). I am looking forward to test the new syntax with i18ndude. Thank you very much! Armin Keywords: archetypes, zopeskel, paster, addcontent, atschema, Default Message, Am 15.08.2011 um 10:26 schrieb Maurits van Rees: > Op 14-08-11 13:00, Armin Stro?-Radschinski schreef: >> Examples >> ================ >> >> This is one of my Archetype fields schema in one of my content >> types files: >> ~/instances/MySite/src/mytranslated.package/mytranslated/package/ >> content/tour.py >> >> >> The schema file: >> ------------------------------------------------- >> >> .... >> >> atapi.StringField('productCode', >> required=False, >> searchable=True, >> languageIndependent=False, >> storage=atapi.AnnotationStorage(), >> widget >> = >> atapi >> .StringWidget(label_msgid='MyTranslationDomain_label_productCode', >> >> label=_(u"Product Code"), >> i18n_domain='MyTranslationDomain', >> description_msgid='MyTranslationDomain_help_productCode', >> description=_(u"A short unique code to identify our products"), >> ), >> ), > > Here you are combining two ways of doing i18n: the archetypes > specific way with label_msgid and i18n_domain and the general way of > using the underscore (MessageFactory). I recommend using only the > new way. So that would be like this: > > widget=atapi.StringWidget(label_msgid='', > label=_(u'MyTranslationDomain_label_productCode', > default=u"Product Code"), > description=_(u'MyTranslationDomain_help_productCode', > default=u"A short unique code to identify our > products"), > ), > > -- > Maurits van Rees > Web App Programmer at Zest Software: http://zestsoftware.nl > Personal website: http://maurits.vanrees.org/ > > _______________________________________________ > Product-Developers mailing list > Product-Developers at lists.plone.org > https://lists.plone.org/mailman/listinfo/plone-product-developers -- Armin Carl Stro?-Radschinski, Dipl. Designer acsr industrialdesign, Landgrafenstra?e 32, 53842 Troisdorf, Germany Telefon +49 (0) 22 41 / 94 69 94, FAX +49 (0) 22 41 / 94 69 96 eMail a.stross-radschinski at acsr.de - http://www.acsr.de UST. ID Nr: DE154092803 (EU VAT ID) From dominikruf at gmail.com Mon Aug 15 19:42:06 2011 From: dominikruf at gmail.com (Dominik) Date: Mon, 15 Aug 2011 12:42:06 -0700 (PDT) Subject: [Product-Developers] How to override MembershipTool (or how to use custom portraits) Message-ID: <1313437326578-6688902.post@n2.nabble.com> Hi, I'd like to create an addon that uses portraits that are not stored in plone. So far I found out that the portraits are managed by the MembershipTool. So I guess I have to override the MembershipTool with one that has a custom getPersonalPortrait() methode. But I'm not sure how to do that. How do I tell plone to use my MembershipTool instead of the on in PlonePAS? Especially it should only be overridden if the addon is actually installed on a site. Can somebody give me some direction? cheers Dominik -- View this message in context: http://plone.293351.n2.nabble.com/How-to-override-MembershipTool-or-how-to-use-custom-portraits-tp6688902p6688902.html Sent from the Product Developers mailing list archive at Nabble.com. From r.ritz at biologie.hu-berlin.de Tue Aug 16 10:44:39 2011 From: r.ritz at biologie.hu-berlin.de (Raphael Ritz) Date: Tue, 16 Aug 2011 12:44:39 +0200 Subject: [Product-Developers] How to override MembershipTool (or how to use custom portraits) In-Reply-To: <1313437326578-6688902.post@n2.nabble.com> References: <1313437326578-6688902.post@n2.nabble.com> Message-ID: On 8/15/11 9:42 PM, Dominik wrote: > Hi, > > I'd like to create an addon that uses portraits that are not stored in > plone. > So far I found out that the portraits are managed by the MembershipTool. > So I guess I have to override the MembershipTool with one that has a custom > getPersonalPortrait() methode. > But I'm not sure how to do that. How do I tell plone to use my > MembershipTool instead of the on in PlonePAS? Especially it should only be > overridden if the addon is actually installed on a site. > > Can somebody give me some direction? Ages old but maybe still helpful http://www.zopyx.de/downloads/documentation/mysite.pdf Specifically the section about the MembershipTool might be of interest to you ;-) Raphael > > cheers > Dominik > > -- > View this message in context: http://plone.293351.n2.nabble.com/How-to-override-MembershipTool-or-how-to-use-custom-portraits-tp6688902p6688902.html > Sent from the Product Developers mailing list archive at Nabble.com. From mike at metcalfe.co.za Tue Aug 16 12:24:00 2011 From: mike at metcalfe.co.za (Mike Metcalfe) Date: Tue, 16 Aug 2011 14:24:00 +0200 Subject: [Product-Developers] Search error on dexterity objects Message-ID: Hi, I have a problem in plone 4.1 when searching for dexterity objects with empty description fields (I explicitly added the title and description field as per the manual). This was reported in plone.dexterity issue 179 and fixed in r49792 by changing the Description accessor in content.py: @@ -228,7 +228,7 @@ # this is a CMF-style accessor, so should return utf8-encoded if isinstance(self.description, unicode): return self.description.encode('utf8') - return self.description + return self.description or '' I put a pdb in that method but it doesn't get called when viewing or editing my object. Hence the catalog record has a description of None. If I add an accessor in my class with the same code above, the catalog record's description is empty (as opposed to None) and the search works. I also tried removing the title and description from the schema and added the basic metadata behaviour and that obviously also worked. Using the basic metadata behaviour will work for some of my types but one of my types doesn't need a description and the title on another optional. Any thoughts on how I should proceed? Thanks Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.van.rees at zestsoftware.nl Wed Aug 17 09:25:51 2011 From: m.van.rees at zestsoftware.nl (Maurits van Rees) Date: Wed, 17 Aug 2011 11:25:51 +0200 Subject: [Product-Developers] How to override MembershipTool (or how to use custom portraits) In-Reply-To: <1313437326578-6688902.post@n2.nabble.com> References: <1313437326578-6688902.post@n2.nabble.com> Message-ID: Op 15-08-11 21:42, Dominik schreef: > Hi, > > I'd like to create an addon that uses portraits that are not stored in > plone. > So far I found out that the portraits are managed by the MembershipTool. > So I guess I have to override the MembershipTool with one that has a custom > getPersonalPortrait() methode. > But I'm not sure how to do that. How do I tell plone to use my > MembershipTool instead of the on in PlonePAS? Especially it should only be > overridden if the addon is actually installed on a site. > > Can somebody give me some direction? This is untested pseudo code, but a patch in your package that is loaded on startup could work: from somewhere import MembershipTool def new_getPersonalPortrait(self, *args, **kwargs): if my package is installed in this Plone Site: return external portrait return self._orig_getPersonalPortrait(*args, **kwargs) MembershipTool._orig_getPersonalPortrait = getPersonalPortrait MembershipTool.getPersonalPortrait = new_getPersonalPortrait In other words, if may be enough to not override the complete MembershipTool, but just this single method. -- Maurits van Rees Web App Programmer at Zest Software: http://zestsoftware.nl Personal website: http://maurits.vanrees.org/ From gilles.lenfant at alterway.fr Fri Aug 19 11:57:30 2011 From: gilles.lenfant at alterway.fr (Gilles Lenfant) Date: Fri, 19 Aug 2011 13:57:30 +0200 Subject: [Product-Developers] Viewlets on IHTMLHead viewlets mgr are updated on Unauthorized object. Message-ID: <0F9BC352-62CD-4F9E-B3A4-3A63130A9922@alterway.fr> Hi, Putting together Plone 4.0.7 with sc.social.like, I noticed that the publication process loops infinitely in a deadlock when an user tries to view an item he is not allowed to view. See the full scenario, investigation details and fix in this ticket. https://bitbucket.org/takaki/sc.social.like/issue/1/deadlock-when-viewing-an-object-on-which Thinking back after recording this ticket, I dunno if I faced a sc.social.like bug or a Plone issue. In other words, why the publication process tries to update the viewlets for IHTMLHead manager on unauthorized objects, when a UnauthorizedBinding object is pushed as an (unusable) context. Any opinion why Plone tries to update such viewlets when an Unauthorized is pending ? Is this a Plone issue ? Or should we always override the "update" method of viewlets (inheriting from plone.app.layout.viewlets.common.ViewletBase) for viewlets for IHTMLHead manager ? Thanks by advance for any argued opinion. -- Gilles Lenfant From davidglick at groundwire.org Sun Aug 21 21:26:01 2011 From: davidglick at groundwire.org (David Glick) Date: Sun, 21 Aug 2011 14:26:01 -0700 Subject: [Product-Developers] UnicodeDecodeError while rendering image from dexterity content type In-Reply-To: References: Message-ID: <4E5177E9.4000809@groundwire.org> On 7/28/11 9:42 AM, Noe Nieto wrote: Plone 4.1, Dexterity 1.0.1 I have a Dexterity content-type with plone.app.content.interfaces.INameFromTitle and plone.app.dexterity.behaviors.metadata.IBasic behaviors: The schema is this: class IAuthor(form.Schema): """ Profile for Book or DVD authors. """ portrait = namedfile.NamedBlobImage( title=_(u"Author's Portrait/Photo"), description=_(u"Portrayal of the Author."), required=True, ) form.widget(bio="plone.app.z3cform.wysiwyg.WysiwygFieldWidget") bio = schema.Text( title=_(u"Author's Bio"), description=_(u"The Author's Bio"), required=True, ) The template is very basic:
If I add an author with non-ascii chars in the title, the template will throw a traceback: 2011-07-28 09:34:42 ERROR Zope.SiteErrorLog 1311870882.960.569752426632 http://localhost:8002/Plone/author-with-accents-aeion/view Traceback (innermost last): Module ZPublisher.Publish, line 126, in publish Module ZPublisher.mapply, line 77, in mapply Module ZPublisher.Publish, line 46, in call_object Module grokcore.view.components, line 100, in __call__ Module grokcore.view.components, line 104, in _render_template Module five.grok.components, line 134, in render Module zope.pagetemplate.pagetemplate, line 113, in pt_render Module zope.tal.talinterpreter, line 271, in __call__ Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 888, in do_useMacro Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 533, in do_optTag_tal Module zope.tal.talinterpreter, line 518, in do_optTag Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 954, in do_defineSlot Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 533, in do_optTag_tal Module zope.tal.talinterpreter, line 518, in do_optTag Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 858, in do_defineMacro Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 954, in do_defineSlot Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 533, in do_optTag_tal Module zope.tal.talinterpreter, line 518, in do_optTag Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 954, in do_defineSlot Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 533, in do_optTag_tal Module zope.tal.talinterpreter, line 518, in do_optTag Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 946, in do_defineSlot Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 533, in do_optTag_tal Module zope.tal.talinterpreter, line 518, in do_optTag Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 858, in do_defineMacro Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 533, in do_optTag_tal Module zope.tal.talinterpreter, line 518, in do_optTag Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 852, in do_condition Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 531, in do_optTag_tal Module zope.tal.talinterpreter, line 513, in no_tag Module zope.tal.talinterpreter, line 343, in interpret Module zope.tal.talinterpreter, line 742, in do_insertStructure_tal Module Products.PageTemplates.Expressions, line 218, in evaluateStructure Module zope.tales.tales, line 696, in evaluate - URL: /home/tzicatl/Aplicaciones/Codigo/pu/holokinesis_libros/src/holokinesislibros.contenttypes/holokinesislibros/contenttypes/templates/author.pt - Line 17, Column 13 - Expression: - Names: {'args': (), 'container': , 'context': , 'default': , 'here': , 'loop': {}, 'nothing': None, 'options': {}, 'repeat': , 'request': , 'root': , 'static': , 'template': , 'traverse_subpath': [], 'user': , 'view': , 'views': } Module zope.tales.expressions, line 217, in __call__ Module Products.PageTemplates.Expressions, line 147, in _eval Module zope.tales.expressions, line 124, in _eval Module Products.PageTemplates.Expressions, line 97, in trustedBoboAwareZopeTraverse Module zope.traversing.adapters, line 136, in traversePathElement - __traceback_info__: (, 'portrait') Module plone.namedfile.scaling, line 126, in traverse Module plone.namedfile.scaling, line 68, in tag Module plone.namedfile.scaling, line 68, in UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 20: ordinal not in range(128) This is the plone.namedfile.scaling.ImageScale::tag() function: def tag(self, height=_marker, width=_marker, alt=_marker, css_class=None, title=_marker, **kwargs): """Create a tag including scale """ if height is _marker: height = getattr(self, 'height', self.data._height) if width is _marker: width = getattr(self, 'width', self.data._width) if alt is _marker: alt = self.context.Title() if title is _marker: title = self.context.Title() values = [ ('src', self.url), ('alt', alt), ('title', title), ('height', height), ('width', width), ('class', css_class), ] values.extend(kwargs.items()) parts = ['') return u' '.join(parts) It takes the context's title and uses it for the alt and title attributes of the img tag. Is this a bug in plone.app.scaling or in my code? It was a bug in plone.namedfile (it's that "unicode(v)" without specifying which encoding to use). I just released version 1.0.4 of plone.namedfile which should fix the problem. Sorry for the long delay in responding; I was on vacation. David David Glick Web Developer davidglick at groundwire.org 206.286.1235x32 [http://gw-logo.s3.amazonaws.com/groundwire-logo-270-noclear.png] Online tools and strategies for the environmental movement. Sign up for Groundwire News! -------------- next part -------------- An HTML attachment was scrubbed... URL: From nnieto at noenieto.com Mon Aug 22 01:00:17 2011 From: nnieto at noenieto.com (Noe Nieto) Date: Sun, 21 Aug 2011 20:00:17 -0500 Subject: [Product-Developers] UnicodeDecodeError while rendering image from dexterity content type In-Reply-To: <4E5177E9.4000809@groundwire.org> References: <4E5177E9.4000809@groundwire.org> Message-ID: Thanks David. I'll try the new version right away. --- Noe 2011/8/21 David Glick > On 7/28/11 9:42 AM, Noe Nieto wrote: > > Plone 4.1, Dexterity 1.0.1 > I have a Dexterity content-type with > plone.app.content.interfaces.INameFromTitle and > plone.app.dexterity.behaviors.metadata.IBasic behaviors: > The schema is this: > > class IAuthor(form.Schema): > """ > Profile for Book or DVD authors. > """ > > portrait = namedfile.NamedBlobImage( > title=_(u"Author's Portrait/Photo"), > description=_(u"Portrayal of the Author."), > required=True, > ) > > form.widget(bio="plone.app.z3cform.wysiwyg.WysiwygFieldWidget") > bio = schema.Text( > title=_(u"Author's Bio"), > description=_(u"The Author's Bio"), > required=True, > ) > > The template is very basic: > > xmlns:tal="http://xml.zope.org/namespaces/tal" > xmlns:metal="http://xml.zope.org/namespaces/metal" > xmlns:i18n="http://xml.zope.org/namespaces/i18n" > lang="en" > metal:use-macro="context/main_template/macros/master" > i18n:domain="holokinesislibros.contenttypes"> > > > > > > >
tal:define="portrait nocall:context/portrait" > tal:condition="nocall:portrait"> > >
> >
> > > > > > > > If I add an author with non-ascii chars in the title, the template will > throw a traceback: > > 2011-07-28 09:34:42 ERROR Zope.SiteErrorLog 1311870882.960.569752426632 > http://localhost:8002/Plone/author-with-accents-aeion/view > Traceback (innermost last): > Module ZPublisher.Publish, line 126, in publish > Module ZPublisher.mapply, line 77, in mapply > Module ZPublisher.Publish, line 46, in call_object > Module grokcore.view.components, line 100, in __call__ > Module grokcore.view.components, line 104, in _render_template > Module five.grok.components, line 134, in render > Module zope.pagetemplate.pagetemplate, line 113, in pt_render > Module zope.tal.talinterpreter, line 271, in __call__ > Module zope.tal.talinterpreter, line 343, in interpret > Module zope.tal.talinterpreter, line 888, in do_useMacro > Module zope.tal.talinterpreter, line 343, in interpret > Module zope.tal.talinterpreter, line 533, in do_optTag_tal > Module zope.tal.talinterpreter, line 518, in do_optTag > Module zope.tal.talinterpreter, line 513, in no_tag > Module zope.tal.talinterpreter, line 343, in interpret > Module zope.tal.talinterpreter, line 954, in do_defineSlot > Module zope.tal.talinterpreter, line 343, in interpret > Module zope.tal.talinterpreter, line 533, in do_optTag_tal > Module zope.tal.talinterpreter, line 518, in do_optTag > Module zope.tal.talinterpreter, line 513, in no_tag > Module zope.tal.talinterpreter, line 343, in interpret > Module zope.tal.talinterpreter, line 858, in do_defineMacro > Module zope.tal.talinterpreter, line 343, in interpret > Module zope.tal.talinterpreter, line 954, in do_defineSlot > Module zope.tal.talinterpreter, line 343, in interpret > Module zope.tal.talinterpreter, line 533, in do_optTag_tal > Module zope.tal.talinterpreter, line 518, in do_optTag > Module zope.tal.talinterpreter, line 513, in no_tag > Module zope.tal.talinterpreter, line 343, in interpret > Module zope.tal.talinterpreter, line 954, in do_defineSlot > Module zope.tal.talinterpreter, line 343, in interpret > Module zope.tal.talinterpreter, line 533, in do_optTag_tal > Module zope.tal.talinterpreter, line 518, in do_optTag > Module zope.tal.talinterpreter, line 513, in no_tag > Module zope.tal.talinterpreter, line 343, in interpret > Module zope.tal.talinterpreter, line 946, in do_defineSlot > Module zope.tal.talinterpreter, line 343, in interpret > Module zope.tal.talinterpreter, line 533, in do_optTag_tal > Module zope.tal.talinterpreter, line 518, in do_optTag > Module zope.tal.talinterpreter, line 513, in no_tag > Module zope.tal.talinterpreter, line 343, in interpret > Module zope.tal.talinterpreter, line 858, in do_defineMacro > Module zope.tal.talinterpreter, line 343, in interpret > Module zope.tal.talinterpreter, line 533, in do_optTag_tal > Module zope.tal.talinterpreter, line 518, in do_optTag > Module zope.tal.talinterpreter, line 513, in no_tag > Module zope.tal.talinterpreter, line 343, in interpret > Module zope.tal.talinterpreter, line 852, in do_condition > Module zope.tal.talinterpreter, line 343, in interpret > Module zope.tal.talinterpreter, line 531, in do_optTag_tal > Module zope.tal.talinterpreter, line 513, in no_tag > Module zope.tal.talinterpreter, line 343, in interpret > Module zope.tal.talinterpreter, line 742, in do_insertStructure_tal > Module Products.PageTemplates.Expressions, line 218, in evaluateStructure > Module zope.tales.tales, line 696, in evaluate > - URL: > /home/tzicatl/Aplicaciones/Codigo/pu/holokinesis_libros/src/holokinesislibros.contenttypes/holokinesislibros/contenttypes/templates/ > author.pt > - Line 17, Column 13 > - Expression: > - Names: > {'args': (), > 'container': , > 'context': , > 'default': , > 'here': , > 'loop': {}, > 'nothing': None, > 'options': {}, > 'repeat': 0xcb6289c>, > 'request': http://localhost:8002/Plone/author-with-accents-aeion/view>, > 'root': , > 'static': 0xb5309c0c>, > 'template': > 0xd329c8c>, > 'traverse_subpath': [], > 'user': , > 'view': 0xb533848c>, > 'views': at 0xb532348c>} > Module zope.tales.expressions, line 217, in __call__ > Module Products.PageTemplates.Expressions, line 147, in _eval > Module zope.tales.expressions, line 124, in _eval > Module Products.PageTemplates.Expressions, line 97, in > trustedBoboAwareZopeTraverse > Module zope.traversing.adapters, line 136, in traversePathElement > - __traceback_info__: ( 0xb53306cc>, 'portrait') > Module plone.namedfile.scaling, line 126, in traverse > Module plone.namedfile.scaling, line 68, in tag > Module plone.namedfile.scaling, line 68, in > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 20: > ordinal not in range(128) > > > This is the plone.namedfile.scaling.ImageScale::tag() function: > > def tag(self, height=_marker, width=_marker, alt=_marker, > css_class=None, title=_marker, **kwargs): > """Create a tag including scale > """ > if height is _marker: > height = getattr(self, 'height', self.data._height) > if width is _marker: > width = getattr(self, 'width', self.data._width) > > if alt is _marker: > alt = self.context.Title() > if title is _marker: > title = self.context.Title() > > values = [ > ('src', self.url), > ('alt', alt), > ('title', title), > ('height', height), > ('width', width), > ('class', css_class), > ] > values.extend(kwargs.items()) > > parts = [' parts.extend("%s=%s" % (k, quoteattr(unicode(v))) for k, v in > values if v is not None) > parts.append('/>') > > return u' '.join(parts) > > It takes the context's title and uses it for the alt and title attributes > of the img tag. Is this a bug in plone.app.scaling or in my code? > > It was a bug in plone.namedfile (it's that "unicode(v)" without specifying > which encoding to use). I just released version 1.0.4 of plone.namedfile > which should fix the problem. > > Sorry for the long delay in responding; I was on vacation. > David > > > > *David Glick* > Web Developer > davidglick at groundwire.org > 206.286.1235x32 > > [image: Groundwire logo] > > Online tools and strategies for the environmental movement. Sign up for > Groundwire News! > > > > _______________________________________________ > Product-Developers mailing list > Product-Developers at lists.plone.org > https://lists.plone.org/mailman/listinfo/plone-product-developers > > -- --- Noe Nieto NNieto Consulting Services M: nnieto at noenieto.com W: http://noenieto.com T: @tzicatl Li: Perfil en LinkedIn -------------- next part -------------- An HTML attachment was scrubbed... URL: From kleist at postkiosk.de Tue Aug 23 17:42:31 2011 From: kleist at postkiosk.de (Karl Johan Kleist) Date: Tue, 23 Aug 2011 10:42:31 -0700 (PDT) Subject: [Product-Developers] collective.recipe.backup: support for collective.recipe.filestorage checked in Message-ID: <1314121350992-6717142.post@n2.nabble.com> Dear Plone fellows, I've checked in a small enhancement of collective.recipe.backup:repozorunner.py (http://dev.plone.org/collective/changeset/243743) as to handle filestorage files that reside in their own directory. This is the default behavior when using collective.recipe.filestorage. Who knows the e-mail addresses of the maintainers Reinout van Rees and Maurits van Rees? I guess I should notify them, and if they approve they might even release a new version. ----- Blog: http://du-alter-schwede.de/ -- View this message in context: http://plone.293351.n2.nabble.com/collective-recipe-backup-support-for-collective-recipe-filestorage-checked-in-tp6717142p6717142.html Sent from the Product Developers mailing list archive at Nabble.com. From dholth at gmail.com Tue Aug 23 18:47:53 2011 From: dholth at gmail.com (Daniel Holth) Date: Tue, 23 Aug 2011 14:47:53 -0400 Subject: [Product-Developers] restore IPython's zope profile Message-ID: I rely on `ipython --profile=zope` to debug my Plone instances so I was disappointed that it no longer worked with IPython 0.11 and Plone 4. Fortunately, this is easy to fix with some edits to ipy_profile_zope.py. Here's a very rough overview of what has to be done: - the deprecated ipapi has moved to IPython core from IPython.core import ipapi - removed references to IPython.Release, no longer set banner - create new IPython profile: ipython profile create zope - move ipy_profile_zope.py to ~/.ipython/profile_zope/zdebug.py - import zdebug in ~/.ipython/profile_zope/ipython_config.py: c.TerminalIPythonApp.exec_lines = [ "import zdebug" ] Also, set CONFIG_FILE to point to Plone/zeocluster/parts/client1/etc/zope.conf. It would be pretty simple to do this the "right" way for IPython 0.11 by removing the ipapi references and just setting the portal, app, utils globals in exec_lines. Does anyone else debug Plone with IPython 0.11? From kleist at postkiosk.de Tue Aug 23 20:35:38 2011 From: kleist at postkiosk.de (Karl Johan Kleist) Date: Tue, 23 Aug 2011 13:35:38 -0700 (PDT) Subject: [Product-Developers] collective.recipe.backup: support for collective.recipe.filestorage checked in In-Reply-To: <1314121350992-6717142.post@n2.nabble.com> References: <1314121350992-6717142.post@n2.nabble.com> Message-ID: <1314131738093-6717660.post@n2.nabble.com> It just occurred to me, that it's probably not very smart to use the get_fs() helper function in restore_main(). We can probably not assume that the filestorage file already exists. So I've restored the old code in restore_main(): http://dev.plone.org/collective/changeset/243750/buildout/collective.recipe.backup/trunk/src/collective/recipe/backup/repozorunner.py ----- Blog: http://du-alter-schwede.de/ -- View this message in context: http://plone.293351.n2.nabble.com/collective-recipe-backup-support-for-collective-recipe-filestorage-checked-in-tp6717142p6717660.html Sent from the Product Developers mailing list archive at Nabble.com. From jean.jordaan at gmail.com Wed Aug 24 06:15:15 2011 From: jean.jordaan at gmail.com (Jean Jordaan) Date: Wed, 24 Aug 2011 13:15:15 +0700 Subject: [Product-Developers] restore IPython's zope profile In-Reply-To: References: Message-ID: > Does anyone else debug Plone with IPython 0.11? I do sometimes with 0.10 -- jean . .. .... //\\\oo///\\ From m.van.rees at zestsoftware.nl Wed Aug 24 10:24:48 2011 From: m.van.rees at zestsoftware.nl (Maurits van Rees) Date: Wed, 24 Aug 2011 12:24:48 +0200 Subject: [Product-Developers] collective.recipe.backup: support for collective.recipe.filestorage checked in In-Reply-To: <1314121350992-6717142.post@n2.nabble.com> References: <1314121350992-6717142.post@n2.nabble.com> Message-ID: Op 23-08-11 19:42, Karl Johan Kleist schreef: > Dear Plone fellows, > > I've checked in a small enhancement of > collective.recipe.backup:repozorunner.py > (http://dev.plone.org/collective/changeset/243743) as to handle filestorage > files that reside in their own directory. This is the default behavior when > using collective.recipe.filestorage. > > Who knows the e-mail addresses of the maintainers Reinout van Rees and > Maurits van Rees? I guess I should notify them, and if they approve they > might even release a new version. Hi, that would be me. :) You can mail maurits at vanrees.org or use the contact form on my website http://maurits.vanrees.org But you've got my attention now via this mailing list and I noticed the changes in the collective mailing list. I will have a look at it. Can you try adding a test for this? I am now busy on a branch to add blobstorage backup and restore support though, so I am focusing on that first. Thanks, -- Maurits van Rees Web App Programmer at Zest Software: http://zestsoftware.nl Personal website: http://maurits.vanrees.org/ From developer at acsr.de Wed Aug 24 11:53:17 2011 From: developer at acsr.de (=?ISO-8859-1?Q?Armin_Stro=DF-Radschinski?=) Date: Wed, 24 Aug 2011 13:53:17 +0200 Subject: [Product-Developers] collective.recipe.backup: support for collective.recipe.filestorage checked in In-Reply-To: References: <1314121350992-6717142.post@n2.nabble.com> Message-ID: <535BB5D8-61F0-4001-BABF-CE6C4FDA3BDE@acsr.de> Hi Maurits, please can you give me the location of that branch if it is public? I wrote an rsync based incremental backup of the blobstorage using hardlinks to safe space but keep the whole tree per backup. It is not published yet because I need to rework it for the case, the destination is on a different drive or server and (specially for me) a solution if the local backup is synced with a mirror. In this case it is important to recreate the links at the destination as links too, which is not solved yet. I send you my code directly via mail due to some time limitation. There is no license on the code by me. Feel free to use this as inspiration. Armin Am 24.08.2011 um 12:24 schrieb Maurits van Rees: > Op 23-08-11 19:42, Karl Johan Kleist schreef: >> Dear Plone fellows, >> >> I've checked in a small enhancement of >> collective.recipe.backup:repozorunner.py >> (http://dev.plone.org/collective/changeset/243743) as to handle >> filestorage >> files that reside in their own directory. This is the default >> behavior when >> using collective.recipe.filestorage. >> >> Who knows the e-mail addresses of the maintainers Reinout van Rees >> and >> Maurits van Rees? I guess I should notify them, and if they approve >> they >> might even release a new version. > > Hi, that would be me. :) You can mail maurits at vanrees.org or use > the contact form on my website http://maurits.vanrees.org > > But you've got my attention now via this mailing list and I noticed > the changes in the collective mailing list. I will have a look at > it. Can you try adding a test for this? > > I am now busy on a branch to add blobstorage backup and restore > support though, so I am focusing on that first. > > Thanks, #!/bin/sh #blobstoragesnapshot VERSION="0.1.3" echo "blobstoragesnapshot Version "$VERSION echo "rsync based Plone blobstorage timemachine companion for repozo" #20110226_19-35-31 by Armin Carl Stross-Radschinski, developer at acsr.de #a rsync based Plone blobstorage timemachine companion for repozo #Using rsync to make hardlinked snapshots of your blobstorage #based on #http://blog.interlinked.org/tutorials/rsync_time_machine.html # #Description #Every snapshot is a full copy of the state of the blobstorage #make sure your blobstorage is backuped AFTER the run of repozo AND #no packing of the database has taken place until the blobstoragesnapshot #is finished. #Usually no file in the blobstorage is deleted until a pack is initiated #keeping the prerequisite for a undo. #Take care! #ToDo #take timestamp, source and destination via parameter to match repozo backups #initiated by backup recipe # #History #rev 0.1.3 20110226_20-10-59 by acsr # date format changed to match the repozo timestamp #rev 0.1.2 20110226_19-30-00 by acsr # initial test on Ubuntu, destination directory creation added #rev 0.1.1 20110226_19-41-36 by acsr # first release working without ssh date=`date "+%Y-%m-%d-%H-%M-%S"` HOME="/home/goa/instances/everweb/var/blobstorage/" DEST="/home/goa/instances/everweb/var/backupsblobstorage/" # --exclude-from=$HOME .rsync/exclude \ mkdir -p $DEST rsync -azP \ --delete \ --delete-excluded \ --link-dest=$DEST"current" \ $HOME $DEST"incomplete_blobstorage-$date" mv $DEST"incomplete_blobstorage-$date" $DEST"blobstorage-$date" rm -f $DEST"current" ln -s $DEST"blobstorage-$date" $DEST"current" #from the comments (to be tested) #how to restore data from the backup #this will be the simplest restore option. If you want to restore the whole thing, you could do: # rsync -aP /path/to/backup/folder/ /path/to/restore #endblobstoragesnapshot -- Armin Carl Stro?-Radschinski, Dipl. Designer acsr industrialdesign, Landgrafenstra?e 32, 53842 Troisdorf, Germany Telefon +49 (0) 22 41 / 94 69 94, FAX +49 (0) 22 41 / 94 69 96 eMail a.stross-radschinski at acsr.de - http://www.acsr.de UST. ID Nr: DE154092803 (EU VAT ID) From m.van.rees at zestsoftware.nl Wed Aug 24 12:02:23 2011 From: m.van.rees at zestsoftware.nl (Maurits van Rees) Date: Wed, 24 Aug 2011 14:02:23 +0200 Subject: [Product-Developers] collective.recipe.backup: support for collective.recipe.filestorage checked in In-Reply-To: <535BB5D8-61F0-4001-BABF-CE6C4FDA3BDE@acsr.de> References: <1314121350992-6717142.post@n2.nabble.com> <535BB5D8-61F0-4001-BABF-CE6C4FDA3BDE@acsr.de> Message-ID: Op 24-08-11 13:53, Armin Stro?-Radschinski schreef: > Hi Maurits, > please can you give me the location of that branch if it is public? > > I wrote an rsync based incremental backup of the blobstorage using > hardlinks to safe space but keep the whole tree per backup. > > It is not published yet because I need to rework it for the case, the > destination is on a different drive or server and (specially for me) a > solution if the local backup is synced with a mirror. In this case it is > important to recreate the links at the destination as links too, which > is not solved yet. > > I send you my code directly via mail due to some time limitation. There > is no license on the code by me. Feel free to use this as inspiration. The essence of my code is not that different, though it is of course embedded in python and hooked up with the current backup of the Data.fs The branch is here: https://svn.plone.org/svn/collective/buildout/collective.recipe.backup/branches/maurits-blobs -- Maurits van Rees Web App Programmer at Zest Software: http://zestsoftware.nl Personal website: http://maurits.vanrees.org/ From sdupton at gmail.com Thu Aug 25 20:45:08 2011 From: sdupton at gmail.com (Sean Upton) Date: Thu, 25 Aug 2011 14:45:08 -0600 Subject: [Product-Developers] plone.app.jquerytools, disabled scripts in js registry, profile deps: stop the madness! Message-ID: Okay, so I am trying to figure my way through this one with my sanity intact: I am writing add-ons that depend on scripts that plone.app.jquerytools ships but disables by default (e.g. dateinput, validator). So I figure, not a problem -- my jsregistry.xml enables and orders them. But installing ANY other add-on that depends on plone.app.jquerytools (like Dexterity or anything depending on it -- half the known universe soon) stomps on my registry settings and restores the default. It seems I (and any other product author) who wants to safely enable these jquery tools plugins will be forced to bundle our own copies to ensure they are always enabled in the respective resource registry, which yields the possibility of multiple products installing (duplicate or incompatible) versions of the same script. So we trade one problem for another. This seems an intractable problem for every possible type of add-on (including site-specific policy products). It effectively means you have to re-install the js registry profile bits for your specific product in portal_setup manually after the installation of almost any other add-on. Ideas? Sean From m.van.rees at zestsoftware.nl Thu Aug 25 22:52:37 2011 From: m.van.rees at zestsoftware.nl (Maurits van Rees) Date: Fri, 26 Aug 2011 00:52:37 +0200 Subject: [Product-Developers] collective.recipe.backup: support for collective.recipe.filestorage checked in In-Reply-To: <1314131738093-6717660.post@n2.nabble.com> References: <1314121350992-6717142.post@n2.nabble.com> <1314131738093-6717660.post@n2.nabble.com> Message-ID: Hi, Op 23-08-11 22:35, Karl Johan Kleist schreef: > It just occurred to me, that it's probably not very smart to use the get_fs() > helper function in restore_main(). We can probably not assume that the > filestorage file already exists. So I've restored the old code in > restore_main() As you indicate here, this might need a bit more thinking, as now a restore could place the filestorage in a wrong location. Also, collective.recipe.filestorage offers more ways to name the additional filestorages and I guess your current code only handles the default location. Fair enough, really, but I wonder if we can do better. Also, it occured to me that these additional filestorages may come with their own blobstorages (oh joy...). That may need a bit of thinking too. I haved moved your code to a new branch: https://svn.plone.org/svn/collective/buildout/collective.recipe.backup/branches/kleist-recipe-filestorage I have also reverted those changes on trunk. Biggest reason is that this clears the way for merging back my long overdue blobstorage backup support branch and do a release. We can work on collective.recipe.filestorage later. Thanks for your contribution. -- Maurits van Rees Web App Programmer at Zest Software: http://zestsoftware.nl Personal website: http://maurits.vanrees.org/ From steve at dcn.org Thu Aug 25 23:01:17 2011 From: steve at dcn.org (Steve McMahon) Date: Thu, 25 Aug 2011 16:01:17 -0700 Subject: [Product-Developers] plone.app.jquerytools, disabled scripts in js registry, profile deps: stop the madness! In-Reply-To: References: Message-ID: Hi Sean, Why don't you go ahead and open a ticket for this (component: javascript). I think you're right that this is a mess, and a ticket will give us a place to work through a better solution. Steve On Thu, Aug 25, 2011 at 1:45 PM, Sean Upton wrote: > Okay, so I am trying to figure my way through this one with my sanity > intact: > > I am writing add-ons that depend on scripts that plone.app.jquerytools > ships but disables by default (e.g. dateinput, validator). So I > figure, not a problem -- my jsregistry.xml enables and orders them. > But installing ANY other add-on that depends on plone.app.jquerytools > (like Dexterity or anything depending on it -- half the known universe > soon) stomps on my registry settings and restores the default. > > It seems I (and any other product author) who wants to safely enable > these jquery tools plugins will be forced to bundle our own copies to > ensure they are always enabled in the respective resource registry, > which yields the possibility of multiple products installing > (duplicate or incompatible) versions of the same script. So we trade > one problem for another. > > This seems an intractable problem for every possible type of add-on > (including site-specific policy products). It effectively means you > have to re-install the js registry profile bits for your specific > product in portal_setup manually after the installation of almost any > other add-on. > > Ideas? > > Sean > _______________________________________________ > Product-Developers mailing list > Product-Developers at lists.plone.org > https://lists.plone.org/mailman/listinfo/plone-product-developers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.van.rees at zestsoftware.nl Thu Aug 25 23:15:15 2011 From: m.van.rees at zestsoftware.nl (Maurits van Rees) Date: Fri, 26 Aug 2011 01:15:15 +0200 Subject: [Product-Developers] ANN: collective.recipe.backup now backs up blobstorage Message-ID: Hi I finally released collective.recipe.backup 2.0 which now backs up blobstorage. The backup is done using rsync and hard links to save space amd make backups faster. On Windows you probably want a simple copy; do that by giving the recipe the option use_rsync = false. Sensible defaults should still be in place, so usually you should not have to add any options to start backing up your blobstorage. But options are available if needed. I cleaned up the documentation. See http://pypi.python.org/pypi/collective.recipe.backup Feedback and fixes are welcome. The code is in the collective: https://svn.plone.org/svn/collective/buildout/collective.recipe.backup/trunk Happy backupping! -- Maurits van Rees Web App Programmer at Zest Software: http://zestsoftware.nl Personal website: http://maurits.vanrees.org/ From davidglick at groundwire.org Thu Aug 25 23:16:24 2011 From: davidglick at groundwire.org (David Glick) Date: Thu, 25 Aug 2011 16:16:24 -0700 Subject: [Product-Developers] collective.recipe.backup: support for collective.recipe.filestorage checked in In-Reply-To: References: <1314121350992-6717142.post@n2.nabble.com> <1314131738093-6717660.post@n2.nabble.com> Message-ID: <4E56D7C8.1050802@groundwire.org> On 8/25/11 3:52 PM, Maurits van Rees wrote: > Hi, > > Op 23-08-11 22:35, Karl Johan Kleist schreef: >> It just occurred to me, that it's probably not very smart to use the get_fs() >> helper function in restore_main(). We can probably not assume that the >> filestorage file already exists. So I've restored the old code in >> restore_main() > As you indicate here, this might need a bit more thinking, as now a > restore could place the filestorage in a wrong location. > > Also, collective.recipe.filestorage offers more ways to name the > additional filestorages and I guess your current code only handles the > default location. Fair enough, really, but I wonder if we can do better. > > Also, it occured to me that these additional filestorages may come with > their own blobstorages (oh joy...). That may need a bit of thinking too. > > I haved moved your code to a new branch: > https://svn.plone.org/svn/collective/buildout/collective.recipe.backup/branches/kleist-recipe-filestorage > > I have also reverted those changes on trunk. > > Biggest reason is that this clears the way for merging back my long > overdue blobstorage backup support branch and do a release. We can work > on collective.recipe.filestorage later. > > Thanks for your contribution. > FWIW, the in-house backup script that we use with collective.recipe.filestorage reads zope.conf and/or zeo.conf to figure out what storages exist and where they are. It's pretty dumb about the parsing though; just some regexes. David ---------- David Glick Web Developer davidglick at groundwire.org 206.286.1235x32 Online tools and strategies for the environmental movement. Sign up for our newsletter: http://www.groundwire.org/email-capture From jean.jordaan at gmail.com Fri Aug 26 08:13:06 2011 From: jean.jordaan at gmail.com (Jean Jordaan) Date: Fri, 26 Aug 2011 15:13:06 +0700 Subject: [Product-Developers] plone.app.jquerytools, disabled scripts in js registry, profile deps: stop the madness! In-Reply-To: References: Message-ID: On 8/26/11, Sean Upton wrote: > This seems an intractable problem for every possible type of add-on > (including site-specific policy products). It effectively means you > have to re-install the js registry profile bits for your specific > product in portal_setup manually after the installation of almost any > other add-on. Potentially stomping on the ones that stomped on you? Hairy indeed. -- jean . .. .... //\\\oo///\\ From dominikruf at gmail.com Fri Aug 26 10:53:33 2011 From: dominikruf at gmail.com (Dominik) Date: Fri, 26 Aug 2011 03:53:33 -0700 (PDT) Subject: [Product-Developers] How to override MembershipTool (or how to use custom portraits) In-Reply-To: References: <1313437326578-6688902.post@n2.nabble.com> Message-ID: <1314356013657-6728255.post@n2.nabble.com> this works thanks -- View this message in context: http://plone.293351.n2.nabble.com/How-to-override-MembershipTool-or-how-to-use-custom-portraits-tp6688902p6728255.html Sent from the Product Developers mailing list archive at Nabble.com. From sdupton at gmail.com Fri Aug 26 17:40:52 2011 From: sdupton at gmail.com (Sean Upton) Date: Fri, 26 Aug 2011 11:40:52 -0600 Subject: [Product-Developers] plone.app.jquerytools, disabled scripts in js registry, profile deps: stop the madness! In-Reply-To: References: Message-ID: On Thu, Aug 25, 2011 at 5:01 PM, Steve McMahon wrote: > Hi Sean, > > Why don't you go ahead and open a ticket for this (component: javascript). I > think you're right that this is a mess, and a ticket will give us a place to > work through a better solution. https://dev.plone.org/plone/ticket/12147 or http://dev.plone.org/plone/ticket/12147 While this problem is particularly interesting/frustrating for framework JavaScript. I keep thinking that it is going to warrant some modification to the setup process itself (more generally, it is a GenericSetup problem). Partitioning the profile dependency graph into levels (visualize the digraph of dependencies as a trellis) could provide cues of when already-installed dependency profiles should not have an import step re-run (because a higher-level downstream add-on has already customized over that step). I would bet this will eventually warrant a ticket for GenericSetup in launchpad too. Sean From hector.velarde at gmail.com Fri Aug 26 19:39:32 2011 From: hector.velarde at gmail.com (=?ISO-8859-1?Q?H=E9ctor_Velarde?=) Date: Fri, 26 Aug 2011 16:39:32 -0300 Subject: [Product-Developers] Viewlets on IHTMLHead viewlets mgr are updated on Unauthorized object. In-Reply-To: <0F9BC352-62CD-4F9E-B3A4-3A63130A9922@alterway.fr> References: <0F9BC352-62CD-4F9E-B3A4-3A63130A9922@alterway.fr> Message-ID: <4E57F674.8020207@gmail.com> fixed! https://bitbucket.org/simplesconsultoria/sc.social.like/changesets now we only need ?rico to make the new release ;-) thank you, and best regards! H?ctor Velarde -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4926 bytes Desc: Firma criptogr??fica S/MIME URL: From sdupton at gmail.com Mon Aug 29 17:49:42 2011 From: sdupton at gmail.com (Sean Upton) Date: Mon, 29 Aug 2011 11:49:42 -0600 Subject: [Product-Developers] plone.app.jquerytools, disabled scripts in js registry, profile deps: stop the madness! In-Reply-To: <4E5971EA.3040800@gmail.com> References: <4E5971EA.3040800@gmail.com> Message-ID: On Sat, Aug 27, 2011 at 4:38 PM, David Glick wrote: > It sounds like we need to add support for a flag in jsregistry.xml to > indicate that a resource should be added in a disabled state if it's not > present, but remain enabled if it is already present and enabled. This could > then be used for these optional scripts bundled with p.a.jquerytools. Perhaps, instead of an additional flag/attribute, it makes sense to allow a value of "None" as a valid choice -- conveying ambivalence and deference to previously existing values. (True|False|None) would all be legal enabled attribute values in jsregistry.xml, each with distinct meaning. Products.ResourceRegistries.tools.JSRegistry.updateScript() conveniently skips modification on a keyword argument of enabled=None -- useful, but insufficient. I want to update the handler to treat the enabled="None" (or "none") as: (a) enabled=False [1] on initial import attempt, and (b) as enabled=None for JSRegistryTool.updateScript() [2]. Soon, I may try to implement this on respective Products.ResourceRegistries and plone.app.jquerytools branches. I will ping plone-developers for review once I do. Sean Notes: [1] AFAICT, one could safely store enabled=None on a Resource object (as the getEnabled() accessor casts to a bool), but this is likely an untested road to hell. I do not want to store "None" -- just use that word as a semantically distinct way to specify intent in jsregistry.xml in products like plone.app.jquerytools. [2] updateScript() method called from an except block when install fails (dupe/existing record): http://dev.plone.org/plone/browser/ResourceRegistries/trunk/Products/ResourceRegistries/exportimport/resourceregistry.py#L150 (alecm's comment for this block r10486: "this feels dirty too" -- yep). From torkel at reamedia.no Tue Aug 30 11:24:12 2011 From: torkel at reamedia.no (Torkel Lyng) Date: Tue, 30 Aug 2011 13:24:12 +0200 Subject: [Product-Developers] Custom traversal view? Message-ID: <2055F298-A7DF-4C27-8DBC-116F0E14E452@reamedia.no> I'm trying to add a view for IPloneSiteRoot that changes the default traversal. I'm absolutely not sure on how to do this, so perhaps I'm getting in totally wrong. What I am trying to achieve is something like this scenario: I want to enter "http://myhost/site/@@custom/further/down/the/path" in the browser, @@custom should look up an object and traverse 'further/down/the/path'. What I've down this far is creating a browser view with implements zone.traversing.interfaces.ITraversable (def traverse(self, name, further_path)). When my traverse method is called the name is set to 'absolute_url' and further path is nothing. I want to have custom stay in the traversal path for subsequent requests (it does different things with the request object), how can I achieve such behavior? From torkel at reamedia.no Tue Aug 30 11:47:27 2011 From: torkel at reamedia.no (Torkel Lyng) Date: Tue, 30 Aug 2011 13:47:27 +0200 Subject: [Product-Developers] Custom traversal view? In-Reply-To: <2055F298-A7DF-4C27-8DBC-116F0E14E452@reamedia.no> References: <2055F298-A7DF-4C27-8DBC-116F0E14E452@reamedia.no> Message-ID: <0D25644D-9B57-49D3-9A16-BFAFD30F393F@reamedia.no> On Aug 30, 2011, at 1:24 PM, Torkel Lyng wrote: > I'm trying to add a view for IPloneSiteRoot that changes the default traversal. I'm absolutely not sure on how to do this, so perhaps I'm getting in totally wrong. > > What I am trying to achieve is something like this scenario: > > I want to enter "http://myhost/site/@@custom/further/down/the/path" in the browser, @@custom should look up an object and traverse 'further/down/the/path'. What I've down > this far is creating a browser view with implements zone.traversing.interfaces.ITraversable (def traverse(self, name, further_path)). When my traverse method is called the > name is set to 'absolute_url' and further path is nothing. I want to have custom stay in the traversal path for subsequent requests (it does different things with the request object), > how can I achieve such behavior? > > _______________________________________________ > Product-Developers mailing list > Product-Developers at lists.plone.org > https://lists.plone.org/mailman/listinfo/plone-product-developers I found my way out of it ? using IPublishTraverse instead of ITraverse seems to give me a solution. From tommy.yu at auckland.ac.nz Tue Aug 30 23:49:54 2011 From: tommy.yu at auckland.ac.nz (Tommy Yu) Date: Wed, 31 Aug 2011 11:49:54 +1200 Subject: [Product-Developers] OAuth provider support in Plone via PAS add-on Message-ID: <4E5D7722.1000909@auckland.ac.nz> Greetings, Noting the lack of OAuth provider support within and around Plone (with the only references on this was something found on the Plone core developers list back in early 2008), I decided to get my hands dirty and wrote a PAS plug-in that provides authentication via OAuth. I don't know if the Plone core developers might be interested in this, so I thought the add-ons community might be a better place to throw this around. Anyway, I have put what I have so far available on github at: https://github.com/metatoaster/pmr2.oauth This is mostly created to demonstrate that OAuth can be added to Plone and be plugged into PAS. Still very new, thus lacking some vital features and is probably dangerous due to lack of scope limitation. Why? Once a valid access token is generated with the user's credentials and used to access resources in Plone, the full set of permissions that the user possess will be granted, which can result in bad things (TM). For the mean time please do not use it on your production sites, even if its danger may be mitigated by lack of usable UI to add any consumers (as if that's any consolation). I hope to make this safer to use by adding in scope such that the content owner will be notified on which set of URIs/service the consumer is permitted to access (and more test cases to back this up), and make this extensible/configurable so people who might want to build/provide web service type access to (customized) resources on Plone can be done with ease. Of course actually complete important features such that consumers can be added and allow users to revoke unwanted authenticated tokens with a couple simple clicks. Further information on what this can do right now (and intend to do) can be found in the readme file within the subdirectories and the test cases. If you have any comment/question/critique against this attempt to allow Plone to authenticate via OAuth please don't hesitate to reply. Regards, Tommy. From jonstahl at gmail.com Wed Aug 31 04:01:21 2011 From: jonstahl at gmail.com (Jon Stahl) Date: Tue, 30 Aug 2011 21:01:21 -0700 Subject: [Product-Developers] OAuth provider support in Plone via PAS add-on In-Reply-To: <4E5D7722.1000909@auckland.ac.nz> References: <4E5D7722.1000909@auckland.ac.nz> Message-ID: Hi Tommy! This sounds like it would be a fantastic add-on product for Plone! Thanks for tackling this. When you have it to a point where you think it's production-ready, please do package it up and create a listing for it at http://plone.org/products so that others can easily find it and install it via buildout! cheers, jon On Tue, Aug 30, 2011 at 4:49 PM, Tommy Yu wrote: > Greetings, > > Noting the lack of OAuth provider support within and around Plone (with the > only references on this was something found on the Plone core developers > list back in early 2008), I decided to get my hands dirty and wrote a PAS > plug-in that provides authentication via OAuth. ?I don't know if the Plone > core developers might be interested in this, so I thought the add-ons > community might be a better place to throw this around. ?Anyway, I have put > what I have so far available on github at: > > https://github.com/metatoaster/pmr2.oauth > > This is mostly created to demonstrate that OAuth can be added to Plone and > be plugged into PAS. ?Still very new, thus lacking some vital features and > is probably dangerous due to lack of scope limitation. ?Why? ?Once a valid > access token is generated with the user's credentials and used to access > resources in Plone, the full set of permissions that the user possess will > be granted, which can result in bad things (TM). ?For the mean time please > do not use it on your production sites, even if its danger may be mitigated > by lack of usable UI to add any consumers (as if that's any consolation). > > I hope to make this safer to use by adding in scope such that the content > owner will be notified on which set of URIs/service the consumer is > permitted to access (and more test cases to back this up), and make this > extensible/configurable so people who might want to build/provide web > service type access to (customized) resources on Plone can be done with > ease. ?Of course actually complete important features such that consumers > can be added and allow users to revoke unwanted authenticated tokens with a > couple simple clicks. > > Further information on what this can do right now (and intend to do) can be > found in the readme file within the subdirectories and the test cases. ?If > you have any comment/question/critique against this attempt to allow Plone > to authenticate via OAuth please don't hesitate to reply. > > Regards, > Tommy. > _______________________________________________ > Product-Developers mailing list > Product-Developers at lists.plone.org > https://lists.plone.org/mailman/listinfo/plone-product-developers >