Re: [Zope] Creating a DTM Document in a variable folder.

2005-12-01 Thread Chris Withers
Jonathan Cyr wrote: You might want to use index_html rather than index.html in this example. The dot means other things in Python, and index.html is a carryover from filesystem webservers. My impression is that the acquisition mechanism doesn't like ids with a dot, in some circumstances.

Re: [Zope] Creating a DTM Document in a variable folder.

2005-12-01 Thread Chris Withers
J Cameron Cooper wrote: self.plone['try-me'] or getattr (which doesn't use acquisition.) Eh? What on earth gave you that idea? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope

Re: [Zope] Creating a DTM Document in a variable folder.

2005-12-01 Thread Paul Winkler
On Thu, Dec 01, 2005 at 07:40:38AM +, Chris Withers wrote: Jonathan Cyr wrote: You might want to use index_html rather than index.html in this example. The dot means other things in Python, and index.html is a carryover from filesystem webservers. My impression is that the

Re: [Zope] Creating a DTM Document in a variable folder.

2005-11-30 Thread Jonathan Cyr
You might want to use index_html rather than index.html in this example. The dot means other things in Python, and index.html is a carryover from filesystem webservers. My impression is that the acquisition mechanism doesn't like ids with a dot, in some circumstances. Not trying to nit-pick,

Re: [Zope] Creating a DTM Document in a variable folder.

2005-11-30 Thread J Cameron Cooper
Jonathan Cyr wrote: You might want to use index_html rather than index.html in this example. The dot means other things in Python, and index.html is a carryover from filesystem webservers. My impression is that the acquisition mechanism doesn't like ids with a dot, in some circumstances.

[Zope] Creating a DTM Document in a variable folder.

2005-11-25 Thread Martin Koekenberg
Hello, I don'thave any Python experience yet, so who has a solution for this 'problem'. Example: I 've 3 folders a, b c. I want to create a dtml document in a folder by a form. The folder is a variable in my form. The formis no problem, the form action is no problem. The python

Re: [Zope] Creating a DTM Document in a variable folder.

2005-11-25 Thread Peter Bengtsson
folder = getattr(context, 'b') adder = folder.manage_addProduct['OFSP'].methodAdd adder('index.html', 'Some title') That creates it with default content. To change it you'll have to call dtmlm = getattr(context, 'index.html') dtmlm.manage_edit(bla bla bla bla bla, 'Same title') # or f =