[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 Py

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 fo

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

2006-06-21 Thread Marco Mariani
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 for the request than this... any > offerings? >

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

2006-06-21 Thread Philipp von Weitershausen
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 for the request tha

Re: [Zope3-Users] Splitting ZODB ?

2006-06-21 Thread Chris Withers
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 3's zope.conf would al

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

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 doesn

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) >

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

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

[Zope3-Users] ldapadapter & friends

2006-06-21 Thread Marco Mariani
I'm using 3.3.0b1 trying to set up ldapadapter, ldappas & ldapauth from SVN, I see that ldapadapter uses deprecated ZCML and module locations While changing with , how am I supposed to replace this nameOnly parameter? Patch the source? Maybe it could be mentioned in http://kpug.zwiki.org/

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

2006-06-21 Thread Rupert Redington
Philipp von Weitershausen wrote: > > That already sounds like bad design. Why would the local utility worry > about URLs at all? > It probably is :-) The utility is responsible for generating a PDF snapshot of a view - as seen by the invoking user at the point when the utility is invoked. To d

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

2006-06-21 Thread Philipp von Weitershausen
Rupert Redington wrote: > The utility is responsible for generating a PDF snapshot of a view - as > seen by the invoking user at the point when the utility is invoked. To > do this I open an HTMLDOC subprocess which needs a url to go to, and > which needs to know which user to pretend to be so that

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'] = Padre('Lety'

[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 wo

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 Zope3-users@zope.

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