[Zope] batch processing with CMFPhotoAlbum

2005-04-21 Thread Malthe Borch
Hello list, --- In the sake of usability, I'd like to offer my users the ability to upload a compressed archive (i.e. zip og tarball) of photos, so that uploading a roll of film isn't a days work, but rather two or three clicks. Obviously, there still would be a need to do a group-rename afterwa

[Zope] repozo over nfs?

2005-04-21 Thread Sascha Ottolski
Hi, I'm wondering how and how often people run repozo. Myself am running it to perform one full backup every night (after a pack), and a incremental one every hour (which needs about 15 min. with nice -n19). What bothers me, however, is the fact, that the backup process is real hit on the over

Re: [Zope] repozo over nfs?

2005-04-21 Thread Jens Vagelpohl
On Apr 21, 2005, at 13:16, Sascha Ottolski wrote: What bothers me, however, is the fact, that the backup process is real hit on the overall performance (espacially . The server in question has a RAID-5 setup, storing the backups on the same array as it reads the Data.fs from. Obviously, this kee

Re: [Zope] [python script] problem with AUTHENTICATED_USER

2005-04-21 Thread Chris Withers
Jürgen Herrmann wrote: hi: AUTHENTICATED_USER is in REQUEST: hence you could write ... self.REQUEST.AUTHENTICATED_USER.has_role(self, ["Manager"]) ... Yes, but this is deprecated. Do what Andreas said :-) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http:/

[Zope] Product data acquisition by

2005-04-21 Thread Anders Karlsson
I am working some on a product where I have some problems making a nice interface to the calling dtml-code. My product grabs and caches RSS data for a feed, and now I would like to make an interface much like the one that is provided by the "Z SQL Method". My problem is that I can't find any do

[Zope] Adding a folder

2005-04-21 Thread Justin Fletcher
I am rather new to Zope, and am having a little trouble hunting through the documentation to find what I need.  Currently I am looking to write a script that when called will create a folder with a specified name.   Eventually, of course, I will want to programatically add content to these folde

Re: [Zope] Adding a folder

2005-04-21 Thread Paul Winkler
On Thu, Apr 21, 2005 at 09:58:52AM -0500, Justin Fletcher wrote: > I am rather new to Zope, and am having a little trouble hunting through > the documentation to find what I need. ?Currently I am looking to write > a script that when called will create a folder with a specified name. ? > Eventual

[Zope] changing select metadata

2005-04-21 Thread Malthe Borch
Hello list, --- A quickie: I'm trying to change the expiration date of an object with this code: obj = getattr(context, id) obj.editMetadata(expiration_date=...) which works very well, however all other metadata gets wiped out :( Now, what's the method that works the other way, i.e. only

[Zope] Adding Carriage return/line feed to a text field

2005-04-21 Thread MCDONNELL, LARRY
Hi,   I have a form that the field length for that element is set to 65k in the database. Using a textbox, the person can enter their information. I now want to view the text. I can again use a text box but what I want to do is this –     If I use this format, the text is one line.

[Zope] Re: changing select metadata

2005-04-21 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Malthe Borch wrote: > Hello list, --- > > A quickie: > > I'm trying to change the expiration date of an object with this code: > > obj = getattr(context, id) > obj.editMetadata(expiration_date=...) > > which works very well, however all other

[Zope] Newbie - Cannot cut and paste objects in ZMI

2005-04-21 Thread Dustin Freeman
Hello all, Just got Zope 2.7.5 up and running on my Win2003 server with IIS. Was working my way through the Book and the "Elvis" tutorial and I cannot cut/copy objects and paste them in to other folders though the ZMI. I'll check the object click cut...toolbar changes to display the paste button

Re: [Zope] Adding Carriage return/line feed to a text field

2005-04-21 Thread J Cameron Cooper
MCDONNELL, LARRY wrote: I have a form that the field length for that element is set to 65k in the database. Using a textbox, the person can enter their information. I now want to view the text. I can again use a text box but what I want to do is this – > If I use this format, the text is one

Re: [Zope] Newbie - Cannot cut and paste objects in ZMI

2005-04-21 Thread Phillip Hutchings
> Just got Zope 2.7.5 up and running on my Win2003 server with IIS. Was > working my way through the Book and the "Elvis" tutorial and I cannot > cut/copy objects and paste them in to other folders though the ZMI. > I'll check the object click cut...toolbar changes to display the paste > button bu

Re: [Zope] backing up zope files

2005-04-21 Thread Abhilasha Chaudhary
Abhilasha Chaudhary wrote: Thanks for the info. I downloaded the FSDump product and dumped my files to the file system. But when I ftp the files back to the zope interface, they lose their properties. Is there a way(other than PUT_factory) to ftp the dump so that the object properties are not lo

Re: [Zope] backing up zope files

2005-04-21 Thread Paul Winkler
On Thu, Apr 21, 2005 at 05:48:40PM -0400, Abhilasha Chaudhary wrote: > Abhilasha Chaudhary wrote: > > >Thanks for the info. I downloaded the FSDump product and dumped my > >files to the file system. > >But when I ftp the files back to the zope interface, they lose their > >properties. Is there a

Re: [Zope] Adding a folder

2005-04-21 Thread Justin Fletcher
Paul Winkler wrote: On Thu, Apr 21, 2005 at 09:58:52AM -0500, Justin Fletcher wrote: I am rather new to Zope, and am having a little trouble hunting through the documentation to find what I need. ?Currently I am looking to write a script that when called will create a folder with a specified n

[Zope] index.html in Python Script?

2005-04-21 Thread Erik Myllymaki
How do address a ZPT with a name like index.html in a Python Script? The following: request = container.REQUEST RESPONSE = request.RESPONSE if not request.has_key('next_state'): return container.index.html(context, request) returns: Error Type: AttributeError Error Value: index _

Re: [Zope] index.html in Python Script?

2005-04-21 Thread Phillip Hutchings
On 22/04/05, Erik Myllymaki <[EMAIL PROTECTED]> wrote: > How do address a ZPT with a name like index.html in a Python Script? > > The following: > > request = container.REQUEST > RESPONSE = request.RESPONSE > > if not request.has_key('next_state'): >return container.index.html(context, requ

Re: [Zope] index.html in Python Script?

2005-04-21 Thread Erik Myllymaki
thanks, and this seems to do what I want to: request = container.REQUEST RESPONSE = request.RESPONSE if not request.has_key('next_state'): return container['index.html'](context, request) Phillip Hutchings wrote: On 22/04/05, Erik Myllymaki <[EMAIL PROTECTED]> wrote: How do address a ZPT with a

Re: [Zope] index.html in Python Script?

2005-04-21 Thread David H
Erik Myllymaki wrote: How do address a ZPT with a name like index.html in a Python Script? The following: request = container.REQUEST RESPONSE = request.RESPONSE if not request.has_key('next_state'): return container.index.html(context, request) returns: Error Type: AttributeError Error Value: i

[Zope] Question regarding changing Zope site to another distro

2005-04-21 Thread Mário Gamito
Hi, I run this Zope/Plone site - www.dte.ua.pt I am no Zope guru. I've just managed, with my years on administrating Linux servers, to install it, as well as plone and a bunch of Products, and get it running. That's all. Just made after, a few hacks in Plone code, mainly to support authentication

Re: [Zope] Adding Carriage return/line feed to a text field

2005-04-21 Thread Cliff Ford
If you are using a textarea field for input you could also use a text area field for display, useful if the input might contain html tags. Therwise wrap the display in tags. Cliff MCDONNELL, LARRY wrote: Hi, I have a form that the field length for that element is set to 65k in the database.