Hi, Yesterday I downloaded and tried out zopeshell - a simple ZPublisher.Client python script. It's very cool and promises a lot if development continues. Then I figured, why not a GUI client along the same principles? I fired up glade and python-gnome and started to design an interface. If you have these, you can see a mockup at http://terra.hackandroll.org/lalo/zope/gnope/ I started a SourceForge project for gnope (because I want public CVS and I can't have it here). Feel free to comment on the pro/cons of ZPublisher.Client vs. XML-RPC or whatever, I haven't started to fill in the implementation yet. []s, |alo +---- -- Hack and Roll ( http://www.hackandroll.org ) News for, uh, whatever it is that we are. http://www.webcom.com/lalo mailto:lalo@hackandroll.org pgp key in the personal page Brazil of Darkness (RPG) --- http://zope.gf.com.br/BroDar
Lalo Martins wrote:
Then I figured, why not a GUI client along the same principles? I fired up glade and python-gnome and started to design an interface. If you have these, you can see a mockup at http://terra.hackandroll.org/lalo/zope/gnope/
I started a SourceForge project for gnope (because I want public CVS and I can't have it here). Feel free to comment on the pro/cons of ZPublisher.Client vs. XML-RPC or whatever, I haven't started to fill in the implementation yet.
I've written one already in wxPython, so it runs on Windows, too. Check out http://www.zope.org/Members/itamar/load_site. Make sure you follow the instructions on altering Zope or it won't work. It uses both XML-RPC and ZPublisher.Client for historical reasons, but evnetually it'll use XML-RPC only, since XML-RPC is a lot more powerful. -- Itamar S.T. itamar@maxnm.com
Itamar Shtull-Trauring wrote:
Lalo Martins wrote:
Then I figured, why not a GUI client along the same principles? I fired up glade and python-gnome and started to design an interface. If you have these, you can see a mockup at http://terra.hackandroll.org/lalo/zope/gnope/
I started a SourceForge project for gnope (because I want public CVS and I can't have it here). Feel free to comment on the pro/cons of ZPublisher.Client vs. XML-RPC or whatever, I haven't started to fill in the implementation yet.
I've written one already in wxPython, so it runs on Windows, too. Check out http://www.zope.org/Members/itamar/load_site. Make sure you follow the instructions on altering Zope or it won't work. It uses both XML-RPC and ZPublisher.Client for historical reasons, but evnetually it'll use XML-RPC only, since XML-RPC is a lot more powerful.
But has isssues with ZSQL Methods. :(
Bill Anderson wrote:
I've written one already in wxPython, so it runs on Windows, too. Check out http://www.zope.org/Members/itamar/load_site. Make sure you follow the instructions on altering Zope or it won't work. It uses both XML-RPC and ZPublisher.Client for historical reasons, but evnetually it'll use XML-RPC only, since XML-RPC is a lot more powerful.
But has isssues with ZSQL Methods. :(
That's a Zope security issue, really. Client would most likely have the same problem. But let me explain why I used XML-RPC: ZPublisher.Client always returns it's results a string, while XML-RPC pickles Python objects into XML and then unpickles them back into Python objects. This means that if a method returns a list, using Client you'll get "['a', 'b', 'c']", the string represnetation of the list, while with XML-RPC yopu'll get the actual list. Since doing eval() on strings you get from strangers is a Really Big Security Bug, XML-RPC is the way to go. -- Itamar S.T. itamar@maxnm.com
Itamar Shtull-Trauring wrote:
Bill Anderson wrote:
I've written one already in wxPython, so it runs on Windows, too. Check out http://www.zope.org/Members/itamar/load_site. Make sure you follow the instructions on altering Zope or it won't work. It uses both XML-RPC and ZPublisher.Client for historical reasons, but evnetually it'll use XML-RPC only, since XML-RPC is a lot more powerful.
But has isssues with ZSQL Methods. :(
That's a Zope security issue, really.
AIUI, the problem isn't a security issue, it is how/what ZSQL methods return.
Client would most likely have the same problem. But let me explain why I used XML-RPC: ZPublisher.Client always returns it's results a string, while XML-RPC pickles Python objects into XML and then unpickles them back into Python objects. This means that if a method returns a list, using Client you'll get "['a', 'b', 'c']", the string represnetation of the list, while with XML-RPC yopu'll get the actual list.
Which, IUIC, is part of the problem with ZSQL over XML-RPC
On Wed, May 10, 2000 at 03:03:58PM +0300, Itamar Shtull-Trauring wrote:
Lalo Martins wrote:
Then I figured, why not a GUI client along the same principles? I fired up glade and python-gnome and started to design an interface. If you have these, you can see a mockup at http://terra.hackandroll.org/lalo/zope/gnope/
I started a SourceForge project for gnope (because I want public CVS and I can't have it here). Feel free to comment on the pro/cons of ZPublisher.Client vs. XML-RPC or whatever, I haven't started to fill in the implementation yet.
I've written one already in wxPython, so it runs on Windows, too. Check out http://www.zope.org/Members/itamar/load_site. Make sure you follow the instructions on altering Zope or it won't work. It uses both XML-RPC and ZPublisher.Client for historical reasons, but evnetually it'll use XML-RPC only, since XML-RPC is a lot more powerful.
load_site is an uploader - if it isn't, you need to update the description page. I'm planning on something more sophisticated - editing properties, creating objects, the full kit. Also, I personally have issues with wxPython. But that's not important in this context. []s, |alo +---- -- Hack and Roll ( http://www.hackandroll.org ) News for, uh, whatever it is that we are. http://www.webcom.com/lalo mailto:lalo@hackandroll.org pgp key in the personal page Brazil of Darkness (RPG) --- http://zope.gf.com.br/BroDar
Lalo Martins wrote:
load_site is an uploader - if it isn't, you need to update the description page. I'm planning on something more sophisticated - editing properties, creating objects, the full kit.
wxLoadSite can create folders, delete object, rename objects and of course upload objects. Adding edit capabilities wouldn't be hard. But yes, maybe that's not what you need - in which case I suggest you download Amos's ZopeCleint (the example app in his XML-RPC article at xml.com). It's simpler than mine, but it may be closer to what you mean. But then, that's where ZopeStudio is going.
Also, I personally have issues with wxPython. But that's not important in this context.
I would have used gnome-python, honest, but I needed our graphic artists to be able to upload pages themselves. Which I can't do yet with gnome-python. -- Itamar S.T. itamar@maxnm.com
participants (3)
-
Bill Anderson -
Itamar Shtull-Trauring -
Lalo Martins