Hi,
On Thu, Apr 19, 2007 at 12:40:54PM +0200, Sascha Ottolski wrote:
Hi,
reading through zope.app.session, I couldn't find any built-in support
for session_start and session_end events, similar to what existed in
Zope2. Are there any recipies for such a use case? Searching the web
Hi,
On Tue, Apr 17, 2007 at 08:55:02PM +0400, Garanin Michael wrote:
Hello!
How i can get IRequest in my event handler (i has only context)?
from zope.security.management import getInteraction
request = getInteraction().participations[0]
Regards,
Frank
Hi,
On Tue, Mar 27, 2007 at 06:03:54PM +0200, Dominique Lederer wrote:
[snip]
so if i create a class which inherits from BrowserView, and then register it
via
zcml as browser:page, it becomes adaptes to IBrowserRequest an turns to a
BrowserPage (via the on-the-fly created class)? so
Hi,
On Wed, Mar 28, 2007 at 12:16:23PM +0200, Lorenzo Gil Sanchez wrote:
[snip]
But I'd like to avoid the if clause inside my subscriber function by
doing something similar to this:
def intIdRemovedSubscriber(obj, event):
# do some stuff with obj, which is garanteed to provide
Hi,
On Wed, Mar 28, 2007 at 03:55:28PM +, Alek Kowalczyk wrote:
Hi,
I'm trying to index a boolean field of some object, to simplify retrieving all
the objects which have some flag turned on.
I am adding in proper place the index:
catalog['anomaly'] = FieldIndex('anomaly', IMyObject)
Hi,
On Mon, Mar 26, 2007 at 12:43:21PM +0200, Lorenzo Gil Sanchez wrote:
[snip]
This is not so bad. The real problem is that I have to modify the
original IMyCompoment component to tell zope it implements IImportExport
even when this is false. The adapter does it, not the compoment. But I
On Fri, Mar 23, 2007 at 03:27:31PM +0100, Ivan Horvath wrote:
Dear All,
i'm rather new to zope3, thus knowing more and more, but still i have
many problems.
first i displayed the container contents with the very fast solution
containerViews in browser/zcml
it was nice, i have everything
On Wed, Mar 14, 2007 at 04:35:53PM +0100, Ivan Horvath wrote:
Dear All,
i'm really new to zope, but i have learning application, where the
object stru is little bit complex.
App
|
+ Categories
|
+--Categ1
|
Hi,
On Fri, Mar 09, 2007 at 10:06:26AM +0100, Ivan Horvath wrote:
Dear All,
in my learning application there is a description property
this is declared as Text field in the schema
of course an enter (newline) can be entered in this field, but on the view
page i can see only raw
text
. A Dict widget for multilingual fields (LanguageChoice,*)
You might be interested in 1 and 2.
The widgets are part of the 'fb' package which is available here:
https://fbo.no-ip.org/svn/fbo/fb
via svn. The widget itself is part of the subpackage 'fb.fields'.
The 'fb' package is dual-licensed
Hi,
On Wed, Feb 28, 2007 at 12:57:35PM +, Alek Kowalczyk wrote:
Tom Dossis [EMAIL PROTECTED] writes:
I have another issue with IntIds and NotYet:
I have some BTreeContainer-derieved object which is short-living container.
It is never stored in ZoDB
- it is just a result of some query
Hi,
On Wed, Feb 21, 2007 at 09:02:16PM +0100, Florian Lindner wrote:
Hello,
is the chapter 18: Internationalizing a package in Stephans Zope Book
(online version) still up to date or has changed to much so it's not worth
reading anymore?
Any other good sources about i18n?
Your eMail's
Hi,
On Thu, Feb 15, 2007 at 02:46:44PM -0800, Jamu Kakar wrote:
Hi,
I'm looking at integrating zope.i18n.locale into my application (so far
strings are hard-coded in English). Among the first localization tasks
I'm taking on is presenting data in the timezone of the current user.
I've
Hi,
On Sun, Feb 11, 2007 at 01:16:51AM +0100, Dominique Lederer wrote:
hi
i created a trusted adapter on a content object.
then i created a formlib edit page for the ZMI, to be able to edit the
new attributes on the adapted content object. the adapters interface is
correctly rendered to
Hi,
On Thu, Feb 08, 2007 at 04:54:51PM +0100, Florian Lindner wrote:
Am Mittwoch, 7. Februar 2007 07:50 schrieb Jürgen Kartnaller:
Florian,
if you want the url to your current site implement this :
class SiteUrlView(object):
def __call__(self):
return
On Tue, Feb 06, 2007 at 09:01:06PM +0100, Dennis Schulz wrote:
Hello List,
one question about views:
I know that is is possible to register a default view for an object.
Is there a way to decide, at runtime, which view to call?
Maybe a traversal adapter can do this,but is there an
Hi,
On Tue, Jan 23, 2007 at 03:28:09PM -0400, Alec Munro wrote:
Hi List,
I'm wondering if anyone knows of a way to integrate Zope with
/etc/passwd? PAM was suggested, but I don't know too much about that.
I suppose I could probably write my own, but I would prefer to avoid
that if
Hi,
On Mon, Jan 22, 2007 at 08:32:21AM +0100, Christian Theune wrote:
[snip]
You'd have to open a connection to the database, get the root object and
use that with setSite(). I don't have the complete spelling for that in
my head though.
db = zapi.getUtility(IDatabase)
conn=db.open()
Hi,
On Sun, Jan 21, 2007 at 07:06:36PM -0500, Roy Mathew wrote:
Hi Folks,
I am trying to create a custom Site object, using the below
declarations; all goes well when addding an object O1 to the QSite,
but when trying to delete object O1, I get:
ForbiddenAttribute: ('__delitem__',
Hi,
On Mon, Jan 08, 2007 at 02:38:30AM -0500, Stephan Richter wrote:
On Wednesday 20 December 2006 01:45, FB wrote:
Once the PAU is registered, the default IAuthentication utility which
provides all the zcml-predefined principals becomes invisible (speak:
useless). This means, you don't
Hi,
On Tue, Jan 09, 2007 at 07:47:23AM -0500, Stephan Richter wrote:
On Tuesday 09 January 2007 04:56, FB wrote:
This seemed to be ok, because a registered local pau overrides the global
IAuthentication utility.
But it is the local IAuthentication utility's responsibility to delegate
Hi,
On Sun, Jan 07, 2007 at 02:10:20PM +0100, Christophe Combelles wrote:
[snip]
I understand there is an inconsistency between these two interfaces, and this
is not a correct solution.
But using just containers() on content objects doesn't prevent their
containers
from displaying
On Sat, Jan 06, 2007 at 08:14:52PM +0200, Gabi Shaar wrote:
hi.
i am trying to use zope 3.3.0
first somebody correct me if i'm wrong.
getUtility(IIntIds) looks for an intid utility registerd in the global site
manager.
if i supply a context, then it looks in the local site.
i am
Hi,
On Sat, Jan 06, 2007 at 01:35:35AM +0100, Christophe Combelles wrote:
Hello
I define the following interfaces:
class IFoo(Interface):
pass
class IBar(Interface):
pass
class IFooContainer(IContainer):
contains(IFoo)
class IBarContainer(IContainer):
contains(IBar)
Hi,
On Wed, Dec 20, 2006 at 12:26:55AM +0200, Jonas Jarutis wrote:
Hi,
I'm trying to set up a user folder for my site, but i cant get the PAU to
work.
I add the Pluggable Authentication Utility object, register it, add
PrincipalFolder and SessionCredentials plugins and register them. Add
Hi,
On Sun, Dec 17, 2006 at 02:21:03PM +0100, Tim Terlegård wrote:
Would someone like to explain how to use a list in a schema object
without getting ForbiddenAttribute? This is my use case.
class IChat(Interface):
messages = Attribute('Chat messages')
class Chat(Persistent):
Hi,
On Wed, Dec 13, 2006 at 09:40:51PM +0100, David Johnson wrote:
I'm very confused by the following error. Whenever I add certain content
components I get the
following error when add form is generated (I'm using standard addform).
ComponentLookupError: ((decimalwidget.widget.Decimal
Hi,
On Mon, Dec 11, 2006 at 12:58:21PM +0100, FB wrote:
Hi,
is there any reason why a registered utility which is persistently stored
inside the site
manager is never found via zapi.getUtility(IMyInterface) ?
It's strange - I installed the package on a different computer and wasn't
able
Hi,
On Wed, Dec 13, 2006 at 12:09:16PM +0300, Garanin Michael wrote:
[snip]
Problem solved or no? If no then traceback please (after call
zapi.getUtility(IInitIndicator) ).
It's working now. I'm doing some more tests because it was working yesterday
for some minutes and somehow broke again
Hi,
On Mon, Dec 11, 2006 at 11:41:25PM +0100, David Johnson wrote:
Hi,
is there any reason why a registered utility which is persistently stored
inside the site
manager is never found via zapi.getUtility(IMyInterface) ?
It's been my experience this is caused by registering with a name
Hi,
On Tue, Dec 12, 2006 at 07:56:53AM +1100, Tom Dossis wrote:
FB wrote:
Hi,
is there any reason why a registered utility which is persistently stored
inside the site
manager is never found via zapi.getUtility(IMyInterface) ?
More information:
I wrote a package ( fb
Hi,
On Tue, Dec 12, 2006 at 01:54:01PM +0100, Tom Gross wrote:
Hi Frank,
is your InitIndicator-instance implementing the
IInitIndicatorFB-interface. This is absolutely
necessary
for providing it as an utility. There's an easy test for this:
from zope.interface.verify import
On Tue, Dec 12, 2006 at 04:42:56PM +0300, Garanin Michael wrote:
FB wrote:
Hi,
is there any reason why a registered utility which is persistently stored
inside the site
manager is never found via zapi.getUtility(IMyInterface) ?
More information:
I wrote a package ( fb ) containing
On Tue, Dec 12, 2006 at 05:29:55PM +0300, Garanin Michael wrote:
FB wrote:
On Tue, Dec 12, 2006 at 04:42:56PM +0300, Garanin Michael wrote:
traceback, please.
Hmm ... how? It just doesn't return the utility as expected (it returns
None). There is no error shown in any way
Hi,
On Tue, Dec 12, 2006 at 04:14:31PM +0100, David Johnson wrote:
Try:
--
utils = zapi.getAllUtilitiesRegisteredFor(IYourInterface)
for util in utils:
print util
--
You can list all the returned utilities. See if your utility is returned, and
see what name it is
registered
Hi,
is there any reason why a registered utility which is persistently stored
inside the site
manager is never found via zapi.getUtility(IMyInterface) ?
More information:
I wrote a package ( fb ) containing some components making the developer's life
easier. The package
provides a class
Framework to make template based formlib forms easier. Have a
look
at fb.fields ( svn at http://fbo.no-ip.org/svn/fbo/fb ). Unfortunately it's not
well
documented, yet.
fb.test is a simple demonstration object using a slighty more powerfull
edit/addform than the one provided by fb.fields. It uses
-stuff
into a different package (fb) which is much smaller than mpgsite. fb.i18n has
some additional advantages:
* a special class is used as i18n-container (not a dict anymore). This class
knows how to extract language versions, does some other fancy stuff and
behaves like a dict
the template engine does is basically
str(context.homepage)
and context.homepage is most likely just a plain string (like BytesLine,
DottedName, ...) without any interfaces, zope could adapt. This is why i
invented a tales namespace. Using the fb-package this example would do
something useful:
span
Hi,
On Thu, Nov 16, 2006 at 04:09:52PM -0400, David Pratt wrote: Probably should
have clarified - I am referring to Utility container names not anything to
do with Python coding standards.
None that I'm aware of. Only the title of the utility's registration matters
for your application - which
Hi,
what is Zope supposed to do, when there are conflicting security annotations
applied to an object?
I'd like to make an object inaccessible - except for members of a given role.
This is how it should look like:
grantPermissionToRole('zope.View','role.admins',Allow)
Hi,
On Fri, Nov 10, 2006 at 10:32:13AM +0100, Nordmann Arne wrote:
Hi guys,
I'm trying to extend the Interface IImage by a title and a caption. My
plan was to use zope.app.file.interfaces.IImage as base interface and
zope.app.file.Image as base class, but that doesn't work. Every time
On Fri, Nov 10, 2006 at 02:42:37PM +0100, FB wrote:
You need a seperate class ...-Statement for any class - no matter, which
interface(s) it provides. The require-attribute 'like_class' might come
handy...
Sorry for my poor english: for any class is wrong. Correct is for *every*
class
Hi,
On Fri, Nov 03, 2006 at 01:01:12PM -0600, Sreeram Raghav wrote:
Hello,
Here I have a starnge problem.
I created a knowledge base of a certain bunch of documents(PDF, MSWORD,
OO)
My question is when I click on the link to that document using zope(ZMI), it
prompts me to use a client
Hi,
On Wed, Oct 25, 2006 at 05:11:44PM +0200, Dominique Lederer wrote:
hello
i would like to set predefined metadata, when i create a new content object.
from my point of knowledge i could to this with a custom factory or by
listening to events.
is there any other possibility to to
Hi,
On Wed, Oct 18, 2006 at 07:58:45PM +1300, Andrew Groom wrote:
[snip]
browser:page
for=*
name=vortexgdna.xpi
class=.xpipublisher.XPIPublisherView
permission=zope.View/
/configure
(It complained if I didn't have the for
Hi,
On Mon, Oct 16, 2006 at 05:46:29PM +0200, Thierry Florac wrote:
[snip]
Installation is fine, as well as widget, but I can't get dates displayed
or entered in a french way (DD/MM/).
I've tried to modify browser settings as well as a few parameters, but
nothing is doing it correctly
Hi,
On Wed, Oct 18, 2006 at 12:45:50PM +1300, Andrew Groom wrote:
FB wrote:
Hi,
On Tue, Oct 17, 2006 at 12:53:48PM +1300, Andrew Groom wrote:
Hi All,
I want to do something that feels like it should be really simple: set a
specific content type when a particular resource is published
Hi,
On Mon, Oct 16, 2006 at 10:08:34AM -0500, Perry Smith wrote:
I'm new to Zope but I've been programming for 25+ years. I've read
Weitershausen's book and I'm 10
chapters into the Zope 3 developer's handbook. I'm struck by its statement
that beginners find ZCML
hard. That is true
Hi,
On Tue, Oct 10, 2006 at 05:59:55PM -0300, Luiz Fernando Bernardes Ribeiro wrote:
Hello all,
Is there any tool to automate the bootstrap of a new project? Something like
ArcheGen XML? To generates all the initial Interfaces, Implementation
classes and the configure.zcml?
Maybe. I wrote
Hi,
On Fri, Sep 29, 2006 at 10:20:01AM +0200, KLEIN Stéphane wrote:
2006/9/29, KLEIN Stéphane [EMAIL PROTECTED]:
2006/9/29, KLEIN Stéphane [EMAIL PROTECTED]:
Hello,
in one content component I've switch from IList to IDict schema and I
note than IDict widget don't exist. It's normal ? if
Hi,
On Wed, Sep 20, 2006 at 03:49:07PM +0200, FB wrote:
Hi,
I'd like to make URLs like
http://servername/~username
possible on my Zope3 server which should instantly redirect a
visitor to one of my site user's home pages.
Is this possible? Of course, the answer ist yes (by patching
Hi,
On Thu, Sep 21, 2006 at 07:25:06AM -0500, David Johnson wrote:
Does anyone know how to logout? We've been using logout.html as the logout
page for Zope Realm Basic Auth, and it does not seem to log us out. We're
using IE 6.
It's not possible to log out when Basic Auth is used (except if
Hi,
On Mon, Sep 18, 2006 at 03:37:28PM +0100, John Smith wrote:
Hi everyone!
the class
zope.app.publisher.browser.fileresource.FileResource
inherits from BrowserView and Resource in that order.
As far as I can work out, the __init__ method in
Resource
Hi,
On Tue, Sep 19, 2006 at 04:53:45AM -0400, Stephan Richter wrote:
On Tuesday 19 September 2006 03:47, FB wrote:
(Please correct me if I'm wrong, I'm not a Python guru :-) )
[snip]
class Join(First, Second):
... def __init__(self):
... print 'init 3-before
Hi,
On Thu, Sep 14, 2006 at 04:38:15PM -0700, Rob Campbell wrote:
Hello,
I just recently started trying out Zope 3. My first test project is a
few containers that can contain other containers or an object. They are
laid out as follows:
FosterRecord
- FosterSource
- Foster
-
Hi,
On Mon, Sep 11, 2006 at 01:19:31PM +0530, Baiju M wrote:
Just added this to FAQ: http://kpug.zwiki.org/Zope3Faq
I did the same - in german:
http://zope3.mpg.de/cgi-bin/twiki/view/Zope/CookBook#Globale_Konfigurationsparameter
Regards,
Frank
___
On Fri, Sep 08, 2006 at 10:12:34AM +0400, Denis Shaposhnikov wrote:
Stephan == Stephan Richter [EMAIL PROTECTED] writes:
Stephan You cannot grant permissions via ZCML to principals that are
Stephan located in the ZODB. You have to use the Grant view of the
Stephan folder for this.
Oh,
Hi,
my employer want to have all external links marked with a small icon telling
anonymous users from the internet that everything behind given links is
beyond our responsibility.
Currenty I have to do something like that:
a tal:define=linkwriter nocall:context/@@linkwriter
Hi,
On Fri, Sep 08, 2006 at 12:54:14PM +0200, Martijn Pieters wrote:
On 9/8/06, FB [EMAIL PROTECTED] wrote:
my employer want to have all external links marked with a small icon telling
anonymous users from the internet that everything behind given links is
beyond our responsibility.
Why
Hi,
On Fri, Sep 08, 2006 at 01:45:45PM +0200, Philipp von Weitershausen wrote:
[snip]
Write a new TALES expression type (like string: or python:) that constructs
link tags.
This could like:
a tal:replace=structure link:context/url context/urldescription
link goes here
/a
The
Hi,
I wrote a howto about the object schema and how to make a widget for those
objects. It's partly in english:
http://zope3.mpg.de/cgi-bin/twiki/view/Zope/KomplexerContent
Regards,
Frank
___
Zope3-users mailing list
Zope3-users@zope.org
Hi,
On Wed, Jul 12, 2006 at 02:50:47PM +, Stéphane Brault wrote:
Hi,
for my application I need to let another site redirect its user to one of my
page with an operation and some parameters, giving it this address:
http://www.mysite.com/mypage?myOperationparam1=vaue1param2=value2
The
63 matches
Mail list logo