Hi, Maybe I've not seen the easy way to do it, if so tell me I'm stupid, but one thing would be very nice in the future version of Zope: A way to download Python Script's sources Now I cut and paste but it's horrible. Please could you include a button "Download Source" to the Python Script edition form ? Thanks in advance. Jerome Alet - alet@unice.fr - http://cortex.unice.fr/~jerome Fac de Medecine de Nice http://wwwmed.unice.fr Tel: (+33) 4 93 37 76 30 Fax: (+33) 4 93 53 15 15 28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE
On Wed, 24 Jan 2001, Jerome Alet wrote:
A way to download Python Script's sources Now I cut and paste but it's horrible.
Please could you include a button "Download Source" to the Python Script edition form ?
Sometimes through-the-web editing stands on the way? :) Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Jerome Alet wrote:
Hi,
Maybe I've not seen the easy way to do it, if so tell me I'm stupid, but one thing would be very nice in the future version of Zope:
A way to download Python Script's sources
Now I cut and paste but it's horrible.
Can't you use FTP to edit them? cheers, Chris
On Wed, 24 Jan 2001, Chris Withers wrote:
Jerome Alet wrote:
Maybe I've not seen the easy way to do it, if so tell me I'm stupid, but one thing would be very nice in the future version of Zope:
A way to download Python Script's sources
Now I cut and paste but it's horrible.
Can't you use FTP to edit them?
I sincerely don't know because I've disabled FTP here. I've faced the problem because I wanted to print a Python Script but Netscape 4.76 (under Linux) hasn't printed the frame correctly. bye, Jerome Alet
On Wed, 24 Jan 2001, Chris Withers wrote:
Jerome Alet wrote:
I sincerely don't know because I've disabled FTP here.
How come?
What about WebDAV?
don't use it either. I want to use my own text editor (JERED), not because it's the best to develop (far from that in fact) but because it works exactly like I want it to work (which is normal since I've written it). Unfortunately it doesn't handle WebDAV or any other Internet protocol... Anyway, thanks for all. Jerome Alet
On Wed, 24 Jan 2001, Jerome Alet wrote:
I want to use my own text editor (JERED), not because it's the best to develop (far from that in fact) but because it works exactly like I want it to work (which is normal since I've written it). Unfortunately it doesn't handle WebDAV or any other Internet protocol...
Compile Python into it and go with ftplib! Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Jerome Alet wrote:
I want to use my own text editor (JERED), not because it's the best to develop (far from that in fact) but because it works exactly like I want it to work (which is normal since I've written it). Unfortunately it doesn't handle WebDAV or any other Internet protocol...
What OS? You can setup Windows to 'mount' WebDAV sites as thinks that behave like normal Windoze drives. That should work fine with your editor :-) cheers, Chris
Chris Yes you can use FTP to edit them. (Tested with HomeSite) Its kinda neat. The output looks like: ## Python Script "scripty1" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## a = 1 a = a + 1 return a *GRIN* -Andy
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Chris Withers Sent: 24 January 2001 14:54 To: Jerome Alet Cc: zope@zope.org Subject: Re: [Zope] PythonScripts editable through FTP?
Jerome Alet wrote:
Hi,
Maybe I've not seen the easy way to do it, if so tell me I'm stupid, but one thing would be very nice in the future version of Zope:
A way to download Python Script's sources
Now I cut and paste but it's horrible.
Can't you use FTP to edit them?
cheers,
Chris
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
From: Jerome Alet <alet@unice.fr>
Please could you include a button "Download Source" to the Python Script edition form ?
Already done; There's a link in the paragraph below the text area, and above the upload form (in CVS). Cheers, Evan @ digicool & 4-am
On Wed, 24 Jan 2001, Evan Simpson wrote:
From: Jerome Alet <alet@unice.fr>
Please could you include a button "Download Source" to the Python Script edition form ?
Already done; There's a link in the paragraph below the text area, and above the upload form (in CVS).
Thanks a lot ! Now please another wish: I've done what I describe below for my own work, but I think this might be interesting to integrate it in Zope's core: Wouldn't it be fine if you added three buttons on the same line as Rename Cut Copy Delete Import/Export in the manage_main page. These three buttons would be: [PARENT] => which moves the selected objects up to the parent folder. [UP] and [DOWN] => which rename objects the following way: Let's say I've got the following folder content: MyFolder |--Object1 (Title1) |--Object2 (Title2) |--Object3 (Title3) |--Object4 (Title4) Then pressing on the [UP] button having Object3 selected I'll obtain: MyFolder |--Object1 (Title1) |--Object2 (Title3) |--Object3 (Title2) |--Object4 (Title4) and the same for the [DOWN] button. This might prove to be useful if you want to keep a certain structuration based on the objects' ids, but be able to change their order without modifying the ids. I hope what I ask is clear and someone else sees an utility for that. Doing that I've found a possible bug (maybe bug isn't the appropriate word) with the manage_renameObjects() method: this method accepts ids and new_ids as its arguments, ids is a list of the old ids to rename, and new_ids the new ones. If you want to exchange 2 ids (e.g. rename Object1 to Object2 and Object2 to Object1 which both exists) then there's an exception saying that one of the ids already exist. So instead of one call to manage_renameObjects() to rename both objects in one pass, you have to call it three times: one time to rename Object1 to a temporary id, one time to rename Object2 to Object1 and one time to rename "tempid" to Object2. My question is: Could you do something about this "small" problem ? bye, and thanks for all ! Jerome Alet - http://cortex.unice.fr/~jerome
On Thu, 25 Jan 2001, Jerome Alet wrote:
[PARENT] => which moves the selected objects up to the parent folder.
Of course this is just a convenience for Cut & Paste, but saves some clicks. bye, Jerome Alet
participants (5)
-
Andy Dawkins -
Chris Withers -
Evan Simpson -
Jerome Alet -
Oleg Broytmann