[Zope3-Users] zodb objects backup
Hello, what would be the best way of taking a backup of persistent objects inside Data.fs with possibility to rebuild it on a fresh Zope 3 install in case of a disaster recovery lets say. Thanks Alen ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] zodb objects backup
--On 26. Februar 2006 00:04:39 +1100 Alen Stanisic [EMAIL PROTECTED] wrote: Hello, what would be the best way of taking a backup of persistent objects inside Data.fs with possibility to rebuild it on a fresh Zope 3 install in case of a disaster recovery lets say. Just backup the Data.fs file. -aj pgppCQEp73WCn.pgp Description: PGP signature ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] zodb objects backup
On Sat, 2006-02-25 at 07:52 -0600, Andreas Jung wrote: --On 26. Februar 2006 00:04:39 +1100 Alen Stanisic [EMAIL PROTECTED] wrote: Hello, what would be the best way of taking a backup of persistent objects inside Data.fs with possibility to rebuild it on a fresh Zope 3 install in case of a disaster recovery lets say. Just backup the Data.fs file. For some reason it doesn't feel completely safe just relying on Data.fs. Maybe I am thinking too much in rdb land and transaction logging where you could rebuild your db from the logs. Alen ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
RE: [Zope3-Users] zodb objects backup
On Sat, 2006-02-25 at 08:59 -0600, Andreas Jung wrote: --On 26. Februar 2006 01:52:29 +1100 Alen Stanisic [EMAIL PROTECTED] wrote: For some reason it doesn't feel completely safe just relying on Data.fs. That means what? Why shouln't it be safe...please come up with some reasonable arguments.. -aj I did mention that it could be because most rdb systems have a database and also keep transaction logs. In case of a failure you put the latest backup of the db and transaction logs together and you could rebuild your db to the point just before the failure. If you only had a daily back up of your db you could potentially lose a full day of transactions. One could also mention failover: if one computer with Data.fs goes down, you're down, period; whereas many RDBMSes support keeping slave copies of the database, which are then available. Also, there are ACID transactions (see http://en.wikipedia.org/wiki/ACID) in a good RDBMS. I don't know how zodb ensures consistency if there are multiple concurrent users, and can we rollback gracefully? ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] zodb objects backup
Alen, please see http://www.zope.org/Wikis/ZODB/FileStorageBackup Shaun, many of the other questions in this thread--and others recently--are answered in this guide: http://www.zope.org/Wikis/ZODB/FrontPage/guide/index.html It is highly recommended reading if you are doing serious Zope 3 apps. Both of these are found in the ZODB wiki, which has some other helpful docs: http://www.zope.org/Wikis/ZODB/FrontPage Gary ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] zodb objects backup
Thanks Gary. On Sat, 2006-02-25 at 15:39 -0500, Gary Poster wrote: Alen, please see http://www.zope.org/Wikis/ZODB/FileStorageBackup Shaun, many of the other questions in this thread--and others recently--are answered in this guide: http://www.zope.org/Wikis/ZODB/FrontPage/guide/index.html It is highly recommended reading if you are doing serious Zope 3 apps. Both of these are found in the ZODB wiki, which has some other helpful docs: http://www.zope.org/Wikis/ZODB/FrontPage Gary ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] redirects in a formlib EditForm
Hello list, I keep hearing about the wonders of formlib, so I've been trying to migrate one of my zcml browser:editform generated forms to formlib. Once I figured out how to select(...) fields to avoid problems with the __parent__ field on my interface, this worked acceptably. After edit changes are applied, I want to redirect the user to another page (ultimately, to the page from which they came). Before I did this with a changed method on my edit form class, but this did not work when I switched to formlib. Below you can see my approach. From within my changed method, I manually call handle_edit_action which gives a TypeError because the 'Action' object is not callable. Unfortunately, without handle_edit_action, the object never gets changed upon apply. ** What is the best way to use a formlib EditForm to redirect a user after applying changes without fully cloning a handle_edit_action method? ** Many thanks, Joel from zope.formlib import form from zope.formlib.form import action, haveInputWidgets class PitcherEditForm(form.EditForm): form_fields = form.Fields(interfaces.IPitcher).select('Last', 'First', 'ERA') @action(_(Apply), condition=haveInputWidgets) def changed(self, action, data): #TypeError: 'Action' object is not callable self.handle_edit_action(action, data) self.request.response.redirect('../../@@overview.html') ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] introductory app idea: music filesystem browser
Hi joel, I am learning Zope3 and certainly get thru those tutorials you mention. Yet, Zope3 is a dark forest for me because there are just too many things to remember (I think its Zope3's design drawback). Its like a large shop of tools. The app which could show their right usage of these tools could be great. But. Do not try to be cool or dumbed down. It also worries me that the best way to start Zope3 app is to copy things from existing one and mend to the taste. Probably good hands-on can help get rid of this practice... Probably such a simple app doesn't require more than 2 hours from seasoned Zope3 developer ;-) Regards, Roman Joel Moxley wrote: Hi all, Recently, I've been doing some thinking about cool ways to introduce a Python programmer to Zope3. Baiju has done a great job with his bookmarker app in his Zope3 in 30 Minutes. The upside (and what was it was designed for) is simplicity, but it's not especially useful or cool past the learning value. Likewise, Stephan's message board app is great for a very in-depth introduction to Zope3. The upside is that it covers most everything and the application itself could be useful; however it gets very involved very quickly, and I argue it would be biting off more than a someone simply exploring Zope3. I think the learning progression of Philipp's worldcookery app is excellent, but it might be outside of the scope of, again, someone doing a cursory exploration of Zope3. Imagine this for a second -- what if we wrote a very simple music filesystem browser? We would want to keep this at about the level of sophistication of the bookmarker app. I would argue that someone might see Zope3 and want to know what it was all about. What better way to show them by just providing a web interface to their Beastie Boys collection in a few hundred lines of code? Useful and cool! I bet with some simple tweaking of the mp3 id3 tags, we could load in album images from the web and so forth. The app could have a function for zipping together an album to allow an all-at-once download. And so forth. With some screencasts, this could be a fun little introductory app that someone could get in and out of in an hour. Just a thought. Joel ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users !DSPAM:43fb1bb36851617211293! ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users