Re: [Zope] External Methods and Authentication error

2007-03-11 Thread Dieter Maurer
Jonathan wrote at 2007-3-10 08:03 -0500: ... Dieter, thanks for the lead, but it is all very strange and I really don't understand what is happening... External Method: # threadFolder is a BTreeFolder2; viewCount is a property field on the BTreeFolder2 line 3227:

Re: [Zope] External Methods and Authentication error (resolved)

2007-03-11 Thread Jonathan
- Original Message - From: Dieter Maurer [EMAIL PROTECTED] To: Jonathan [EMAIL PROTECTED] Cc: zope@zope.org Sent: Sunday, March 11, 2007 3:13 PM Subject: Re: [Zope] External Methods and Authentication error External Method: # threadFolder is a BTreeFolder2

Re: [Zope] External Methods and Authentication error

2007-03-10 Thread Jonathan
- Original Message - From: Dieter Maurer [EMAIL PROTECTED] Sent: Saturday, March 10, 2007 2:38 AM Subject: Re: [Zope] External Methods and Authentication error Jonathan wrote at 2007-3-8 09:27 -0500: ... Module /apps/Zope-2.9.2/Extensions/playwiser-1.0.py, line 3228

Re: [Zope] External Methods and Authentication error

2007-03-09 Thread Dieter Maurer
Jonathan wrote at 2007-3-8 09:27 -0500: ... Module /apps/Zope-2.9.2/Extensions/playwiser-1.0.py, line 3228, in IncrementViewCount Module OFS.PropertyManager, line 320, in manage_changeProperties Module Shared.DC.Scripts.Bindings, line 311, in __call__ This looks funny. Your

[Zope] External Methods and Authentication error

2007-03-08 Thread Jonathan
I have an external method that contains: threadFolder = self.unrestrictedTraverse(topFolder + forumId + '/' + threadId, None) threadFolder.manage_changeProperties({'viewCount': threadFolder.viewCount+1}) When this external method is invoked (via an 'Anonymous' user invoking a

Re: [Zope] External Methods and Authentication error (add'l info)

2007-03-08 Thread Jonathan
- Original Message - From: Jonathan [EMAIL PROTECTED] To: zope@zope.org Sent: Thursday, March 08, 2007 9:27 AM Subject: [Zope] External Methods and Authentication error I have an external method that contains: threadFolder = self.unrestrictedTraverse(topFolder + forumId

Re: [Zope] External Methods and Authentication error

2007-03-08 Thread Sascha Welter
(Thu, Mar 08, 2007 at 09:27:50AM -0500) Jonathan wrote/schrieb/egrapse: I have an external method that contains: threadFolder = self.unrestrictedTraverse(topFolder + forumId + '/' + threadId, None) threadFolder.manage_changeProperties({'viewCount':

Re: [Zope] External Methods and Authentication error

2007-03-08 Thread Jonathan
- Original Message - From: Sascha Welter [EMAIL PROTECTED] To: zope@zope.org Sent: Thursday, March 08, 2007 2:01 PM Subject: Re: [Zope] External Methods and Authentication error (Thu, Mar 08, 2007 at 09:27:50AM -0500) Jonathan wrote/schrieb/egrapse: I have an external method

Re: [Zope] External Methods and Authentication error

2007-03-08 Thread Sascha Welter
(Thu, Mar 08, 2007 at 02:11:07PM -0500) Jonathan wrote/schrieb/egrapse: If there is an alternative approach I would really like to know about it! I already mentioned that there is an alternative approach. There is a Zope product ready to download and install. Just search for it, I don't remember

[Zope] External Methods

2006-04-03 Thread Dennis Allison
When Zope is run in production (as opposed to debug) mode, modifications to External Methods are not sensed. What's the programatic way to get them all refreshed? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope **

Re: [Zope] External Methods

2006-04-03 Thread Chris Withers
Dennis Allison wrote: When Zope is run in production (as opposed to debug) mode, modifications to External Methods are not sensed. What's the programatic way to get them all refreshed? Click the edit button on the external method object. cheers, Chris -- Simplistix - Content

Re: [Zope] External Methods

2006-04-03 Thread Dennis Allison
Too many and too hard to remember where they are. I have writen a FindAndApply external method that uses reloadIfChanged(). On Mon, 3 Apr 2006, Chris Withers wrote: Dennis Allison wrote: When Zope is run in production (as opposed to debug) mode, modifications to External Methods are

Re: [Zope] External Methods

2006-04-03 Thread Chris Withers
Dennis Allison wrote: Too many and too hard to remember where they are. I have writen a FindAndApply external method that uses reloadIfChanged(). *shrugs* If you already had a solution, then why on earth did you bother asking? Chris -- Simplistix - Content Management, Zope Python

Re: [Zope] External Methods

2006-04-03 Thread Dennis Allison
Figured it out after the fact :-( and have not yet tested it before posting it as a solution On Mon, 3 Apr 2006, Chris Withers wrote: Dennis Allison wrote: Too many and too hard to remember where they are. I have writen a FindAndApply external method that uses reloadIfChanged().

Re: [Zope] External Methods

2006-04-03 Thread Tino Wildenhain
Dennis Allison wrote: Too many and too hard to remember where they are. I have writen a FindAndApply external method that uses reloadIfChanged(). Well if too many, why not go to full external products? Regards Tino ___ Zope maillist -

Re: [Zope] External Methods newbie question

2006-03-01 Thread Tino Wildenhain
Alric Aneron schrieb: Hello, I see I can only execute python functions in external methods. Is there any way to execute the whole file, not just a certain function? In linux I created a python script, and it doesn't have functions. I just want to execute the whole file. I tried using self

[Zope] External Methods newbie question

2006-02-28 Thread Alric Aneron
Hello,I see I can only execute python functions in external methods. Is there any way to execute the whole file, not just a certain function? In linux I created a python script, and it doesn't have functions. I just want to execute the whole file. I tried using "self" or "init" for function names

Re: [Zope] External Methods newbie question

2006-02-28 Thread Andreas Jung
--On 28. Februar 2006 17:14:50 -0800 Alric Aneron [EMAIL PROTECTED] wrote: Hello, I see I can only execute python functions in external methods. Is there any way to execute the whole file, not just a certain function? In linux I created a python script, and it doesn't have functions. I

Re: [Zope] External Methods newbie question

2006-02-28 Thread Jonathan
for executing bash commands. hth Jonathan - Original Message - From: Alric Aneron To: zope@zope.org Sent: Tuesday, February 28, 2006 8:14 PM Subject: [Zope] External Methods newbie question Hello,I see I can only execute python functions in external methods

Re: [Zope] External Methods newbie question

2006-02-28 Thread Andreas Jung
--On 28. Februar 2006 20:26:13 -0500 Jonathan [EMAIL PROTECTED] wrote: python has a command called 'commands' which can be used for executing bash commands. talk about modules, not commands. -aj pgpBHzYiv1PtN.pgp Description: PGP signature ___

Re: [Zope] External Methods newbie question

2006-02-28 Thread Alric Aneron
thanks guys, I'll tryAndreas Jung [EMAIL PROTECTED] wrote: --On 28. Februar 2006 20:26:13 -0500 Jonathan <[EMAIL PROTECTED]> wrote: python has a command called 'commands' which can be used for executing bash commands.talk about modules, not commands.-aj Yahoo! Mail Bring photos to life! New

Re: [Zope] External Methods newbie question

2006-02-28 Thread Dennis Allison
To executed a whole file you need to wrap it as a function -- def foo( self ): the script and call foo as an external method. The self argument gives the context. Python provides several modules which give access to execute bash commands, linux commands, etc. Look at

Re: [Zope] External Methods, Proxy Roles, and Executable Security

2005-11-22 Thread Dieter Maurer
George Lee wrote at 2005-11-20 12:47 -0500: Is there much buzz about this in CMF developer land? Apart from regular problem reports (usually in the Plone mailing list), there are few talks about proxy roles. -- Dieter ___ Zope maillist -

Re: [Zope] External Methods, Proxy Roles, and Executable Security

2005-11-22 Thread Dieter Maurer
Jens Vagelpohl wrote at 2005-11-20 19:01 +0100: ... IMHO proxy roles should be used extremely sparingly, if at all. They are a last resort and I personally never use them. Matter of fact I believe having to use them means the application design could use some improvement... If something

Re: [Zope] External Methods, Proxy Roles, and Executable Security

2005-11-22 Thread Jens Vagelpohl
On 22 Nov 2005, at 20:08, Dieter Maurer wrote: You have lost the thread's start: George's problem has been that he could not move an object in an *EXTERNAL METHOD*, i.e. in trusted filesystem code. He would have the same problem in a filesystem product. The problem is that

Re: [Zope] External Methods, Proxy Roles, and Executable Security

2005-11-20 Thread George Lee
Great, thanks much. Is there much buzz about this in CMF developer land? It seems like proper proxy roles handling, and like you said what Zope 3 security will do to it, are pretty important and will come up quite often (all I was doing, after all, was trying to move an object upon workflow

Re: [Zope] External Methods, Proxy Roles, and Executable Security

2005-11-20 Thread Jens Vagelpohl
On 20 Nov 2005, at 18:47, George Lee wrote: Great, thanks much. Is there much buzz about this in CMF developer land? It seems like proper proxy roles handling, and like you said what Zope 3 security will do to it, are pretty important and will come up quite often (all I was doing, after all,

Re: [Zope] External Methods, Proxy Roles, and Executable Security

2005-11-19 Thread Dieter Maurer
George Lee wrote at 2005-11-19 00:46 -0500: In CMFCore 1.5.4: If a low-security-clearance user calls an external method that pastes an object from a PortalFolder, he gets an error because the following line in CMFCore.PortalFolder fails: if not sm.checkPermission(DeleteObjects, parent): raise

[Zope] External Methods, Proxy Roles, and Executable Security

2005-11-18 Thread George Lee
In CMFCore 1.5.4: If a low-security-clearance user calls an external method that pastes an object from a PortalFolder, he gets an error because the following line in CMFCore.PortalFolder fails: if not sm.checkPermission(DeleteObjects, parent): raise AccessControl_Unauthorized This is even

[Zope] External Methods

2005-10-13 Thread DS
Hi, I am just learning Zope, and I wanted to try external methods. I first tried a symlink in the Extension directory, but zope reported it couldn't find it. I then copied the file into the Extension directory and was successful at that. I assume that happened that way perhaps for my own

Re: [Zope] External Methods

2005-10-13 Thread Peter Bengtsson
2005/10/13, DS [EMAIL PROTECTED]: Hi, I am just learning Zope, and I wanted to try external methods. I first tried a symlink in the Extension directory, but zope reported it couldn't find it. I then copied the file into the Extension directory and was successful at that. I assume that

Re: [Zope] External Methods

2001-01-05 Thread Marcus Mendes
Phil Harris wrote: Wouldn't it be better to pass in self? As in: def my_method(self,REQUEST=None): '''my_method interpreting *REQUEST*.form.''' if REQUEST is None: REQUEST=self.REQUEST # safety_valve in case you forget to pass in REQUEST form= REQUEST.form # this is a

Re: [Zope] External Methods

2001-01-05 Thread Ryan M. Dolensek
Try... for k,v in form.items(): k should contain the key name v should contain the value Otherwise... value = form['Name_Of_Variable_OF_my_form'] Hope that helps. Ryan Hello, Ok Sirs, I'm very late in my checking my mailbox ;-) I've a question in this code above : How can I get

Re: [Zope] External Methods

2001-01-05 Thread Marcus Mendes
"Ryan M. Dolensek" wrote: Try... for k,v in form.items(): k should contain the key name v should contain the value Otherwise... value = form['Name_Of_Variable_OF_my_form'] Hope that helps. Ryan Hello, Ok Sirs, I'm very late in my checking my mailbox ;-) I've a

Re: [Zope] External Methods

2001-01-05 Thread Dieter Maurer
Marcus Mendes writes: I've got the follow content : Key Error SERVER_NAME, that is, form= REQUEST.form server = form['SERVER_NAME'] The error report is unambiguous. Your "REQUEST.form" does not contain "SERVER_NAME". You may try "REQUEST['SERVER_NAME']".

Re: [Zope] External Methods

2000-11-28 Thread Dieter Maurer
Kini Natekar writes: How to call an External Method from another External Method and pass parameters ? I am just a beginner, so intricate details would be appriciated. def Method1(self, ...further args...): . self.Method2(self, ...params for method2...) # or:

[Zope] External Methods

2000-11-27 Thread Kini Natekar
Hi, How to call an External Method from another External Method and pass parameters ? I am just a beginner, so intricate details would be appriciated. Thanks, Kini. __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions

Re: [Zope] External Methods

2000-11-23 Thread Dieter Maurer
Phil Harris writes: Wouldn't it be better to pass in self? As in: def my_method(self,REQUEST=None): '''my_method interpreting *REQUEST*.form.''' if REQUEST is None: REQUEST=self.REQUEST # safety_valve in case you forget to pass in REQUEST form= REQUEST.form # this

Re: [Zope] External Methods

2000-11-22 Thread Edward Muller
I'm a little new to the python sde of zope and haven't done much with the other side (dtml,etc), but am getting back into it...So here is how I think you can do it (note: I've done this myself recently...I'm writing a product, that started off as a collection of external methods)... So you have

Re: [Zope] External Methods

2000-11-22 Thread Dieter Maurer
Kini Natekar writes: I have got a html form which accepts an input from the user. This input has to be passed to a Python script, as a parameter, which is added as an external method in zope. Is there any way to do this ? Your method: def my_method(REQUEST): '''my_method

Re: [Zope] External Methods

2000-11-22 Thread Phil Harris
# variables and associated values - Original Message - From: "Dieter Maurer" [EMAIL PROTECTED] To: "Kini Natekar" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, November 22, 2000 8:43 PM Subject: Re: [Zope] External Methods | Kini Natekar write

[Zope] External Methods

2000-11-21 Thread Kini Natekar
Hi, I have got a html form which accepts an input from the user. This input has to be passed to a Python script, as a parameter, which is added as an external method in zope. Is there any way to do this ? Regards, Kini. __ Do You Yahoo!?

Re: [Zope] External Methods, reloading and Versions

2000-09-14 Thread Chris Withers
Riku Voipio wrote: How do you reolad an external method that has changed? You shouldn't need to do anything, or so I was told... In practice, you can either: - wait a few minutes until the external method object gets flushed out of the cache - Hit the 'Edit' button for the external method.

Re: [Zope] External Methods, reloading and Versions

2000-09-14 Thread Riku Voipio
On Thu, Sep 14, 2000 at 11:52:59AM +0100, Chris Withers wrote: Riku Voipio wrote: How do you reolad an external method that has changed? (versions are rather cool, now I can develop on the production server safely). Versions and external methods interact very badly :-( Don't try