[Zope] how to save page content to a word file.

2005-04-21 Thread prabuddha ray
this again is a simple problem which got tricky for me. I've full page template taking parameters to generate a printable report. Another button on this page is for saving the report to a doc file. How can i do this in a ZPT? -- Share the vision of difference with ME

Re: [Zope] how to save page content to a word file.

2005-04-21 Thread Andreas Jung
--On Mittwoch, 20. April 2005 23:17 Uhr -0700 prabuddha ray [EMAIL PROTECTED] wrote: this again is a simple problem which got tricky for me. I've full page template taking parameters to generate a printable report. Another button on this page is for saving the report to a doc file. How can i

Re: [Zope] how to save page content to a word file.

2005-04-21 Thread David H
prabuddha ray wrote: this again is a simple problem which got tricky for me. I've full page template taking parameters to generate a printable report. Another button on this page is for saving the report to a doc file. How can i do this in a ZPT? prabuddha, If you are using Windows then check

[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

[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

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

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 -

[Zope] Product data acquisition by dtml-var

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

[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

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. ? Eventually,

[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 dtml-var mytext If I use this format, the text

[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 metadata

[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 dtml-var mytext If I use this format,

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 but then

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

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

[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, request) The

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:

[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 pre tags. Cliff MCDONNELL, LARRY wrote: Hi, I have a form that the field length for that element is set to 65k in the

[Zope-Checkins] CVS: Zope/inst - Makefile.win.in:1.6.2.5

2005-04-21 Thread Sidnei da Silva
Update of /cvs-repository/Zope/inst In directory cvs.zope.org:/tmp/cvs-serv16981 Modified Files: Tag: Zope-2_7-branch Makefile.win.in Log Message: - A quote too much there === Zope/inst/Makefile.win.in 1.6.2.4 = 1.6.2.5 === --- Zope/inst/Makefile.win.in:1.6.2.4 Wed Apr 13

[Zope-Checkins] SVN: Zope/trunk/inst/Makefile.win.in - A quote too much

2005-04-21 Thread Sidnei da Silva
Log message for revision 30077: - A quote too much Changed: U Zope/trunk/inst/Makefile.win.in -=- Modified: Zope/trunk/inst/Makefile.win.in === --- Zope/trunk/inst/Makefile.win.in 2005-04-21 13:13:20 UTC (rev 30076)

[Zope-Checkins] CVS: Products/StandardCacheManagers/tests - test_AcceleratedHTTPCacheManager.py:1.1.4.2

2005-04-21 Thread Stefan H. Holek
Update of /cvs-repository/Products/StandardCacheManagers/tests In directory cvs.zope.org:/tmp/cvs-serv6118 Modified Files: Tag: Zope-2_7-branch test_AcceleratedHTTPCacheManager.py Log Message: Fixed a test that would repeatedly cause hangs on this screaming dual G4 box. ===

[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/StandardCacheManagers/tests/test_AcceleratedHTTPCacheManager.py Fixed a test that would repeatedly cause hangs on this screaming dual G4 box.

2005-04-21 Thread Stefan H. Holek
Log message for revision 30089: Fixed a test that would repeatedly cause hangs on this screaming dual G4 box. Changed: U Zope/trunk/lib/python/Products/StandardCacheManagers/tests/test_AcceleratedHTTPCacheManager.py -=- Modified:

Re: [Zope-Coders] Wrong username and password == Anonymous User?

2005-04-21 Thread Lennart Regebro
On 4/21/05, Chris Withers [EMAIL PROTECTED] wrote: If it's accessible by anonymous that is the same as not requiring authorization. I don't think that's the case. I have a specific requirement on the project I'm currently working on to know who the current user is, even if the something

[Zope-dev] Re: [Zope-Coders] Unauthorized results in 401, shouldn't it result in 403?

2005-04-21 Thread Chris Withers
Sidnei da Silva wrote: | | 2. Is the above behaviour pluggable at all? | | Not at all. | | Should it be? Can it be without impacting on performance? I don't think so. I would expect there's only one sane way to do it. I'm not sure I agree, I've read lots of different views on this sort of

Re: [Zope-dev] Re: [Zope-Coders] Unauthorized results in 401, shouldn't it result in 403?

2005-04-21 Thread Lennart Regebro
On 4/21/05, Chris Withers [EMAIL PROTECTED] wrote: Aha, as does PAS I see. Does this mean RESPONSE.unauthorized should be a responsibility of the user folder? I think it should be, yes. Or, actually the responsibility of the user object. -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS

Re: [Zope-dev] Re: [Zope-Coders] Unauthorized results in 401, shouldn't it result in 403?

2005-04-21 Thread Chris Withers
Lennart Regebro wrote: On 4/21/05, Chris Withers [EMAIL PROTECTED] wrote: Aha, as does PAS I see. Does this mean RESPONSE.unauthorized should be a responsibility of the user folder? I think it should be, yes. Or, actually the responsibility of the user object. Why the difference? cheers, Chris --

[Zope-dev] RAMcache and container vs. context

2005-04-21 Thread Paul Winkler
I never noticed this before today, but apparently RAMCacheManager is sensitive to whether cached items are acquired from the context or from the container. (Zope 2.7.3 but afaict it should behave the same in any recent version). Is that intended behavior or is this a bug? Let's say I have a CMF

Re: [Zope-dev] RAMcache and container vs. context

2005-04-21 Thread Stefan H. Holek
This is due to how Python Scripts compute their cache keys. The relevant snippet from PythonScript._exec() is: asgns = self.getBindingAssignments() name_context = asgns.getAssignedName('name_context', None) if name_context: keyset[name_context]

Re: [Zope-dev] RAMcache and container vs. context

2005-04-21 Thread Paul Winkler
On Fri, Apr 22, 2005 at 12:27:18AM +0200, Stefan H. Holek wrote: This is due to how Python Scripts compute their cache keys. The relevant snippet from PythonScript._exec() is: asgns = self.getBindingAssignments() name_context = asgns.getAssignedName('name_context',

Re: [Zope-DB] Returning values from Oracle function/procedure withZSQLMethod

2005-04-21 Thread Matthew T. Kromer
On Apr 19, 2005, at 4:24 AM, Chris Withers wrote: Matthew T. Kromer wrote: Chris Withers's branch of DCOracle2 has some changes that help the connection pooling problem. And rumour has it I'm going to get some serious time to work on this soon! Matt, you up for fixing any C-level bugs that crawl

Re: [Zope-DB] Returning values from Oracle function/procedure withZSQLMethod

2005-04-21 Thread Chris Withers
M.-A. Lemburg wrote: Would a native Oracle interface help ? Yeah, and that's what DCOracle2 is, right? Nope. Huh? I think you need to provide a little more information there... If you're telling me you have a real live decent quality native oracle interface, then I'm all ears :-) We're considering