Re: [Product-Developers] manage_delObjects() redirecting to deletion confirmation screen

2011-06-16 Thread Nathan Van Gheem
Might it be possible to just handle the exception being thrown? Isn't the
event fired after the item is deleted and having the exception raised and
unhandled causes the transaction to roll back.

On Thu, Jun 16, 2011 at 9:12 AM, Wichert Akkerman  wrote:

> On 06/16/2011 03:58 PM, Andreas Jung wrote:
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>>
>>
>> Giacomo Spettoli wrote:
>>
>>
>>  Hi,
>>>you could disable "link-integrity" check via python before using
>>> manage_delObjects and re-enable after job's done.
>>>
>> How would you do that? Afaik: the integrity checker is integrated
>> as an event subscriber. In Produce&  Publish I am using the deletion
>> API heavily for moving stuff around. Perhaps I should disable the
>> integrity checks in general for such sites...causing more problems than
>> it actually solves.
>>
>
> There is no way to disable it unfortunately, and since it's an event
> subscriber you can't even monkeypatch it away. The only approach I have
> found is using z3c.unconfigure to disable the whole thing globally.
>
> Wichert.
>
>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] pypi vs plone.org releases

2011-10-12 Thread Nathan Van Gheem
>
> >> I think Alex pretty much hits the nail on the head here.  In the short
> >> term, as I see it, the only sensible solution is to actively promote
> >> dual-releasing.  It is really really easy, I just think awareness is
> >> not as high as it needs to be.  That is probably best changed by
> >> one-on-one contact with product authors (and maybe a simple FAQ that
> >> Alex (?) could write up on how to do it, so that anybody can easily
> >> nag someone about this.)   We can't force people to do it, but we sure
> >> as heck can make it clear what "community best practice" is.
> >
> > Perhaps an inbetween step is to build a better nagger?
> > Something that iterates through all plone.org products and checks pypi
> to
> > see if there are later releases there that aren't on plone.org and then
> > emails the author each night to complain about their laziness? :)
> I am a huge fan of automated shame (TM).  :-)  Seriously.

-1
I'm definitely against this. Just because I don't want to advertise a
product that might be for plone on plone.org doesn't mean I should be
annoyed by an automatic email system. What about all the plone.* and
plone.app.* eggs that would be classified for plone but never should show up
on plone.org? This sort of thing would probably discourage people from
releasing at all anymore IMO.

I really don't care for this whole idea. I only release things on pypi
occasionally because I don't want to the greater plone community to ask for
a lot of support for the product.

Perhaps if we made releasing to plone.org less painful this whole issue
would disappear. For instance, it is frustrating to have to log into
plone.org, go to the release and specify which version of plone it's for and
a changelog every time I make a release--kind of reduces the effectiveness
of having jarn.mkrelease automate the process.

On Wed, Oct 12, 2011 at 11:50 PM, Jon Stahl  wrote:

> On Wed, Oct 12, 2011 at 9:17 PM, Dylan Jay  wrote:
>
> >> I think Alex pretty much hits the nail on the head here.  In the short
> >> term, as I see it, the only sensible solution is to actively promote
> >> dual-releasing.  It is really really easy, I just think awareness is
> >> not as high as it needs to be.  That is probably best changed by
> >> one-on-one contact with product authors (and maybe a simple FAQ that
> >> Alex (?) could write up on how to do it, so that anybody can easily
> >> nag someone about this.)   We can't force people to do it, but we sure
> >> as heck can make it clear what "community best practice" is.
> >
> > Perhaps an inbetween step is to build a better nagger?
> > Something that iterates through all plone.org products and checks pypi
> to
> > see if there are later releases there that aren't on plone.org and then
> > emails the author each night to complain about their laziness? :)
>
> I am a huge fan of automated shame (TM).  :-)  Seriously.
>
>
> >>
> >> In the longer term, I do think we want to seriously consider shifting
> >> Plone.org to be more of a selective Pypi scraper.  We'd have to think
> >> about how to best include the ultra-important Plone version
> >> compatibility metadata, but I assume that with so many smart folks
> >> running around, that is solveable.
> >
> > I think it would be shame to not allow releases to be stored on
> plone.org
> > but I think we could extend PSC to allow it to automatically mirror the
> > release from pypi or at least provide links to that release.
>
> +1.  I definitely think that "scraping" includes mirroring the eggs.
>
> :jon
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] pypi vs plone.org releases

2011-10-12 Thread Nathan Van Gheem
>
> My suggestion was reminders ONLY for products listed in both places. If
> you've never released it on plone.org then it's not going to do anything.
> In anycase we have no way of know if a pypi package is plone related or not.

Ahh, I figured we'd just use the classifiers.

On Thu, Oct 13, 2011 at 12:26 AM, Dylan Jay  wrote:

> On 13/10/2011, at 4:12 PM, Nathan Van Gheem wrote:
>
>  >> I think Alex pretty much hits the nail on the head here.  In the short
>> >> term, as I see it, the only sensible solution is to actively promote
>> >> dual-releasing.  It is really really easy, I just think awareness is
>> >> not as high as it needs to be.  That is probably best changed by
>> >> one-on-one contact with product authors (and maybe a simple FAQ that
>> >> Alex (?) could write up on how to do it, so that anybody can easily
>> >> nag someone about this.)   We can't force people to do it, but we sure
>> >> as heck can make it clear what "community best practice" is.
>> >
>> > Perhaps an inbetween step is to build a better nagger?
>> > Something that iterates through all plone.org products and checks pypi
>> to
>> > see if there are later releases there that aren't on plone.org and then
>> > emails the author each night to complain about their laziness? :)
>> I am a huge fan of automated shame (TM).  :-)  Seriously.
>> -1
>> I'm definitely against this. Just because I don't want to advertise a
>> product that might be for plone on plone.org doesn't mean I should be
>> annoyed by an automatic email system. What about all the plone.* and
>> plone.app.* eggs that would be classified for plone but never should show up
>> on plone.org? This sort of thing would probably discourage people from
>> releasing at all anymore IMO.
>>
>> I really don't care for this whole idea. I only release things on pypi
>> occasionally because I don't want to the greater plone community to ask for
>> a lot of support for the product.
>>
>> Perhaps if we made releasing to plone.org less painful this whole issue
>> would disappear. For instance, it is frustrating to have to log into
>> plone.org, go to the release and specify which version of plone it's for
>> and a changelog every time I make a release--kind of reduces the
>> effectiveness of having jarn.mkrelease automate the process.
>>
>
> My suggestion was reminders ONLY for products listed in both places. If
> you've never released it on plone.org then it's not going to do anything.
> In anycase we have no way of know if a pypi package is plone related or not.
>
>
>
>
>> On Wed, Oct 12, 2011 at 11:50 PM, Jon Stahl  wrote:
>> On Wed, Oct 12, 2011 at 9:17 PM, Dylan Jay  wrote:
>>
>> >> I think Alex pretty much hits the nail on the head here.  In the short
>> >> term, as I see it, the only sensible solution is to actively promote
>> >> dual-releasing.  It is really really easy, I just think awareness is
>> >> not as high as it needs to be.  That is probably best changed by
>> >> one-on-one contact with product authors (and maybe a simple FAQ that
>> >> Alex (?) could write up on how to do it, so that anybody can easily
>> >> nag someone about this.)   We can't force people to do it, but we sure
>> >> as heck can make it clear what "community best practice" is.
>> >
>> > Perhaps an inbetween step is to build a better nagger?
>> > Something that iterates through all plone.org products and checks pypi
>> to
>> > see if there are later releases there that aren't on plone.org and then
>> > emails the author each night to complain about their laziness? :)
>>
>> I am a huge fan of automated shame (TM).  :-)  Seriously.
>>
>>
>> >>
>> >> In the longer term, I do think we want to seriously consider shifting
>> >> Plone.org to be more of a selective Pypi scraper.  We'd have to think
>> >> about how to best include the ultra-important Plone version
>> >> compatibility metadata, but I assume that with so many smart folks
>> >> running around, that is solveable.
>> >
>> > I think it would be shame to not allow releases to be stored on
>> plone.org
>> > but I think we could extend PSC to allow it to automatically mirror the
>> > release from pypi or at least provide links to that release.
>>
>> +1.  I definitely think that "scraping" includes mirroring the eggs.
>>
>> :jon
>> __**_
>> Product-Developers mailing list
>> Product-Developers@lists.**plone.org 
>> https://lists.plone.org/**mailman/listinfo/plone-**product-developers<https://lists.plone.org/mailman/listinfo/plone-product-developers>
>>
>>
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] PloneIDE

2011-10-14 Thread Nathan Van Gheem
Fwiw, I have a hotel with 2 beds that you could share no charge--then all we
would need to do is raise some funds for the plane ticket.

On Oct 14, 2011 12:43 AM, "Franco Pellegrini"  wrote:

> On Fri, Oct 14, 2011 at 1:14 AM, Jean Jordaan 
> wrote:
> >>> Are you coming to Plone conference?
> >>
> >> Mmm... i don't think so... i would like to, but i'm a bit short in cash
> :P
> >
> > Hey Franco --- I bought a conference ticket but I can't go any more
> > :-( If it's possible to transfer tickets, you can have mine, if that
> > will enable you to go.
> >
> > eleddy, is something like this possible?
> >
> > Regards,
> > --
> > jean  . ..  //\\\oo///\\
>
> Hi Jean, thank you very very much, it's really generous of you, but
> the thing is I'm from Argentina, so when i meant "short in cash", i
> was referring to plane tickets, hotel, expenses, etc... :P
>
> Again, thank you very much for your offer, i hope i can meet you guys next
> year.
>
> Kind regards,
> Franco
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] PloneIDE

2011-10-14 Thread Nathan Van Gheem
>
> Sorry, but some of us are stuck with Windows servers.  I run about 15
> different Plone sites, and all but a couple are on Linux, but
> occasionally the customer insists on Windows.  Unless the product
> works with Windows, I don't see it as a solution - and if I need to be
> using different products for one site from all the rest, I'll find
> another solution.

This is a development tool--something you'd never put on a production
machine.

If these are limitations of Windows and python's implementation on Windows,
there is not much we can do about it.

On Thu, Oct 13, 2011 at 7:26 PM, derek  wrote:

> On Oct 13, 7:16 am, Mikko Ohtamaa 
> wrote:
> >
> > On Thu, Oct 13, 2011 at 1:10 PM, Tom Gross  wrote:
> > > AFIAK plone.reload works on Windows and supports Python < 2.6, which
> > > sauna.reload doesn't at the moment.
>
> But surely _Plone _ doesn't support python < 2.6 at this point (ie,
> Plone4.0+) so how is that a drawback for inclusion in the current
> Plone?
>
> > Hmm - this is true. Windows lacks proper fork():
> >
> > http://stackoverflow.com/questions/23397/whats-the-best-way-to-duplic...
> >
> > which is the core trick of fast-booting Plone.
> >
> > On Windows it is possible to fallback restarting the whole Plone stack
> > with some little optimizations, but I am not sure whether anyone would
> > be willing to work with such a slow monster.
>
> Sorry, but some of us are stuck with Windows servers.  I run about 15
> different Plone sites, and all but a couple are on Linux, but
> occasionally the customer insists on Windows.  Unless the product
> works with Windows, I don't see it as a solution - and if I need to be
> using different products for one site from all the rest, I'll find
> another solution.
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] PloneIDE

2011-10-14 Thread Nathan Van Gheem
>
> Sorry, but some of us are stuck with Windows servers.  I run about 15
>>
>> different Plone sites, and all but a couple are on Linux, but
>> occasionally the customer insists on Windows.  Unless the product
>> works with Windows, I don't see it as a solution - and if I need to be
>> using different products for one site from all the rest, I'll find
>> another solution.
>> This is a development tool--something you'd never put on a production
>> machine.
>> Jeez, that's the second time I've got this sort of stupid response.
>> I KNOW that.  Every single one of my production servers have corresponding
>> test instances.  Don't yours?  Why not?
>>
>> Sure, but I'd still NEVER do development on a test server. I'm sorry if
you thought my response was stupid, but I still stand by my comment.

On Fri, Oct 14, 2011 at 5:16 PM, Derek Broughton wrote:

> On Fri, Oct 14, 2011 at 12:05 PM, Nathan Van Gheem wrote:
>
>>  Sorry, but some of us are stuck with Windows servers.  I run about 15
>>> different Plone sites, and all but a couple are on Linux, but
>>> occasionally the customer insists on Windows.  Unless the product
>>> works with Windows, I don't see it as a solution - and if I need to be
>>> using different products for one site from all the rest, I'll find
>>> another solution.
>>
>> This is a development tool--something you'd never put on a production
>> machine.
>>
>> Jeez, that's the second time I've got this sort of stupid response.
>
> I KNOW that.  Every single one of my production servers have corresponding
> test instances.  Don't yours?  Why not?
>
> If these are limitations of Windows and python's implementation on Windows,
>> there is not much we can do about it
>>
>
> Sure there is - we can stick to tools that work on all platforms.
>  plone.reload works.  maybe sauna.reload works better (in some cases), but
> I'll take "good enough in all instances" over "best in some cases".
> --
> derek
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] how to enable Global Allow in code?

2011-12-01 Thread Nathan Van Gheem
I think you can work around the allowable type checks. Not positive this
works, but give something like this a try:

pt = getToolByName(portal, 'portal_types')
type_info = pt.getTypeInfo('MyPortalType')
ob = type_info._constructInstance(portal, id)


On Thu, Dec 1, 2011 at 9:47 AM, Maarten Nieber  wrote:

> Hi,
>
> in my test, I would like to temporarily enable Global Allow for my content
> type,
> so that I can directly instantiate it with invokeFactory (otherwise, I
> would
> have to first instantiate a whole bunch of other content types that are
> unrelated to my test).
>
> In the pdb debugger, I can get access to getSite()['portal_types'], and I
> assume
> that somewhere inside this object I can change the Global Allow setting
> for my
> content type.
>
> Does anyone know where I should look further?
>
> Thanks!
> Maarten
>
>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] JQueryUI history and futur and sunburst's !important

2011-12-02 Thread Nathan Van Gheem
Hi Jean-Michel,

Thanks for initiating more discussion.

At the San Fran plone conference we actually had a lot of this discussion
on using jqueryui. Basically, we agreed that we need to start supporting it
but how we do it wasn't quite worked out yet. We're still all really turned
off by the themeroller stuff and how tied it is to it. Additionally, we
have to identify where we'd need it even in plone core. One thing that
jqueryui does very well is drag and drop.

So is this possible to work on sunburst to make free of !important and more
> friendly with others CSS like jqueryUI one

I don't think there is necessarily any technical reason for all the
!important statements. Someone just needs to fix it

We are on 1.4.4. I will asking if someone would upgrade to 1.7

Yikes, yah, we need to upgrade.

As for plone's widget situation, it turns out jqueryui's widgets aren't
really that good(at least IMO). Alexander limi and I(mostly Alex) have
started looking at improving plone's widgets. Alex started a google doc to
find the best of bread widgets:
https://docs.google.com/spreadsheet/ccc?key=0Ala3ew8gFf2-dEU4TmtoLUJPbUJIR2dzdDdQaUtEZUE#gid=0

I started a couple projects to start implementing some of this:

https://github.com/plone/plone.widgets
https://github.com/plone/plone.app.widgets

I would like to start a collective.z3cform.jqueryui to work on a set of
> z3cform widgets where we will be able to have calendar & autocomplete.

Perhaps you could take a look at what I have done thus far with
plone.app.widgets. It's using the chosen widget which is very nice. For our
date widgets, I'd like to see a hybrid between http://datejs.com/ and a
conventional date selector but we're still working that stuff out.

We'd very much appreciate help and more feedback. We're trying to schedule
mid-day on Fridays(US timezones here) to work on it together so if you're
around in IRC maybe we can work on it together.


-Nathan

On Fri, Dec 2, 2011 at 4:31 AM, Jean-Michel FRANCOIS wrote:

> Hi Plone developpers,
>
> This post is related to sunburst and jqueryui
>
> Looking at new addons I have found collective.jqueryui.autocomplete
>
> http://svn.plone.org/svn/collective/collective.jqueryui.autocomplete/trunk/collective/jqueryui/autocomplete/
> This one just registering jqueryui into Plone (yet another one). I have
> contacted the author to ask why he is not using c.js.jqueryui.
>
> We are many developers to maintain c.js.jqueryui and I would like to
> discuss its futur.
>
> I would like to start a collective.z3cform.jqueryui to work on a set of
> z3cform widgets where we will be able to have calendar & autocomplete.
>
> I have already done a theme manager (collective.jqueryuithememanager) that
> let you load a bunch of theme in one click in the backoffice, but sunburst
> and its !important stuff are quite boring and make it doesn't play well
> with others existing CSS stuff. You have to know c.js.jqueryui add an other
> CSS and some patch to work with sunburst. And I should do this one dynamic
> but I don't want ...
>
> So is this possible to work on sunburst to make free of !important and
> more friendly with others CSS like jqueryUI one ? I'm not a CSS guru and
> some feedback on this will be really appreciated.
>
> Another let say issue is jquery version:
> https://github.com/plone/Products.CMFPlone/blob/master/Products/CMFPlone/skins/plone_3rdParty/jquery.js
> We are on 1.4.4. I will asking if someone would upgrade to 1.7. New jquery
> plugins as started to depreciate older version like jquerymobile 1.0 who
> support only 1.7.
> I guess this need a plip so it will make a post on coredev first.
>
> If you have any request regarding jqueryui in plone, it's time.
>
> Regards / Cordialement,
> JeanMichel FRANCOIS
> Find me on Google + 
>
>
>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] JQueryUI history and futur and sunburst's !important

2011-12-02 Thread Nathan Van Gheem
>
> So what is not working on plone3.3 ? could you sumup the situation please ?

I don't think nested files in browser resources work with 3.3's version of
portal registries. ie ++resource++jquery-ui-themes/sunburst/jqueryui.css

On Fri, Dec 2, 2011 at 8:01 AM, Jean-Michel FRANCOIS wrote:

> Why not make it work with Plone3.3 ? I would be glade to integrate patches
> but you don't have asked for it. Ask to Nathan, he is the creator of
> collective.javascript.jqueryui and we had many discussion before improving
> c.js.jqueryui to make him happy with it.
>
> Working together and make bug report is the way. I have been quite critics
> on the private email to you but not here. so sorry if you are not happy
> with this but effort to make jqueryui integration in Plone should be done
> with many people. I must admit I never read the documentation, only the
> code. So I know exactly what your addon is doing and why you have done it.
>
> So what is not working on plone3.3 ? could you sumup the situation please ?
>
> Regards / Cordialement,
> JeanMichel FRANCOIS
> Find me on Google + 
>
>
>
>
> 2011/12/2 Luca Fabbri 
>
>> On Fri, Dec 2, 2011 at 11:31 AM, Jean-Michel FRANCOIS 
>> wrote:
>> > Hi Plone developpers,
>> >
>> > This post is related to sunburst and jqueryui
>> >
>> > Looking at new addons I have found collective.jqueryui.autocomplete
>> >
>> http://svn.plone.org/svn/collective/collective.jqueryui.autocomplete/trunk/collective/jqueryui/autocomplete/
>> > This one just registering jqueryui into Plone (yet another one). I have
>> > contacted the author to ask why he is not using c.js.jqueryui.
>>
>> As you wrote you criticism (also) there, let me reply to you there:
>> what's the problem?
>>
>> collective.js.jqueryui doesn't works well on Plone 3.3. Or better: it
>> works but only using an old version of the product (1.7.x) that don't
>> include the autocomplete plugin (that I need, on Plone 3.3).
>>
>> I don't get the problem having similar packages when differences are
>> well documented. For example: I prefer collective.javascript.jqueryui
>> instead of using collective.js.jqueryui. Both packages
>> (collective.jqueryui.autocomplete and collective.javascript.jqueryui)
>> are well documented, so a developer that read the page can understand
>> when install it and when not.
>>
>> --
>> -- luca
>>
>> twitter: http://twitter.com/keul
>> linkedin: http://linkedin.com/in/lucafbb
>> blog: http://blog.keul.it/
>>
>
>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] What are the requirements to get an upgrade button in the Add/Remove Products panel

2011-12-02 Thread Nathan Van Gheem
I think this depends on what version of Plone you're running. What are you
working with?

On Fri, Dec 2, 2011 at 8:40 AM, derek  wrote:

> I was under the impression that Plone would show an "Upgrade" button
> for any product whose installed metadata version was < the metadata
> version on the filesystem, and for which there was a Generic Setup
> upgrade step whose "source" and "destination" tags matched: ie,
> upgrade steps that would be shown automatically in /portal_setup/
> manage_upgrades.
>
> Unfortunately, I have never yet got Plone to show me that button, and
> I always have to go to the portal_setup tool.  So what else is needed
> for Plone to recognize that I have an update available?
> --
> derek
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] What are the requirements to get an upgrade button in the Add/Remove Products panel

2011-12-05 Thread Nathan Van Gheem
Derek,

Specifying the source and destination profile versions in the upgrade step
that corresponds to past and present versions defined in the metadata.xml
file is the correct way to do it so something else must be wrong.

Perhaps you could show us some of your source code so we can see if there
is something that you overlooked?

On Mon, Dec 5, 2011 at 8:24 AM, Derek Broughton wrote:

> On Mon, Dec 5, 2011 at 6:29 AM, Jean-Michel FRANCOIS wrote:
>
>> I have asking this to be sure your upgradestep was working, it is a
>> requirement to get the button.
>>
>
> As I've said, repeatedly, I can perform the upgrade through the
> portal_setup tool.  What I wanted to know is what else is needed to  make
> Plone's Add/Remove products panel recognize that there's an upgrade.  We
> really don't want our site admins to have to use the ZMI.  Interestingly,
> you only just upgraded the documentation to say that the version numbers
> should be integers (and they weren't in the previous version) and it says
> _nothing_ about upgrades using the Plone control panel - only using
> portal_setup!
>
> Next, matching setup profile version == package version also mean every
>> release need an upgrade step.
>
>
> Nobody suggested that the relationship needs to be reflexive.  Plone's own
> numbering system isn't sequential (or at least wasn't until after 4.0a -
> perhaps it is now).  There isn't, and doesn't have to be, a profile version
> for every package version.   Whether you use integers or strings, the
> profile version can skip values used in the package version.
>
> I know I don't want that. And how do you manage people who are using
>> trunk/master ? But it's quite off topic.
>>
>
> It's a topic you introduced. Unfortunately I'm not sure I have a clue what
> you mean, but it's probably related to:
>
>
>> I guess AGX respect Plone3, so it doesn't add metadata.xml. you should
>> add it by yourself.
>>
>
> You'd guess wrong.  It _does_ create the metadata.xml file (while
> certainly respecting Plone 3 & 4) - which is why I would rather not bother
> with integer values unless I have to.  AGX creates a version tag
> like 1.0-rc3.725, where 1.0-rc3 is carried over from the
> prior version of the file and 725 is my svn commit number.  It looks like
> whatever I put in metadata.xml, the result will be a three part
> dot-separated value.
>
> > I can't immediately figure out what release version of Plone that would
>> have been.
>> Yoy should not care about this, just care about what happens to my data.
>>
>
> That's like saying "never mind what it does, just apply this security
> patch"!  Of _course_ admins should care what version of a package installs
> various modifications to the system.  Especially, because so many upgrades
> are only described as "general upgrade step" or something similar.
> --
> derek
>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] How attached to POI issue trackers are we?

2012-02-08 Thread Nathan Van Gheem
I still use them but would rather not. If you put a deprecation date up,
it'd help force me to more more of my packages to github and startup the
tracker there also.

+1 for github hosted. Very nice to have it coupled with the code repo.

On Wed, Feb 8, 2012 at 1:42 PM, Jon Stahl  wrote:

> Hi all-
>
> A hypothetical question for all of you add-on product developers out
> there...
>
> I am doing some high-level thinking (which I will be sharing soon)
> about the future architecture for add-on product data in plone.org,
> and one question that's occurred to me is whether we are at a point
> where we can deprecate our POI issue trackers in favor of
> externally-hosted issue trackers, such as those provided by Github.
>
> Is anybody on this list still actively using their POI/PSC issue
> tracker on plone.org?  If we were to set a "deprecation date" with,
> say, a couple months' notice, would that pose a major hardship?
>
> I'd love to hear your thoughts.  To repeat: no decisions have been
> made, I'm just floating a trial balloon.
>
> :jon
> ---
> Jon Stahl
> MPA Candidate, Evans School of Public Affairs
> University of Washington
> http://jstahl.org
> 206.226.0818
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] How attached to POI issue trackers are we?

2012-02-08 Thread Nathan Van Gheem
I wouldn't need them exported. We could just close them to new submissions
for a period before completely shutting em down.

On Wed, Feb 8, 2012 at 9:57 PM, Jon Stahl  wrote:

> On Wed, Feb 8, 2012 at 4:41 PM, derek  wrote:
> > On Feb 8, 3:48 pm, Nathan Van Gheem  wrote:
> >> I still use them but would rather not. If you put a deprecation date up,
> >> it'd help force me to more more of my packages to github and startup the
> >> tracker there also.
> >>
> >> +1 for github hosted. Very nice to have it coupled with the code repo.
> >
> > Yeah, I've happily used POI for years, but I'll even more happily use
> > github.  I have no attachment to POI (though I thank the authors for
> > the use I've had).
>
> Thanks, Derek and Nathan.   A follow-up, if I may... if POI trackers
> were gracefully deprecated, would you need to be able to get an export
> of tickets or are there few enough that you could deal with it
> manually?
>
> :jon
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] How attached to POI issue trackers are we?

2012-02-08 Thread Nathan Van Gheem
Maybe we just always keep them read-only then.

On Wed, Feb 8, 2012 at 11:35 PM, T Kim Nguyen  wrote:

> What about the history we would be losing?  Or bugs that have been
> lingering, still unclosed?
>
> I know I'm not a power coder but I still use Poi.
>
> How many products have not yet been moved to github, and how many Pois are
> still actively in use would seem to be questions we could get real answers
> to based on traffic logs, no?
>
> Kim
>
>
> On Feb 8, 2012, at 10:58 PM, Nathan Van Gheem  wrote:
>
> I wouldn't need them exported. We could just close them to new submissions
> for a period before completely shutting em down.
>
> On Wed, Feb 8, 2012 at 9:57 PM, Jon Stahl  wrote:
>
>> On Wed, Feb 8, 2012 at 4:41 PM, derek  wrote:
>> > On Feb 8, 3:48 pm, Nathan Van Gheem  wrote:
>> >> I still use them but would rather not. If you put a deprecation date
>> up,
>> >> it'd help force me to more more of my packages to github and startup
>> the
>> >> tracker there also.
>> >>
>> >> +1 for github hosted. Very nice to have it coupled with the code repo.
>> >
>> > Yeah, I've happily used POI for years, but I'll even more happily use
>> > github.  I have no attachment to POI (though I thank the authors for
>> > the use I've had).
>>
>> Thanks, Derek and Nathan.   A follow-up, if I may... if POI trackers
>> were gracefully deprecated, would you need to be able to get an export
>> of tickets or are there few enough that you could deal with it
>> manually?
>>
>> :jon
>> ___
>> Product-Developers mailing list
>> product-develop...@lists.plone.org
>> https://lists.plone.org/mailman/listinfo/plone-product-developers
>>
>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] ImageWidget: atapi.ImageField vs plone.app.blob.field.ImageField

2012-03-19 Thread Nathan Van Gheem
Did you re-upload the image? Changing storage without migration will
mean the field no longer knows where the image is most likely.

On Mon, Mar 19, 2012 at 7:32 AM, Christian Ledermann
 wrote:
> Hello,
>
> if I define an image for my contenttype as:
>
>    atapi.ImageField('logo_image',
>        max_size = (64,64),
>        widget=atapi.ImageWidget(label=_(u'Logo'),
>                        description=_(u'The organizations logo'),
>                    ),
>    ),
>
> everything is fine.
> However when i define it as recommended in
> http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-3-x-to-4.0/updating-add-on-products-for-plone-4.0/use-plone.app.blob-based-blob-storage
>
> from plone.app.blob.field import ImageField
> ...
>
>    ImageField('logo_image',
>        max_size = (64,64),
>        widget=atapi.ImageWidget(label=_(u'Logo'),
>                        description=_(u'The organizations logo'),
>                    ),
>    ),
>
>
> The widget will not display the image widget and the image is not
> accessible at the
> url context/absolute_url/logo_image
>
> any pointers?
>
>
> --
> 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.
>
> }<(((*>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] cannot remove workflow state, it seems

2012-03-25 Thread Nathan Van Gheem
Perhaps you need to add the removed="True" or purge="True" attributes
to the workflow def to remove old definitions like you do for other
things in GS.

On Fri, Mar 23, 2012 at 8:04 AM, Maarten Nieber  wrote:
> Hi Gil,
>
>> A first pointer should be the collective docs:
>> http://collective-docs.plone.org/en/latest/content/workflow.html
>> Also if you remove some states, you should ensure that no content is
>
> Unfortunately, removing states is not discussed there. Thanks for the tip,
> indeed i removed the obsolete state from all my documents.
>
>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] Shoutout to Nathan Van Gheem for collective.documentviewer

2012-04-22 Thread Nathan Van Gheem
Thanks for your kinds words John.

Some things are still a little rough around the edges so please file
any tickets on github if you find any problems.


-Nathan

On Mon, Apr 23, 2012 at 12:23 AM, Jon Stahl  wrote:
> I just wanted to give Nathan Van Gheem a public, on-the-record
> shoutout for the stone cold awesomeness that is
> collective.documentviewer.
>
> http://pypi.python.org/pypi/collective.documentviewer/
>
> If you have a Plone site with PDFs (or lots of Word or Powerpoint
> files) in it, then you owe it to yourself to check this out.  It
> integrates the *astounding* pure-javascript document viewer from
> DocumentCloud (http://documentcloud.org)--used by the New York Times
> and hundreds of other media outlets--into Plone, along with
> async-enabled document conversion and OCR.
>
> Seriously, this is kick-ass stuff.  I couldn't imagine doing an
> intranet or document library project without it from now on.*
>
> Thanks, Nathan!
>
> :jon
>
> *Full disclosure: I've not used it in production.  Yet.
> ---
> Jon Stahl
> http://jstahl.org
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] Shoutout to Nathan Van Gheem for collective.documentviewer

2012-04-23 Thread Nathan Van Gheem
On the pypi page there is a link of an example viewer so you can see
how it works.

This viewer will not do the 2 page layout by default. It's all
js/html/css though so perhaps you can customize the layout if you're
up for the task.

You might want to look at http://issuu.com/

I think espen started working on some integration with that. I think
you have to store the data on their site though and it's a flash
player.


On Mon, Apr 23, 2012 at 3:04 AM, Dylan Jay  wrote:
> On 23/04/2012, at 3:23 PM, Jon Stahl wrote:
>
>> I just wanted to give Nathan Van Gheem a public, on-the-record
>> shoutout for the stone cold awesomeness that is
>> collective.documentviewer.
>>
>> http://pypi.python.org/pypi/collective.documentviewer/
>>
>> If you have a Plone site with PDFs (or lots of Word or Powerpoint
>> files) in it, then you owe it to yourself to check this out.  It
>> integrates the *astounding* pure-javascript document viewer from
>> DocumentCloud (http://documentcloud.org)--used by the New York Times
>> and hundreds of other media outlets--into Plone, along with
>> async-enabled document conversion and OCR.
>>
>> Seriously, this is kick-ass stuff.  I couldn't imagine doing an
>> intranet or document library project without it from now on.*
>
>
> Hi,
>
> It's not obvious from the pypi page how configurable the viewer is. One
> requirement we have is a two page book style layout for brochure type
> documents. Does anyone know if this or something similar can do that?
>
>
>>
>> Thanks, Nathan!
>>
>> :jon
>>
>> *Full disclosure: I've not used it in production.  Yet.
>> ---
>> Jon Stahl
>> http://jstahl.org
>> ___
>> Product-Developers mailing list
>> product-develop...@lists.plone.org
>> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] Huge problems with Forms ---> CheckBoxWidget

2012-05-15 Thread Nathan Van Gheem
Isn't the default bool widget a checkbox anyway? Why would you need to
override it?

On Tue, May 15, 2012 at 2:07 PM, Héctor Velarde wrote:

> On 16/02/12 13:17, vii wrote:
>
>> Can somebody please send me a link to a working tutorial for this or send
>> me
>> a link to a product that uses a checkbox in one of its forms? Please help
>> me: I'm completely down with my nerves :-(
>>
>
> try this one, Viktor: http://collective-docs.**readthedocs.org/en/latest/*
> *forms/z3c.form.html
>
> Héctor Velarde
>
>
>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] know folderish types

2012-05-28 Thread Nathan Van Gheem
You can do something like this, but it's probably not an operation
you'll want to perform often. This is pseudo code...

import transaction
import random
from Products.CMFCore.interfaces._content import IFolderish
site = app.Plone
portal_types = site.portal_types
savepoint = transaction.savepoint()
folder_types = []
for type_info in portal_types.objectValues():
  ob = type_info._constructInstance(site, str(random.randint())
  if IFolderish.providedBy(ob):
folder_types.append(ob.portal_type)
savepoint.rollback()


The reason this is difficult is because portal_types doesn't register
an actually class for the object to be constructed--it only registers
a factory method.

This all might be little silly though. Default plone ships with only a
couple folder types--only 1 the user uses(Folder). Anything extra is
likely to be custom so you should know what the folderish types are
from that.


On Mon, May 28, 2012 at 8:21 AM, Alejandro Pereira
 wrote:
>> Use IFolderish.providedBy(aq_base(context)) or
>> aq_base(context).isPrincipiaFolderish attribute on the item from
>> *unrestricted) Python and portal_interface tool from everywhere else
>> to check against IFolderish.
>
>
> This methods are util if context is an object of some folderish content
> type. This is not what i
> look for. The reason of that is because maybe the site where the code is
> running doesn't
> have objects yet of some folderish types. What i'm looking for is, in this
> case how do you know
> what types are folderish? what methodology will be useful to know this if
> you haven't yet
> create objects of all your folderish types?
>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] at schemaextender not working right with portal factory

2012-09-14 Thread Nathan Van Gheem
When do you add the interface to the instance? It must not be getting added
to the portal_factory instance.

On Fri, Sep 14, 2012 at 6:17 AM, Petri Savolainen
wrote:

> On 12 September 2012 19:55, ajung  wrote:
>
>> at.schemaextender is known to work without issues with or
>> without portal_factory.
>>
>
> Well I guess I might come up with the exception proving the rule then ;/
> Thanks for confirming there are no known issues.
>
> Let me rephrase, just to avoid any unintended ambiguity: I am trying to
> extend content per-instance: the marker interface is assigned to the
> instance run-time, right after the instance is created. So this is not
> about the usual (?) way, ie. type-wide extension configured statically,
> which I've found to work perfectly, as well.
>
> Here's what I did to recreate the issue (ie. initial AT edit form not
> including schema extension when portal factory is used):
>
> Using a clean plone 4.2.1 buildout (latest OSX w/python 2.7), empty
> egg-cache and a simple zope/plone package with paster, I dropped this
> simplified 'extension.py' python module 
>  and configure.zcml  inside the pkg to hook
> things up so that any ATEvents created will be schema-extended as soon as
> they are created.
>
> Which again works fine, except that with portal factory, the initial edit
> form does not include the added field ("Cost"). Subsequent edit forms again
> do, as they should.
>
> I'd appreciate if someone could take a look & try it out.
>
> Thanks,
>
>  Petri
>
>
>
>
>
>
>> Petri Savolainen wrote
>> >
>> > Hello,
>> >
>> > I have an add-on whereby ATEvents are atschema-extended only if they are
>> > created inside a folder with a particular interface. This is done by
>> > listening for the ATEvent creation event and then checking the parent in
>> > the event handler.
>> >
>> > This works fine when portal factory is not used, but with it, the
>> initial
>> > AT creation/edit form gets rendered using the original schema, not the
>> > extended one. Upon subsequent edits of the new instance, the schema is
>> > there and everything works as it should.
>> >
>> > Any advice would be appreciated. I took a look at the FactoryTool,
>> > BaseObject and Schema sources already, but got pretty much nowhere, nor
>> > did
>> > Google find anything about this.
>> >
>> > Thanks,
>> >
>> >  Petri
>> >
>> > ___
>> > Product-Developers mailing list
>> > Product-Developers@.plone
>> > https://lists.plone.org/mailman/listinfo/plone-product-developers
>> >
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://plone.293351.n2.nabble.com/at-schemaextender-not-working-right-with-portal-factory-tp7558931p7558950.html
>> Sent from the Product Developers mailing list archive at Nabble.com.
>> ___
>> Product-Developers mailing list
>> product-develop...@lists.plone.org
>> https://lists.plone.org/mailman/listinfo/plone-product-developers
>>
>
>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] New style collections: migration, sub collections?

2012-11-01 Thread Nathan Van Gheem
On Thu, Nov 1, 2012 at 1:38 PM, Alex Clark  wrote:

> On 2012-11-01 17:29:20 +, Maurits van Rees said:
>
>  Hi,
>>
>> A few quick questions about the new style collections in Plone 4.2, to
>> check that I understand them correctly.
>>
>> Unless I have missed something, old style collections are not migrated
>> to new style when migrating to Plone 4.2.  Does someone have code that
>> would do that?  Perhaps an add-on that I missed?  If not, then I might
>> want to create a package for that.
>>
>
>
> There is no code that I am aware of
>
>
>
>
>> Sub collections are not possible in the new style.  I guess this is
>> because the UI and the logic can quickly get confusing and you do not
>> win much over creating a second, separate collection.
>>
>> I am guessing that creating a folderish version of the new style
>> collections should work though, allowing you to nest them.  Some logic
>> would be needed that looks for a parent collection and combine the two
>> queries.  That may not be good for Plone core, but are there technical
>> reasons why this would not be possible?
>>
>
>
> Don't know about technical reasons, but what are the use cases for "sub
> collections"?
>
There's already a branch for this:
https://github.com/plone/plone.app.collection/tree/2.x-folderish-collection

I don't recall the current status or discussion for this being merged to
core.
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] Multiple Plone sites: single-sign-on using mod_auth_tkt

2012-11-26 Thread Nathan Van Gheem
Yes, go to each instance and set the shared secret in acl_users/session for
each plone site.

Are all the sites on the same domain? If not, you'll have to fiddle with
the properties tab of acl_users/session--the cookie domain value(*.
mydomain.com or just "*" will work too I think).


On Mon, Nov 26, 2012 at 2:23 AM, Marco Celotti wrote:

> Hi, I have several plone sites with the same list of users (and passwords
> of course), now I'd like to create a SSO using apache mod_auth_tkt.
> Is there any howto / documentation for the configuration? I followed these
> instructions:
>
> http://stackoverflow.com/questions/5215004/plone-cgi-single-sign-on-using-mod-auth-tkt
>
> But it doesn't work (and I have no errors on apache log)
>
> Thank you, Marco
>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] Plone 4.3 compatibility for plone.org products (was Plone 4.2 compatibility for plone.org products)

2013-01-14 Thread Nathan Van Gheem
IMO, the query just needs to change to show all 4.x compatible products
right now. Not all authors update their products to show they're compatible
with every version. The list of products is then pretty sparse compared to
what is actually available.

More of problem, I've updated my products for 4.2 and listed the
compatibility and most of them still aren't shown here.

That whole product page has always been trouble and a marketing problem for
plone. We need to show more and all the better products--that is definitely
not happening right now. PloneFormGen isn't even listed!


On Mon, Jan 14, 2013 at 12:49 PM, David Glick (Plone)  wrote:

> On 1/14/13 4:16 AM, Luca Fabbri wrote:
>
>> On Tue, Jan 8, 2013 at 9:28 PM, Alex Clark  wrote:
>>
>>> On 2013-01-06 20:13:46 +, Jean Jordaan said:
>>>
>>>  Hi Luca,

  Where is the code of the PSC used by plone.org?
>

 If you start from 
 https://github.com/plone/**Products.PloneOrg
 you should find it.

>>>
>>> Yes you can help, please help! :-)
>>>
>>>  I started watching at this in the W.E: I'm not 100% sure I'm using the
>> right branch.
>> In this template
>> (https://github.com/plone/**Products.PloneOrg/blob/master/**
>> src/Products/PloneOrg/skins/**ploneorg/psc_view_ploneorg.pt
>> )
>> I get errors for the old-style usage of toLocalizedTime.
>>
>> Anyone can confirm this?
>>
>
> I just checked in portal_skins on plone.org, and it's actually using the
> copy of psc_view_ploneorg from PloneSoftwareCenter, not the one in PloneOrg.
>
>
>  Meanwhile: can I also try to implement my old suggestion from the
>> discussion "Releases on plone.org/products page" (in two word:
>> changing the plone.org/products page dropdown default to "most rated"
>> to "recently updated")?
>>
>>  +0. The downside to that is that is makes it easier to game the system
> to make your product show up more, by making frequent releases.
>
> __**_
> Product-Developers mailing list
> Product-Developers@lists.**plone.org 
> https://lists.plone.org/**mailman/listinfo/plone-**product-developers
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] Plone 4.3 compatibility for plone.org products (was Plone 4.2 compatibility for plone.org products)

2013-01-14 Thread Nathan Van Gheem
Example: https://plone.org/products/collective.easyslider

20 likes, plone 4.2 compatible, should be on first page of results for
https://plone.org/products but it's not listed...


On Mon, Jan 14, 2013 at 12:56 PM, Nathan Van Gheem wrote:

> IMO, the query just needs to change to show all 4.x compatible products
> right now. Not all authors update their products to show they're compatible
> with every version. The list of products is then pretty sparse compared to
> what is actually available.
>
> More of problem, I've updated my products for 4.2 and listed the
> compatibility and most of them still aren't shown here.
>
> That whole product page has always been trouble and a marketing problem
> for plone. We need to show more and all the better products--that is
> definitely not happening right now. PloneFormGen isn't even listed!
>
>
> On Mon, Jan 14, 2013 at 12:49 PM, David Glick (Plone) <
> david.gl...@plone.org> wrote:
>
>> On 1/14/13 4:16 AM, Luca Fabbri wrote:
>>
>>> On Tue, Jan 8, 2013 at 9:28 PM, Alex Clark  wrote:
>>>
>>>> On 2013-01-06 20:13:46 +, Jean Jordaan said:
>>>>
>>>>  Hi Luca,
>>>>>
>>>>>  Where is the code of the PSC used by plone.org?
>>>>>>
>>>>>
>>>>> If you start from 
>>>>> https://github.com/plone/**Products.PloneOrg<https://github.com/plone/Products.PloneOrg>
>>>>> you should find it.
>>>>>
>>>>
>>>> Yes you can help, please help! :-)
>>>>
>>>>  I started watching at this in the W.E: I'm not 100% sure I'm using the
>>> right branch.
>>> In this template
>>> (https://github.com/plone/**Products.PloneOrg/blob/master/**
>>> src/Products/PloneOrg/skins/**ploneorg/psc_view_ploneorg.pt<https://github.com/plone/Products.PloneOrg/blob/master/src/Products/PloneOrg/skins/ploneorg/psc_view_ploneorg.pt>
>>> )
>>> I get errors for the old-style usage of toLocalizedTime.
>>>
>>> Anyone can confirm this?
>>>
>>
>> I just checked in portal_skins on plone.org, and it's actually using the
>> copy of psc_view_ploneorg from PloneSoftwareCenter, not the one in PloneOrg.
>>
>>
>>  Meanwhile: can I also try to implement my old suggestion from the
>>> discussion "Releases on plone.org/products page" (in two word:
>>> changing the plone.org/products page dropdown default to "most rated"
>>> to "recently updated")?
>>>
>>>  +0. The downside to that is that is makes it easier to game the system
>> to make your product show up more, by making frequent releases.
>>
>> __**_
>> Product-Developers mailing list
>> Product-Developers@lists.**plone.org 
>> https://lists.plone.org/**mailman/listinfo/plone-**product-developers<https://lists.plone.org/mailman/listinfo/plone-product-developers>
>>
>
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] Any clue on setting the value for an OrderedSelectWidget in a functional test?

2013-02-21 Thread Nathan Van Gheem
Hi,

The plone developers list is meant for plone core development. Your
question is best asked on stackoverflow or the plone users list. Also, the
field definition seems to be missing from your email.


On Thu, Feb 21, 2013 at 3:37 AM, oggers  wrote:

> Hi,
>
> I'm trying to write a functional test for a plone form that has an
> OrderedSelectWidget and I can't figure out how to set this.
>
> This is my code in tests.py:
>
>
>
> In this case I try to set the value to all available shop objects.
> available_shops returns a SimpleVocabulary
>
> And this is the field definition:
>
>
>
>
>
>
> --
> View this message in context:
> http://plone.293351.n2.nabble.com/Any-clue-on-setting-the-value-for-an-OrderedSelectWidget-in-a-functional-test-tp7563395.html
> Sent from the Product Developers mailing list archive at Nabble.com.
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] Announcing collective.ebook

2013-02-22 Thread Nathan Van Gheem
Very cool.

FWIW, we use https://github.com/vangheem/princexmlserver to convert docs
with prince on remote servers.


On Fri, Feb 22, 2013 at 5:12 AM, Malthe Borch  wrote:

> This is an add-on that lets you present a dynatree [1] to allow a
> visitor to select subtrees of content to have formatted as a published
> article:
>
> https://github.com/collective/collective.ebook
>
> Basically it works like a clickable, expandable site map. It's
> light-weight because each level is loaded asynchronously.
>
> It currently assumes a software such as PrinceXML [2] that transforms
> HTML into PDF.
>
> The add-on comes with integration into `plone.resourceeditor` [3] such
> that templates can be edited TTW.
>
> If you've got a license for PrinceXML, this is an easy way to take
> your existing Plone content and publish it as PDF, letting the
> visitors themselves decide what content to publish and get a very
> professional result.
>
> SSH is supported out-of-the-box such that you can use a PrinceXML
> executable which is installed on a different machine.
>
> Note that the user interface is currently in Danish (!) – get in touch
> if you're interested and need help translating it into English or
> another language.
>
> [1] http://code.google.com/p/dynatree/ (configured with asynchronous
> loading)
> [2] http://www.princexml.com/ (not free – actually rather expensive)
> [3] https://github.com/plone/plone.resourceeditor (uses the ACE
> browser-based source editor)
> --
>
> Malthe Borch
> mbo...@gmail.com
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] Export site / backup from control panel

2013-03-13 Thread Nathan Van Gheem
You could plip it!

I actually don't like the maintenance-controlpanel, shutdown and pack zope
TTW, NOT a good idea IMO.


On Wed, Mar 13, 2013 at 6:40 AM, Espen Moe-Nilssen wrote:

> Could it be an idea that /@@maintenance-controlpanel also had an option to
> export the site as zexp ?
>
> (a simple way of taking backup)
>
>
> Espen
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] including zope.i18n as dependency causes ConfigurationConflictError

2013-03-25 Thread Nathan Van Gheem
FWIW, declaring all dependencies can be frustrating for those trying to use
products still with plone 3 since plone 3 uses fake eggs.

If you already depend on Products.CMFPlone or just Plone, isn't that enough
since that already depends on those other packages?


On Mon, Mar 25, 2013 at 9:51 AM, Héctor Velarde wrote:

> with the upcoming release of Plone 4.3 I've been trying to declare all
> dependencies of our add ons on their setup.py file.
>
> I'm having a weird conflicting configuration actions for utility
> zope.i18n.interfaces.**INegotiator when I include zope.i18n, as it was
> the case for collective.z3cform.widgets:
>
> http://pastie.org/7111489
> https://github.com/collective/**collective.z3cform.widgets/**
> blob/master/setup.py#L61
>
> does anybody knows how to get rid of this?
>
> best regards!
> --
> Héctor Velarde
>
>
>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] anyone interested in moving PloneGetPaid to git?

2013-04-01 Thread Nathan Van Gheem
Hi Eric,

I'm not sure who is maintaining that any longer. I think it'd be great for
to move it and it's complimentary packages over to the collective.

I believe a lot of people still use it so someone giving the package some
love could help out a lot of people.


Thanks,
Nathan


On Mon, Apr 1, 2013 at 3:53 PM, Eric Tyrer  wrote:

>  Hi
>
>  Our institution is using Plone Get Paid  on
> a Plone 3 Box but i want to get it onto Plone 4.1+ so that my setup is
> current with our production site.
>
>  i've made some fixes to a few of the 
> products
>  so
> that they function in Plone 4.1+ and it would be nice probably if anyone
> else who wants to use the packages to not to bothered fixing them to..
>
>  would it make sense for the project owners to move it to collective? not
> sure how important this add-on is to others but I run 10 ecom sites with it
> at the college.
>
>  Regards
>
>  Eric
> -
> Eric S. Tyrer II
> Associate Director – Web Systems
>
> York College - The City University of New York
> http://www.york.cuny.edu
> 94-20 Guy R. Brewer Blvd.
> Academic Core - STE 1H14
> Jamaica, NY 11451
>
> http://www.york.cuny.edu/etyrer
> ety...@york.cuny.edu
>
> (P) 718-262-2466
> (C) 347-393-6507
>
> I have no special talent. I am only passionately curious. - Albert Einstein
>
>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] KSS removal / workflow menu

2013-05-17 Thread Nathan Van Gheem
On Fri, May 17, 2013 at 11:47 AM, David Glick (Plone)  wrote:

> On 5/17/13 9:32 AM, Sean Upton wrote:
>
>> So KSS changeWorflowState and its wicked assumptions have broken [1,2]
>> two add-ons I have developed, enough so that I feel highly motivated
>> to get my packages updated to work on Plone 4.3 (on 4.2.x now).
>>
>> Does 4.3 implement an XMLHTTPRequest-based state-change mechanism for
>> the workflow menu actions, or does this merely use simple page loads?
>>
>> Sean
>>
>> [1] Do not use worklists with KSS installed.
>>  
>> https://dev.plone.org/ticket/**13510
>>
>> [2] >>> assert setSite(NON_SITE) === 'evil'
>>  
>> https://teamspace.upiq.org/**trac/ticket/410
>>
>>  As far as I can recall we didn't try to replicate the feature of
> changing the workflow state without reloading the page. It's probably not
> hard to do in jQuery if you need it.

I think the reason we left it out is because it ended up being a confusing
feature. Changing workflow state can affect navigation(top and portlets) so
you pretty much need a full page load anyways.

To see what we backported, check out:
https://github.com/plone/Products.CMFPlone/blob/4.3.x/Products/CMFPlone/skins/plone_ecmascript/kss-bbb.js

I also think some of the rules went into popupforms.js
functionality(overlays), plone.app.content and plone.app.portlets. Might be
missing some others...

It should be very simple to implement this with jquery on your own if you
miss the functionality. It's unfortunate that we never managed to document
the change.


>
> __**_
> Product-Developers mailing list
> Product-Developers@lists.**plone.org 
> https://lists.plone.org/**mailman/listinfo/plone-**product-developers
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] KSS removal / workflow menu

2013-05-20 Thread Nathan Van Gheem
If you notice, that is what the commit did.


On Mon, May 20, 2013 at 2:17 AM, Yuri  wrote:

> Il 17/05/2013 18:57, Nathan Van Gheem ha scritto:
>
>
>> To see what we backported, check out: https://github.com/plone/**
>> Products.CMFPlone/blob/4.3.x/**Products/CMFPlone/skins/plone_**
>> ecmascript/kss-bbb.js<https://github.com/plone/Products.CMFPlone/blob/4.3.x/Products/CMFPlone/skins/plone_ecmascript/kss-bbb.js>
>>
>>
> while you're at it, can you fix the lines with
>
> success: updateSharing, (lines 111 and 127)
>
> removing the last comma? This is a fix for IE7 that returns a javascript
> error on the last comma, which is useless anyway.
>
> __**_
> Product-Developers mailing list
> Product-Developers@lists.**plone.org 
> https://lists.plone.org/**mailman/listinfo/plone-**product-developers<https://lists.plone.org/mailman/listinfo/plone-product-developers>
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] Generating the Dexterity boilerplate for Plone 4.3

2013-05-25 Thread Nathan Van Gheem
Yes, this is embarrassing. Ideally this would be fixed before eric releases
4.3.1.

Could we get some issues in the trackers?


On Sat, May 25, 2013 at 8:04 AM, Mikko Ohtamaa <
mikko+pl...@redinnovation.com> wrote:

> They don't.
>
>
>
>
> On 25 May 2013 14:40, ajung  wrote:
>
>> Rant continuing
>>
>> Even the Dexterity documentation is outdated for Plone 4.3
>>
>>
>> http://dexterity-developer-manual.readthedocs.org/en/latest/schema-driven-types.html
>>
>> How should a n00b start with Plone 4.3 and Dexterity without outdated
>> documentation?
>>
>> -aj
>>
>>
>>
>> ajung wrote
>> > Hi there,
>> >
>> > I am slightly annoyed with Dexterity under Plone 4.3.
>> >
>> > In the old days of Archetypes and Plone 4.x I could
>> > easily generate policy packages and the content-type
>> > boilerplate code easily and in a reliable way  using
>> > Paster + Zopeskel - perfect world.
>> >
>> > Now with Plone 4.3 and Dexterity everything feels
>> > like a big mess - from the integrators prospective.
>> >
>> > The official way for generating the boilerplate code
>> > seems(?!) to be https://pypi.python.org/pypi/templer.plone.
>> >
>> > First: this package generates code with grok dependencies
>> > that do not work on Plone 4.3 (I wrote an earlier email
>> > about this problem) - can be easily fixed.
>> >
>> > Second: generating a new content-type using templer
>> > generated code that seems to be incompatible with Plone 4.3
>> > (e.g.  an import to plone.directives which seems to
>> > have been refactored into plone.directives.dexterity ...
>> > and so on).
>> >
>> > Now I tried using the same with Plone 4.2 and the generated
>> > code is also not working on Plone 4.2 So what is this
>> > Templer stuff about? Causing trouble and frustration?
>> >
>> > Now tried it the hard-core way and tried to look up the Dexterity
>> > documentation and checked
>> >
>> > https://pypi.python.org/pypi/plone.app.dexterity#documentation
>> >
>> > All three links inside the Dexterity documentation section on PyPI
>> > lead to abandoned pagesgreat...I am pissed.
>> >
>> >
>> > Once again: having elementary functionality for integrators
>> > not working is bad for Plone. Yes, I can fix this all myself
>> > if I had time and interest but here is the chicken-egg problem:
>> > we have various other options available nowadays building
>> > CMS and web application without Plone. And as an integrator
>> > I do have some basic expectations to the framework. Basic
>> > things must just work.
>> >
>> >
>> > Andreas
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://plone.293351.n2.nabble.com/pissed-Generating-the-Dexterity-boilerplate-for-Plone-4-3-pissed-tp7565313p7565320.html
>> Sent from the Product Developers mailing list archive at Nabble.com.
>> ___
>> Product-Developers mailing list
>> product-develop...@lists.plone.org
>> https://lists.plone.org/mailman/listinfo/plone-product-developers
>>
>
>
>
> --
> Mikko Ohtamaa
> http://opensourcehacker.com
> http://twitter.com/moo9000
>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] Generating the Dexterity boilerplate for Plone 4.3

2013-05-25 Thread Nathan Van Gheem
What is shipped with the installer and referenced in the docs? I assume
it's still zopeskel?


On Sat, May 25, 2013 at 10:44 AM, ajung  wrote:

> Work-in-progress here translates to broken-and-unusable.
>
> Stuff like Templer or Zopeskel 3.X that actually never worked you have
> never
> been published.
>
> It wastes our time or causes lots of trouble and frustration - bad for
> people *trying*
> to use Plone.  The developer experience right now is a mess.
>
> -aj
>
>
> Steve McMahon wrote
> > Templer is a work in progress. Until it is further along, ZopeSkel is the
> > stable solution. ZopeSkel works with 4.3, and zopeskel.dexterity has been
> > updated for 4.3.
> >
> > On Fri, May 24, 2013 at 10:14 PM, ajung <
>
> > lists@
>
> > > wrote:
> >
> >> ...
> >> The official way for generating the boilerplate code
> >> seems(?!) to be https://pypi.python.org/pypi/templer.plone.
> >> ...
> >>
> >
> > ___
> > Product-Developers mailing list
>
> > Product-Developers@.plone
>
> > https://lists.plone.org/mailman/listinfo/plone-product-developers
>
>
>
>
>
> --
> View this message in context:
> http://plone.293351.n2.nabble.com/pissed-Generating-the-Dexterity-boilerplate-for-Plone-4-3-pissed-tp7565313p7565330.html
> Sent from the Product Developers mailing list archive at Nabble.com.
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] Persistent broken five.intid.intid.IntIds after Plone 4.2 -> 4.3 migration

2013-05-26 Thread Nathan Van Gheem
http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.2-to-4.3/referencemanual-all-pages


On Sun, May 26, 2013 at 10:32 AM, Andreas Jung  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Thanks.
>
> Do we have troubleshoting section in the documentation related to
> upgrade problems?
>
> Andreas
>
> David Glick wrote:
> > As documented in the upgrade guide and Dexterity release notes you
> > must install plone.app.dexterity with the [relations] extra if
> > upgrading to Dexterity 2. This is unfortunate but was necessary since
> > no one has committed to maintaining the relation support, so it
> > couldn't be submitted to be in core.
> >
> > David Glick (mobile)
> >
> > On May 26, 2013, at 6:30 AM, Andreas Jung  wrote:
> >
> > Plone 4.3:
> >
> > calling
> >
> > img.target.to_object
> >
> > fails for all referenced objects of a Plone site migrated from Plone
> > 4.2.X to Plone 4.3
> >
> >
> >
> >
> /home/plone/.buildout/eggs/z3c.relationfield-0.6.2-py2.7.egg/z3c/relationfield/relation.py(111)_object()
> >
> >
> >
> > -> try: (Pdb) list 106  def _object(id): 107  if id is
> > None: 108  return None 109  intids =
> > component.getUtility(IIntIds) 110  import pdb;
> > pdb.set_trace() 111  ->try: 112  return
> > intids.getObject(id) 113  except KeyError: 114  #
> > XXX catching this error is not the right thing to do. 115
> > # instead, breaking a relation by removing an object should 116
> > # be caught and the relation should be adjusted that way.
> >
> > (Pdb) print intids  > instance '\x00\x00\x00\x00\x00\x04\x9e\xb8'>
> >
> > (Pdb) intids.getObject(id) *** AttributeError: getObject
> >
> > Why do we have broken five.intid here?
> >
> > -aj
> >>  ___
> >> Product-Developers mailing list product-develop...@lists.plone.org
> >> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
> - --
> ZOPYX Limited | Python | Zope | Plone | MongoDB
> Hundskapfklinge 33| Consulting & Development
> D-72074 Tübingen  | Electronic Publishing Solutions
> www.zopyx.com | Scalable Web Solutions
> - --
> Produce & Publish - www.produce-and-publish.com
>
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQGUBAEBAgAGBQJRoir6AAoJEADcfz7u4AZj9YkLv0Pb1SJxCM4dqztxsphlNdel
> 3NR4Un5laF1HqdZjPT9/YrGgzNHwJJDZzBXYi3BU2FfA1j/yD4l7mG9/u7I41LiA
> 1QrEqs2RsCY8Sk5KUcZKK97ewcnqwMmrjEmw4Q23lERbp9j3uYWc1A+1ehLGT3Dy
> HDG+SKKp104UmY38QpAKBL7IYQfz/MT+ECwr44f1NS+C0CQoYqML4gnyxj9o1WIM
> 1gByNakTUU89MfCU6VhD7sBmHE37FgPjO1TPbpCVnkjd8bF5noaqapK3ChfarxtU
> dHZJmJ0B7U90eyyAsjqF5RUB6LPYe6P8wQocGdlGaSc5Q2LjQvZMxhZVfpH+/jZ7
> 9ph23vMvJZ+6gqps4Pq0rJx+8i3JgbywwhFNAhHKr70QjIuAlxHiN+5kjvNbKPud
> IgqM9TMMak2eyLxEMBDgPA0/23gYWd33zIWUCgTKT11HN/lOXORXTTb+Nj4T+cTL
> geHegrEAwTIdwcT984QGmAquW1gxjTI=
> =1Coc
> -END PGP SIGNATURE-
>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] Persistent broken five.intid.intid.IntIds after Plone 4.2 -> 4.3 migration

2013-05-26 Thread Nathan Van Gheem
On Sun, May 26, 2013 at 12:12 PM, ajung  wrote:

> This is not a troubleshooting section where one can find help based on
> subtle
> error messages.
> The documentation does not give a direct from error to error resolution.
> If there are no objections I will add the related traceback and error
> information to the docs here.
>
+1


>
> -aj
>
>
> Nathan Van Gheem wrote
> >
> http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.2-to-4.3/referencemanual-all-pages
> >
> >
> > On Sun, May 26, 2013 at 10:32 AM, Andreas Jung <
>
> > lists@
>
> > > wrote:
> >
> >> -BEGIN PGP SIGNED MESSAGE-
> >> Hash: SHA1
> >>
> >> Thanks.
> >>
> >> Do we have troubleshoting section in the documentation related to
> >> upgrade problems?
> >>
> >> Andreas
> >>
> >> David Glick wrote:
> >> > As documented in the upgrade guide and Dexterity release notes you
> >> > must install plone.app.dexterity with the [relations] extra if
> >> > upgrading to Dexterity 2. This is unfortunate but was necessary since
> >> > no one has committed to maintaining the relation support, so it
> >> > couldn't be submitted to be in core.
> >> >
> >> > David Glick (mobile)
> >> >
> >> > On May 26, 2013, at 6:30 AM, Andreas Jung <
>
> > lists@
>
> > > wrote:
> >> >
> >> > Plone 4.3:
> >> >
> >> > calling
> >> >
> >> > img.target.to_object
> >> >
> >> > fails for all referenced objects of a Plone site migrated from Plone
> >> > 4.2.X to Plone 4.3
> >> >
> >> >
> >> >
> >> >
> >>
> /home/plone/.buildout/eggs/z3c.relationfield-0.6.2-py2.7.egg/z3c/relationfield/relation.py(111)_object()
> >> >
> >> >
> >> >
> >> > -> try: (Pdb) list 106  def _object(id): 107  if id is
> >> > None: 108  return None 109  intids =
> >> > component.getUtility(IIntIds) 110  import pdb;
> >> > pdb.set_trace() 111  ->try: 112  return
> >> > intids.getObject(id) 113  except KeyError: 114  #
> >> > XXX catching this error is not the right thing to do. 115
> >> > # instead, breaking a relation by removing an object should 116
> >> > # be caught and the relation should be adjusted that way.
> >> >
> >> > (Pdb) print intids
> >  >>
> >  > instance '\x00\x00\x00\x00\x00\x04\x9e\xb8'>
> >> >
> >> > (Pdb) intids.getObject(id) *** AttributeError: getObject
> >> >
> >> > Why do we have broken five.intid here?
> >> >
> >> > -aj
> >> >>
> > 
> >  ___
> >> >> Product-Developers mailing list
>
> > Product-Developers@.plone
>
> >> >> https://lists.plone.org/mailman/listinfo/plone-product-developers
> >>
> >> - --
> >> ZOPYX Limited | Python | Zope | Plone | MongoDB
> >> Hundskapfklinge 33| Consulting & Development
> >> D-72074 Tübingen  | Electronic Publishing Solutions
> >> www.zopyx.com | Scalable Web Solutions
> >> - --
> >> Produce & Publish - www.produce-and-publish.com
> >>
> >>
> >> -BEGIN PGP SIGNATURE-
> >> Version: GnuPG v1.4.11 (Darwin)
> >> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> >>
> >> iQGUBAEBAgAGBQJRoir6AAoJEADcfz7u4AZj9YkLv0Pb1SJxCM4dqztxsphlNdel
> >> 3NR4Un5laF1HqdZjPT9/YrGgzNHwJJDZzBXYi3BU2FfA1j/yD4l7mG9/u7I41LiA
> >> 1QrEqs2RsCY8Sk5KUcZKK97ewcnqwMmrjEmw4Q23lERbp9j3uYWc1A+1ehLGT3Dy
> >> HDG+SKKp104UmY38QpAKBL7IYQfz/MT+ECwr44f1NS+C0CQoYqML4gnyxj9o1WIM
> >> 1gByNakTUU89MfCU6VhD7sBmHE37FgPjO1TPbpCVnkjd8bF5noaqapK3ChfarxtU
> >> dHZJmJ0B7U90eyyAsjqF5RUB6LPYe6P8wQocGdlGaSc5Q2LjQvZMxhZVfpH+/jZ7
> >> 9ph23vMvJZ+6gqps4Pq0rJx+8i3JgbywwhFNAhHKr70QjIuAlxHiN+5kjvNbKPud
> >> IgqM9TMMak2eyLxEMBDgPA0/23gYWd33zIWUCgTKT11HN/lOXORXTTb+Nj4T+cTL
> >> geHegrEAwTIdwcT984QGmAquW1gxjTI=
> >> =1Coc
> >> -END PGP SIGNATURE-
> >>
> >> ___
> >> Product-Developers mailing list
> >>
>
> > Product-Developers@.plone
>
> >> https://lists.plone.org/mailman/listinfo/plone-product-developers
> >>
> >>
> >
> > ___
> > Product-Developers mailing list
>
> > Product-Developers@.plone
>
> > https://lists.plone.org/mailman/listinfo/plone-product-developers
>
>
>
>
>
> --
> View this message in context:
> http://plone.293351.n2.nabble.com/Persistent-broken-five-intid-intid-IntIds-after-Plone-4-2-4-3-migration-tp7565368p7565373.html
> Sent from the Product Developers mailing list archive at Nabble.com.
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] Persistent broken five.intid.intid.IntIds after Plone 4.2 -> 4.3 migration

2013-05-26 Thread Nathan Van Gheem
Working for me. No problems.


On Sun, May 26, 2013 at 12:48 PM, Andreas Jung  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Sorry but even plone.org is fucked up.
>
> I tried to edit
>
>
> http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.2-to-4.3/dexterity-optional-extras/edit
>
> This gives me an empty editor area and JS failures.
>
> - -aj
>
> Nathan Van Gheem wrote:
> >
> >
> >
> > On Sun, May 26, 2013 at 12:12 PM, ajung  > <mailto:li...@zopyx.com>> wrote:
> >
> > This is not a troubleshooting section where one can find help based
> > on subtle error messages. The documentation does not give a direct
> > from error to error resolution. If there are no objections I will add
> > the related traceback and error information to the docs here.
> >
> > +1
> >
> >
> >
> > -aj
> >
> >
> > Nathan Van Gheem wrote
> >>
> >
> http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.2-to-4.3/referencemanual-all-pages
> >
> >
> >
> >>
> >> On Sun, May 26, 2013 at 10:32 AM, Andreas Jung <
> >
> >> lists@
> >
> >> > wrote:
> >>
> > Thanks.
> >
> > Do we have troubleshoting section in the documentation related to
> > upgrade problems?
> >
> > Andreas
> >
> > David Glick wrote:
> >> As documented in the upgrade guide and Dexterity release notes you
> >> must install plone.app.dexterity with the [relations] extra if
> >> upgrading to Dexterity 2. This is unfortunate but was necessary
> >> since no one has committed to maintaining the relation support, so
> >> it couldn't be submitted to be in core.
> >
> >> David Glick (mobile)
> >
> >> On May 26, 2013, at 6:30 AM, Andreas Jung <
> >
> >>> lists@
> >
> >>> > wrote:
> >
> >> Plone 4.3:
> >
> >> calling
> >
> >> img.target.to_object
> >
> >> fails for all referenced objects of a Plone site migrated from
> >> Plone 4.2.X to Plone 4.3
> >
> >
> >
> >
> >
> >>
> /home/plone/.buildout/eggs/z3c.relationfield-0.6.2-py2.7.egg/z3c/relationfield/relation.py(111)_object()
> >
> >>
> >
> >
> >> -> try: (Pdb) list 106  def _object(id): 107  if id is
> >> None: 108  return None 109  intids =
> >> component.getUtility(IIntIds) 110  import pdb;
> >> pdb.set_trace() 111  ->try: 112  return
> >> intids.getObject(id) 113  except KeyError: 114 # XXX
> >> catching this error is not the right thing to do. 115 # instead,
> >> breaking a relation by removing an object should 116 # be caught
> >> and the relation should be adjusted that way.
> >
> >> (Pdb) print intids
> >>>  >
> >>>> instance '\x00\x00\x00\x00\x00\x04\x9e\xb8'>
> >
> >> (Pdb) intids.getObject(id) *** AttributeError: getObject
> >
> >> Why do we have broken five.intid here?
> >
> >> -aj
> >>>
> >>>  ___
> >>> Product-Developers mailing list
> >
> >>> Product-Developers@.plone
> >
> >>> https://lists.plone.org/mailman/listinfo/plone-product-developers
> >
> >>>
> >>>
> >>> ___
> >>> Product-Developers mailing list
> >>>
> >
> >> Product-Developers@.plone
> >
> >>> https://lists.plone.org/mailman/listinfo/plone-product-developers
> >
> >>>
> >>
> >>>
> >>
> >> ___ Product-Developers
> >> mailing list
> >
> >> Product-Developers@.plone
> >
> >> https://lists.plone.org/mailman/listinfo/plone-product-developers
> >
> >
> >
> >
> >
> > -- View this message in context:
> >
> http://plone.293351.n2.nabble.com/Persistent-broken-five-intid-intid-IntIds-after-Plone-4-2-4-3-migration-tp7565368p7565373.html
> >
> >
> Sent from the Product Developers mailing list archive at Nabble.com.
> > ___ Product-Developers
> > mailing list product-develop...@lists.plone.org
> > <mailto:product-develop...@lists.plone.org>
> > https://lists.plone.org/mailman/lis

Re: [Product-Developers] Persistent broken five.intid.intid.IntIds after Plone 4.2 -> 4.3 migration

2013-05-26 Thread Nathan Van Gheem
Can anybody else confirm? I changed the js include for search.js to not be
included on all pages, search the search page; however, that was not
causing tinymce to fail loading for me.

The first error in the screen grab console I can't reproduce.


On Sun, May 26, 2013 at 12:56 PM, Andreas Jung  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Not working for me - neither with Chrome nor with Firefox.
>
> http://s14.directupload.net/file/d/3267/y8myh4zu_png.htm
> - -aj
>
> Nathan Van Gheem wrote:
> > Working for me. No problems.
> >
> >
> > On Sun, May 26, 2013 at 12:48 PM, Andreas Jung  > <mailto:li...@zopyx.com>> wrote:
> >
> > Sorry but even plone.org <http://plone.org> is fucked up.
> >
> > I tried to edit
> >
> >
> http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.2-to-4.3/dexterity-optional-extras/edit
> >
> >  This gives me an empty editor area and JS failures.
> >
> > -aj
> >
> > Nathan Van Gheem wrote:
> >
> >
> >
> >> On Sun, May 26, 2013 at 12:12 PM, ajung  > <mailto:li...@zopyx.com>
> >> <mailto:li...@zopyx.com <mailto:li...@zopyx.com>>> wrote:
> >
> >> This is not a troubleshooting section where one can find help
> >> based on subtle error messages. The documentation does not give a
> >> direct from error to error resolution. If there are no objections I
> >> will add the related traceback and error information to the docs
> >> here.
> >
> >> +1
> >
> >
> >
> >> -aj
> >
> >
> >> Nathan Van Gheem wrote
> >>>
> >
> >
> http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.2-to-4.3/referencemanual-all-pages
> >
> >
> >
> >
> >>>
> >>> On Sun, May 26, 2013 at 10:32 AM, Andreas Jung <
> >
> >>> lists@
> >
> >>> > wrote:
> >>>
> >> Thanks.
> >
> >> Do we have troubleshoting section in the documentation related to
> >> upgrade problems?
> >
> >> Andreas
> >
> >> David Glick wrote:
> >>> As documented in the upgrade guide and Dexterity release notes
> >>> you must install plone.app.dexterity with the [relations] extra
> >>> if upgrading to Dexterity 2. This is unfortunate but was
> >>> necessary since no one has committed to maintaining the relation
> >>> support, so it couldn't be submitted to be in core.
> >
> >>> David Glick (mobile)
> >
> >>> On May 26, 2013, at 6:30 AM, Andreas Jung <
> >
> >>>> lists@
> >
> >>>> > wrote:
> >
> >>> Plone 4.3:
> >
> >>> calling
> >
> >>> img.target.to_object
> >
> >>> fails for all referenced objects of a Plone site migrated from
> >>> Plone 4.2.X to Plone 4.3
> >
> >
> >
> >
> >
> >>>
> >
> /home/plone/.buildout/eggs/z3c.relationfield-0.6.2-py2.7.egg/z3c/relationfield/relation.py(111)_object()
> >
> >
> >>>
> >
> >
> >>> -> try: (Pdb) list 106  def _object(id): 107  if id
> >>> is None: 108  return None 109  intids =
> >>> component.getUtility(IIntIds) 110  import pdb;
> >>> pdb.set_trace() 111  ->try: 112  return
> >>> intids.getObject(id) 113  except KeyError: 114 # XXX
> >>> catching this error is not the right thing to do. 115 # instead,
> >>> breaking a relation by removing an object should 116 # be caught
> >>> and the relation should be adjusted that way.
> >
> >>> (Pdb) print intids
> >>>>  >
> >>>>> instance '\x00\x00\x00\x00\x00\x04\x9e\xb8'>
> >
> >>> (Pdb) intids.getObject(id) *** AttributeError: getObject
> >
> >>> Why do we have broken five.intid here?
> >
> >>> -aj
> >>>>
> >>>>  ___
> >>>> Product-Developers mailing list
> >
> >>>> Product-Developers@.plone
> >
> >>>> https://lists.plone.org/mailman/listinfo/plone-product-developers
> >
> >>>>
> >>>>
> >>>>
> >>>> ___
> >>>> Product-Developers mailing list
> >

Re: [Product-Developers] Persistent broken five.intid.intid.IntIds after Plone 4.2 -> 4.3 migration

2013-05-26 Thread Nathan Van Gheem
Meh, last message is waiting approval because I put an attachment on it...

Hopefully this doesn't get repeated:

Sorry, I can't really help. Not able to reproduce. I don't even see any JS
on line 487 of the document so I don't know what's going on. What actual js
is it erroring on?

Why don't you try suppressing tinymce until someone that can help:
http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.2-to-4.3/dexterity-optional-extras/atct_edit?tinymce.suppress=text


On Sun, May 26, 2013 at 1:09 PM, Nathan Van Gheem wrote:

> Sorry, I can't really help. Not able to reproduce. I don't even see any JS
> on line 487 of the document so I don't know what's going on. What actual js
> is it erroring on?
>
> Why don't you try editing suppressing tinymce until someone that can :
> http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.2-to-4.3/dexterity-optional-extras/atct_edit?tinymce.suppress=text
>
>
> On Sun, May 26, 2013 at 1:01 PM, Andreas Jung  wrote:
>
>> The problem with addEventHandler remains.
>>
>> -aj
>>
>> Nathan Van Gheem wrote:
>> > Can anybody else confirm? I changed the js include for search.js to
>> > not be included on all pages, search the search page; however, that
>> > was not causing tinymce to fail loading for me.
>> >
>> > The first error in the screen grab console I can't reproduce.
>> >
>> >
>> > On Sun, May 26, 2013 at 12:56 PM, Andreas Jung > > <mailto:li...@zopyx.com>> wrote:
>> >
>> > -----BEGIN PGP SIGNED MESSAGE-
>> > Hash: SHA1
>> >
>> > Not working for me - neither with Chrome nor with Firefox.
>> >
>> > http://s14.directupload.net/file/d/3267/y8myh4zu_png.htm
>> > - -aj
>> >
>> > Nathan Van Gheem wrote:
>> > > Working for me. No problems.
>> > >
>> > >
>> > > On Sun, May 26, 2013 at 12:48 PM, Andreas Jung > > <mailto:li...@zopyx.com>
>> > > <mailto:li...@zopyx.com <mailto:li...@zopyx.com>>> wrote:
>> > >
>> >     > Sorry but even plone.org <http://plone.org> <http://plone.org>
>> > is fucked up.
>> > >
>> > > I tried to edit
>> > >
>> > >
>> >
>> http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.2-to-4.3/dexterity-optional-extras/edit
>> > >
>> > >  This gives me an empty editor area and JS failures.
>> > >
>> > > -aj
>> > >
>> > > Nathan Van Gheem wrote:
>> > >
>> > >
>> > >
>> > >> On Sun, May 26, 2013 at 12:12 PM, ajung > > <mailto:li...@zopyx.com>
>> > > <mailto:li...@zopyx.com <mailto:li...@zopyx.com>>
>> > >> <mailto:li...@zopyx.com <mailto:li...@zopyx.com>
>> > <mailto:li...@zopyx.com <mailto:li...@zopyx.com>>>> wrote:
>> > >
>> > >> This is not a troubleshooting section where one can find help
>> > >> based on subtle error messages. The documentation does not give a
>> > >> direct from error to error resolution. If there are no
>> objections I
>> > >> will add the related traceback and error information to the docs
>> > >> here.
>> > >
>> > >> +1
>> > >
>> > >
>> > >
>> > >> -aj
>> > >
>> > >
>> > >> Nathan Van Gheem wrote
>> > >>>
>> > >
>> > >
>> >
>> http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.2-to-4.3/referencemanual-all-pages
>> > >
>> > >
>> > >
>> > >
>> > >>>
>> > >>> On Sun, May 26, 2013 at 10:32 AM, Andreas Jung <
>> > >
>> > >>> lists@
>> > >
>> > >>> > wrote:
>> > >>>
>> > >> Thanks.
>> > >
>> > >> Do we have troubleshoting section in the documentation related to
>> > >> upgrade problems?
>> > >
>> > >> Andreas
>> > >
>> > >> David Glick wrote:

Re: [Product-Developers] Persistent broken five.intid.intid.IntIds after Plone 4.2 -> 4.3 migration

2013-05-26 Thread Nathan Van Gheem
Alright, well, I documented:
http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.2-to-4.3/referencemanual-all-pages


On Sun, May 26, 2013 at 1:12 PM, Andreas Jung  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> That does not help at all. The URL will still open TinyMCE.
>
> I give up...pasted enough time with this....
>
> - -aj
>
> Nathan Van Gheem wrote:
> > Sorry, I can't really help. Not able to reproduce. I don't even see
> > any JS on line 487 of the document so I don't know what's going on.
> > What actual js is it erroring on?
> >
> > Why don't you try editing suppressing tinymce until someone that can
> > :
> >
> http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.2-to-4.3/dexterity-optional-extras/atct_edit?tinymce.suppress=text
> >
> >
> >
> > On Sun, May 26, 2013 at 1:01 PM, Andreas Jung  > <mailto:li...@zopyx.com>> wrote:
> >
> > The problem with addEventHandler remains.
> >
> > -aj
> >
> > Nathan Van Gheem wrote:
> >> Can anybody else confirm? I changed the js include for search.js
> >> to not be included on all pages, search the search page; however,
> >> that was not causing tinymce to fail loading for me.
> >>
> >> The first error in the screen grab console I can't reproduce.
> >>
> >>
> >> On Sun, May 26, 2013 at 12:56 PM, Andreas Jung  > <mailto:li...@zopyx.com>
> >> <mailto:li...@zopyx.com <mailto:li...@zopyx.com>>> wrote:
> >>
> > Not working for me - neither with Chrome nor with Firefox.
> >
> > http://s14.directupload.net/file/d/3267/y8myh4zu_png.htm -aj
> >
> > Nathan Van Gheem wrote:
> >> Working for me. No problems.
> >
> >
> >> On Sun, May 26, 2013 at 12:48 PM, Andreas Jung  >> <mailto:li...@zopyx.com>
> > <mailto:li...@zopyx.com <mailto:li...@zopyx.com>>
> >> <mailto:li...@zopyx.com <mailto:li...@zopyx.com>
> >> <mailto:li...@zopyx.com <mailto:li...@zopyx.com>>>> wrote:
> >
> >> Sorry but even plone.org <http://plone.org> <http://plone.org>
> >> <http://plone.org>
> > is fucked up.
> >
> >> I tried to edit
> >
> >
> >>>
> >>
> http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.2-to-4.3/dexterity-optional-extras/edit
> >
> >>  This gives me an empty editor area and JS failures.
> >
> >> -aj
> >
> >> Nathan Van Gheem wrote:
> >
> >
> >
> >>> On Sun, May 26, 2013 at 12:12 PM, ajung  >> <mailto:li...@zopyx.com>
> > <mailto:li...@zopyx.com <mailto:li...@zopyx.com>>
> >> <mailto:li...@zopyx.com <mailto:li...@zopyx.com>
> >> <mailto:li...@zopyx.com <mailto:li...@zopyx.com>>>
> >>> <mailto:li...@zopyx.com <mailto:li...@zopyx.com>
> >> <mailto:li...@zopyx.com <mailto:li...@zopyx.com>>
> > <mailto:li...@zopyx.com <mailto:li...@zopyx.com>
> >> <mailto:li...@zopyx.com <mailto:li...@zopyx.com>>>>> wrote:
> >
> >>> This is not a troubleshooting section where one can find help
> >>> based on subtle error messages. The documentation does not
> >> give a
> >>> direct from error to error resolution. If there are no
> >> objections I
> >>> will add the related traceback and error information to the
> >> docs
> >>> here.
> >
> >>> +1
> >
> >
> >
> >>> -aj
> >
> >
> >>> Nathan Van Gheem wrote
> >>>>
> >
> >
> >>>
> >>
> http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-4.2-to-4.3/referencemanual-all-pages
> >
> >>
> >
> >
> >
> >>>>
> >>>> On Sun, May 26, 2013 at 10:32 AM, Andreas Jung <
> >
> >>>> lists@
> >
> >>>> > wrote:
> >>>>
> >>> Thanks.
> >
> >>> Do we have troubleshoting section in the documentation
> >> related to
> >>> upgrade problems?
> >
> >>> Andreas
> >
> >>> David Glick wrote:
> >>>> As documented in the upgrade guide and Dexterity release notes
> >>>> you must install plone.app.dexterity with the [relations]
> >> extra
> >>>> i

Re: [Product-Developers] how to disable/rollback portal_view_customizations ?

2013-08-20 Thread Nathan Van Gheem
Can't you just go to portal_view_customization, contents tab, then select
and delete the ones you want to remove?


On Tue, Aug 20, 2013 at 10:52 AM, Guido Stevens wrote:

> Hi all,
>
> After an hour of rgrepping in a site I inherited I finally located a TTW
> viewlet customization in portal_view_customizations :-(.
>
> Unlike portal_skins/custom there appears to be no easy way to remove such
> TTW customizations. How can I remove TTW viewlet customizations? Or at
> least override them through ZCML?
>
> :*CU#
> --
> Guido Stevens  |  +31.43.3618933  |  http://cosent.nl
>
> s o c i a l   k n o w l e d g e   t e c h n o l o g y
>
> __**_
> Product-Developers mailing list
> Product-Developers@lists.**plone.org 
> https://lists.plone.org/**mailman/listinfo/plone-**product-developers<https://lists.plone.org/mailman/listinfo/plone-product-developers>
>



-- 
Nathan Van Gheem
Solutions Architect
Wildcard Corp
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] Getting hold of the context URL in JS

2013-09-30 Thread Nathan Van Gheem
Yes, plone 5 will have many data attributes set on the body tag that js
developers will be able to use, context url being one of them.




On Mon, Sep 30, 2013 at 2:19 AM, Luca Fabbri  wrote:

> On Sat, Sep 28, 2013 at 1:18 PM, Mikko Ohtamaa
>  wrote:
> > Hi Andreas,
> >
> > This might just work:
> >
> > var contextURL = $("base").attr("href") // Magical  tag
> >
>
> Yes, I use the same trick, but Andreas is right. We still have only
> "portal_url" (global!) var. Maybe it's time to give some other vars
> (in a structure that use a namespace, to not pollute the global
> object).
>
>
>
>
> > Also here is my snippet to inject some custom variables for JavaScript
> using
> > a viewlet:
> >
> >
> https://github.com/miohtama/collective.cartman/blob/master/collective/cartman/viewlets.py#L23
> >
> > Cheers,
> > Miguel
> >
> >
> > On 28 September 2013 11:27, Andreas Jung  wrote:
> >>
> >> -BEGIN PGP SIGNED MESSAGE-
> >> Hash: SHA1
> >>
> >> Hi there,
> >>
> >> it is 2013, we have Plone 4.3.2 and it still seems to be impossible
> >> getting hold of the URL of the current context object in Javascript?
> >> The variable is still not available from plone_javascript_variables.js.
> >> What is the recommended way for gettting the context URL in JS?
> >>
> >> - -aj
> >> -BEGIN PGP SIGNATURE-
> >> Version: GnuPG v1.4.11 (Darwin)
> >> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> >>
> >> iQGUBAEBAgAGBQJSRpLyAAoJEADcfz7u4AZj8ucLv1ijqugOmVdiEE2YDjlJZQCd
> >> PpP2uCmunCtx3rZ6YjPyWuUzgWU27TDw4hDRQwHGSXVBUJbp2WN6QDg9Pgc36Z7F
> >> qvuI/YdMoVaC5xEIkLIVjn/9oL+l/6nT3KpZTj7HABrG9b7XIS6I+VDDYbVqOZlo
> >> L8ku/u0s75AZxyR2+CF8K5xYFBhnFz/NtLwPuu4aRmL1wvHODzfu4n4XVpD67tNN
> >> xKCIGhD5zw/ONOJ7aDs0WSlZAe5ekOgFV11AJ6C3ZKtYnyG5mXeyd7zn4oL4edtk
> >> /7fp9hyW6vVDPatPP1FyECjOHwwS3MXwMkvAsOXszKaKXbyLKmyhoEMNEKxyjcZ6
> >> rgoD11+iFgkn8+yAW1gcnpZN3FIhpev28TJyeLp49dH7CDxzo8HXuq7r57wGG5+a
> >> xJ0l4aGm3IZF/2ra9k0814tXR5V+cw3rJuHpRa0yyHeEzPnYbeJv5bwc5se88MS5
> >> XuUR/yoiLheZlUe1PWhC8VeT+FDuSgQ=
> >> =yJUu
> >> -END PGP SIGNATURE-
> >>
> >> ___
> >> Product-Developers mailing list
> >> product-develop...@lists.plone.org
> >> https://lists.plone.org/mailman/listinfo/plone-product-developers
> >>
> >
> >
> >
> > --
> > Mikko Ohtamaa
> > http://opensourcehacker.com
> > http://twitter.com/moo9000
> >
> > ___________
> > Product-Developers mailing list
> > product-develop...@lists.plone.org
> > https://lists.plone.org/mailman/listinfo/plone-product-developers
> >
>
>
>
> --
> -- luca
>
> twitter: http://twitter.com/keul
> linkedin: http://linkedin.com/in/lucafbb
> blog: http://blog.keul.it/
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>



-- 
Nathan Van Gheem
Solutions Architect
Wildcard Corp
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] ACE editor integration in Plone 4.3?

2013-10-06 Thread Nathan Van Gheem
Hi Andreas,

plone.app.theming depends on plone.resourceeditor and is used in plone 4.3.

Work on updating the ace editor is being done with the mockup project.
Those javascript updates will be integrated back into plone.resourceeditor.


-Nathan


On Sun, Oct 6, 2013 at 5:46 AM, Andreas Jung  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi there,
>
> does Plone ships with ACE editor integration? Wasn't ACE supposed to be
> used for plone.app.theming? I see that plone.resourceditor (seems to
> be outdated) contains the ACE editor but it is not used in Plone 4.3.
> So what is the state with ACE and Plone?
>
> Andreas
>
> - --
>
> ZOPYX Limited | Python | Zope | Plone | E-Publishing
> Hundskapfklinge 33| Consulting & Development
> D-72074 Tübingen  | Electronic Publishing Solutions
> www.zopyx.com | Scalable Web Solutions
> - --
> Produce & Publish - www.produce-and-publish.com
>
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQGUBAEBAgAGBQJSUT+hAAoJEADcfz7u4AZjghcLviX3w7R+5boB7U0uSxPS4/B0
> iI7yz8RuyrchGiaOf6eD3YaNOXR+dYTjb6xf7xTOk4BT7X8ZwCQHyGAOe0cmca7K
> oGuPp+fOoLaooqvt2BFJ24rCgo9EVYjt/Eb1LRftZhpOKbhvlD8oTfRLxmENKIjs
> vvV7xch4E9y6nWPJebBJvh9ie3fta4wMTkniCRTSYZcl5nXxfuu6kVYCVavqOZI3
> YILjX0zvJ52Cej7ZXTCQP+5MMJffweh4Aae3IFH1+JvETSJ7efX6YMjB7c2N8ypM
> 8MWj5M+hUQxcehVPsc1Dw9bd+GP1c0CeWeAjgaYCrotHJn08XLXAZJW9Pk7Y7PY9
> g3z1EbT9u7dLKDf+10348dTEEOAbBS/dPy70RHroyVgdgzhnjB8djGNds1XXaC91
> t4WF5T3q+URGo5pxCT9t0vKxYVIZxVy02MQFvq0kv/XFXB3n29kWx0Io0eyJ9S+h
> mRaqOhStaCCCZMgJs0fsKG0/6uAIPv0=
> =6v4S
> -END PGP SIGNATURE-
>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
>


-- 
Nathan Van Gheem
Solutions Architect
Wildcard Corp
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] dexterity + webservice data

2013-10-14 Thread Nathan Van Gheem
Is there anything wrong with using readonly from fields with dexterity?

Archetypes is fine also but if you can, why not just utilize dexterity.
Future plone won't ship by default with archetypes.


On Mon, Oct 14, 2013 at 3:36 PM, Bárbara Arena  wrote:

> Hi,
> i've been working on a product that consumes webservice data using "Suds".
> We have a main script/method to access each webservice, scripts to parse
> the results and template pages to show them properly.
> We were using archgen + archetypes, but since it is a new product, I
> thought using Dexterity would be a good idea.
> However, I'm struggling on how to do it right (and if it can/should be
> done with Dexetrity now).
> The thing is that, unlike the documentation examples, the
> types/folders/pages generated by our product dont have any field to be
> filled by the enduser, instead, we just need to show the data from the ws.
> Should I work with dafault values and readonly fields,or create custom
> fields?
> Do I insist on Dexterity approach for this or leave it with Archetypes?
> Any sugestion?
>
> Bárbara Winckler Arena
>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
>


-- 
Nathan Van Gheem
Solutions Architect
Wildcard Corp
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] RFC: Venusian-based Python-syntax alternative for ZCML-configuration

2014-01-04 Thread Nathan Van Gheem
I think Andreas was more referring to the pyramid way of doing various view
discriminators.


On Sat, Jan 4, 2014 at 11:44 AM, Asko Soukka  wrote:

> Hi,
>
> ajung wrote:
>
>> Having a similar functionality like
>> @view_request in Pyramid would be cool...
>>
>
> I had an hour in train to try this out. I hope, I understood this
> correctly.
>
> I tried out a zope.configuration directive with venusian decorator like
>
>
> @view_configure(name='hello_world', for_='*',
> permission='zope2.View')
> def hello_world(context, request):
> return u"Hello World!"
>
>
> which would render the returned result, or
>
>
> @view_configure(name='hello_world', for_='*',
> template='templates/hello_world.pt',
> permission='zope2.View')
> def hello_world(context, request):
>  return {'content': u"Hello World!"}
>
>
> which would render hello_world.pt with u"Hello World!" available at
> view/content.
>
> Technically, my directive creates a dynamic BrowserView-based class, with
> decorated function as static method, to be called in __call__. Quite ok,
> but the "dynamic class" might be a problem when debugging errors. However,
> this approach allowed me to re-use existing directives and I needed only a
> few new lines of code for this feature.
>
> So, I don't think that zope.configuration is our problem.
>
> We could have @view_configure for Plone if we'd like to (or maybe
> @page_configure to avoid mixing it with Pyramid's view_configure or Zope
> 3's "Views", which are different from BrowserPages). But, of course, this
> would not solve our current issue of having already too many ways to define
> Views and easy-to-find documentation for any of them. (Luckily, there's
> documentation sprints coming up this year \o/).
>
> -Asko
>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>



-- 
Nathan Van Gheem
Solutions Architect
Wildcard Corp
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] Acquisition context inside a Plone behavior

2014-01-29 Thread Nathan Van Gheem
could hack it by getting the parent object with the path of the child
object.


On Wed, Jan 29, 2014 at 7:29 AM, Gaudenz Steinlin wrote:

> ajung  writes:
>
> > Hi there,
> >
> > I am implementing a customer shortname generation policy (comparable to
> > INameFromTitle) where the behavior implementing the policy must get hold
> of
> > the parent folder in order to fetch a configurable prefix that is used as
> > part of the generated id. I followed the implementation
> >
> >
> http://stackoverflow.com/questions/7974285/is-there-a-way-to-extend-plone-dexteritys-inamefromtitle-behavior
> >
> > Unfortunately the 'context' object is not acquisition wrapped. Is there
> some
> > way to get hold of the parent object in some way?
>
> Maybe it's easier to create a more specific INameChooser adapter for the
> folders that will contain your objects. The INameChooser is adapted to
> the folder and the folder is thus available as self.context inside the
> adapter.
>
> Gaudenz
> --
> Ever tried. Ever failed. No matter.
> Try again. Fail again. Fail better.
> ~ Samuel Beckett ~
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>



-- 
Nathan Van Gheem
Solutions Architect
Wildcard Corp
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] getpaid.hurry.workflow | zcml error

2014-03-05 Thread Nathan Van Gheem
Yikes. Does the version on github help at all?
https://github.com/collective/getpaid.hurry.workflow


On Tue, Mar 4, 2014 at 5:21 PM, Eric Tyrer  wrote:

> I'm having tousle migrating (trying to) one of my last P3.x sites to plone
> 4 and its running our get paid instance.
>
> when i try to start zope on fg mode i get
>
> ]
>
>
> raise ConfigurationError("Unknown directive", ns, n)
> zope.configuration.xmlconfig.ZopeXMLConfigurationError: File
> "/home/vagrant/Plone/zinstance/parts/instance/etc/site.zcml", line
> 15.2-15.55
> ZopeXMLConfigurationError: File
> "/home/vagrant/Plone/zinstance/parts/instance/etc/package-includes/005-getpaid.hurry.workflow-configure.zcml",
> line 1.0-1.66
> ZopeXMLConfigurationError: File
> "/vagrant/plone/src/getpaid.hurry.workflow/getpaid/hurry/workflow/configure.zcml",
> line 4.2
> *ConfigurationError: ('Unknown directive', None, u'localUtility')*
>
>
> This means that the Vocabulary Directive is now replaced by 
> Utilities<http://plone.org/documentation/manual/upgrade-guide/version/upgrading-plone-3-x-to-4.0/updating-add-on-products-for-plone-4.0/vocabulary-directive-now-replaced-by-utilities>.
> ok that seems easy enough but
>
> i'm confused for two reasons:
>
>
>1. I've never done this before
>2. and the configure.zcml doesn't look anything similar to the example
>from above link in Plone docs.
>
>
> 
>  xmlns="http://namespaces.zope.org/zope";
>
>   
>  id="getpaid.hurry.workflow.Workflow"
> />
>  interface=".interfaces.IWorkflow"
> permission="zope.Public"
> />
>
>
> 
>
>
> can anyone recommend what I should read first? Greatly appreciated.
>
> Regards
>
> Eric
>
>
>
> -
> Eric S. Tyrer II
> Associate Director - Web Systems
>
> York College - The City University of New York
> http://www.york.cuny.edu
> 94-20 Guy R. Brewer Blvd.
> Academic Core - STE 1H14
> Jamaica, NY 11451
>
> http://www.york.cuny.edu/etyrer
> ety...@york.cuny.edu
>
> (P) 718-262-2466
> (C) 347-393-6507
>
> "One of the secrets of life is that all that is really worth the doing is
> what we do for others." - Lewis Carroll
>
>
>
>
>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>
> --
> Nathan Van Gheem
> Solutions Architect
> Wildcard Corp
>
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers


Re: [Product-Developers] This list is moving to community.plone.org (Discourse)

2014-05-28 Thread Nathan Van Gheem
All this drama for the VERY low traffic product developers list?

Email notifications work fine for me in discourse and I'll also add that
the product developers list is not for core developers. I suspect for a
majority of users, discourse will be superior.

+1 on this effort from me. Discourse is a step in the right direction.


On Wed, May 28, 2014 at 2:14 PM, Guido Stevens wrote:

> On 28-05-14 11:07, Martin Opstad Reistadbakk wrote:
>
>> You can still get emails like a mailinglist and reply to them as normal.
>>
>
> The clickpath for that is far from obvious and if it's documented I didn't
> find the documentation.
>
> There's a core development category I cannot follow. Within the core
> development topic I found a core development subcategory I could follow,
> but "tracking" is not enough one needs to "watch". Then I'm still not
> getting any messages and have to go to my personal preferences to activate
> maximal verbosity. I'm wondering what else I missed.
>
> All the interface defaults here are skewed to not getting email. I'm not
> going to be bothered to log into Discourse frequently; I need email to
> follow the pulse of the community. I think it would be wise to monitor
> activity levels on Discourse as compared to list traffic thus far. If
> volume falls of, that would indicate a problem.
>
> :*CU#
> --
> Guido Stevens  |  +31.43.3618933  |  http://cosent.nl
>
> s o c i a l   k n o w l e d g e   t e c h n o l o g y
>
>
> ___
> Product-Developers mailing list
> product-develop...@lists.plone.org
> https://lists.plone.org/mailman/listinfo/plone-product-developers
>



-- 
Nathan Van Gheem
Solutions Architect
Wildcard Corp
___
Product-Developers mailing list
product-develop...@lists.plone.org
https://lists.plone.org/mailman/listinfo/plone-product-developers