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 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', IMyOb
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 IMyIn
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 inh
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 everyth
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
> te
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 som
Dict widget
3. 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'
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
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'v
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
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):
> > retur
Hi,
I've got a container, all of my users have 'zope.ManageContent' permission
in. A subobject of the container is sensitive - users must not be able to
change this object which means, I've to take away 'zope.ManageContent'
permission from all my users (except of one!) whenever context=subobject .
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 a
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 pos
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()
root
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 Tue, Jan 16, 2007 at 01:15:53PM -0500, Stephan Richter wrote:
> On Tuesday 16 January 2007 12:39, FB wrote:
> > is there a way to get all the permissions and roles, the current principal
> > is associated to for a given object?
> >
> > Something like:
&
Hi,
is there a way to get all the permissions and roles, the current principal
is associated to for a given object?
Something like:
getAllRoles(context)
getAllPermissions(context)
Regards,
Frank
___
Zope3-users mailing list
Zope3-users@zope.org
htt
Hi,
On Fri, Jan 12, 2007 at 11:24:23AM +0100, Tom Gross wrote:
> Hi,
>
> I created a customized 'NotFound'-Page which displays fine itself. Now the
> page should render in a skin with some security sensitive viewlets. These
> viewlets disappear when rendering the 'NotFound'-Page.
>
> Is there a
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 utilit
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:
> > "
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 e
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(
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.
>
>
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.
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 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
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: ((,
> URL=http://192.168.81
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 aga
Hi,
On Tue, Dec 12, 2006 at 12:39:37PM -0500, Benji York wrote:
> Tom Gross wrote:
> >you are trying to lookup the utility with the name None. If you don't
> > specify a name when registering the
> >utility,
> >omit the second parameter: zapi.getUtility(IInitIndicator)
>
> In other words, t
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
> registe
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 expecte
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) ?
> >
> &
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 imp
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) ?
> >
&
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
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
Hi,
I've got a Package B depending on a Package A - both of them are zcml-overriding
an adapter which is originally defined in zope itself.
Unfortunately, zope doesn't seem to like that - Package B's override causes
a ConfigurationConflictErrorwhich which it shouldn't - because the adapter
is def
te a small "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 pro
does that.
> This sounds really cool. I am really unfamiliar with namespaces though.
> can you please tell me where in fb package (or mpgsite package) you define
> this namespace.
mpgsite uses two rather big tales-ns-adapters (mpg, mpgi18n), defined in
mpgsite.tales. fb's approach is m
7;s no schema information contained in
"context/homepage". What 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
/>
This looks familiar :-) .
I don't know, if you used my I18NSimpleDisplayWidget. If you do: I can't
remember ever using this one - maybe it's not working as expected. In most
cases, I needed those multilingual fields in page template which I used
a tales-namespace-adapter f
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 - whic
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)
denyPermissionToRole('z
On Fri, Nov 10, 2006 at 02:42:37PM +0100, FB wrote:
> You need a seperate -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. C
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
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 cli
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
Hi,
On Wed, Oct 18, 2006 at 07:58:45PM +1300, Andrew Groom wrote:
[snip]
> for="*"
> name="vortexgdna.xpi"
> class=".xpipublisher.XPIPublisherView"
> permission="zope.View"/>
>
>
>
> (It complained if I didn't have the "for" attri
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
> >&
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 correctl
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 (a Firefox extension, a binary .xpi file
> if it helps). Any ideas
> how
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 tr
On Sun, Oct 15, 2006 at 05:58:26PM +0200, Christophe Combelles wrote:
> each time I want to register any object from the ZMI I get this error.
> (zope 3.3.0 Python 2.4.4c0)
> Do you have any clue?
Yes. Apply this patch to the zope3-sources:
/http.py
--- src/zope/publisher/http.py.old 2006-10-04 1
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 wr
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
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
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
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
zope.traversing.adapters.traversePathElement) - but is there
a more
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):
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
> (zope.app.publisher.browse
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
> -> Fost
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
___
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:
>
>
> link goes here
>
>
> The link: expression would split the argument string, take t
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
> &g
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:
... which doesn't really looks like a nice method to produce i.e. th
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> folde
Hi,
I wrote some some howtos and receipes about Zope3 and would like
a link on
http://www.zope.org/DevHome/Wikis/DevSite/Projects/ComponentArchitecture/FrontPage
to point to those pages. I got an account for zope.org, I logged in but I
don't know how to edit this page. Is this a permission pro
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
http://mail.
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?myOperation¶m1=vaue1¶m2=value2
> The v
74 matches
Mail list logo