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:
- 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
- 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
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
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
- 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
(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':
- 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
(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
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
**
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
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
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
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().
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 -
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
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
--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
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
--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
___
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
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
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 -
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
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
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
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,
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
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
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
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
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
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
"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
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']".
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:
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
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
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
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
# 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
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!?
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.
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
44 matches
Mail list logo