Duncan Mortimer wrote:

    REQUEST=self.REQUEST,
AttributeError: REQUEST

You have to simulate sending yourself a request, something along these lines :

from Testing.makerequest import makerequest
app=makerequest(app)
app.uol=makerequest(app.uol)

uol is our plone root - replace with what you have.


I'm starting to think that just using the ZMI is an easier option :-(
Thats the conclusion a number of people probably come to. Its a pity though because its a good idea to write code that constructs the site in pieces. Its a very modular approach that makes it easy to trace back what happened. Creating stuff through the ZMI, one has no record of what one did or a way to recreate it, or way to create partial stuff for testing, etc

Apparently this is better in Zope 3.........................
--
Nick Davis
Web Application Developer
University of Leicester
http://www2.le.ac.uk
http://ebulletin.le.ac.uk


_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup

Reply via email to