[Zope-CMF] Re: trouble applying extension profiles

2006-04-03 Thread Florent Guillaume

Jens Vagelpohl wrote:

On 2 Apr 2006, at 09:34, Rob Miller wrote:

it's in now, r66291.
and i've also committed the .delete file support implementation, again 
on the 1.6 branch.  if there are no complaints, i'll merge to 2.0 and 
trunk on monday.


Thanks Rob! I hope Lennart and Yvo will take a look this weekend or 
Monday. My own goal (or  the reason for making the corresponding 
collector issue a release blocker) was to just prevent content deletion 
as described in the issue. Anything beyond that I am neutral about.


FWIW I don't have an opinion on this, as we don't use the content.py I/O 
export methods. The XML/NodeAdapterBase is enough for us.


But I'm curious as to why there are two import/export frameworks, the config 
one (NodeAdapterBase) and the content one (FileSystemExporter). Couldn't 
they be merged? Or at least some adapters reused?


Florent

--
Florent Guillaume, Nuxeo (Paris, France)   Director of RD
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]
___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


Re: [Zope-CMF] Re: Unauthorized errors on macro access

2006-04-03 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 3 Apr 2006, at 14:51, Tres Seaver wrote:

I think it is actually blowing up trying to validate access to the
'macros' object from your view.  I was able to work around that  
part by

adding the following view class:

- --  % 
from AccessControl.SecurityInfo import ClassSecurityInfo
from Globals import InitializeClass
from Products.Five.browser import BrowserView

from Products.CMFCalendar.permissions import View

class CalendarWidgetView(BrowserView):
security = ClassSecurityInfo()
security.declareProtected(View, 'macros')
def _macros(self):
return self.index.macros
macros = property(_macros, None, None)

InitializeClass(CalendarWidgetView)
- --  % 


You're right, I did not mention that. Thanks a lot, I'll try that  
tonight! It simply had not occurred to me that security declarations  
can be put into a view class, the samples in CMFDefault did not need  
this.


Might be able to finally merge it all in after that. Yay.

jens


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEMSpfRAx5nvEhZLIRAhhEAJ9MRMNWvoOYWpDAlcRKBiI98aLXCwCcCq8q
C3PpyXafRzCO9A+dFvXl/oY=
=b3gX
-END PGP SIGNATURE-
___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] Re: trouble applying extension profiles

2006-04-03 Thread yuppie

Hi Florent!


Florent Guillaume wrote:

Jens Vagelpohl wrote:

On 2 Apr 2006, at 09:34, Rob Miller wrote:

it's in now, r66291.
and i've also committed the .delete file support implementation, 
again on the 1.6 branch.  if there are no complaints, i'll merge to 
2.0 and trunk on monday.


Thanks Rob! I hope Lennart and Yvo will take a look this weekend or 
Monday. My own goal (or  the reason for making the corresponding 
collector issue a release blocker) was to just prevent content 
deletion as described in the issue. Anything beyond that I am neutral 
about.


FWIW I don't have an opinion on this, as we don't use the content.py I/O 
export methods. The XML/NodeAdapterBase is enough for us.


Same here.

But I'm curious as to why there are two import/export frameworks, the 
config one (NodeAdapterBase) and the content one (FileSystemExporter). 
Couldn't they be merged? Or at least some adapters reused?


I'd call them sub-frameworks. Both provide setup steps for the main 
framework. Nevertheless I agree that one sub-framework for both tasks 
should be enough. They both solve very similar problems with different 
design decisions and implementations.


The current situation has historical reasons: Tres worked on the content 
handler and I worked on the configuration handlers. We never managed to 
discuss our different approaches and to agree on a common sub-framework.


I'm not happy with this, but IMHO there are more important issues to 
resolve in GenericSetup.



Cheers,

Yuppie


___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


Re: [Zope-CMF] Re: trouble applying extension profiles

2006-04-03 Thread Lennart Regebro
On 4/2/06, Jens Vagelpohl [EMAIL PROTECTED] wrote:
 Thanks Rob! I hope Lennart and Yvo will take a look this weekend or
 Monday.

I checked out the current 1.6 and ran some of our tests with it and
has used it today, and it seems to work fine.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests