RE: [Zope-dev] Allowing python logging from restricted code

2005-10-11 Thread Tim McLaughlin
We are currently finishing up a debug_log much like the error log that Python scripts can write too. We would happily make that source available if you think it will fit the bill. Cheers, Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Withers

[Zope-dev] checkPermission and proxy roles

2005-03-16 Thread Tim McLaughlin
Zope's checkPermission method. If there are no objections I'll soon make a CVS checkin of the attached code. Cheers, Yuppie --- -- Tim McLaughlin Chief Technology Officer Siteworx, Inc. Innovative internet solutions. 703.964.0300 ext. 208

[Zope-dev] property type

2003-02-06 Thread Tim McLaughlin
to mix in this object w/ a Folder object, the instance returns property object at 0x8b45edc for the 'prop' attribute. Is this an issue with pickling or something else? Cheers, Tim -- Tim McLaughlin Chief Technology Officer Siteworx, Inc... Set your site on the future! 703.390.5421 msg12579

[Zope-dev] override __of__

2003-02-06 Thread Tim McLaughlin
traversal. :( Cheers, Tim -- Tim McLaughlin Chief Technology Officer Siteworx, Inc... Set your site on the future! 703.390.5421 msg12585/pgp0.pgp Description: PGP signature

Re: [Zope-dev] get_request() and GlobalRequestPatch

2002-10-27 Thread Tim McLaughlin
old)? Best Regards, Johan Carlsson -- Tim McLaughlin Chief Technology Officer Siteworx, Inc... Set your site on the future! 703.390.5421 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts

Re: [Zope-dev] How can I find out who visited a URL within my ZopeProduct?

2002-10-08 Thread Tim McLaughlin
** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) -- Tim McLaughlin Chief Technology Officer Siteworx, Inc... Set your site on the future! 703.390.5421

Re: [Zope-dev] I/O Error

2002-09-09 Thread Tim McLaughlin
that can be? m. -- Tim McLaughlin Chief Technology Officer Siteworx, Inc... Set your site on the future! 703.390.5421 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding

[Zope-dev] two hard questions

2002-03-06 Thread Tim McLaughlin
so that I can override some methods on an instance by instance basis? I tried doing a .__class__ replacement, but for whatever reason, Zope machinery seems to keep it from taking effect. Any ideas? I've tried about 5 different approaches to no avail :( Sincerely, Tim McLaughlin -- Tim

Re: [Zope-dev] two hard questions

2002-03-06 Thread Tim McLaughlin
Casey Duncan wrote: On Wednesday 06 March 2002 07:27 am, Tim McLaughlin allegedly wrote: Firstly, I'm trying to return a lazy list to a dtml-in, but it seems that the __getitems__ are all called up front This is the class and the print statement shows up in debugging before any debugging

Re: [Zope-dev] ZClasses and Python

2002-02-19 Thread Tim McLaughlin
foobar. If i change the properties of foobar, then manage_editProperties is called( i'am right ). Is there a way to catch the manage_editProperties function(called from foobar) in my base-class foo Thanks as P.S.: I hope there is someone understanding this :) -- Tim McLaughlin Iteration

[Zope-dev] pdf - Files not viewable

2001-11-09 Thread Tim McLaughlin
is since this used to work. Did something change in 2.4 that could have caused File objects to function badly? Thanks, Tim -- Tim McLaughlin iterationZERO - www.iterationzero.com 703.481.2233 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org

Re: [Zope-dev] Versions (still)

2001-10-23 Thread Tim McLaughlin
be a better way :) Cheers, Tim -- Tim McLaughlin iterationZERO - www.iterationzero.com 703.481.2233 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists

[Zope-dev] Re: International Objects

2001-10-21 Thread Tim McLaughlin
that's my first thought). Zope-devers, any ideas? Anybody know of any __getattr__ changes in the 2.4.0 to 2.4.1 transition? Cheers, Tim Roger Espinosa wrote: On Wed, 17 Oct 2001, Tim McLaughlin wrote: If so, let me know what you think after you toy with it a bit. Note that it also

Re: [Zope-dev] nasty persistence problem

2001-10-15 Thread Tim McLaughlin
Michel Pelletier wrote: Tim McLaughlin wrote: A product had gotten copied in that moved a Product class from one module to another even though everything else was the same. It seems that ZODB doesn't like that. It sure doesn't. When it pickles an object, it says, here's a big

[Zope-dev] nasty persistence problem

2001-10-12 Thread Tim McLaughlin
and on and on for a while. -- Tim McLaughlin iterationZERO - www.iterationzero.com 703.481.2233 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http

Re: [Zope-dev] nasty persistence problem

2001-10-12 Thread Tim McLaughlin
= Zope.app() app.fixupZClassDependencies(rebuild=1) get_transaction().commit() exit the debugger and restart, see what happens. - Original Message - From: Tim McLaughlin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 12, 2001 10:29 AM Subject: [Zope-dev] nasty

Re: [Zope-dev] ZSQL methods lookup vars in REQUEST only (why?)

2001-10-11 Thread Tim McLaughlin
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Tim McLaughlin Sent: Thursday, October 11, 2001 1:30 PM To: [EMAIL PROTECTED] Cc: Micah Martin Subject: [Zope-dev] ZSQL methods lookup vars in REQUEST only (why?) I've been asked too many times now by developers what

[Zope-dev] ZClass and ZCatalog

2001-07-06 Thread Tim McLaughlin
_ Tim McLaughlin iterationZERO - www.iterationzero.com 703-481-2233 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org

[Zope-dev] security question

2001-06-15 Thread Tim McLaughlin
them directly: http://server/folder2/object1 Does this seem strange to anybody else, or have I just been working too long? _ Tim McLaughlin iterationZERO - www.iterationzero.com 703-481-2233 ___ Zope

[Zope-dev] symbolic link to another object in the Zope DB

2001-06-14 Thread Tim McLaughlin
Has anybody seen a product that lets you make the equivalent of a symbolic link in unix in the Zope DB? Thanks, Tim _ Tim McLaughlin iterationZERO - www.iterationzero.com 703-481-2233 ___ Zope-Dev

Re: [Zope-dev] multiple servers!

2001-06-12 Thread Tim McLaughlin
. _ Tim McLaughlin Iteration Zero - www.iterationzero.com 703-481-2233 Message: 8 Date: Mon, 11 Jun 2001 12:04:31 +0200 (CEST) From: Erik Enge [EMAIL PROTECTED] To: Stian Jenssen [EMAIL PROTECTED] cc: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Re

Re: [Zope-dev] multiple servers!

2001-06-11 Thread Tim McLaughlin
Stian, It's probably nicer to use the -P option for z2.py which allows you to specify a port offset for all ZServer services. ie. -P 8001 puts http on 8081 and ftp on 8022 or -P 8002 puts http on 8082 and ftp on 8023 --Tim _ Tim

[Zope-dev] Fwd: Fwd: ZClassEvents

2001-05-24 Thread Tim McLaughlin
response. I have successfully used it in two projects. I'll write an howto on monday and put up on zope.org Thanks for a great product and great support! /Magnus Tim -Original Message- From:Tim McLaughlin [EMAIL PROTECTED] Sent:Fri, 18 May 2001 13:50:06 -0700

[Zope-dev] disable view on method for ZClass

2001-05-17 Thread Tim McLaughlin
. Disabling the method for TTW calling cleans everything up nicely. Anybody have any thoughts? Also, does anybody have any idea where it is currently getting the default set... I can't seem to find it. Thanks, Tim ___ Tim McLaughlin

RE: Subject: [Zope-dev] change ownership

2001-05-11 Thread Tim McLaughlin
User database houses 'username' user = self.acl_users.getUser(username) self.changeOwnership(user.__of__(self.acl_users)) return 'done.' --Tim McLaughlin (tmclaugh) -Original Message- From: Magnus Heino (Rivermen) To: 'Tim McLaughlin'; Magnus Heino (Rivermen) Sent: 5/11/01 1:20

RE: Subject: [Zope-dev] change ownership

2001-05-10 Thread Tim McLaughlin
to changeOwnership is a User _object_. Good luck. --Tim -Original Message- From: Magnus Heino (Rivermen) [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 10, 2001 7:25 AM To: 'Tim McLaughlin'; '[EMAIL PROTECTED]'; Magnus Heino (Rivermen) Subject: SV: Subject: [Zope-dev] change ownership I can get

RE: Subject: [Zope-dev] change ownership

2001-05-10 Thread Tim McLaughlin
What kind of UserFolder are you using... LoginManager or something? -Original Message- From: Magnus Heino (Rivermen) [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 10, 2001 9:13 AM To: 'Tim McLaughlin'; Magnus Heino (Rivermen) Cc: '[EMAIL PROTECTED]' Subject: SV: Subject: [Zope-dev

RE: Subject: [Zope-dev] change ownership

2001-05-10 Thread Tim McLaughlin
could also try a ZUserFolder and use restrictedTraverse if you want. :-) /plug -Original Message- From: Magnus Heino (Rivermen) [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 10, 2001 9:23 AM To: 'Tim McLaughlin'; Magnus Heino (Rivermen) Cc: '[EMAIL PROTECTED]' Subject: SV: Subject: [Zope-dev

Subject: [Zope-dev] change ownership

2001-05-09 Thread Tim McLaughlin
Magnus, No, changeOwnership is not exposed for TTW calling. But you can expose it through an external method... I used this one on a ZClass. def set_owner(self, user): self.changeOwnership(user) return --Tim Message: 6 From: Magnus Heino (Rivermen) [EMAIL PROTECTED] To:

RE: [Zope-dev] Zope Server hanging :-(

2001-05-03 Thread Tim McLaughlin
Sorry, Chris M, didn't mean to get you stuck in the documentation torture chamber ;-) Cheers, Tim -Original Message- From: Michel Pelletier [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 11:58 PM To: Chris McDonough Cc: Tim McLaughlin; Chris Withers; [EMAIL PROTECTED

RE: [Zope-dev] Zope Server hanging :-(

2001-05-02 Thread Tim McLaughlin
: Chris McDonough [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 12:00 PM To: Chris Withers Cc: Tim McLaughlin; [EMAIL PROTECTED] Subject: Re: [Zope-dev] Zope Server hanging :-( One of the more important bits is the active count when using the --detailed option to requestprofiler

[Zope-dev] Re: a plea for help (again) (tav)

2001-04-27 Thread Tim McLaughlin
Tav, I don't see why you need to reimplement __repr__ in the first place. I believe that what yours is trying to do is the default implementation on a class. (somebody tell me if I am wrong) But this probably is not the fundamental issue. TIm ___

[Zope-dev] Zope Server hanging :-(

2001-04-27 Thread Tim McLaughlin
Chris (and all), We seem to be having similar crashing issues. And interestingly enough, they don't seem to show up on any of our servers except the 2.3.0 upgraded to 2.3.1. 1. Hangs on anything from Pythonscript or dtml 2. top shows no significant mem or cpu usage 3. threads are all

[Zope-dev] why is this more efficient

2001-04-23 Thread Tim McLaughlin
, precondition)) # Now we upload the data. By doing this in two steps, we # can use a database trick to make the upload more efficient. self._getOb(id).manage_upload(file) ___ Tim McLaughlin

RE: [Zope-dev] un-own an object

2001-04-16 Thread Tim McLaughlin
AM To: Tim McLaughlin Subject: Re: [Zope-dev] un-own an object Ah well :-S Never been much fo a ZClass fan myself, anyway :-S good luck, Chris Tim McLaughlin wrote: except for in my case the user itself is an instance of a ZClass (see ZUserFolder). so it seems an impasse. I can do

RE: [Zope-dev] un-own an object

2001-04-13 Thread Tim McLaughlin
may be SOL :-( -Original Message- From: Chris Withers [mailto:[EMAIL PROTECTED]] Sent: Friday, April 13, 2001 5:50 AM To: R. David Murray Cc: Tim McLaughlin; '[EMAIL PROTECTED]' Subject: Re: [Zope-dev] un-own an object "R. David Murray" wrote: Like I said (and the docs say), it

RE: [Zope-dev] un-own an object

2001-04-13 Thread Tim McLaughlin
I meant create an instance of a ZClass owned by a user who no longer exists (if my 'construct' word made no sense - haven't had coffee yet ;-) ). -Original Message- From: Tim McLaughlin Sent: Friday, April 13, 2001 7:31 AM To: 'Chris Withers'; R. David Murray Cc: Tim McLaughlin; '[EMAIL

[Zope-dev] turn off proxying TTW

2001-04-12 Thread Tim McLaughlin
How in the heck do I do this? (also, does anybody know how to make an owned object "unowned"). It seems that once I select a proxy role, I can't turn it off... TIA, Tim ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] un-own an object

2001-04-12 Thread Tim McLaughlin
this to be true with ZClass constructors at least. I believe that the method should take the permissions of the authenticated_user only in this scenario, but it does not. Any ideas? ___ Tim McLaughlin

Re: [Zope-dev] ZODBCA questions...

2001-04-10 Thread Tim McLaughlin
Andy- We've had no probs with ZODBCDA connected to SQL Server (7 and 2000). What leads you to think it's a prob with the DA? Tim Message: 2 From: "Andy McKay" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Mon, 9 Apr 2001 10:45:55 -0700 Subject: [Zope-dev] ZODBCA questions... Im getting some

RE: [Zope-dev] ZODBCA questions...

2001-04-10 Thread Tim McLaughlin
an unnecessary layer in between Zope and the db. Tim -Original Message- From: Schmidt, Allen J. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 10, 2001 8:29 AM To: 'Tim McLaughlin'; '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: RE: [Zope-dev] ZODBCA questions... We too are having problems

[Zope-dev] ZUserFolder usage and development

2001-04-09 Thread Tim McLaughlin
t it calls the Super. 3. I'm gonna pitch this out. say it all to the benefit of all. Incidentally, great working with you on this. Excellent feedback, and your catchin' on quickly (hooray! another infected by the Zope bug). Tim -Original Message- From: David Hassalevris To: Tim McLaughl

[Zope-dev] make an object unowned

2001-04-05 Thread Tim McLaughlin
Does anybody know how to make an object unowned, programmatically or through the interface? Thanks, Tim ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists

[Zope-dev] call pythonscript from python

2001-03-21 Thread Tim McLaughlin
bindings (and if you know how to get them automagically, that would be incredible)? Tim ___ Tim McLaughlin BCSwebservices.net Director, Technical Group 1950 Old Gallows Road tel: (703) 790.8081

RE: [Zope-dev] call pythonscript from python

2001-03-21 Thread Tim McLaughlin
found another way to do it. Thanks for the help, Tim -Original Message- From: Evan Simpson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 10:41 AM To: Tim McLaughlin; [EMAIL PROTECTED] Subject: Re: [Zope-dev] call pythonscript from python From: "Tim McLaughlin&qu

[Zope-dev] get_request() idea

2001-03-15 Thread Tim McLaughlin
I'm making some mod's to the property sheets to allow them to fire an event (call a hook) when they change on an instance. Anyway, it looks like I'm gonna have to hand the REQUEST object all around, so I can get the data out of it that I need (as well as allow other inspection in the future).

[Zope-dev] is there a hook for before the transaction is committed

2001-03-05 Thread Tim McLaughlin
TIA, Tim _______ Tim McLaughlin BCSwebservices.net Director, Technical Group 1950 Old Gallows Road tel: (703) 790.8081 x111 Suite 201 [EMAIL PROTECTED] Vienna, VA 22182 www .bcswebser

RE: [Zope-dev] is there a hook for before the transaction is committed

2001-03-05 Thread Tim McLaughlin
Dickenson [mailto:[EMAIL PROTECTED]] Sent: Monday, March 05, 2001 12:08 PM To: Tim McLaughlin Cc: '[EMAIL PROTECTED]' Subject: Re: [Zope-dev] is there a hook for before the transaction is committed On Mon, 5 Mar 2001 10:56:38 -0500, Tim McLaughlin [EMAIL PROTECTED] wrote: Is there a hook

RE: [Zope-dev] is there a hook for before the transaction is committed

2001-03-05 Thread Tim McLaughlin
. Heintz [mailto:[EMAIL PROTECTED]] Sent: Monday, March 05, 2001 12:45 PM To: Tim McLaughlin Cc: '[EMAIL PROTECTED]' Subject: Re: [Zope-dev] is there a hook for before the transaction is committed Hi Tim, I have two suggestions, I hope one of them helps. 1) Attached is a TM.py file that I wrote

[Zope-dev] catalog object owners?

2001-02-26 Thread Tim McLaughlin
is already there). _______ Tim McLaughlin BCSwebservices.net Director, Technical Group 1950 Old Gallows Road tel: (703) 790.8081 x111 Suite 201 [EMAIL PROTECTED] Vienna, VA 22182 www .bcswebser

RE: [Zope-dev] catalog object owners?

2001-02-26 Thread Tim McLaughlin
how? I can't seem to do it. (I'm sure that I'm just being daft though). I tried both "title_and_id" and "title_and_id()" to no avail. -Original Message- From: Chris McDonough [mailto:[EMAIL PROTECTED]] Sent: Monday, February 26, 2001 4:51 PM To: Tim McLaughlin; M

RE: [Zope-dev] catalog object owners?

2001-02-26 Thread Tim McLaughlin
never mind. dumb mistake. Thanks. -Original Message- From: Tim McLaughlin Sent: Monday, February 26, 2001 4:37 PM To: 'Chris McDonough'; Tim McLaughlin; Morten W. Petersen Cc: [EMAIL PROTECTED] Subject: RE: [Zope-dev] catalog object owners? how? I can't seem to do it. (I'm sure

[Zope-dev] 2gb ZODB size limit

2001-02-15 Thread Tim McLaughlin
Is this true on windows too? I saw some mention of this limit be lifted, but if so, in what version? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists -

[Zope-dev] http headers

2001-02-12 Thread Tim McLaughlin
Anyone know how I can log or view the http headers that Zope sends when it responds to a http request? Tim McLaughlin ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding

[Zope-dev] zpopyda problems with typecasting

2001-02-12 Thread Tim McLaughlin
Timestamp columns do not seem to be converted to DateTime objects in Zope when used with 2.2.4 and PoPy 1.4.1 and ZPoPyDA 1.0.1. It returns a string object which will not convert to a DateTime without some help. The string returned is this '2001-01-24 21:52:19-05' which does not convert because

[Zope-dev] strange problem with LoginManager

2001-02-08 Thread Tim McLaughlin
connected through Worldnet is a no go. I suspect this has something (maybe) to do with Worldnet's proxies (if they have them) not handling the headers which zope may (or may not) send. Ok, so it's a guess please help. Thanks. Tim McLaughlin ___ Zope-Dev

[Zope-dev] Rowcount not available?

2001-01-17 Thread Tim McLaughlin
Is there a reason the rowcount property of the cursor object was not made available throught the DA (ideally as an optional parameter of the __call__ method)? Am I missing it somewhere else? Cheers, Tim McLaughlin ___ Zope-Dev maillist - [EMAIL

[Zope-dev] Product dev

2001-01-04 Thread Tim McLaughlin
I'm building a Product in Python and seem to be having some issues with the new registerClass method of Product registering. If I build it all fine as noted in Shane's recent HowTo, the product does not show up in the control panel. Then after much other chasing, I make a purposeful syntax

[Zope-dev] ghost product

2001-01-04 Thread Tim McLaughlin
In fact (to clarify my preceding problem), when I removed the product folder, Zope still shows the product and error after restarting. Am I being stupid? I must be missing something Thanks ___ Zope-Dev maillist - [EMAIL PROTECTED]

RE: [Zope-dev] ghost product

2001-01-04 Thread Tim McLaughlin
AIL PROTECTED]] Sent: Thursday, January 04, 2001 3:38 PM To: Tim McLaughlin; [EMAIL PROTECTED] Subject: Re: [Zope-dev] ghost product Delete the product from the Control Panel management interface. - Original Message - From: "Tim McLaughlin" [EMAIL PROTECTED] To: [EMAIL PROTECTED]

[Zope-dev] regex (or re) modules

2000-12-19 Thread Tim McLaughlin
Does anybody know why these modules aren't available for DTML and Python Methods? (I already hacked my server, just wanna know what I'm riskin) Thanks, Tim ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev **