[Zope] Executing a text file as a ZPT from a product

2009-05-03 Thread Jakob Schou Jensen
Im am writing a product and would like to include ZPT's as part of the product. Is there a way that I can evaluate a piece of text (preferrably stored as a text file in the product folder) as a ZPT? Thanks, Jakob Schou Jensen ___ Zope maillist - Zope

[Zope] Touching an object / updating the modification time

2009-03-27 Thread Jakob Schou Jensen
Is it possible to update the modification time of an object (in this case an Image object)? (I need to do this from a python script) Thanks, Jakob ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or

[Zope] Changing the error page

2009-01-17 Thread Jakob Schou Jensen
How do I change the standard error page that is displayed when zope encounters an error? Thanks, Jakob ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] webdav upload - controlling type, hook

2008-10-11 Thread Jakob Schou Jensen
this? Jakob 2008/9/25 Tres Seaver [EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jakob Schou Jensen wrote: When uploading a file to the zope db using the webdav interface zope select on object type based on the file contents (or extension?). For instance when I upload a html

[Zope] webdav upload - controlling type, hook

2008-09-25 Thread Jakob Schou Jensen
When uploading a file to the zope db using the webdav interface zope select on object type based on the file contents (or extension?). For instance when I upload a html file it becomes a DTML document. Is there any way to control what type of object is selected? Additionally I would like to

Re: [Zope] How do I write to a text file from Python?

2008-09-09 Thread Jakob Schou Jensen
. Thanks, Jakob 2008/9/2 Dieter Maurer [EMAIL PROTECTED] Jakob Schou Jensen wrote at 2008-9-2 09:25 +0200: By file object I meant the OFS.Image.File kind. I had two problems creating and modifying the file (at least). The first was that the manage_addFile() function that you mention seemed to insist

Re: [Zope] How do I write to a text file from Python?

2008-09-02 Thread Jakob Schou Jensen
Hi Dieter By file object I meant the OFS.Image.File kind. I had two problems creating and modifying the file (at least). The first was that the manage_addFile() function that you mention seemed to insist on a os-file like object for the file parameter. I got some kind of seek error when trying to

[Zope] How do I write to a text file from Python?

2008-08-29 Thread Jakob Schou Jensen
I would like to create a File object in the and store some text in it from a Python script. Everything I try seems to end up in a security restriction of some kind. Is there some obvious way that I have overlooked? Thanks, Jakob Schou Jensen ___ Zope