[Zope3-Users] browser:defaultView

2006-01-05 Thread Christian Lück
Hi! The directive is not being processed consequently. Sometimes it gets ignored. The criterion for being ignored or not has nothing to do with absolute or relative urls. The difference rather seems whether the view from which an unspecific object-view is called uses the 'view' or the 'page' sta

Re: [Zope3-Users] browser:containerViews

2006-01-05 Thread Christian Lück
Hm, I think I have to put it even more excat: A user excluded from 'contents' but included in 'add' can call an IAdding view for the Interface in question. Even though the addMenuItems are gone, the user can query the page by hand in the browser address field. When he presses the add-button he is r

Re: [Zope3-Users] Permission required for renaming?

2006-01-05 Thread Jeff Shell
One option that you have is to protect the View object that you use to do the renaming, unless you're using views that are provided by someone/something else (the default Zope UI, etc). You can protect your 'rename' view and inside of it use 'zope.security.proxy.removeSecurityProxy' to get access t

[Zope3-Users] browser:containerViews

2006-01-05 Thread Christian Lück
Hi! The differentiation of the 'contents' and 'add' attributes of browser:containerViews seems weird. To actually 'add' content the permission which is set for 'contents' nescessarily has to be granted to the principal. To put more formal: not permission('contents') => not permission('add') All Pr

Re: [Zope3-Users] Problems with Zope 3.2.0b3 on Linux

2006-01-05 Thread Marco Groppo
Il giorno gio, 05/01/2006 alle 07.47 -0500, Stephan Richter ha scritto: > Darn, this is a dangerous feature. Sigh. The latest version doesn't enable it by default (I was using an old version). However the feature can also be disabled server-side: (from the FAQ) +++ Prior to generating any prefet

Re: [Zope3-Users] Problems with Zope 3.2.0b3 on Linux

2006-01-05 Thread Jim Fulton
Marco Groppo wrote: Il giorno gio, 05/01/2006 alle 09.01 -0500, Jim Fulton ha scritto: Of course, this doesn't explain the test failures or the "Shouldn't load state for ... when the connection is closed" errors. I've reinstalled Zope and now the functional tests pass! And I can't reproduce

Re: [Zope3-Users] Problems with Zope 3.2.0b3 on Linux

2006-01-05 Thread Marco Groppo
Il giorno gio, 05/01/2006 alle 09.01 -0500, Jim Fulton ha scritto: > Of course, this doesn't explain the test failures or the "Shouldn't > load state for ... when the connection is closed" errors. I've reinstalled Zope and now the functional tests pass! And I can't reproduce the other error ("sho

Re: [Zope3-Users] Permission required for renaming?

2006-01-05 Thread Alec Munro
Hi Stephan, Actually, my users don't have that role(permission?), because I got the impression that having it would give them access to a number of things I don't want them to see, such as the metadata and introspector tabs. Is that strictly required for any kind of renaming/copying/pasting? Is th

[Zope3-Users] Re: sqlos, sites and local utilities

2006-01-05 Thread Philipp von Weitershausen
Jeff Shell wrote: > What about using zope.app.component.hooks.setSite? It sets the site on > a zope.thread.local based object, and I believe most utility lookups > fall back on that setting if context is not supplied. All component look-ups *first* look at the closest site (which comes from the th

Re: Viewlets (was Re: [Zope3-Users] using tal to insert zwiki content)

2006-01-05 Thread Benji York
Jeff Shell wrote: On 1/4/06, Benji York <[EMAIL PROTECTED]> wrote: Jeff Shell wrote: Viewlets are a new feature in Zope 3.2. They are? I don't recall it being so (and would prefer it not). Why not? They're great! It's not so much a value judgment as a combination of: there was no prop

Viewlets (was Re: [Zope3-Users] using tal to insert zwiki content)

2006-01-05 Thread Jeff Shell
On 1/4/06, Benji York <[EMAIL PROTECTED]> wrote: > Jeff Shell wrote: > > Viewlets are a new feature in Zope 3.2. > > They are? I don't recall it being so (and would prefer it not). Why not? They're great! I've been using them in a new application I've been developing against the 3.2 betas. I try

[Zope3-Users] Re: sqlos, sites and local utilities

2006-01-05 Thread Philipp von Weitershausen
Jeff Shell wrote: > What about using zope.app.component.hooks.setSite? It sets the site on > a zope.thread.local based object, and I believe most utility lookups > fall back on that setting if context is not supplied. All component look-ups *first* look at the closest site (which comes from the th

Re: [Zope3-Users] How to render PageTemplate manually?

2006-01-05 Thread Wade Leftwich
Jean-Marc Orliaguet wrote: > Stephan Richter wrote: > >> On Wednesday 04 January 2006 07:55, Łukasz Łakomy wrote: >> >> >>> Create content type 'Portlet' that could have TAL as its content and >>> when >>> watched in browser TAL should be redered. My code is below. >>> >> >> >> You really sho

Re: [Zope3-Users] How to render PageTemplate manually?

2006-01-05 Thread Jean-Marc Orliaguet
Stephan Richter wrote: On Thursday 05 January 2006 08:28, Jean-Marc Orliaguet wrote: PS: note that "viewlets" are known outside the Zope3 world as being small tutorial movies: http://psptips.com/6/viewlets/ http://www.pmwdc.com/skies/ http://www.geek.com/tipstrix/qarbon/ http://www.djdenham.

Re: [Zope3-Users] Problems with Zope 3.2.0b3 on Linux

2006-01-05 Thread Jim Fulton
Marco Groppo wrote: Il giorno mer, 04/01/2006 alle 19.07 -0500, Jim Fulton ha scritto: Did you have the problem with beta 2? Sorry, I'm an idiot. Yesterday I didn't read the access log, so I didn't notice that the problem was Firefox... The problem was due to a Firefox extension (FasterFox)

Re: [Zope3-Users] How to render PageTemplate manually?

2006-01-05 Thread Stephan Richter
On Thursday 05 January 2006 08:28, Jean-Marc Orliaguet wrote: > PS: note that "viewlets" are known outside the Zope3 world as being > small tutorial movies: > http://psptips.com/6/viewlets/ > http://www.pmwdc.com/skies/ > http://www.geek.com/tipstrix/qarbon/ > http://www.djdenham.com/Basic_Windows.

[Zope3-Users] Eric3 unit tests and debugger?

2006-01-05 Thread Jim Washington
I like the Eric3 python IDE. http://www.die-offenbachs.de/detlev/eric3.html I've been using it for a while, mainly for file organization and its SVN and Bicycle Repair Man integration. It claims support for unit testing and debugging, but the setup for those seems to be more oriented toward f

Re: [Zope3-Users] How to render PageTemplate manually?

2006-01-05 Thread Jean-Marc Orliaguet
Stephan Richter wrote: On Wednesday 04 January 2006 07:55, Łukasz Łakomy wrote: Create content type 'Portlet' that could have TAL as its content and when watched in browser TAL should be redered. My code is below. You really should not call this a portlet. A portlet is very well defin

[Zope3-Users] Re: How to render PageTemplate manually?

2006-01-05 Thread Pawel Lewicki
from TAL.TALInterpreter import TALInterpreter from Products.PageTemplates.Expressions import getEngine from Products.PageTemplates.PageTemplate import PageTemplate from cStringIO import StringIO data = { 'test': 'Testing text', }

Re: [Zope3-Users] Search Results (was: How come no IView?)

2006-01-05 Thread Stephan Richter
On Wednesday 04 January 2006 01:07, Alen Stanisic wrote: > I think I am lacking in understanding of traversable, locatable concepts > and if they can be of any relevance to non-persistent objects.  Any > explanation of this or pointers to documents I could read is much > appreciated. First of all,

Re: [Zope3-Users] How to render PageTemplate manually?

2006-01-05 Thread Stephan Richter
On Wednesday 04 January 2006 07:55, Łukasz Łakomy wrote: > Create content type 'Portlet' that could have TAL as its content and when > watched in browser TAL should be redered. My code is below. You really should not call this a portlet. A portlet is very well defined by JSR 168. Note that the Zo

[Zope3-Users] Re: How to render PageTemplate manually?

2006-01-05 Thread Pawel Lewicki
Łukasz Łakomy napisał(a): Hi all My use case: Create content type 'Portlet' that could have TAL as its content and when watched in browser TAL should be redered. My code is below. class PortletView: def renderText(self): portlet = IPortlet(self.context) format = portlet.form

Re: [Zope3-Users] Problems with Zope 3.2.0b3 on Linux

2006-01-05 Thread Stephan Richter
On Thursday 05 January 2006 06:10, Marco Groppo wrote: > Il giorno mer, 04/01/2006 alle 19.07 -0500, Jim Fulton ha scritto: > > Did you have the problem with beta 2? > > Sorry, I'm an idiot. Yesterday I didn't read the access log, so I didn't > notice that the problem was Firefox... The problem was

Re: [Zope3-Users] Problems with Zope 3.2.0b3 on Linux

2006-01-05 Thread Marco Groppo
Il giorno mer, 04/01/2006 alle 19.07 -0500, Jim Fulton ha scritto: > Did you have the problem with beta 2? Sorry, I'm an idiot. Yesterday I didn't read the access log, so I didn't notice that the problem was Firefox... The problem was due to a Firefox extension (FasterFox) which I installed somet