Hi, I'm very pleased to announce the new version of the Zope Shell. You can download this GPLed external method from: http://cortex.unice.fr/~jerome/zshell/ Current version is 0.1 and replaces 0.001 Delete your old version an install this one, you'll probably love it ! List of available commands (expect more soon): deluser delete users adduser add users lrole add/delete local roles whoami current username pack pack database restart restart zope save save versions (untested) discard discard versions (untested) copy copy to clipboard cut cut to clipboard paste paste from clipboard import import objects chown change owner (doesn't work) man shows help whatis alias to man help alias to man apropos alias to man about about ZShell google launch a query on google wget suck websites (not finished) mkdir create folders recursively pwd shows current working folder cd change current folder rm delete objects recursively mv move objects (doesn't rename yet) cp copy objects ls list objects Any help and constructive criticism is appreciated. Hints: * ls accepts meta types as its arguments, this may change soon. * multiple commands must be separated by newlines, not ; for now. * you can use a stylesheet named zshell.css * absolute paths may not work completely, help needed. * use the man command for the rest. Thanks to Peter Bengtsson and Simon Michael ! hoping you'll find it as useful as I do... Jerome Alet - alet@unice.fr
Very interesting Jerome. Maybe we can have also: - grep: to search patterns into documents - find or locate: to recursively search for a document name - sed: to change text in documents Jose' Jerome Alet wrote:
Hi,
I'm very pleased to announce the new version of the Zope Shell.
You can download this GPLed external method from:
http://cortex.unice.fr/~jerome/zshell/
Current version is 0.1 and replaces 0.001
Delete your old version an install this one, you'll probably love it !
List of available commands (expect more soon):
deluser delete users adduser add users lrole add/delete local roles whoami current username pack pack database restart restart zope save save versions (untested) discard discard versions (untested) copy copy to clipboard cut cut to clipboard paste paste from clipboard import import objects chown change owner (doesn't work) man shows help whatis alias to man help alias to man apropos alias to man about about ZShell google launch a query on google wget suck websites (not finished) mkdir create folders recursively pwd shows current working folder cd change current folder rm delete objects recursively mv move objects (doesn't rename yet) cp copy objects ls list objects
Any help and constructive criticism is appreciated.
Hints: * ls accepts meta types as its arguments, this may change soon. * multiple commands must be separated by newlines, not ; for now. * you can use a stylesheet named zshell.css * absolute paths may not work completely, help needed. * use the man command for the rest.
Thanks to Peter Bengtsson and Simon Michael !
hoping you'll find it as useful as I do...
Jerome Alet - alet@unice.fr
_______________________________________________ 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 )
On Fri, 4 May 2001, Jose Soares wrote:
Very interesting Jerome. Maybe we can have also:
- grep: to search patterns into documents - find or locate: to recursively search for a document name - sed: to change text in documents
grep and find were planned, I can add sed but I don't know how it works though. bye, Jerome Alet
Jerome Alet wrote:
On Fri, 4 May 2001, Jose Soares wrote:
Very interesting Jerome. Maybe we can have also:
- grep: to search patterns into documents - find or locate: to recursively search for a document name - sed: to change text in documents
grep and find were planned, I can add sed but I don't know how it works though.
Fine. Actually I'm using a version of zopesh implemented by me with such commands and I find those very useful. IMHO this is the very powerful of a shell. The other day I needed to change the words: <dtml-in "qry.provincie()"> with <dtml-in "mtd.provincie(reg='ER')"> in a great number of documents using sed 's/<dtml-in "qry.provincie()">/<dtml-in "mtd.provincie(reg='ER')">/g' * I did this job in a while. Imagine you what hard work searching and changing it by hand. Jose'
"Jose Soares" <jose@sferacarta.com> wrote:
Fine. Actually I'm using a version of zopesh implemented by me with such commands and I find those very useful. IMHO this is the very powerful of a shell. The other day I needed to change the words: <dtml-in "qry.provincie()"> with <dtml-in "mtd.provincie(reg='ER')"> in a great number of documents using sed 's/<dtml-in "qry.provincie()">/<dtml-in "mtd.provincie(reg='ER')">/g' * I did this job in a while. Imagine you what hard work searching and changing it by hand.
Jose that's great.. Are you going to post the sed code somehere? Even though I do not know sed very well, I would still love to have it included in the toolkit. Your exmle alone is rason to learn to use it well. Is your version a completely separate one from Jerome's or an extension? Either way, everyone will benefit if you can merge your work asap :-) ZShells really bring Zope in line with the core Python design philosophy of interactive command line interpreter. They are a really important exciting addition to Zope and its Management Interface. Also cuold be connected in interesting ways to backend Python manipulation of Zope [live using ZEO]. I look forwards to having ZShell scripting .. any ideas how to do this right? today's top 10 wishlist--> 1. grep 2. find 3. history 4. pipes 5. if then loops 6. while do 7. environment variables 8. regular expressions 9. .zsh scripts 10 .zrc config ./Jason ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology']
On Fri, 4 May 2001, Jason Cunliffe wrote:
"Jose Soares" <jose@sferacarta.com> wrote:
using sed 's/<dtml-in "qry.provincie()">/<dtml-in "mtd.provincie(reg='ER')">/g' * I did this job in a while. Imagine you what hard work searching and changing it by hand.
Is your version a completely separate one from Jerome's or an extension? Either way, everyone will benefit if you can merge your work asap :-)
good idea, any help is welcome.
today's top 10 wishlist-->
1. grep 2. find 3. history 4. pipes 5. if then loops 6. while do 7. environment variables 8. regular expressions 9. .zsh scripts 10 .zrc config
the itseasiertodointhisorder list seems to be different... What I need to know from ZShell users is: Do you prefer that grep and/or sed work on the main content only or also on properties for each object ? It's not evident what I should do. Does someone already have a shell expansion routine, which behaves like bash for example ? What I lack most is how to explode the command line taking care of quotes, the rest I know how to do. Do you prefer for the history to be stored as a property of the root folder, a property of each different folder in which you use zshell, or as an external file ? Same question for .zrc Pipes will be somewhat difficult because my output is very HTML centric... and because pipes are pipes :-( Do you want ls to stay simple and use find when you want complicated things or do you want both ls and find to be complicated ? (I already know the answer) Doing .zsh scripts I don't know how, neither do I for "if", "for" and "while" Do you want to be able to set environnement variables ? Is it possible or not ? If yes, I don't know, so any help is appreciated. Do you want for zshell to reuse the user's preferences in ZMI (width, height) for its textarea ? What I would like to do is a su command, but don't know how. Current plan is: Partly in CVS: lsprop, delprop, addprop, chgprop mkver, delver, loginv, logoutv This week-end I hope: history environment variables grep, sed, find export, exportxml The Secret Ideas for next week (if possible at all) : su python Do you see other things you need ? bye, Jerome Alet
Hi Jerome, woa! The new features sound cool. Why did you switch to an external method, as a matter of interest ? Jerome Alet <alet@unice.fr> writes:
Do you prefer that grep and/or sed work on the main content only or also on properties for each object ? It's not evident what I should do.
see object/folder notion below
Do you prefer for the history to be stored as a property of the root folder, a property of each different folder in which you use zshell, or as an external file ?
why, all of the above of course :) Seriously.. history ? Is it worthwhile ?
Do you want ls to stay simple and use find when you want complicated things or do you want both ls and find to be complicated ? (I already know the answer)
Doing .zsh scripts I don't know how, neither do I for "if", "for" and "while"
Do you want to be able to set environnement variables ? Is it possible or not ? If yes, I don't know, so any help is appreciated.
I think simpler is better for now. But, now that you mention it, how about - "name=value" sets attribute "name" of the current folder - "$name" returns the value of attribute name - also "some/path/name = value", "$(some/path/name)" and then perhaps - treat objects as folders, whose contents are their attributes. If an object or folder is used as a scalar as above, get or set it's "primary value"
The Secret Ideas for next week (if possible at all) :
su python
aaah! you maniac :) This is sounding like a super power tool. -Simon
Simon Michael <simon@joyful.com> writes:
Seriously.. history ? Is it worthwhile ?
PS - here's one place it would be useful. It's cool that you can undo a zshell command batch (thanks zodb!) - it would be even better if we could get the commands displayed in the undo list. One more for the idea list.
On Fri, May 04, 2001 at 11:54:46AM -0700, Simon Michael wrote:
Simon Michael <simon@joyful.com> writes:
Seriously.. history ? Is it worthwhile ?
PS - here's one place it would be useful. It's cool that you can undo a zshell command batch (thanks zodb!) - it would be even better if we could get the commands displayed in the undo list.
One more for the idea list.
Yes, and another very good one ! bye, Jerome
I'm sorry to disapoint you Jason but I'm talking about zopesh Copyrighted by Stefane Fermigier, www.fermigier.com. Jason Cunliffe wrote:
"Jose Soares" <jose@sferacarta.com> wrote:
Fine. Actually I'm using a version of zopesh implemented by me with such commands and I find those very useful. IMHO this is the very powerful of a shell. The other day I needed to change the words: <dtml-in "qry.provincie()"> with <dtml-in "mtd.provincie(reg='ER')"> in a great number of documents using sed 's/<dtml-in "qry.provincie()">/<dtml-in "mtd.provincie(reg='ER')">/g' * I did this job in a while. Imagine you what hard work searching and changing it by hand.
Jose that's great.. Are you going to post the sed code somehere?
Even though I do not know sed very well, I would still love to have it included in the toolkit. Your exmle alone is rason to learn to use it well.
Is your version a completely separate one from Jerome's or an extension? Either way, everyone will benefit if you can merge your work asap :-)
ZShells really bring Zope in line with the core Python design philosophy of interactive command line interpreter. They are a really important exciting addition to Zope and its Management Interface. Also cuold be connected in interesting ways to backend Python manipulation of Zope [live using ZEO].
I look forwards to having ZShell scripting .. any ideas how to do this right?
today's top 10 wishlist-->
1. grep 2. find 3. history 4. pipes 5. if then loops 6. while do 7. environment variables 8. regular expressions 9. .zsh scripts 10 .zrc config
./Jason ___________________________________________________________ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology']
Seems that command cd doesn't work aproperly. If I do the following commands: ------------------------------- pwd cd img ------------------------------- Results: pwd: /ALLEVATORI cd: New folder is /ALLEVATORI/img again: -------------------------------- pwd -------------------------------- Results: pwd: /ALLEVATORI --------------------------- It should be /ALLEVATORI/img isn't it? Jose' Jerome Alet wrote:
Hi,
I'm very pleased to announce the new version of the Zope Shell.
You can download this GPLed external method from:
http://cortex.unice.fr/~jerome/zshell/
Current version is 0.1 and replaces 0.001
Delete your old version an install this one, you'll probably love it !
List of available commands (expect more soon):
deluser delete users adduser add users lrole add/delete local roles whoami current username pack pack database restart restart zope save save versions (untested) discard discard versions (untested) copy copy to clipboard cut cut to clipboard paste paste from clipboard import import objects chown change owner (doesn't work) man shows help whatis alias to man help alias to man apropos alias to man about about ZShell google launch a query on google wget suck websites (not finished) mkdir create folders recursively pwd shows current working folder cd change current folder rm delete objects recursively mv move objects (doesn't rename yet) cp copy objects ls list objects
Any help and constructive criticism is appreciated.
Hints: * ls accepts meta types as its arguments, this may change soon. * multiple commands must be separated by newlines, not ; for now. * you can use a stylesheet named zshell.css * absolute paths may not work completely, help needed. * use the man command for the rest.
Thanks to Peter Bengtsson and Simon Michael !
hoping you'll find it as useful as I do...
Jerome Alet - alet@unice.fr
_______________________________________________ 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 )
On Fri, 4 May 2001, Jose Soares wrote:
Seems that command cd doesn't work aproperly. If I do the following commands: ------------------------------- pwd cd img ------------------------------- Results: pwd: /ALLEVATORI cd: New folder is /ALLEVATORI/img
again: -------------------------------- pwd -------------------------------- Results: pwd: /ALLEVATORI
--------------------------- It should be /ALLEVATORI/img isn't it?
Yes, but it wasn't coded this way. Actually (in 0.1) to successive Run! are independant one from the other, and the current working folder is not remembered. This is corrected in CVS, however. Please wait one hour or two and I'll put a 0.2 online at http://cortex.unice.fr/~jerome/zshell/ The CVS version also corrects part of the incorrect handling of the folder hierarchy: it's better now, but absolute paths are still problematic. I'll try to make wget work before publishing 0.2 bye, Jerome
participants (4)
-
Jason Cunliffe -
Jerome Alet -
Jose Soares -
Simon Michael