[Zope-dev] ExternalEditor losing its lock?

2003-02-04 Thread Jean Jordaan
Hi all A couple of times now, I've noticed this: - I open a Python Script using ExternalEditor. A GET is issued, My editor starts up, and a LOCK gets set. - Now I view and execute the script (more GETs) while editing and saving in my editor (PUTs get issued). - That's fine. But then

Re: [Zope-dev] ExternalEditor losing its lock?

2003-02-04 Thread Casey Duncan
Hmmm, I think this may be due to a typo in the helper app code. Try applying the attached diff to zopeedit.py and see if it helps. -Casey On Tuesday 04 February 2003 03:58 am, Jean Jordaan wrote: Hi all A couple of times now, I've noticed this: - I open a Python Script using

[Zope-dev] Testing a value returned from a Zope Python Script

2003-02-04 Thread Asad Habib
Hello. I am trying to test a value returned from a Python script using the following syntax: dtml-if expr=dtml-call expr=checkRowLength(fileObject_index, rowLength) == 0 /dtml-if checkRowLength is the name of the script. Apparently Zope flags me with an error saying that this is an invalid

Re: [Zope-dev] Why is it _setObject(), and why is it undocumented

2003-02-04 Thread Dieter Maurer
Leonardo Rochael Almeida wrote at 2003-2-3 18:42 -0200: ... Let's not confuse this with TTW public methods. _setObject should obviously not be made TTW accessible (let alone TTW public :-), but it should be a public method, that is, have a sensible name and be specified in an eventual

[Zope-dev] Creating a variable in a DTML method that may be modified

2003-02-04 Thread Asad Habib
Hello. Does anyone know how to create a variable in a DTML method which may be updated by a Python script? I am currently using the set method of the REQUEST object to create a variable. However, creating a variable in this fashion renders it permanent. Any help would be appreciated. Thanks.

Re: [Zope-dev] Creating a variable in a DTML method that may be modified

2003-02-04 Thread Jeff Rush
Other than explictly passing arguments, the shareable namespace, _, is the logical place to exchange such variables btw DTML and Script(Python). However, the namespace object, a TemplateDict, only allows you to PUSH/POP spaces, not set/change variables, so you have to find or provide