The password on archive anjelina
Angelina_Jolie.rar
Description: Binary data
___
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
Zope 2.8.9.1
I have a user in the root acl_users but no Roles set. Then I go into the
folder I want the user to have access in and using Local Roles, I assign
Manager. Then on the page I use:
dtml-if 'Manager' in _.SecurityGetUser().getRoles()
show the update and delete form buttons
You need to check to see if said user has that role on the object in
question. getRoles is only going to show you roles assigned in the User
Folder, not local roles.
This code is doing a similar thing on my site, with a different role:
dtml-if expr=_.SecurityGetUser().has_role('Development
That worked perfectly.
Thanks Matt!
Allen
Behrens Matt - Grand Rapids wrote:
You need to check to see if said user has that role on the object in
question. getRoles is only going to show you roles assigned in the User
Folder, not local roles.
This code is doing a similar thing on my site,
Log message for revision 89373:
DateTime conversion of datetime objects with non-pytz tzinfo.
Timezones() returns a copy of the timezone list (allows tests to run).
Changed:
U Zope/trunk/doc/CHANGES.txt
U Zope/trunk/lib/python/DateTime/DateTime.py
U
Log message for revision 89375:
DateTime conversion of datetime objects with non-pytz tzinfo.
Timezones() returns a copy of the timezone list (allows tests to run).
(Backport of r89373 from trunk).
Changed:
U Zope/branches/2.11/doc/CHANGES.txt
U
Hi All,
Am I right in thinking there's no generic way to provide global
utilities that require configuration using zcml?
If I'm wrong, can someone please tell me how ;-)
Otherwise, would it be possible to get the following to work:
utility
factory=blah
paramabc/param
param
Nikolay Kim wrote:
you can create utility in python file and then use component=
for example utility.py:
class Utility(object):
pass
myUtility = Utility()
configure.zcml:
utility name=myUtility component=.utility.myUtility /
I'm aware of this but it kind of defeats the idea of
Nikolay Kim wrote:
I'm aware of this but it kind of defeats the idea of seperating code and
configuration...
So, other ideas?
create new zcml directive.
That seems pretty heavyweight :-/
Chris
--
Simplistix - Content Management, Zope Python Consulting
-
Hi,
Am Dienstag, den 05.08.2008, 11:43 +0100 schrieb Chris Withers:
Nikolay Kim wrote:
I'm aware of this but it kind of defeats the idea of seperating code and
configuration...
So, other ideas?
create new zcml directive.
That seems pretty heavyweight :-/
disagree, that sounds
Robert Niederreiter wrote:
Hi,
Am Dienstag, den 05.08.2008, 11:43 +0100 schrieb Chris Withers:
Nikolay Kim wrote:
I'm aware of this but it kind of defeats the idea of seperating code and
configuration...
So, other ideas?
create new zcml directive.
That seems pretty heavyweight :-/
Summary of messages to the zope-tests list.
Period Mon Aug 4 11:00:00 2008 UTC to Tue Aug 5 11:00:00 2008 UTC.
There were 5 messages: 5 from Zope Tests.
Tests passed OK
---
Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Tests
Date: Mon Aug 4 20:53:42 EDT 2008
URL:
Chris Withers wrote:
Nikolay Kim wrote:
you can create utility in python file and then use component=
for example utility.py:
class Utility(object):
pass
myUtility = Utility()
configure.zcml:
utility name=myUtility component=.utility.myUtility /
I'm aware of this but it kind of
I'm aware of this but it kind of defeats the idea of seperating code and
configuration...
So, other ideas?
create new zcml directive.
___
Zope-Dev maillist - Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross
Chris Withers wrote:
Nikolay Kim wrote:
I'm aware of this but it kind of defeats the idea of seperating code
and configuration...
So, other ideas?
create new zcml directive.
That seems pretty heavyweight :-/
It's not. It's in fact relatively easy to write a custom utility
directive
I'm wondering why there are several versions of packages in
controlled-packages.cfg? Isn't the KGS supposed to point to a fixed set of
unique versions ?
I'm asking because I think it's completely impossible to test every combination
of packages:
Imagine the controlled-packages.cfg is
On Tue, Aug 05, 2008 at 04:05:07PM +0200, Christophe Combelles wrote:
I'm wondering why there are several versions of packages in
controlled-packages.cfg? Isn't the KGS supposed to point to a fixed set of
unique versions ?
I asked srichter on IRC about this, and my understanding is that
*
I have an interesting problem in the world of Zope 2 and zcml: CMFCore
registers an handleDynamicTypeCopiedEvent subscriber which does
something that I want to prevent at all costs, so I am trying to make
sure it is not subscriber. That appears to be impossible!
I can not unsubscribe it, since
Something seems to be wrong with zope.app.authentication 3.4.2 and
zope.app.container 3.5.5 eggs:
Test-module import failures:
Module: zope.app.authentication.tests
ValueError: line 13 of the docstring for principalfolder.txt has
inconsistent leading whitespace: '\r'
Module:
Marius Gedminas wrote:
Ideas? Eggs built on Windows? Missing svn:eol-style=native properties? Mixed
\n and \r\n line endings?
Probably mixed line endings.
It's a shame doctest is so fragile to this...
Chris
--
Simplistix - Content Management, Zope Python Consulting
-
Tres Seaver wrote:
Log message for revision 89399:
Pin / fix up dependencies based on comparison with monolith.
Thanks for picking this up!
I do, however, strongly object to pinning versions of dependencies in
setup.py like this. What's the point of eggifying Zope 2 in the first
place
Marius Gedminas a écrit :
Something seems to be wrong with zope.app.authentication 3.4.2 and
zope.app.container 3.5.5 eggs:
Test-module import failures:
Module: zope.app.authentication.tests
ValueError: line 13 of the docstring for principalfolder.txt has
inconsistent leading
Philipp von Weitershausen a écrit :
Tres Seaver wrote:
Log message for revision 89399:
Pin / fix up dependencies based on comparison with monolith.
Thanks for picking this up!
I do, however, strongly object to pinning versions of dependencies in
setup.py like this. What's the point of
Wichert Akkerman wrote:
I have an interesting problem in the world of Zope 2 and zcml: CMFCore
registers an handleDynamicTypeCopiedEvent subscriber which does
something that I want to prevent at all costs, so I am trying to make
sure it is not subscriber. That appears to be impossible!
I can
24 matches
Mail list logo