[Zope3-Users] Re: Unable to Get Zope 3 running

2006-06-21 Thread Philipp von Weitershausen
Daniel Roberson wrote: I am new at this but I have been unable to get Zope 3 to run correctly from the internet or from another computer on my internal network. I downloaded Python 2.4.0 and installed it. Note that at least Python 2.4.1 is required. I recommend the latest revision of Python

Re: [Zope3-Users] Access request object from content_factory

2006-06-21 Thread Rupert Redington
Hi John, When I'm looking for the request object from somewhere like that I use from zope.security.management import getInteraction request = getInteraction().participations[0] Why this works is outlined (IIRC) in zope/app/securitypolicy/zopepolicy.txt. There may well be better ways to fish

Re: [Zope3-Users] Re: Access request object from content_factory

2006-06-21 Thread Rupert Redington
Philipp von Weitershausen wrote: Marco Mariani wrote: Rupert Redington wrote: from zope.security.management import getInteraction request = getInteraction().participations[0] Why this works is outlined (IIRC) in zope/app/securitypolicy/zopepolicy.txt. There may well be better ways to fish

Re: [Zope3-Users] Re: Access request object from content_factory

2006-06-21 Thread John Smith
Well, I always like to do things the way the experts recommend :) Are there any suggestions for this use case?: I have a content class, which consists of 2 attributes: 1. a user comment 2. the name of the logged in user So far, I have been using the browser:addform directive to add instances,

[Zope3-Users] Formlib and fieldsets

2006-06-21 Thread Rupert Redington
Hi All, I can't find anything in Formlib to indicate that there's a well trodden path to handling fieldsets in formlib. I'm not really sure what the best way to do this is. Clearly the formlib form templates that I can see in Zope 3.2 don't contain any code for handling fieldsets - but that

Re: [Zope3-Users] Re: Access request object from content_factory

2006-06-21 Thread John Smith
--- Rupert Redington [EMAIL PROTECTED] wrote: I realise that I shouldn't use zapi anymore... apart Good gracious! No zapi? How did I miss that? Where do I get my utilities, parents, roots, adapters from now? John. (dazed and confused)

Re: [Zope3-Users] Re: Access request object from content_factory

2006-06-21 Thread Rupert Redington
John Smith wrote: --- Rupert Redington [EMAIL PROTECTED] wrote: I realise that I shouldn't use zapi anymore... apart Good gracious! No zapi? How did I miss that? Where do I get my utilities, parents, roots, adapters from now? John. (dazed and confused) I think the

Re: [Zope3-Users] Re: Access request object from content_factory

2006-06-21 Thread Benji York
Rupert Redington wrote: John Smith wrote: No zapi? How did I miss that? Where do I get my utilities, parents, roots, adapters from now? I think the right answer to that is wherever zapi got them from in the first place Well said. -- Benji York Senior Software Engineer Zope Corporation

RE: [Zope3-Users] store persistent objects

2006-06-21 Thread Leticia Larrosa
Hi all To fix the error I must change the __init__ of the BTreeContainer class to the follow: class persistent_test(BTreeContainer): implements(Ipersistent_test) def __init__(self): BTreeContainer.__init__(self) self['un_padre'] = Padre('Lety','Campanilla') Any idea

Re: [Zope3-Users] Re: Access request object from content_factory

2006-06-21 Thread Philipp von Weitershausen
Rupert Redington wrote: The hack displayed above (going thru the security interaction) should not be considered a standard procedure for getting at the request in places where you don't have it. Content objects are dull. They do nothing. Other stuff does things *to* them. Mats' solution is the

Re: [Zope3-Users] store persistent objects

2006-06-21 Thread Alek Kowalczyk
Leticia Larrosa wrote: Hi all To fix the error I must change the __init__ of the BTreeContainer class to the follow: class persistent_test(BTreeContainer): implements(Ipersistent_test) def __init__(self): BTreeContainer.__init__(self) self['un_padre'] =

[Zope3-Users] Re: Splitting ZODB ?

2006-06-21 Thread Philipp von Weitershausen
Chris Withers wrote: Thierry FLORAC wrote: While using Zope2, I used to split my ZODB into several parts, using the old DBTab product configuration (which was finally included into Zope2). Can I setup this kind of configuration with Zope3 and, if so, how ? It's all ZODB, I would hope Zope

Re: [Zope3-Users] Re: Splitting ZODB ?

2006-06-21 Thread Jim Fulton
Philipp von Weitershausen wrote: Chris Withers wrote: Thierry FLORAC wrote: While using Zope2, I used to split my ZODB into several parts, using the old DBTab product configuration (which was finally included into Zope2). Can I setup this kind of configuration with Zope3 and, if so, how ?

Re: [Zope3-Users] Re: Splitting ZODB ?

2006-06-21 Thread Philipp von Weitershausen
Jim Fulton wrote: Zope 3 doesn't support mounting, but the same functionality is mostly trivially obtained using the ZODB multi-database APIs. Well, ok, then mounting support could a nice sprint topic :) ___ Zope3-users mailing list

Re: [Zope3-Users] Re: Splitting ZODB ?

2006-06-21 Thread Jim Fulton
Philipp von Weitershausen wrote: Jim Fulton wrote: Zope 3 doesn't support mounting, but the same functionality is mostly trivially obtained using the ZODB multi-database APIs. Well, ok, then mounting support could a nice sprint topic :) Maybe, I'm not really sure it is necessary. Now you