[Zope] File objects AttributeError:alt

2008-04-14 Thread Palermo, Tom
I've recently upgraded my Zope version from 2.7.6 to 2.9.8. I've recently discovered that older File objects are generating an AttributeError: alt whenever I call manage_changeProperties() on those File object instances. I'm aware of the change to lib/python/OFS/Image.py that removed the alt class

[Zope] Python Generators and Zope question

2006-04-20 Thread Palermo, Tom
All, I have a site that uses CookieCrumbler for user login. I need to track how many incorrectlogin attempts a user makes. I am trying to use a python generator to do this but it makes Zope hang when I try to do an invalid login (eg. no password or incorrect password). Here's a snippet:

RE: [Zope] Cookie Crumbler/Authentication Question

2006-04-19 Thread Palermo, Tom
:44 PM To: Palermo, Tom Cc: 'zope@zope.org' Subject: Re: [Zope] Cookie Crumbler/Authentication Question Palermo, Tom wrote at 2006-4-18 22:29 -0400: I am working on a site that uses CookieCrumbler for the authentication. Part of this site allows a user to change their password via this line

[Zope] Cookie Crumbler/Authentication Question

2006-04-18 Thread Palermo, Tom
All, I am working on a site that uses CookieCrumbler for the authentication. Part of this site allows a user to change their password via this line: userfolder.manage_users(submit='Change', REQUEST=user_info). This works fine except after changing the password, the user is no longer

RE: [Zope] ExtFile and TextIndexNG issues

2006-04-13 Thread Palermo, Tom
PROTECTED] Sent: Wednesday, April 12, 2006 4:06 AM To: Palermo, Tom Cc: 'zope@zope.org' Subject: Re: [Zope] ExtFile and TextIndexNG issues This however is *exactly* the problem. Please use 1.5. ExtFile 1.4.4's index_html writes to the request regardless of how it was called (by publisher

RE: [Zope] ExtFile and TextIndexNG issues

2006-04-12 Thread Palermo, Tom
Oh. Thanks :-) -Tom Palermo -Original Message- From: Stefan H. Holek [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 12, 2006 4:06 AM To: Palermo, Tom Cc: 'zope@zope.org' Subject: Re: [Zope] ExtFile and TextIndexNG issues This however is *exactly* the problem. Please use 1.5

[Zope] ExtFile and TextIndexNG issues

2006-04-11 Thread Palermo, Tom
All, Last week I posted this: I've got a site with a couple hundred ExtFile objects. I now need to index the content of the various files (word, pdf, excel, ppt). I see that ExtFile doesn't have a PrincipiaSearchSource method so I created one. It returns self.index_html(). When I go

[Zope] TextIndexNG question

2006-04-07 Thread Palermo, Tom
All, I've just installed TextIndexNG2. I created a TextIndexNG2 index called PrincipiaSearchSource in myCatalog.In the converters tab for this index, I see this: Mime-Types Description depends on application/pdf Adobe Acrobat PDF pdftotext application/vnd.sun.xml.writer OpenOffice

RE: [Zope] TextIndexNG question

2006-04-07 Thread Palermo, Tom
I figured it out. -Tom -Original Message- From: Andreas Jung [mailto:[EMAIL PROTECTED] Sent: Friday, April 07, 2006 1:33 PM To: Palermo, Tom; 'zope@zope.org' Subject: Re: [Zope] TextIndexNG question --On 7. April 2006 13:18:52 -0400 Palermo, Tom [EMAIL PROTECTED] wrote: Why do

[Zope] TextIndexNG and ExtFile

2006-04-07 Thread Palermo, Tom
All, I've got a site with a couple hundred ExtFile objects. I now need to index the content of the various files (word, pdf, excel, ppt). I see that ExtFile doesn't have a PrincipiaSearchSource method so I created one. It returns self.index_html(). When I go back into my catalog and

RE: [Zope] manage_pasteObjects question

2006-03-09 Thread Palermo, Tom
, March 09, 2006 12:44 AMTo: Palermo, TomCc: 'zope@zope.org'Subject: Re: [Zope] manage_pasteObjects question Palermo, Tom wrote: Hi David, In my last post, I wrote that I tried calling manage_pasteObjects a variety of ways: context.manage_pasteObjects(conte

RE: [Zope] manage_pasteObjects question

2006-03-08 Thread Palermo, Tom
-Original Message- From: Dieter Maurer [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 08, 2006 2:07 PM To: Palermo, Tom Cc: 'zope@zope.org' Subject: Re: [Zope] manage_pasteObjects question Palermo, Tom wrote at 2006-3-7 16:13 -0500: I am trying to do a manage_cutObjects in one script

RE: [Zope] manage_pasteObjects question

2006-03-08 Thread Palermo, Tom
@zope.org'Subject: Re: [Zope] manage_pasteObjects question Palermo, Tom wrote: I'm trying to do the cut in one script and the paste in another script. It's my understanding that REQUEST is an optional parameter to manage_cutObjects(). Passing REQUEST will set a cookie, __cp. __cp is the clipboard data. Later

[Zope] manage_pasteObjects question

2006-03-07 Thread Palermo, Tom
I am trying to do a manage_cutObjects in one script and then a manage_pasteObjects. When I execute this line from my pasteObjects python script: context.manage_pasteObjects(cb_copy_data=context.cb_dataItems(),REQUEST=req['__cp']) I get a message back: "The data in the clipboard could not

RE: [Zope] catching BadRequest exceptions

2006-03-04 Thread Palermo, Tom
on (ie. It's just some very basic html output). Thanks, Tom -Original Message- From: Dieter Maurer [mailto:[EMAIL PROTECTED] Sent: Saturday, March 04, 2006 2:29 PM To: Palermo, Tom Cc: 'zope@zope.org' Subject: Re: [Zope] catching BadRequest exceptions Palermo, Tom wrote at 2006-3-3 13

[Zope] catching BadRequest exceptions

2006-03-03 Thread Palermo, Tom
All, It seems that BadRequest exceptions, like the ones thrown by checkValidId() in OFS.ObjectManager (lib/python/OFS/ObjectManager.py), are not handled by a standard_error_message. That is, I can't skin the error message so it looks friendly and doesn't show a traceback. Does anyone know

[Zope] ac_acquire error happens after inheriting from Folder

2006-02-28 Thread Palermo, Tom
All, I have a class called Contact that is now inheriting from Folder. After I did this, I get the following error when attempting to add a new Contact: Exception Type AttributeErrorException Value aq_acquire Traceback (innermost last): * Module ZPublisher.Publish, line 101, in

RE: [Zope] ac_acquire error happens after inheriting from Folder

2006-02-28 Thread Palermo, Tom
is it and which way is better/worse? Thanks, Tom -Original Message- From: Dieter Maurer [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 28, 2006 1:54 PM To: Palermo, Tom Cc: 'zope@zope.org' Subject: Re: [Zope] ac_acquire error happens after inheriting from Folder Palermo, Tom wrote

[Zope] calling getOwner on an ExtFile instance raises an Unauthorized ex ception

2006-02-15 Thread Palermo, Tom
All, Does anyone know why calling getOwner() on an instance of ExtFile raises an unauthorized exception? Error Type: Unauthorized Error Value: You are not allowed to access 'getOwner' in this context ExtFile imports SimpleItem which, in turn, imports AccessControl.Owner Here's the code

[Zope] RE: calling getOwner on an ExtFile instance raises an Unauthori zed ex ception

2006-02-15 Thread Palermo, Tom
Seaver [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 15, 2006 10:46 AM To: Palermo, Tom Subject: Re: calling getOwner on an ExtFile instance raises an Unauthorized ex ception -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Palermo, Tom wrote: All, Does anyone know why calling getOwner

[Zope] workflow products

2006-02-14 Thread Palermo, Tom
All, Are there any workflow products available for Zope 2.x that do not require either Plone or CMF? It looks like there aren't but I thought I'd ask first. Thanks, Tom ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope

[Zope] get ALL local roles for a user

2006-02-13 Thread Palermo, Tom
Is there an easy way to grab all of the local roles a user might have throughout a site? It's looking like I need to check objects recursively. I've not had luck with get_local_roles_for_userid method. Thanks, Tom ___ Zope maillist -

[Zope] proxy roles on Product methods

2006-02-08 Thread Palermo, Tom
Hi All, Is it possible to set proxy roles on methods located in Zope Products. I need to turn the View permission off on some folders so certain users can't see them in a sitemap (uses dtml-tree). However, I've got an edit_html method located in a Zope product that then needs to use

[Zope] ExtFile - wrong file extension and content_type

2006-02-07 Thread Palermo, Tom
All, I am working on a project using ExtFile. Lately, when uploading MS Word files, they get uploaded to the file system as .exe files (eg. test.doc becomes test.exe) and the content_type is set to application/octet-stream instead of application/msword. Sometimes the content_tpye is