[Zope-CMF] CMF Collector: Open Issues

2005-10-05 Thread tseaver
The following supporters have open issues assigned to them in this collector (http://www.zope.org/Collectors/CMF). Assigned and Open efge - "CMFSetup: provide non-ascii im- and exports", [Accepted] http://www.zope.org/Collectors/CMF/292 - "CMFSetup doesn't correctly detect DCWo

Re: [Zope-CMF] Re: CMFTestCase: Best way to create the CMF site?

2005-10-05 Thread Chris Withers
Stefan H. Holek wrote: I see two options: a) Use a different portal name portal_name = 'mysite' CMFTestCase.setupCMFSite(portal_name) Can setupCMFSite not do something more clever if it finds the object already there? b) Use getPortal() to create a new portal per test def get

Re: [Zope-CMF] Re: CMFTestCase: Best way to create the CMF site?

2005-10-05 Thread Lennart Regebro
On 10/5/05, Chris Withers <[EMAIL PROTECTED]> wrote: > Stefan H. Holek wrote: > > I see two options: > > > > a) Use a different portal name > > > > portal_name = 'mysite' > > CMFTestCase.setupCMFSite(portal_name) > > Can setupCMFSite not do something more clever if it finds the object > alr

Re: [Zope-CMF] Re: CMFTestCase: Best way to create the CMF site?

2005-10-05 Thread Stefan H. Holek
Oh, setupCMFSite is sufficiently clever, it's the CMF tests that aren't ;-) Stefan On 5. Okt 2005, at 10:45, Chris Withers wrote: Stefan H. Holek wrote: I see two options: a) Use a different portal name portal_name = 'mysite' CMFTestCase.setupCMFSite(portal_name) Can setupCMFSi

Re: [Zope-CMF] Re: CMFTestCase: Best way to create the CMF site?

2005-10-05 Thread Paul Winkler
Lennart Regebro said: > On 10/5/05, Chris Withers <[EMAIL PROTECTED]> wrote: >> Stefan H. Holek wrote: >> > I see two options: >> > >> > a) Use a different portal name >> > >> > portal_name = 'mysite' >> > CMFTestCase.setupCMFSite(portal_name) >> >> Can setupCMFSite not do something more cl

[Zope-CMF] Mixing ZopeTestCase.Sandboxed and CMFTestCase?

2005-10-05 Thread Paul Winkler
Related to the thread about how best to set up CMFTestCase... I'm just wondering if I'm doing anything non-kosher by deriving from both CMFTestCase and ZopeTestCase.Sandboxed, which theoretically should prevent any ZODB-pollution as long as I don't do the global CMF site setup. It mostly seems to

[Zope-CMF] Testing skin scripts and templates using ZopeTestCase.Functional

2005-10-05 Thread Paul Winkler
Hi again :) I'm trying to use CMFTestCase along with ZopeTestCase.Functional to test my skin scripts. But how do I get them set up properly? Anybody have working examples of this? I wondered if there might be some in the Plone test suites but if so I didn't find any. Example that fails because "

Re: [Zope-CMF] Testing skin scripts and templates using ZopeTestCase.Functional

2005-10-05 Thread Jens Vagelpohl
def test_DocView(self): url = self.doc1.absolute_url_path() import pdb; pdb.set_trace() response = self.publish(url, self.basic_auth) Some stepping around with pdb reveals this: (Pdb) n /zope/ZopeSoftwareHome/lib/python/ZPublisher/Publish.py(101)publish() ->

[Zope-CMF] Re: Mixing ZopeTestCase.Sandboxed and CMFTestCase?

2005-10-05 Thread Paul Winkler
Answering my own post, I just discovered something else: Paul Winkler said: > It mostly seems to work, but as far as I can tell, you *must* > inherit in exactly that order, i.e. > > class MyTest(ZopeTestCase.Sandboxed, CMFTestCase.CMFTestCase): As it turns out, even with my modification to setupC

Re: [Zope-CMF] Testing skin scripts and templates using ZopeTestCase.Functional

2005-10-05 Thread Paul Winkler
Jens Vagelpohl said: >> def test_DocView(self): >> url = self.doc1.absolute_url_path() >> import pdb; pdb.set_trace() >> response = self.publish(url, self.basic_auth) >> >> >> Some stepping around with pdb reveals this: >> >> (Pdb) n >> >>> /zope/ZopeSoftwareHome/li

Re: [Zope-CMF] Re: Mixing ZopeTestCase.Sandboxed and CMFTestCase?

2005-10-05 Thread Paul Winkler
Paul Winkler said: > Answering my own post, I just discovered something else: (snip) > If you inherit in the other order, e.g. > class Foo(CMFTestCase.CMFTestCase, ZopeTestCase.Sandboxed), > then you have to be sure you've deleted anything > that might still be around in beforeTearDown(). > So I gu

Re: [Zope-CMF] Testing skin scripts and templates using ZopeTestCase.Functional

2005-10-05 Thread Jens Vagelpohl
On 5 Oct 2005, at 23:07, Paul Winkler wrote: -> request, bind=1) (Pdb) n NotFound: 'document_view' The machinery doesn't know which skin is selected I presume. You can "force" it by calling "changeSkin" on the skinnable object manager (the portal is one) to select a skin path as set up in the

[Zope-CMF] Re: Testing skin scripts and templates using ZopeTestCase.Functional

2005-10-05 Thread Stefan H. Holek
On 5. Okt 2005, at 23:27, Paul Winkler wrote: I'm trying to use CMFTestCase along with ZopeTestCase.Functional to test my skin scripts. But how do I get them set up properly? Anybody have working examples of this? I wondered if there might be some in the Plone test suites but if so I didn't fi

Re: [Zope-CMF] Testing skin scripts and templates using ZopeTestCase.Functional

2005-10-05 Thread Paul Winkler
Jens Vagelpohl said: >>> The machinery doesn't know which skin is selected I presume. You can >>> "force" it by calling "changeSkin" on the skinnable object manager >>> (the portal is one) to select a skin path as set up in the skins >>> tool: >>> >>> self.portal.changeSkin('Nouvelle') >>> >> >> Th

Re: [Zope-CMF] Testing skin scripts and templates using ZopeTestCase.Functional

2005-10-05 Thread Tom Dossis
Paul Winkler wrote: Hi again :) I'm trying to use CMFTestCase along with ZopeTestCase.Functional to test my skin scripts. But how do I get them set up properly? Anybody have working examples of this? I wondered if there might be some in the Plone test suites but if so I didn't find any. Exampl