Re: [Zope] [Zope-dev] Zope 4.0, maybe not such a bad idea...
Andreas, On feb 28 you sent this private email to me as a part of a thread about sqlite: Hopefully you won't release your trash to the public :-) - -aj Andreas, please keep up the great work but take a break every now and then. I appreciated your advice, but not that email because you clearly weren't just joking, it was the only private email you have ever sent me (other than a *shrug*). You are a representative of Zope, please raise the bar as Peter says. I really doubt that anyone wants Dieter cut off from this list. Dieter's contributions over the years are thoughtful and well written. If you cut him off from this list, take me off as well. It looks like zope is at an inflection point. Zope2 and Zope 3 seem closer than ever. Lennart has discussed a good plan for going forward. His reasoning is positive and clear. We can all be idiots (including me) or we can build with this group and this opportunity. Thanks! -- Tim Nash Lead Developer http://www.sanmateowaveforms.com Zope/Plone: distribute your web applications as desktop applications. Installs on mac and windows with one click. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] RIP Zope 2!
Thanks for this post Jürgen. You made me think of my agenda. My agenda is to promote Zope/Plone as a great way to create web applications that you also want to distribute as desktop applications. I have posted about this a long time ago but there is no reason for anyone on this list to remember, especially if this feature of zope/plone is of no interest to them. So from now on I am going include it in my sig. Also, I have been critical of the zope 3 line because I love zope 2 and it appears to me that zope 3 is killing zope 2. I'd rather not be an enemy of the zope 3 team. Grok is great but I cannot distribute grok applications to most users. However, If somebody made it possible to run django or jinga2 templates in zope 3 I would be back into Phillip's book in a flash. The reason is because I think zope is a lot more like the google app engine's back end (called big table) than a relational database is. App engine uses django templates and there is currently no way to migrate applications off app engine. Seems like an opportunity for someone who really knows zope well. Zope/Plone is still the best way to get a full stack (webserver - business layer - database) on a users desktop. It installs on mac and windows with one click. It is etter than LAMP or Adobe AIR. Please recommend plone to newbies and casual zope developers. Thanks! On Fri, Apr 3, 2009 at 4:39 PM, Jürgen Herrmann juergen.herrm...@xlhost.de wrote: On Fri, April 3, 2009 21:18, Aleksey Tsalolikhin wrote: Hi. FYI, I have a client using Zope 2 in production. I am migrating him from Zope 2.7 on SUSE 10.1 to Zope 2.10 on CentOS 5.2. He's not using plone. He has a custom Web app. He expects to keep using Zope 2, and to continue development of our Web application. hi there. i think it's important for you guys to let you know that xlhost.de is also run completely on a zope backend. we use 100% zodb for all business objects. we were able to jump from release to release starting back then at 2.6 and now latest 2.10 is running since a few days. there were two products that actually broke during this time when moving to a new major zope 2 version: - localfs, as discussed which needed a few minor tweaks to keep it running. i did them myself, primarily because i wanted to keep going on immediately and i didn't want to look or even wait for a fixed version. it wasn't rocket science to make those corrections to the code, so no maintenance nightmare in sight here. - unrestricted pagetemplates, i had to come up with my own solution here, because it broke when moving to 2.8 and had some patches on board that deeply relied on 2.7 interna, as far as i remember. work needed was ~2h, so nothing to worry about either. otherwise the upgrades were always pretty smooth, i like the big monolythic tarball release very much, as the upgrade process is very straightforward: download, unpack, build, install. in cannot see this maintenance nightmare asf. that certain people on this list proclaim to exist regarding zope2. as long as all those zope3-ish stuff and it's docs (if they really exist) is so scattered across million places, all that stuff is pretty unattractive to old school zope users like myself, that have to keep a business running based on zope2. would i have to choose a appserver/db/whatever again for my backend, i'd go for something else, but not zope anymore. reason? well just look at zope.org, enough said. not even a basic version of a new page has made it to life yet - reasons therefor? i don't know. i've been following zope and zope-dev mls for quite some time and over time the tone spoken here has not improved, rather the opposite is true. this is quite contrary to a few other devel mls i'm on! please don't get me wrong, i don't want to piss anybody off here. i'm quite happy to have zope running, and it's running very fine indeed. i can help myself out with almost all problems nowadays, but i have people in mind that are new to zope and want to try it. and if i try to feel the situation these folks are in, i'd probably not choose zope for various reasons. seems like more and more things are dying in the zope world :( the only thing i can try to suggest for real improvement is: get things going. try them. don't kill good ideas by bad discussion right from the start. think positive. :) otherwise the zope community will never grow again. everybody can decide for himself it community growth is a good thing for him or not. i think some people are of the latter kind :/ just my two cents, it was time to speak up. in no way did i mean to insult anybody personally here, just in case... best regards and keep up the good work! jürgen herrmann -- XLhost.de - eXperts in Linux hosting ® XLhost.de GmbH Jürgen Herrmann, Geschäftsführer Boelckestrasse 21, 93051 Regensburg, Germany Geschäftsführer: Volker Geith, Jürgen Herrmann Registriert unter: HRB9918
Re: [Zope] RIP Zope 2!
Looks like gmail won't append a sig to a draft email. Anyway here is my sig. -- Tim Nash Lead Developer http://www.sanmateowaveforms.com Zope/Plone: distribute your web applications as desktop applications. Installs on mac and windows with one click. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] RIP Zope 2!
*This* community is dead, get over it and move on. Yeah, you are right. If you really think zope 3 (or 4) can stand on it's own, just rename zope 2 to 'plone base'. That will cut down on the confusion. But beware, unless you can make zope 4 more appealling to a wider group of casual developers it will be reduced to little more than a well regarded library. Not anything an IT manager is in a hurry to bring in-house. You may want to take a good look at how much money you actually make on zope 3 consulting before you kill zope 2. Good luck and thanks for all the contributions. -Tim ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to add existing folder in Zope
Once upon a time there was a man walking down the street. He came upon two neighbors in their driveways. One guy was washing his Z-Honda and the other guy was working on his Z-MG-midget. The pedestrian said Hey, I'm thinking of getting a car to carry groceries home from the market The Z-Honda guy said, Why don't you get one of these Z-Honda's they do the job and they are easy to own The Z-MG guy was a mechanic and he liked working on his Z-MG. he said That Honda guy is insane, you should get a Z-MG. It is much better than a big Z-Honda The Z-Honda guy said I used to like working on Z-MGs but now I just drive a Z-Honda. I rarely need to take it to the mechanic Then another neighbor came out the door. He was also a mechanic. In fact he worked at the z-car factory. Hey he said, don't listen to that Honda guy, he doesn't know anything Now all along, the Honda guy was wondering what the heck was going on down out the z-car factory. You see the z-car factory has been producing many new models of z-cars but they haven't included many interesting new features. In fact the factory has been taking features out of the z-cars. The factory claims that we all have to make adjustments so that we can have z cars made out of some fantastic new material called 'z-components'. The factory has been promising wonderful things will be coming from this new way of making z cars. The cars will be more like this fantastic new z-car called a 'z3' series. But the Honda guy hasn't seen any of these z3 cars around town. It seems nobody is buying them and they have been manufactured for many, many years. Furthermore, the Honda guy took a z3-car for a test drive one time and it looked like a research project. Everything required special configuration and the interface looked weird. What is worse they took out dtml which was one of the Honda guys favorite features. Zclasses and TTW editing were also gone. The Honda guy saw a lot of stuff missing from the z3 but he still wanted to believe the factory was right about z-components. He still appreciated the factories efforts, but many years went by and nobody outside of the factory became excited about the z3 line. So why are they taking us in a direction that nobody seems to want to go the Honda guy thought. and with every new release, things are shuffled around. The only people who can tell what will work are the mechanics who work on z-cars everyday Just then another neighbor , also a mechanic, came out the door and shouted The honda guy is lazy. Don't listen to him Eventually along came sheriff D in his patrol car. Now everybody knew that sheriff D was the brightest guy in town and if the z-car factory every does perfect their z-component manufacturing, the sheriff will be able to turn z-cars into whatever he wants to. What is going on here the sheriff said, these guys are good mechanics. Their cars are wonderful. Why I once took one of these guys old cars and I converted it into a jet. Nobody doubted it. The sheriff had the skills. There is no problem with these z-cars he said. The Honda guy just sighed. Well he waved his hand at his mechanic neighbors. I'm not crazy about the way these guys express their opinions but they have valid points of view. Me, I like my Honda, and if you go down to the market you will see a lot more Z-Hondas than Z-MGs And with that he turned and went in his house. On Sun, Mar 29, 2009 at 11:30 AM, Dieter Maurer die...@handshake.de wrote: Andreas Jung wrote at 2009-3-28 14:13 -0500: ... Installing Plone in such a case is only the solution if one has no better idea about doing things. The Filesystem Directory View functionality is available out-of-the-box through CMF (which is much smaller than Plone). There was also something like SkinnedFolder (I think) implementing are similar functionality. SkinnedFolder (at least if you mean http://www.handshake.de/~dieter/pyprojects/zope/index.html#bct_sec_4.7;) makes CMFCore's SkinsTool available (without the need to use CMFDefault or portal objects). FileSystemSite (http://www.zope.org/Members/k_vertigo/Products/FileSystemSite) is the standalone DirectoryView functionality. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to add existing folder in Zope
I get your point, I just don't agree with it. It is often easier to just install plone than it is to: 1. search and discover LocalFS 2. decide if it is too old or if it can be satisfactorily patched. 3. patch it (thank you Robert) 4. test, test and test it. 5. Hope that it still works in the next version of zope that comes out. 6. plan to test, test and test it in the next version of zope. And the next, and on and on. Or you can install plone and know that it has been well tested, it is well maintained and has a large community. One click and you are done. The next version of plone will also be well tested. Look, you can do it anyway you want but if you want to imply that my suggestion to use Plone is 'insane' you need to come up with a better alternative than LocalFS. But of course this is all moot. For most installs the best way to use large javascript libraries is to put it into an apache folder. On Sat, Mar 28, 2009 at 1:15 AM, Jens Vagelpohl j...@dataflake.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mar 28, 2009, at 01:16 , thedag...@gmail.com wrote: Telling someone to install all of Plone just to make filesystem content available seems insane, sorry. There are several products out there which can do the job, like LocalFS. LocalFS has been updated since 2006. There is nothing in the zope world that is as well maintained as plone. Sorry. You're not getting my point. Why would I install a huge package just for one small functionality? jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAknN3K0ACgkQRAx5nvEhZLIFggCdHt42IgRINAX1PaDyEcH/+M2v OoYAni2eDjs8FaNzfA/Vir3qkgrgT1zc =bA60 -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to add existing folder in Zope
Installing Plone in such a case is only the solution if one has no better idea about doing things *sigh* ...and people wonder why the zope community is dying. I have my very reasonable way of using zope/plone and personal attacks are not going to change my mind. On Sat, Mar 28, 2009 at 12:13 PM, Andreas Jung li...@zopyx.com wrote: 2009/3/28 Tim Nash thedag...@gmail.com I get your point, I just don't agree with it. It is often easier to just install plone than it is to: 1. search and discover LocalFS 2. decide if it is too old or if it can be satisfactorily patched. 3. patch it (thank you Robert) 4. test, test and test it. 5. Hope that it still works in the next version of zope that comes out. 6. plan to test, test and test it in the next version of zope. And the next, and on and on. Or you can install plone and know that it has been well tested, it is well maintained and has a large community. One click and you are done. The next version of plone will also be well tested. Look, you can do it anyway you want but if you want to imply that my suggestion to use Plone is 'insane' you need to come up with a better alternative than LocalFS. But of course this is all moot. For most installs the best way to use large javascript libraries is to put it into an apache folder. Installing Plone in such a case is only the solution if one has no better idea about doing things. The Filesystem Directory View functionality is available out-of-the-box through CMF (which is much smaller than Plone). There was also something like SkinnedFolder (I think) implementing are similar functionality. -aj ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to add existing folder in Zope
No your response and Jens response are totally inappropriate. We will never rebuild this community if all our posts are greeted with personal attacks. Using plone for the said usecase is not inappropriate especially since using a directory view does not require using all of plone. Please keep your arguments reasonable and focused on the technology or the management of that technology. On Sat, Mar 28, 2009 at 12:37 PM, Andreas Jung li...@zopyx.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28.03.2009 14:32 Uhr, Tim Nash wrote: Installing Plone in such a case is only the solution if one has no better idea about doing things *sigh* ...and people wonder why the zope community is dying. I have my very reasonable way of using zope/plone and personal attacks are not going to change my mind. It basically about looking left and right and choosing the right tool for a problem. Installing Plone for your usecase is totally inadequate. It's like driving with a tank to the supermarket around the corner for buying a banana. - -aj -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAknOfFQACgkQCJIWIbr9KYyQYQCg1OUf+mf2WJ8tghabke+zQ5ID AqgAn2eGCj99qvzljg19sRQBZhxb9X5B =2nHN -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to add existing folder in Zope
Andrew, If you are going to ignore my arguments about Plone being well tested, easy to install and having a better upgrade path than a customized solution like patching localFS, then this is just a waste of everybody's time. On Sat, Mar 28, 2009 at 1:33 PM, Andrew Milton a...@theinternet.com.auwrote: +---[ Tim Nash ]-- | No your response and Jens response are totally inappropriate. We will never | rebuild this community if all our posts are greeted with personal attacks. You're not going to rebuild any community if given a choice of two items, they're told to install the largest most complicated of them. | Using plone for the said usecase is not inappropriate especially since using a | directory view does not require using all of plone. Yes, Jens failed to factor in ideology and laziness into the use-case. | Please keep your arguments reasonable and focused on the technology or the | management of that technology. OK. LocalFS works. It's small. It does the task that was asked for. There are various patches around that increase its performance to close to that of serving static content directly out of Apache. Serving from Apache works. It's external to Zope. It does the task that was asked for, but, can't be managed from inside Zope or it requires the Zope install to share a filesystem with Apache (to manage from zope). Plone works. It's huge. It's complicated. It does 1000x more things than was asked for and is not a solution that should be recommended to simply serve files from the file system. Get a grip. You might want to install plone to do it, but, 99 times out of 100 that isn't the correct solution to recommend to *anyone* that just wants to serve files from the file system. -- Andrew Milton a...@theinternet.com.au ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to add existing folder in Zope
Or you may be able to use CMF 'Filesystem directory view'. The easiest way to do that is to use Plone 3. I support the extjs javascript library two ways. In Plone I put the whole extjs directory into a filesystem directory view. In Zope I drop extjs into a directory served by apache. -Tim On Fri, Mar 27, 2009 at 6:45 AM, Eric Bréhault ebreha...@gmail.com wrote: Hello, The best way to do it is probably to create a Zope product, and to put your js library into this product. Regards, Eric 2009/3/27 amol kumbhar amol.kumbha...@gmail.com: Actually I want to use SmartClient for my web site and for this I have to add the SmartClient Library folder into zope so using this I can write JS which include these libraries. On Fri, Mar 27, 2009 at 6:33 PM, Andreas Jung li...@zopyx.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 27.03.2009 8:00 Uhr, amol kumbhar wrote: Hi, I want to add existing folder in zope. As we can add files by browsing how could I add existing folder. This question does not make any sense. Anything existing can not be added. What do you mean? Take your time for asking meaningful questions. - -aj -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAknMzrQACgkQCJIWIbr9KYzGawCcD/byu3H/0Nc/i8ERV/0Smq95 kYAAoMAtRjPFKDaXAtpDAWlfQi+Gtqyx =Ba7/ -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] trivial: hello world with filesystem based egg sources
If you want simple: 1. download this product and put it into your products directory. http://www.zope.org/Members/gtk/Boring 2. Start Zope and go to 127.0.0.1:8080/manage and add the Boring product. Click test, there is your url. 3. Modify the 'Boring' code and repeat. -Tim On Tue, Mar 10, 2009 at 3:06 PM, David Zejda d...@atlas.cz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks for a tips, I have looked on the Guide you suggested. I think I understand the concepts, but still missing something. To make the simplest case, 1. I started with fresh instance prepared by the paster, 2. created this source: # src/my.py class Contact(object): blah blah firstName = c = Contact() 3. to the sys.path in bin/instance added the /path/to/src (which contains my.py), 4. started instance and checked, that the /path/to/src is on loaded sys.path, 5. pointed browser to localhost:8091/c/firstName . Resource c not found, Zope says. Yes, it can't be SO simple, but please, what should I do? Thanks for your patience.. David Lennart Regebro napsal(a): On Sat, Mar 7, 2009 at 23:21, David Zejda d...@atlas.cz wrote: And now, please, what to do now, to have a few python lines somewhere in the egg dir, which the zope would know how to deal with? The egg dir as you call it is a Python module, and you put Python code there. Zope knows how to deal with it, that is not the problem. What you need to do is get the Python code to deal with Zope. :) And on what url will be the hello world available then? That is completely up to you. :) The question now, is this Zope 3 or Zope 2? For Zope 3, you should probably get a book. http://worldcookery.com/ There was another book to in the beginning of Zope 3, but I don't know it has been updated. You could also, for Zope 3, opt to use Grok, which is a framework built on Zope 3 that makes Zope 3 easier: http://grok.zope.org/ For Zope 2, you can start here: http://docs.zope.org/zope2/zdgbook/source/ Then, you should probably buy the above book too. Zope 3 technologies are getting very common in Zope 2. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkm25GQACgkQ3oCkkciamVFQ0QCeOHfaWDV4dSvM+TaZKyIyNpKC JpEAn0R65e8asVaogcfaCeQF5qDoj1vb =FtXB -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Was Problem using nested dtml-in with zsql
+1 Well spoken. It is painful to see all the cheers for django templates when dtml has been around longer and is just as good, maybe better. ZPT may also be fantastic but I haven't needed them yet. They seem to be designed to solve web editing problems circa 2002. -Tim On Sat, Nov 8, 2008 at 11:47 AM, Kees de Brabander [EMAIL PROTECTED] wrote: +1 cb -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Garry Saddington Verzonden: zaterdag 8 november 2008 12:54 Aan: zope@zope.org Onderwerp: Re: [Zope] Was Problem using nested dtml-in with zsql On Saturday 08 November 2008 06:21, Andreas Jung wrote: Any particular reason for using DTML instead of ZPT? DTML is dead. Firstly let me say that I do not wish to relight the ZPT vs DTML argument, only to make a few points. I find this an extraordinary attitude coming from someone so important to this community. I am sure there are many developments out there relying on DTML and I am also sure that the developers are earning a living from those developments. Will employers be happy that the technology used for their sites is dead ? Will they continue to pay these developers? Can you give one reason why DTML is bad that is not based on personal preference, presentation tools or the cognitive ability of developers to understand where variables are coming from? Does it not work if used properly? If someone comes to Zope and prefers to use DTML then let him, don't criticise instead of help him. Zope is a fantastic piece of software, however it is used, and its use should be encouraged. I prefer DTML and always have done and always will, no matter what this list says and I am sure there are many more like me. DTML is available and is used, let's support it properly on this list. While I was learning Zope I had many questions, but I had to work most of them out myself, not wanting to get lambasted again on this list for using DTML. If help was more forthcoming I'm sure that I would have learned more quickly rather than in relative isolation. Is the ZMI going to be re-written using ZPT? Regards Garry ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.9.0/1775 - Release Date: 8-11-2008 9:56 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Was Problem using nested dtml-in with zsql
BTW, Andreas, It is probably extra work to maintain both ZPT and DTML in each Zope release. We want you to know that we appreciate the extra work and your skills. :) On Sat, Nov 8, 2008 at 4:01 PM, Allen Schmidt Sr. [EMAIL PROTECTED] wrote: +1 We love zope on our site and continue to build new things almost daily and all with DTML and ZSQL. Not a single line of ZPT anywhere within our 7gb Data.fs that has been making us all money and employing many folks for almost 8 years now as a newspaper website. AND in the birthplace of Zope www.Fredericksburg.com/Virginia/ 8^) Cheers! -Allen Tim Nash wrote: +1 Well spoken. It is painful to see all the cheers for django templates when dtml has been around longer and is just as good, maybe better. ZPT may also be fantastic but I haven't needed them yet. They seem to be designed to solve web editing problems circa 2002. -Tim On Sat, Nov 8, 2008 at 11:47 AM, Kees de Brabander [EMAIL PROTECTED] wrote: +1 cb -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Garry Saddington Verzonden: zaterdag 8 november 2008 12:54 Aan: zope@zope.org Onderwerp: Re: [Zope] Was Problem using nested dtml-in with zsql On Saturday 08 November 2008 06:21, Andreas Jung wrote: Any particular reason for using DTML instead of ZPT? DTML is dead. Firstly let me say that I do not wish to relight the ZPT vs DTML argument, only to make a few points. I find this an extraordinary attitude coming from someone so important to this community. I am sure there are many developments out there relying on DTML and I am also sure that the developers are earning a living from those developments. Will employers be happy that the technology used for their sites is dead ? Will they continue to pay these developers? Can you give one reason why DTML is bad that is not based on personal preference, presentation tools or the cognitive ability of developers to understand where variables are coming from? Does it not work if used properly? If someone comes to Zope and prefers to use DTML then let him, don't criticise instead of help him. Zope is a fantastic piece of software, however it is used, and its use should be encouraged. I prefer DTML and always have done and always will, no matter what this list says and I am sure there are many more like me. DTML is available and is used, let's support it properly on this list. While I was learning Zope I had many questions, but I had to work most of them out myself, not wanting to get lambasted again on this list for using DTML. If help was more forthcoming I'm sure that I would have learned more quickly rather than in relative isolation. Is the ZMI going to be re-written using ZPT? Regards Garry ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.9.0/1775 - Release Date: 8-11-2008 9:56 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- ___ Zope maillist - [EMAIL PROTECTED]://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope product and dtml-tree
Rowan, Can you try inheriting from dtml-document instead of simple-item? I use dtml document as much as I can. It is a big object but you almost always need to call a dtml object anyway. And all the methods are already battle tested. (BTW, for me zope is almost entirely the model, and the view and most of the controller are in the browser so I am not as concerned about mixing content with logic inside zope. ymmv) dtml-tree is cool but it can be flakey -Tim On Wed, Jul 30, 2008 at 12:13 PM, Rowan Woodhouse [EMAIL PROTECTED] wrote: Hi, I'm developing a Zope product that uses a dtml file to generate the html page. I'd like to include a dtml-tree based tree for navigation on the page. The custom object inherits from SimpleItem. When I include the follow code in the dtml file: dtml-tree dtml-var id /dtml-tree I get the following exception: An error was encountered while publishing this resource. exceptions.KeyError Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 202, in publish_module_standard * Module ZPublisher.Publish, line 150, in publish * Module ZPublisher.Publish, line 119, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 42, in call_object * Module Products.WellGroup.WellGroup, line 110, in index_html * Module App.special_dtml, line 65, in __call__ * Module DocumentTemplate.DT_String, line 476, in __call__ * Module TreeDisplay.TreeTag, line 88, in render * Module TreeDisplay.TreeTag, line 192, in tpRender KeyError: 'URL' If I add a class variable called URL I then get a key error for RESPONSE. My understanding from documentation is that Item (from which SimpleItem inherits) gives the product basic dtml-tree support. I can't find any examples that spell out how to write a product that supports dtml-tree tags. Could someone point me in the right direction? Thanks, Rowan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] zexp import fails from linux to windows due to image filepaths
You can use this to edit the zexp on the command line. It is from the cygwin build system. perl -pe 'BEGIN{binmode(STDIN); binmode(STDOUT);}; s/oldtext/newtext/g' copy_of_your.zexp fixed_copy_of_your.zexp then rename fixed_copy_of_your.zexp to the original zexp name and import it into a NON-Production version of zope. I have used this to edit binary data but I've not tried the zexp import. Be careful because it looks like ExportImport.py in ZODB will try to register any python pickle that begins with ZEXP. This could really mess up your data. Unfortunately there doesn't seem to be many zexp manipulation scripts available. Good luck! Tim On 7/16/08, Richard Ettema [EMAIL PROTECTED] wrote: Quoting Jaroslav Lukesh [EMAIL PROTECTED]: You need to export your website folder as ZEXP in XML format. Then you could edit this file at search/replace basis. But before this, try to re-import this ZEXP file, if it is able to import (not all zexp exports are able to reimport). Regards, JL. Thanks for the reply JL, re-importing into the original server and exporting in XML is not an option as I don't have the server anymore, only a Windows machine. If editing the existing ZEXP is not possible, is it possible to modify the actual zope code temporarily, to ignore the mismatch of file paths (or to modify the paths from linux to windows during the import process)? Thanks, Rich ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Javascript detection
here is the code: put this at the top of your dtml script type=text/javascript location.href = redirected_javascript_enabled_page.dtml; /script and create redirected_javascript_enabled_page.dtml On 6/16/08, Andreas Jung [EMAIL PROTECTED] wrote: --On 16. Juni 2008 11:34:37 -0700 Arne Jensen [EMAIL PROTECTED] wrote: Hello, Using DTML, is there a way to detect if a user has javascript enabled in their browser. We are running Zope 2.10.4-final, python 2.4.4. This has absolutely nothing to do with DTML. Javascript=client-side, DTML/ZPT=server-side. Andreas ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] acl_users folder 25000
Thanks for the link to the gmailauthplugin. I am trying it out on plone 3 on a mac tiger laptop and I'm getting the following error: Exception Type URLError Exception Value urlopen error no host given * Module ZPublisher.Publish, line 110, in publish * Module ZPublisher.BaseRequest, line 580, in traverse * Module Products.PluggableAuthService.PluggableAuthService, line 233, in validate * Module Products.PluggableAuthService.PluggableAuthService, line 600, in _extractUserIds * Module Products.GMailAuthPlugin.GMailAuthPlugin, line 89, in authenticateCredentials * Module Products.GMailAuthPlugin.libgmail_incl.libgmail, line 320, in login * Module Products.GMailAuthPlugin.libgmail_incl.libgmail, line 333, in _retrievePage * Module urllib2, line 130, in urlopen * Module urllib2, line 356, in open * Module urllib2, line 943, in do_request_ Here is the environment specifics: Zope Version (Zope 2.10.5-final, python 2.4.4, darwin) Python Version 2.4.4 (#1, Feb 21 2008, 21:15:12) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] System Platform darwin SOFTWARE_HOME /Applications/Plone-3.0.6/lib/python Any Suggestions? Thanks in advance. -Tim www.medicinebrain.com On 6/3/08, Martijn Jacobs [EMAIL PROTECTED] wrote: Kees de Brabander wrote: I have no idea. I have been looking at the PAS, but did not find to much documentation on it. Would it be possible to use a database that my client does maintain? cb Yes that would be possible. Take a look at http://plone.org/products/gmailauthplugin as it's a pretty nice example how to write a plugin yourself. You can also take a look at https://svn.plone.org/svn/collective/PASPlugins/ Martijn -- Martijn Jacobs Four Digits, Internet Solutions a: Willemsplein 15-1 6811 KB Arnhem NL kvk: 09162137 | btw: 8161.22.234.B01 e-mail: [EMAIL PROTECTED] | web: http://www.fourdigits.nl tel: +31 (0)26 44 22 700 | fax: +31 (0)84 22 06 117 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-tree documentation
http://www.zope.org/Members/anthony/tree-coding-tricks and http://www.zope.org/Members/cybertad/how_to/working_with_tree Where can I find out about this 'advanced usage'? Regards Garry ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Extensive Javascript GUI and security
It is just a how to. And judging by the lack of discussion it has generated I guess it is old news. Oh well, I am figuring out the security problems anyway. I'm thinking of switching to zope 3 just to get more feedback on my posts! Well that and the Flint project looks interesting. :) On Thu, Apr 24, 2008 at 6:31 AM, Garito [EMAIL PROTECTED] wrote: But did you pretend to make something useful or a demo is enough? Why don't make the demo changing the ZMI GUI or something more useful? (ZMI is old enough and needs a renew version, don't you think so?) Thanks! 2008/4/23, Tim Nash [EMAIL PROTECTED]: Sorry, I am not a great writer. Let me list the points: -The code demonstrates how to build a full GUI in javascript. - It uses the extjs library. - Building a GUI like this reduces the load on zope which makes zope scalable. - You can also distribute your GUI code to be closer to your customers. For example, you can host your zope in Norway but place your GUI on web servers in Norway, Australia, Spain, Russia etc. - I am having problem understanding how to set up the security when using zope in this way. - I wish someone would take a look at the code and help me figure out the best security. Thanks!, Tim On Wed, Apr 23, 2008 at 3:47 AM, Garito [EMAIL PROTECTED] wrote: Sorry, Tim, but I don't catch what you pretend with this demo Can you explain more about this test? Thanks! 2008/4/23, Tim Nash [EMAIL PROTECTED]: I updated the 'HowTo' to now include a TTW version of the same product. This could be a useful way to compare TTW code with product based code for anyone interested. That is if the security issues are resolved. http://wiki.zope.org/zope2/HowToCreateJavascriptGUI The TTW zexp also doesn't require the installation of extjs but it is for demo purposes only. On Tue, Apr 22, 2008 at 1:35 PM, Tim Nash [EMAIL PROTECTED] wrote: I have created a zope product that demonstrates how I would like to use zope with extjs library. The demo does not require an installation of extjs. It is linked to here http://wiki.zope.org/zope2/HowToCreateJavascriptGUI I hope that using zope along with extjs in this way makes zope much more scalable however I am having trouble figuring out the proper way to set up security. Could somebody check out my demo and give me feedback on how to set up the security? I would like the user to only have to log on once. Subsequent AJAX calls should not require subsequent log in. Also, I create new accounts by copying an account 'template' folder that includes a acl_users folder in it. How do you set the proper security when you create accounts in this way? How do you set the security on an external Method in these folders? I want to use zope to hold medical data for everyone from a physician in the remote regions of the World all the way up to multi-hospital chains. This requires a very scalable and very secure zope. Thanks for any help! Tim ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Mis Cosas http://blogs.sistes.net/Garito Zope Smart Manager http://blogs.sistes.net/Garito/670 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Mis Cosas http://blogs.sistes.net/Garito Zope Smart Manager http://blogs.sistes.net/Garito/670 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Extensive Javascript GUI and security
Sorry, I am not a great writer. Let me list the points: -The code demonstrates how to build a full GUI in javascript. - It uses the extjs library. - Building a GUI like this reduces the load on zope which makes zope scalable. - You can also distribute your GUI code to be closer to your customers. For example, you can host your zope in Norway but place your GUI on web servers in Norway, Australia, Spain, Russia etc. - I am having problem understanding how to set up the security when using zope in this way. - I wish someone would take a look at the code and help me figure out the best security. Thanks!, Tim On Wed, Apr 23, 2008 at 3:47 AM, Garito [EMAIL PROTECTED] wrote: Sorry, Tim, but I don't catch what you pretend with this demo Can you explain more about this test? Thanks! 2008/4/23, Tim Nash [EMAIL PROTECTED]: I updated the 'HowTo' to now include a TTW version of the same product. This could be a useful way to compare TTW code with product based code for anyone interested. That is if the security issues are resolved. http://wiki.zope.org/zope2/HowToCreateJavascriptGUI The TTW zexp also doesn't require the installation of extjs but it is for demo purposes only. On Tue, Apr 22, 2008 at 1:35 PM, Tim Nash [EMAIL PROTECTED] wrote: I have created a zope product that demonstrates how I would like to use zope with extjs library. The demo does not require an installation of extjs. It is linked to here http://wiki.zope.org/zope2/HowToCreateJavascriptGUI I hope that using zope along with extjs in this way makes zope much more scalable however I am having trouble figuring out the proper way to set up security. Could somebody check out my demo and give me feedback on how to set up the security? I would like the user to only have to log on once. Subsequent AJAX calls should not require subsequent log in. Also, I create new accounts by copying an account 'template' folder that includes a acl_users folder in it. How do you set the proper security when you create accounts in this way? How do you set the security on an external Method in these folders? I want to use zope to hold medical data for everyone from a physician in the remote regions of the World all the way up to multi-hospital chains. This requires a very scalable and very secure zope. Thanks for any help! Tim ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Mis Cosas http://blogs.sistes.net/Garito Zope Smart Manager http://blogs.sistes.net/Garito/670 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Extensive Javascript GUI and security
I have created a zope product that demonstrates how I would like to use zope with extjs library. The demo does not require an installation of extjs. It is linked to here http://wiki.zope.org/zope2/HowToCreateJavascriptGUI I hope that using zope along with extjs in this way makes zope much more scalable however I am having trouble figuring out the proper way to set up security. Could somebody check out my demo and give me feedback on how to set up the security? I would like the user to only have to log on once. Subsequent AJAX calls should not require subsequent log in. Also, I create new accounts by copying an account 'template' folder that includes a acl_users folder in it. How do you set the proper security when you create accounts in this way? How do you set the security on an external Method in these folders? I want to use zope to hold medical data for everyone from a physician in the remote regions of the World all the way up to multi-hospital chains. This requires a very scalable and very secure zope. Thanks for any help! Tim ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Extensive Javascript GUI and security
I updated the 'HowTo' to now include a TTW version of the same product. This could be a useful way to compare TTW code with product based code for anyone interested. That is if the security issues are resolved. http://wiki.zope.org/zope2/HowToCreateJavascriptGUI The TTW zexp also doesn't require the installation of extjs but it is for demo purposes only. On Tue, Apr 22, 2008 at 1:35 PM, Tim Nash [EMAIL PROTECTED] wrote: I have created a zope product that demonstrates how I would like to use zope with extjs library. The demo does not require an installation of extjs. It is linked to here http://wiki.zope.org/zope2/HowToCreateJavascriptGUI I hope that using zope along with extjs in this way makes zope much more scalable however I am having trouble figuring out the proper way to set up security. Could somebody check out my demo and give me feedback on how to set up the security? I would like the user to only have to log on once. Subsequent AJAX calls should not require subsequent log in. Also, I create new accounts by copying an account 'template' folder that includes a acl_users folder in it. How do you set the proper security when you create accounts in this way? How do you set the security on an external Method in these folders? I want to use zope to hold medical data for everyone from a physician in the remote regions of the World all the way up to multi-hospital chains. This requires a very scalable and very secure zope. Thanks for any help! Tim ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: anyone heard of Zamasing?
I created an entry and added a link to the zexp on my site. I tried to find a way to upload the zexp to the wiki but I don't see how to do it. I tried mozilla and safari 3 on mac. It may be one of those deals where the icon only shows up on Internet explorer. Here is the link: http://wiki.zope.org/zope2/HowToCreateJavascriptGUI On Sat, Apr 19, 2008 at 9:48 AM, Simon Michael [EMAIL PROTECTED] wrote: Tim Nash wrote: I created a zexp that demonstrates the use of extjs and zope but I don't know where to put it for anyone that might be interested. Can the wiki.zope.org/zope2 site accept .zexp uploads? Hi Tim - yes it can, see the edit form. However there is a size limit, it's either 1Mb or 1Gb. :) See if it works for you. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: anyone heard of Zamasing?
Simon, I created a zexp that demonstrates the use of extjs and zope but I don't know where to put it for anyone that might be interested. Can the wiki.zope.org/zope2 site accept .zexp uploads? This zexp doesn't require the installation of extjs to see how it works because it uses the extjs cached on the extjs site (for demonstration purposes only) This demonstrates: 1. separation of GUI from zope. (you could serve your zope data from one continent and your GUI from another.) 2. use of extjs data storage (client cache of data reduces calls to zope) 3. loading of extjs data storage widget via ajax and JSON 4. ajax submit of form data 5. client side form field validation and my favorite: 6. webserver cache of GUI reduces load on zope making zope more scalable -Tim On Thu, Apr 17, 2008 at 6:35 PM, Simon Michael [EMAIL PROTECTED] wrote: Tim Nash wrote: up-to-date documentation than anything else. Products are the way to go. It is very much like wriitng 'Scripts Python'. I am going to put a simple 'boring' product on the zope.org site (if they let me) which Hi Tim.. put it also on http://wiki.zope.org/zope2 if you wish. That is an easy place to grow and rework documentation. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] anyone heard of Zamasing?
@Garito, I hope you have another release of ZSM. I really appreciate new developer tools for zope like your ZSM and Zamasing. I am pretty confident that the zope 3 crowd will eventually put back TTW, simple ZMI etc. (but hopefully not too much acquisitionthe great idea that almost ruins zope 2). Google is very close to making the business layer scalable, they have been studying salesforce.com for some time now. When they conquer that technical hurdle, huge ASP's will probably dominate computing (especially in China). Easily distributed and maintained web services like zope 2 may be one of the few remaining ways to compete with monster ASP's. The zope 3 crowd will come back around with an even better zope. @Phil, I think you will find the product learning curve isn't that steep at all. The famous z-shaped curve has more to do with the lack of up-to-date documentation than anything else. Products are the way to go. It is very much like wriitng 'Scripts Python'. I am going to put a simple 'boring' product on the zope.org site (if they let me) which will show how to use zope and extjs for anyone who is interested. Looking forward to your proof of concept -Tim On Thu, Apr 17, 2008 at 1:01 AM, Philip Kilner [EMAIL PROTECTED] wrote: Hi Tim, Tim Nash wrote: It is great to see more posts about how well zope works for Web 2.0 projects. I have used extjs with zope and really like the combination. I'd like to learn more about your jquery /plone setup and how you make it work. Would it be a time consuming for you to create a generic product that demonstrates your setup? It would be helpful to have a common set of artifacts to discuss. Am happy to share - it's all very simple stuff, the elements just work very elegantly together. I'm stringing other people's pearls here - the tools are great, putting them together is trivial. However, having got the elements together, I'm now moving from a TTW approach (yes, I know - I'm a dinosaur!) to a Product approach, which is going to be a pretty steep learning curve for me. I need to document my starting point (which is effectively a common folder of scripts and templates, which the working pages access by acquisition), so I'll post a link to the list asking for feedback when I'm at that point. N.B. This is going to take me at least a couple of weeks - I've got some paying work to finish off before I can move on to that. I've got a proof of concept set of templates without Formulator or any RDBMS interaction that I did somewhere. It's only about three templates and a scrip. I'll post them when I find them, so that you can see how Taconite works with ZPTs, which is the most joyful part of it for me. -- Regards, PhilK 'work as if you lived in the early days of a better nation' - alasdair gray ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] anyone heard of Zamasing?
Phil, It is great to see more posts about how well zope works for Web 2.0 projects. I have used extjs with zope and really like the combination. I'd like to learn more about your jquery /plone setup and how you make it work. Would it be a time consuming for you to create a generic product that demonstrates your setup? It would be helpful to have a common set of artifacts to discuss. Thanks, Tim ps. I can make available a generic product that demonstrates how I use extjs if there is interest. It is pretty simple...serve a little dtml doc which requests the gui cached in javascript. Gui makes ajax calls back to zope for the dynamic elements. pps. nice work zamazing! python/dtml syntax highlighting in codepress? sweet. (but I am addicted to the mac version of Komodo) On Wed, Apr 16, 2008 at 5:01 AM, Philip Kilner [EMAIL PROTECTED] wrote: Hi Tom, Tom Von Lahndorff wrote: Thats pretty awesome. It's zamazing to me that Zope 2 is not a de facto platform for Web 2.0 projects. I think it has some major benefits over Rails and maybe even Django but there seems to be no interest in it from that community. This is a great start. I agree that it's a great platform for Web 2.0 projects - I'm a happy RDBMS developer, using Zope as an application server against Postgres dbs. I find that Formulator, ZPTs and simple scripts on the server side and JQuery on the client side (specifically, the JQuery Taconite implementation [1] with XML ZPTs) work wonderfully together. My interest is pretty narrow, in the sense that I'm all about RDBMSs, tabular data, and form-driven data entry - the less guff between me the and the RDBMS, the happier I am. However, if I don't have much to say, it's only because TTW Zope development using these tools is so easy. If there is any interest in discussing this stuff, I am up for that. Having said all that, I'm happy enough with the ZMI as it is, so Zamasing is only of academic interest to me. FWIW, all these techniques can also be made to work seamlessly inside Plone without doing any actual Plone development, which can be handy (you really only need to work with Plone's CSS to make it look consistent) - a server side mash-up which avoids all the cross-site scripting stuff, if you like. [1] http://www.malsup.com/jquery/taconite/ -- Regards, PhilK 'work as if you lived in the early days of a better nation' - alasdair gray ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: zope on google file system
This is what I love about zope. It can be a much more flexible way to store data than in a relational db. Maybe some combination of zodb and s3 would be efficient. Zodb for frequently used business objects and a library (localfs modified ?) for storing data documents on s3. Could you update your plan when you get time? Thanks! Tim On 3/31/08, Laurence Rowe [EMAIL PROTECTED] wrote: As an experiment, I started porting zodb to amazon s3 storage a while ago... http://code.google.com/p/s3storage/ You can use it to start zope, but it makes far too many writes inefficiently (it took about 15 minutes for zope2 to create all it's objects on a first start). Now that ec2 comes with static IP addresses, I might end up looking at it again. It needs refactoring to write only one file per transaction (or savepoint), but once done I would imagine it might then offer reasonable performance. Laurence Tim Nash wrote: The google summer of code is almost underway and already has a lot of good ideas but I was wondering if any of my fellow zope users would have any interest in the following area: I don't have the skills but I think it would be cool if some student ported Zope to utilize features of the google file system or libferris. Libferris is a virtual file system that mounts just about everything including postgres, xml and OpenOffice docs. If zope ran on the gfs (primarily adding business logic, security and publishing) it would give a boost to the value of any zope based company. Also, I think it would be fun to run map/reduce on my stored objects! A zope that ran on libferris and offered secure publishing of libferris resources would just be cool. If anybody else thinks this would be useful I will jon the gsoc user list, (even though I'm not a student and I'm not experienced enough with zope to be a mentor) and do my best to make this happen. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: Fwd: [Zope] zope on google file system
And if your data is large enough to warrant using hadoop you're never going to store them in Zope. If you cache the GUI using javascript, keep the business layer thin and off-load the majority of the indexing, why not? Procfs is a virtual filesystem, devfs is a virtual filesystem. smb OK, hold on while I write a distributed map/reduce system that runs on devfs.. :) http://www.stat.purdue.edu/~sguha/code.html#hadoopy Thanks for this link (really). I hope this library develops more. It looks interesting. I was only thinking along these lines: http://www.michael-noll.com/wiki/Writing_An_Hadoop_MapReduce_Program_In_Python Although it would probably a lot easier to use ctypes on the c lib and making a nicer interface using that. Please explain. Would your idea work better with localfs? You can use popen to run your map/reduce command from inside your object and to fetch the results to display inside Zope (probably fairly inefficient, but, it'd work). In my case, I think many search requests can be pre-indexed into python so it would be only a few users that would suffer. Oh but you wanted to store the files IN zope... so you can ignore all that. I'd just as well would rather ignore the sarcasm. At least you are willing to think about this! -Tim ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: Fwd: [Zope] zope on google file system
What I am looking for is a way to store my data in xml using zope and run map/reduce (or something very much like it) on live data. 1. Should I try to see if localFS will read/write to xml files on the hadoop filesystem http://hadoop.apache.org/core/docs/current/hdfs_design.html 2. or should I look for python equivalents to hadoop? 3. or should I just use java for this area of my application? Which approach (or something else) would you take? Anybody? On 3/26/08, Andrew Milton [EMAIL PROTECTED] wrote: +---[ Tim Nash ]-- | Does localfs work with virtual file systems? If it can be mounted and looks like a file system and smells like a file system, then localfs or in fact anything else, should know any different. | Is there a zope mapping product that maps zope to a distributed file system? You don't really explain in what way you want it distributed. Zope is an application server, so what you're asking for doesn't make any sense. You can certainly distribute your ZODB across as many file systems as you want right now. You can certainly just plonk your Data.fs ZODB on any filesystem you want distributed or otherwise. If you want a smarter ZODB or a different STORAGE layer that's a different kettle of fish, but, also NOT what you previously asked for. | What is the best way to run map/reduce on xml files that are stored in the zodb? The same way you run map/reduce on xml files that are stored anywhere, although one could contend that having XML files in a ZODB might be at least one too many levels of abstraction. -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: Fwd: [Zope] zope on google file system
I would start with a list of requirements... The requirements are to run distributed map/reduce on 'live' xml data that is stored by the zope application server. You'll be calling out to something else to do map/reduce and return you the results. Agreed, but what is the storage mechanism for the files used in that process? If it is the hadoop file system then you can't use live data, you would have to copy the files to the hadoop file sytem, correct? It still looks to me like a zope to virtual file system mapping would be useful. Unfortunately it also looks like I am the only one who wants it so I'm not going to post it to the gsoc mailing list. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] zope on google file system
The google summer of code is almost underway and already has a lot of good ideas but I was wondering if any of my fellow zope users would have any interest in the following area: I don't have the skills but I think it would be cool if some student ported Zope to utilize features of the google file system or libferris. Libferris is a virtual file system that mounts just about everything including postgres, xml and OpenOffice docs. If zope ran on the gfs (primarily adding business logic, security and publishing) it would give a boost to the value of any zope based company. Also, I think it would be fun to run map/reduce on my stored objects! A zope that ran on libferris and offered secure publishing of libferris resources would just be cool. If anybody else thinks this would be useful I will jon the gsoc user list, (even though I'm not a student and I'm not experienced enough with zope to be a mentor) and do my best to make this happen. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Fwd: [Zope] zope on google file system
On Wed, Mar 26, 2008 at 11:08 AM, Chris Withers [EMAIL PROTECTED] wrote: Tim Nash wrote: I don't have the skills but I think it would be cool if some student ported Zope to utilize features of the google file system or libferris. Libferris is a virtual file system that mounts just about everything including postgres, xml and OpenOffice docs. Where are you thinking of plugging Zope into this storage layer? Something like this: Apache - zope (business logic, security) - libferris along with ZODB Perhaps making all libferris resources url addressable within zope. However Postgres and other databases would be better off getting accessed through zsql. Perhaps also make all ZODB objects published as libferris resources. If zope ran on the gfs (primarily adding business logic, security and publishing) it would give a boost to the value of any zope based company. I don't know what running on gfs would mean, but surely this is only available to Google employees and internal projects? The google file system is a distributed file system. http://labs.google.com/papers/gfs.html If the zope -- distributed file system interface was clean, zope could run against other distributed file systems. Then when the gfs becomes a service that can be purchased (surely coming one day) zope is ready to be ported to gfs. Also, google can only offer so much without the ability to utilize business logic and security. They must be looking for an affordable way to offer business logic that can scale and serving secure objects. A bright student can help them explore using zope for this. Also, I think it would be fun to run map/reduce on my stored objects! Dunno what this means either... Here is a paper on map reduce. If zope is storing documents, it would be useful to map / reduce the documents stored in zope and prepare reports, etc.. http://labs.google.com/papers/mapreduce.html Here is an overview offering many competing arguments: Why Should You Care About MapReduce? http://www.theserverside.com/news/thread.tss?thread_id=48283 Also, check out hadoop. http://hadoop.apache.org/ Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: Fwd: [Zope] zope on google file system
Does localfs work with virtual file systems? Is there a zope mapping product that maps zope to a distributed file system? What is the best way to run map/reduce on xml files that are stored in the zodb? Thanks, Tim On 3/26/08, Andrew Milton [EMAIL PROTECTED] wrote: +---[ Tim Nash ]-- | On Wed, Mar 26, 2008 at 11:08 AM, Chris Withers [EMAIL PROTECTED] wrote: | Tim Nash wrote: | I don't have the skills but I think it would be cool if some | student ported Zope to utilize features of the google file system or | libferris. Libferris is a virtual file system that mounts just about | everything including postgres, xml and OpenOffice docs. | | Where are you thinking of plugging Zope into this storage layer? | | Something like this: | Apache - zope (business logic, security) - libferris along with ZODB | | Perhaps making all libferris resources url addressable within zope. | However Postgres and other databases would be better off getting | accessed through zsql. | | Perhaps also make all ZODB objects published as libferris resources. Perhaps I can point you here; http://sourceforge.net/projects/localfs/ or one of a dozen other FS-Zope mapping products... or ORM products or ... There's even code out there that maps .zip files as folders... -- Andrew Milton [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] python script returning a 'rendered' zpt
did you try; something = context.REQUEST.form['target'] somepage = context.REQUEST['URLPATH1'] #may be URL1 some_page_template = context[somepage] rendered_html = some_page_template(context, somevariable=something) I'm writing from (faulty) memory here so context[somepage] may not work. If it doesn't get ahold of the relevant folder by using resticted traverse and then use: some_page_template = thefolder[somepage] If that still doesn't work email me and I will work it out on my development box. It is def doable. -Tim On 3/6/08, David Bear [EMAIL PROTECTED] wrote: On Thursday 06 March 2008 18:04, Peter Bengtsson wrote: rendered_html = context.some_page_template(context, somevariable='foobar') But then you need to write the page template as: div tal:contents=options/somevariable blah /div This is almost what I need. However, I can't use 'context.somepage' in the script becuase I don't know what somepage will be. I was hoping to be able to call the script on any arbitrary zpt like this: /zope/somepagetemplate/myscript?target=something Then 'myscript' will grab the value of target and returned 'somepagetemplate' where the value of somevariable was replaced with 'something' On 07/03/2008, David Bear [EMAIL PROTECTED] wrote: I need to right a script that will return a zpt. However, I need the script to feed the zpt some values and then have zope returned the rendered zpt. I hope this is possible. For example, lets say I have something like this in a zpt div tal:contents=somevariable blah /div My python script with have something like this: somevariable = this is a test How can I get the script to returned the 'rendered' zpt? -- David Bear College of Public Programs/ASU 411 N Central, Phoenix, AZ 85004 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- David Bear College of Public Programs/ASU 411 N Central, Phoenix, AZ 85004 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Zope Digest, Vol 45, Issue 25
Maybe you could map it to libferris instead of the file system and then we could many types of different data storage. http://www.linuxjournal.com/article/9373 On Fri, Feb 29, 2008 at 10:52 AM, Dieter Maurer [EMAIL PROTECTED] wrote: Garito wrote at 2008-2-29 00:35 +0100: I can understand Yuri Zope uses the tree to run and the filesystem is a tree When I'm developing Yanged (my Zope project) I think about that. I would like to create a version of Zope with the most essential parts: the traverse way the adquisition in an apache module (and apache of course) the filesystem as object data base and Zope Smart Manager as ZMI It would not be that difficult: Your Apache module would call ZPublisher.Publish.publish with a module name different from Zope2. Your Zope2 replacement would provide the objects required by ZPublisher.Publish.get_module_info. It could e.g. use a LocalFS instance as bobo_application and immediately, your objects would come from the filesystem (as mapped by LocalFS). -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Zope Digest, Vol 45, Issue 25
Sure, zope products. But what does it mean to be a zope site without ZODB? There are ZPT implementations separate from ZODB. Subversion, grep, sed, whole code changes are all possible with zope 2. On Thu, Feb 28, 2008 at 12:26 AM, Yuri [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I want to be able to have a zope site entirely in the file system with no ZODB, so I can keep it in subversion, and use normal things like grep, patch and sed to apply changes to the whole codebase. You can do this with zope 2 but you can also allow user customization that you can later migrate in to the filesystem code. Really?? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope 3 and Rails - a pragmatic and agile comparation (put the hype aside)
Here is a follow up I wrote that fell off the list. The original poster probably thought he was posting to the zope@zope.org but I leave his id off just in case he didn't. I am reposting it here mainly because he makes several good points. -Tim I find zope's through the web editing it's worst aspect. It would make a great optional add-on, but to make the root of the site only editable through the web is just a disaster. I could vote for an optional add-on. BTW I meant to say google gadgets. The point is that there is always far more innovation outside your company than inside and companies are looking for software that helps them tap into that talent. 2. object database. Perfect for web services with changing schemas. It's great, but I wish it wasn't mapped directly to URLs. There should be an abstraction, like the controller in MVC systems. I could also vote for this but apache does a lot of this for you. DTML is horrible because it looks like XML but isn't. It should either be XML, like TAL, which I think is great, or be nothing like it, like django's templating language. If you are talking about reading dtml I share your pain, but if you are talking about writing it then you have a built in filter. When your page starts to look ugly rethink your problem. For example, these days you can program tabs with secondary menus using just two dtml-in loops if you start with tabs that only require css http://labs.silverorange.com/images/tabsupdate/about.html 5. a ZMI which allows zope to be an easy to administer database. Easy enough for distribution to powerusers. Useful, but should be turn-off-able. I can vote for this as well I want to be able to have a zope site entirely in the file system with no ZODB, so I can keep it in subversion, and use normal things like grep, patch and sed to apply changes to the whole codebase. You can do this with zope 2 but you can also allow user customization that you can later migrate in to the filesystem code. If I want it in the site to do a CMS type application, I want to put it inside my File System Site code, not put a file system site object into it. Not sure what you mean here. You aren't forced to put filesystem objects into the ZODB. The folders/tree structure of zope is a natural navigational device that is very useful. Check out the book Don't make me think. Zope 3 has great ideas (components, interfaces, views, maybe PAU) but zope 2 (dtml, TTW, Plone) is what pulls them in the door. And you have to get them in the door before they will buy. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope 3 and Rails - a pragmatic and agile comparation (put the hype aside)
Marcelo, I share your excitement about zope 3 but let me speak about zope 2 . I am also fairly new to zope and came from a java/python background. I have built Rail's tutorial applications but came back to zope 2. Here is my reasons. 1. Through the web editing. Brilliant. Yes it is problematic but it is a game changer. Can zope compete on java or php or asp's territory? No. But nobody else has TTW development and many are now adding something like it (google gears, facebook api, smalltalk's seaside). I just wish more books would discuss how easy it is to take a 'Script Python' and bring it 'inside' to a python product. 2. object database. Perfect for web services with changing schemas. 3. DTML. I know the old timers were smoking way too much dtml in the days before CSS, but I love DTML! It is fast to develop with, it works well with javascript and css (try dynamic css and javascript ) and it has excellent execution speed. It is the IDEs that should change, not dtml. :) 4. REST supporting architecture. 5. a ZMI which allows zope to be an easy to administer database. Easy enough for distribution to powerusers. 6. A well developed catalog/search. 7. A well developed security framework. And finally, there is one other thing I really like about Zope 2. 8. A fairly well defined future. (zope 3). I think the developers of zope 2 were 5-10 years ahead of the curve. If the zope team can continue to appreciate what made zope special while they incorporate the new ideas I think zope will stay ahead of the curve. A toast to all of the zope (2 and 3) developers! Thank you. Tim I can't speak for Zope 2 though :) What do you think? Would you mind sharing your experiences and ideas regarding this subject? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] When to use a relational database
Thanks Dieter. I will look into using the zope 3 views in 2.10 and compare their performance with DTML. BTW, I hope plone people understand that I am a big fan of plone, zope 3 and zpt. They just don't fit my current application. @quizzical: As others have pointed out, zope really excels at handling semi-structured data. In addition, zope 2 (and maybe 3) is easier to administer than a relational database so it is a database that you can distribute to power users. Tim On Feb 8, 2008 1:32 PM, Dieter Maurer [EMAIL PROTECTED] wrote: Tim Nash wrote at 2008-2-7 19:14 -0800: ... Why does storing a single document lead to close to 120 objects being inserted? Almost surely due to full text indexing. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] When to use a relational database
From what I have read online, the things that slow zope down are primarily the numerous security checks and the large number of objects that need to be written to the zodb when you save a document. Is there a way we can manage these bottlenecks? Has anyone rated the performance of say DTML vs ZPT? For a developer like myself, I derive no benefits from zpt because the majority of my design elements are in javascript and css. So I will continue to use dtml unless zpt actually has better performance. Have performance/scalability studies been done for any of the popular zope products? I'd like to reduce the number of objects saved to the zodb if I knew how. Thanks, Tim On 2/7/08, Dieter Maurer [EMAIL PROTECTED] wrote: quizzical wrote at 2008-2-6 16:03 -0800: ... Apologies if this is a dumb question, I have had a good look through the archives and on the web. My question is basically about how to design a website. I really like the ease with which you can build applications in zope but I often see comments implying that in order to scale well one may want to use a backend relational datbase. I have also seen several comments to the effect that one should keep the state of a user session out of the ZODB. I am slightly confused by this, I can't find any information which would help me decide what data would be better off in a relational database. A relational database is good when you have large amounts of strictly structured data -- e.g. millions of user records where each user record has a fews fields with atomic datatypes. The ZODB is good when you have weakly structured or unstructured data and your write rate is not too high. The ZODB uses an almost self describing format. Therefore, it can store virtually everything, without any data model fixed beforehand. However, this leads to high redundancy and efficiency loss. This is not so problematic for unstructured or semi structured content -- as there is no much structure to exploit. It is also mot problematic for small amounts of data (then optimality is not an issue). But for large amounts of highly structured data, you can gain a lot with respect to space and time efficiency from a relational database. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] zopelabs cookbook
I switched internet providers and now I can reach zopelabs as well. I don't know what is going on but I tried several browsers and computers on that first internet provider and it would always hang. The only other clue I have is that the google cache of zopelabs would also hang. Thanks all. Tim On 2/4/08, Fred Drake [EMAIL PROTECTED] wrote: On Feb 4, 2008 3:19 PM, Tim Nash [EMAIL PROTECTED] wrote: I haven't been able to access the zopelabs cookbook for several weeks. It's working for me. -Fred -- Fred L. Drake, Jr.fdrake at gmail.com Chaos is the score upon which reality is written. --Henry Miller ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] zopelabs cookbook
I haven't been able to access the zopelabs cookbook for several weeks. The page (www.zopelabs.com/cookbook ) just hangs. Is anyone able to get access to the zope cookbook? If the zopelabs site is permanently gone, are the menu's available somewhere else on the web? Thanks, Tim ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope ZMI Templates
Tom, Thanks but I think I am almost done. I have replaced the old style calls with id=Find id=Properties etc. by access the sequence. Then I added css code at the top of that same file (I think it is manage_tabs.dtml, I'm not on that computer right now). So now I can format the tabs anyway I want. There is also a little bit of javascript that checks window.parent.location and applies changes to the tabs if the user hasn't logged into the base directory.(only available to the admin). My thinking is that the zmi is battle tested. I'd rather use something that many people have already been using. Plus, from my perspective, it looks to me like the zmi just needs a little updating. Incorporating style sheets, etc. and it can have a new life. zope 3 people: zope zmi, dtml are fast and really useful, please don't toss these valuable tools! On Jan 17, 2008 6:25 AM, Tom Von Lahndorff [EMAIL PROTECTED] wrote: You really should be writing a custom UI for this rather than hacking the ZMI. It will probably take less time, be much more manageable, flexible and secure. On Jan 16, 2008, at 8:05 PM, Tim Nash wrote: The other important difference between ajax loaded pages and iframes is that when you click on a link within an iframe page, the returned page is loaded into the same iframe. If I am not being clear, please check out this png file. a href=http://medicinebrain.com/iframe.png; http://medicinebrain.com/iframe.png /a In this png I did a search for DML Docs within a tab panel and the search results are loaded into the same tab. BTW, I would like to simplify the zmi even more for my users. I want to hide various tabs (eg. security, find, etc) and I want to restrict the number of products they are shown in the drop down box for adding to a folder. However, I still want to offer complete zmi functionality to the overall administrator. I can probably hide the security tabs using css (the overall admin won't load the css sheet) but how can I control the products displayed to a user in the folder view of the zmi? Thanks, Tim On Jan 16, 2008 9:54 AM, Andreas Jung [EMAIL PROTECTED] wrote: --On 16. Januar 2008 09:33:58 +0100 Tino Wildenhain [EMAIL PROTECTED] wrote: Tim Nash wrote: Jurian, While the ZMI is a bit geeky for the average user, it works quite well inside an iframe. iframes are used by many ajax/web2 (whatever you want to call it) libraries. So in my application (for example) I currently make ajax calls to load specific zmi pages inside tabs of a window layout. IFRames. You should avoid those. With ajax or similar its easy to skip such stuff and just replace any named container tag. Iframes are still a valid choice in case asynchronous won't work e.g. when you need to load resources from servers != your origin server. Due the security model of asynchronous requests, a browser will only load stuff from the origin server. Iframes are a way to work around this limitation - ugly as you said, but sometimes a good workaround. Ansdeas ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope ZMI Templates
Tom, My modification of the css has nothing to do with security. It is to simplify the UI for general users. And I use the zmi not because it is easy but because it is proven. If you have any specific examples of the management nightmare created by using zmi as a cms I would very much appreciate hearing about them. I think all websites are a management nightmare! (but it doesn't stop facebook from becoming a platform, eh?) :) Thanks, Tim On Jan 17, 2008 8:36 AM, Tom Von Lahndorff [EMAIL PROTECTED] wrote: There's nothing wrong with the ZMI. You're just try to hack into some kind of cms rather than just build one. Hiding a link with css is nasty hack and major security issue. While it may seem like what you're doing is an easy path to a quick cms, you're really just setting yourself up for a management nightmare. I'd recommend reading through (all of) this: http://www.zope.org/Documentation/Books/ZopeBook On Jan 17, 2008, at 10:17 AM, Tim Nash wrote: Tom, Thanks but I think I am almost done. I have replaced the old style calls with id=Find id=Properties etc. by access the sequence. Then I added css code at the top of that same file (I think it is manage_tabs.dtml, I'm not on that computer right now). So now I can format the tabs anyway I want. There is also a little bit of javascript that checks window.parent.location and applies changes to the tabs if the user hasn't logged into the base directory.(only available to the admin). My thinking is that the zmi is battle tested. I'd rather use something that many people have already been using. Plus, from my perspective, it looks to me like the zmi just needs a little updating. Incorporating style sheets, etc. and it can have a new life. zope 3 people: zope zmi, dtml are fast and really useful, please don't toss these valuable tools! On Jan 17, 2008 6:25 AM, Tom Von Lahndorff [EMAIL PROTECTED] wrote: You really should be writing a custom UI for this rather than hacking the ZMI. It will probably take less time, be much more manageable, flexible and secure. On Jan 16, 2008, at 8:05 PM, Tim Nash wrote: The other important difference between ajax loaded pages and iframes is that when you click on a link within an iframe page, the returned page is loaded into the same iframe. If I am not being clear, please check out this png file. a href=http://medicinebrain.com/iframe.png; http://medicinebrain.com/iframe.png /a In this png I did a search for DML Docs within a tab panel and the search results are loaded into the same tab. BTW, I would like to simplify the zmi even more for my users. I want to hide various tabs (eg. security, find, etc) and I want to restrict the number of products they are shown in the drop down box for adding to a folder. However, I still want to offer complete zmi functionality to the overall administrator. I can probably hide the security tabs using css (the overall admin won't load the css sheet) but how can I control the products displayed to a user in the folder view of the zmi? Thanks, Tim On Jan 16, 2008 9:54 AM, Andreas Jung [EMAIL PROTECTED] wrote: --On 16. Januar 2008 09:33:58 +0100 Tino Wildenhain [EMAIL PROTECTED] wrote: Tim Nash wrote: Jurian, While the ZMI is a bit geeky for the average user, it works quite well inside an iframe. iframes are used by many ajax/web2 (whatever you want to call it) libraries. So in my application (for example) I currently make ajax calls to load specific zmi pages inside tabs of a window layout. IFRames. You should avoid those. With ajax or similar its easy to skip such stuff and just replace any named container tag. Iframes are still a valid choice in case asynchronous won't work e.g. when you need to load resources from servers != your origin server. Due the security model of asynchronous requests, a browser will only load stuff from the origin server. Iframes are a way to work around this limitation - ugly as you said, but sometimes a good workaround. Ansdeas ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope ZMI Templates
The other important difference between ajax loaded pages and iframes is that when you click on a link within an iframe page, the returned page is loaded into the same iframe. If I am not being clear, please check out this png file. a href=http://medicinebrain.com/iframe.png; http://medicinebrain.com/iframe.png /a In this png I did a search for DML Docs within a tab panel and the search results are loaded into the same tab. BTW, I would like to simplify the zmi even more for my users. I want to hide various tabs (eg. security, find, etc) and I want to restrict the number of products they are shown in the drop down box for adding to a folder. However, I still want to offer complete zmi functionality to the overall administrator. I can probably hide the security tabs using css (the overall admin won't load the css sheet) but how can I control the products displayed to a user in the folder view of the zmi? Thanks, Tim On Jan 16, 2008 9:54 AM, Andreas Jung [EMAIL PROTECTED] wrote: --On 16. Januar 2008 09:33:58 +0100 Tino Wildenhain [EMAIL PROTECTED] wrote: Tim Nash wrote: Jurian, While the ZMI is a bit geeky for the average user, it works quite well inside an iframe. iframes are used by many ajax/web2 (whatever you want to call it) libraries. So in my application (for example) I currently make ajax calls to load specific zmi pages inside tabs of a window layout. IFRames. You should avoid those. With ajax or similar its easy to skip such stuff and just replace any named container tag. Iframes are still a valid choice in case asynchronous won't work e.g. when you need to load resources from servers != your origin server. Due the security model of asynchronous requests, a browser will only load stuff from the origin server. Iframes are a way to work around this limitation - ugly as you said, but sometimes a good workaround. Ansdeas ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope ZMI Templates
Jurian, While the ZMI is a bit geeky for the average user, it works quite well inside an iframe. iframes are used by many ajax/web2 (whatever you want to call it) libraries. So in my application (for example) I currently make ajax calls to load specific zmi pages inside tabs of a window layout. I agree with Peter that you are better off building your own interface (if you are going to expose the manage_* methods) but I personally hope the zmi stays around for a while! Tim On Jan 15, 2008 11:02 AM, Peter Bengtsson [EMAIL PROTECTED] wrote: I would strongly advice against building on top of the ZMI. It's dated and as you say, in DTML. It's also too geeky to be acceptable by any client of mine. Personally I'd build something standalone that you have ultimate control over. You can still use things like manage_renameObjects() in your own mnagement interface; which you'd be able to replace once you move to zope 3. Jurian Botha wrote: I'm currently developing some customized ZMI pages and I was hoping someone could give me some insight into what the best way would be to do this. I see that Zope 2 uses dtml methods to build the standard ZMI pages but as far as I know (Zope 3 wise) I should rather be using Zope Page Templates to build the pages. I would also like the product to gracefully move on to Zope 3 in future, so that should be taken into consideration as well. Are there perhaps some existsing templates for ZMI that can also be used with Zope 3? -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Best Practice for including Javascript in Zope Applications
Matt, Please keep us updated on your strategy for serving extjs. I am also considering making my application a product for distribution but I was thinking along the lines of an install script for macs that would set up the apache webserver. I also like your approach. BTW, I haven't done it, but couldn't you just store an object in zodb that has a pointer to your video on the filesystem and access the video via a zope product? But maybe that is what LocalFS does, I haven't checked. see ya in the extjs forum. Just do a search for zope Tim On 1/2/08, Matt Hollingsworth [EMAIL PROTECTED] wrote: Yep! I have had very good luck with it so far; my little hack that I posted works like a (klutzy) charm and ExtJS is great with zope. The ExtJS folks are very well organized, and the library is quite powerful. It's working great. However, my application doesn't have quite the segregation that yours does; ExtJS and zope (DTML in particular) are much more intermingled, and can't be easily separated. This application is actually a frontend for a Java library that controls instruments at CERN (a research lab I work for), and I love the solution that it has presented. It works like a charm. (in case you're curious, it makes use of a wonderful python library I ran across called JPype (http://jpype.sourceforge.net) to execute the Java code) I am going to be accessing Zope through apache with the VHM, but there are multiple reasons why I don't want to serve the js through apache. This same principle is the reason that I don't want to upload things through FTP or WebDAV. I'm making a product, and I would like to keep it atomic, i.e., I want the only install procedure to be copy product folder to instance/Products. Uploading via WebDAV, or hosting the javascript using separate software, defeats that purpose. The solution that Tom proposed (LocalFS) seems to be what I want, but the problem is that I think it is way too out of date; it crashed my zope server (2.10.5) when I installed it. It says nothing can be found after I add an instance through the ZMI, and this is after I fixed a deprecated import ( from OFS.content_types import find_binary - from zope.app.content_types import find binary). I had to completely remove the product to get my Zope instance to work again. I'm getting the feeling that there isn't really a (recent) canned solution for accessing file system content, which is... strange at best, considering all the power that zope has at its disposal. You would think that accessing the file system would be present just because it is so simple to do. I'm not complaining, as I'm *very* happy with zope, I'm just surprised :). I realize that zope's principle is to store everything in the database, but this is unacceptable for content such as video files, right? I mean the ZODB file would be absolutely humongous (and slow? I don't know for sure how it's implemented). If there isn't already a working solution, I would be happy to come up with one; I could just hack out the parts of LocalFS that work, add a few features, and repackage it into a new product. It's not difficult to do (my little trivial solution already would work fine if I did a non-dumb implementation of the file-serving logic), and as much as I would like to use it for other projects, it would be worth my time. For example, I want to make a little video/music server as a personal project unrelated to my current one, and I really don't want to store things in the ZODB if I can help it... 1 video = +1 gig ZODB? :S I don't know much about zope obviously, so if I get some vehement objections to this route, I'll pick another :) Thanks! -Matt -Original Message- From: Tim Nash [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 02, 2008 2:03 PM To: Tom Von Lahndorff Cc: Matt Hollingsworth; zope@zope.org Subject: Re: [Zope] Best Practice for including Javascript in Zope Applications I am writing an application that uses extjs as the front end and zope on the back and they work together really well. I am using a webserver to server the extjs library and everything else comes out of zope. So far I have had no trouble with relative links or files broken up in different locations. It may be because I have fully committed to having an extjs front end. I typically serve a page out of zope, it calls the extjs library as well as custom JavaScript files. The web2.0 style page then makes multiple xhr calls back to zope to load smaller html and json fragments. Works like a charm and has the additional benefit of letting me cache the majority of the front end in the webserver and in the users browser. Have fun because you have just come across a wonderful combination...extjs and zope! Tim On Jan 2, 2008 6:38 AM, Tom Von Lahndorff [EMAIL PROTECTED] wrote: On Jan 1, 2008, at 7:20 PM, Matt Hollingsworth wrote: Hello, I'm new to developing for zope, and I
Re: [Zope] Best Practice for including Javascript in Zope Applications
I am writing an application that uses extjs as the front end and zope on the back and they work together really well. I am using a webserver to server the extjs library and everything else comes out of zope. So far I have had no trouble with relative links or files broken up in different locations. It may be because I have fully committed to having an extjs front end. I typically serve a page out of zope, it calls the extjs library as well as custom JavaScript files. The web2.0 style page then makes multiple xhr calls back to zope to load smaller html and json fragments. Works like a charm and has the additional benefit of letting me cache the majority of the front end in the webserver and in the users browser. Have fun because you have just come across a wonderful combination...extjs and zope! Tim On Jan 2, 2008 6:38 AM, Tom Von Lahndorff [EMAIL PROTECTED] wrote: On Jan 1, 2008, at 7:20 PM, Matt Hollingsworth wrote: Hello, I'm new to developing for zope, and I have a quick question regarding some best practices when using Javascript in zope applications. I would like to use Ext JS (http://www.extjs.com/ ) in an application that I am writing. It is a fairly extensive library, so I didn't really want to copy/paste every single file into a dtml method. I looked all over the place for some discussion on this subject, but only found things relating to plone (which apparently has a javascript registry); however, I wish to stay away from plone for this particular application. What should I do to use these libraries? Is there a canned solution for this sort of thing? Thank you much! -Matt ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) You can ftp the files to a static directory on the file system and use LocalFS to access them. http://wiki.zope.org/zope2/LocalFS___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] integrating a zope app with plone security, search
Does anyone know a good resource (link) that describes integrating a zope application into plone? I have a zope application (dtml, scripts, external methodss, etc.) that I want to package for distribution with plone 3.x. I also want to import the zexp under the plone folder and have all the plone users have access to this application. However, I don't want to turn this application into a plone app. At some sites, it will run much faster without plone. Thanks for the help. googling has been fruitless so far. Tim ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to use Zope2 products in Zope3 ?
Jason, Great posts! I have written an application that uses extjs (also works with AIR) as the javascript front end and zope 2.10 as the backend.I chose dtml over zpt because dtml is faster than zpt. The extjs application scales better then either a zpt or a dtml application because the majority of the user interface is written in javascript code that can be cached by the webserver (and client). Please keep us updated on your experience developing rich client interfaces with zope 2 and 3. I am waiting for delivery of Philipp von Weitershausen zope 3 book from Amazon. Hopefully I will be able to share my zope 3/ rich client experience with you in the future. Tim On 10/9/07, Jason Cunliffe [EMAIL PROTECTED] wrote: Andreas Jung wrote: so how in Z3 does one do the equivalent of -- DTMLMethod There is also DTML support in Zope 3 but why do you need DTML??? Maybe I don't need it... but there are lots of DTML examples out there, plus I have some things already working on Zope2 installation here. I'm in test/review/compare/learn cycle at the moment. Was hoping for some fast copy'n'paste between versions. My main effort will be in the userclient AS3.0 dev.. On the Zope side it's more about organizinng minimal pieces. IF I knew how, I'd love to write theentire ZMI in Flash. AS3.0 in Flex especially has great data binding. For example cool drag'n'drop trees with lovely E4X syntax for XML. The site tree admin in ZMI could be as nice to use as the live flex examples in this drag'n'drop tree component article shows: tutorial http://www.adobe.com/devnet/flex/quickstart/working_with_tree/ source http://www.adobe.com/devnet/flex/quickstart/working_with_tree/src/TreeDragTo/index.html Going further one can use AIR and have drag'n'drop access on the desktop Interfacing that to Zope3 would make the basis for a superb CMSWikiLog++ AIR-to-Desktop Drag-and-Drop: Two Simple Utility Classes http://coenraets.org/blog/2007/06/air-to-desktop-drag-and-drop-two-simple-utility-classes/ http://coenraets.org/blog/2007/06/air-to-desktop-drag-and-drop-two-simple-utility-classes/ download demo http://coenraets.org/downloads/dragdrop.air -- PythonScript -- ExternalMethod Write a browser view. ok thanks.. So now I'm googling for How to write a Zope3 browser view? Wondering has anyone done this already.. seems like it must be basic to using Zope3 lots more to learn Any suggestions where best to learn how to do this? Has anyone written a glossary for Zope 3 concepts terminology for Zope 2 users? Jason ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope is in trouble
While I agree that the zope resources look a bit stale, I think that zope itself has never been so relevant. I am a new zope developer and I find that zope fits well with many of the new web techniques. I haven't bothered to learn much page templates because my site is almost completely built out of a javascript library (extjs) that provides widgets, so I don't need much more than some simple dtml calls. It is build on REST principals which fits naturally with zope as a back end and it is a web service so I don't need a relational database. (relational databases are of limited value when you are building a new web service that will fit within a SOA). Also, Zope is easy to manage through the web so my users don't need to hire a DBA. I think the problem with zope was that it provided solutions to 2008 web development problems in 2002. If it was a private product I would re-brand it and announce it as the perfect back end for RESTful web services. One suggestion: if only the admin interface was more easily scriptable from command line python scripts. I have seen a few examples but it would be nice to get the whole API in one place in a document or a full featured application. Tim On 9/26/07, baiewola [EMAIL PROTECTED] wrote: Often when you find a product on zope.org, there's just a link out to another site, so the most recent downloads aren't even available on zope.org. It's often more useful and faster just to google on your zope topics, rather than use zope.org. How can the community help, that's what we need to know? --- Gregory Dudek [EMAIL PROTECTED] wrote: I have been a Zope developer user for several years. Zope is great and it has had a major impact on my work. All this to say I am an experienced Zope user and supporter. I think the Zope is in major trouble and the Zope.org web site is badly in need of attention. I started using zope in 2001 at Xerox PARC and the helpful and persuasive resources at zope.org were a major factor. Today, zope.org is full of dead links and it very hard to use unless you are already experienced. Getting started with Zope today is harder now than is was, even though the actual software is better. A key factor is that from the zope.org web site it is not clear if the community is healthy or not, and the general impression is that the project is stalled since so many links are dead and defunct (and in fact I am not so sure of the zope community health myself any longer, despite the ongoing zope postings here). In my opinion, making zope.org look healthy and be usable is the MOST important obstacle for the Zope community. I believe this is both a symptom and a cause of disarray in the Zope user/developer community. Zope was always a bit hairy to get into, without saying anything about Plone development or Zope 3, I just want to point out that without a clear simple up-to-date main web site, things are looking really bad. I introduced some zope-based material in an introductory computer science course a few years ago with moderate success, but am starting to doubt it would be appropriate any longer. I am not criticizing the people on this list or the other Zope developers: I have enormous appreciation for what has been built, I just would hate to see is dwindle in vitality and use. Greg Appendix (Examples) Specific evidence (these are just examples): 1) search for something, say user folder on zope.org Pages you get are dated 2001, 2000, 2003, Let's try link 3 for the extensible user folder (one of the formerly more popular and useful items in the first few listed). Click the more info link: dead page (Insufficient Privileges) 2) Click Zope Products on the sidebar. Most of the listed products are old. 3) Resources Sidebar Item. Click Zope Links. - Site Error ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. http://farechase.yahoo.com/ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
Re: [Zope] Deleting a file in Python
I had to go to the zope cookbook today to get this script so I thought I'd paste it here for you as well. It may help you. It is from this url: http://zopelabs.com/cookbook/1037768468 hth Tim # to copy something from a folder copy_info = some_folder.manage_copyObjects(('object_foo', 'object_bar', 'object_baz') ) # The argument to manage_copyObjects is a tuple of object IDs which must exist # in the folder where you call the method. # The returned result is clipboard data, suitable for putting in a cookie. # but we don't need cookies if we're copying and pasting in one # script. ## If you WANT the clipboard in a cookie, maybe because you're # going to paste it later in some other script, you need to # pass in a REQUEST like so: copy_info = some_folder.manage_copyObjects(('object_foo', 'object_bar', 'object_baz'), REQUEST ) # The cookie is set in REQUEST.RESPONSE. To cut stuff from a folder copy_info = some_folder.manage_cutObjects(('object_foo', 'object_bar', 'object_baz') ) # ... it's just like manage_copyObjects To delete things completely - no cut, no paste, just gone some_folder.manage_delObjects(('object_foo', 'object_bar') ) To paste the result of a cut or copy into a folder some_other_folder.manage_pasteObjects(copy_info) ## A complete copy / paste example # get the source and destination parent folders dest_base = context.restrictedTraverse('/foo/bar/baz') src_base = context.restrictedTraverse('/fool/bear/booze') folds = src_base.objectItems('Folder') # where the objects to copy live for src_id, src_obj in folds: # prepare the destination try: # we might have run the script already, or the destination # might just exist already. dest = getattr(dest_base, src_id) print 'folder exists already', except AttributeError: # make sure the destination is there. dest_base.manage_addProduct['OFSP'].manage_addFolder(src_id, '') dest = getattr(dest, s_id) print dest.absolute_url() # now the real work, actually quite easy try: copy_info = src_obj.manage_copyObjects(('stylesheet_properties',)) print copied..., d.manage_pasteObjects(copy_info) print pasted! except: print ...couldn't paste it there. return printed On 8/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm reading the zope book, 2.6. And I've worked through the ZopeZoo tutorial in chapter 11. I want to make it possible to delete entries in the GuestBook via its web interface. It uses a python script to create the file with the line: context.manage_addProduct['OFSP'].manage_addFile(id, title=, file=comments) I assume I could write something like: context.manage_deleteProduct['OFSP'].manage_removeFile(id) or maybe: context.manage_addProduct['OFSP'].manage_deleteFile(id) but I can't figure out where context.* is documented. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How do I eval a variable within the acquisition path?
This is what I was looking for. Thanks to all. Tim print context.Vet[category][animal].vaccinateplan() cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] How do I eval a variable within the acquisition path?
I apologize for the question (the zope area of my brain must need coffee) but I can't find the answer in the zope book or in any of the scripts posted to the zope cookbook. I want to use a variable in a acquisition path. So for example, from the zope book on scripts, imagine that vaccinateplan() printed out a specific animals vaccination plan. Now instead of saying 'LargeAnimals' and 'hippo' like so: print context.Vet.LargeAnimals.hippo.vaccinateplan() I want to do like this: category = REQUEST.form['category'] animal = REQUEST.form['animal'] print context.Vet.category.animal.vaccinateplan() but I get an Attribute Error. How do I eval a variable within the acquisition path? Thanks, Tim ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How do I eval a variable within the acquisition path?
Thank you, that is cool but it isn't what I was looking for. My fault. It is hard to describe. This may be called an indirect variable reference. I want the form to ask for the type of animal (hippo? giraffe?) and send it to a python script. No problem here. I can write the form and most of the script that is called. But this is where I have the problem. The python script will use the name of the animal to go down into the proper folder and call vaccinateplan() on all the items in that folder. The key line in the python script is: print context.Vet.category.animal.vaccinateplan() That runs the vaccinateplan script on the folder which has a folder id of either 'hippo' or 'girafee'. And it is in the folder named by the variable category and in the folder named 'Vet' There is no folder with the id of 'category' or 'animal' I'm sorry my explanations are not clear. And I shouldn't have used the hippo and girafee example from the zope book because that is doing something a little different. Below is the directory structure I am thinking of. Thanks! Tim vet | largeAnimal | | |hippo |girafee |---small Animal | |--vacinateplan() On 8/21/07, Jonathan [EMAIL PROTECTED] wrote: - Original Message - From: Tim Nash [EMAIL PROTECTED] To: zope@zope.org Sent: Tuesday, August 21, 2007 7:17 PM Subject: [Zope] How do I eval a variable within the acquisition path? I apologize for the question (the zope area of my brain must need coffee) but I can't find the answer in the zope book or in any of the scripts posted to the zope cookbook. I want to use a variable in a acquisition path. So for example, from the zope book on scripts, imagine that vaccinateplan() printed out a specific animals vaccination plan. Now instead of saying 'LargeAnimals' and 'hippo' like so: print context.Vet.LargeAnimals.hippo.vaccinateplan() I want to do like this: category = REQUEST.form['category'] animal = REQUEST.form['animal'] print context.Vet.category.animal.vaccinateplan() but I get an Attribute Error. How do I eval a variable within the acquisition path? any items in a url after python script name will be placed into REQUEST. Example: if there is a python script called 'ptst' in the folder 'folderx' then the url: www.xyz.com/folderx/ptst/a/b/c will result in the python script ptst being run and the following entry will be in REQUEST: traverse_subpath ['a', 'b', 'c'] hth Jonathan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] folders show with firefox but not IE7
Anyone experiencing weird behavior with IE 7? I was creating folders into a folder that had exiting folders and the new folders wouldn't show up (old ones did show)until I did a paste of a different folder. Then all the folders showed up. I removed the user folder and a catalog from that folder and still saw the same problem. Then I switched to firefox and everything was back to normal. All the folders appeared upon creation. Any thoughts? Tim IE7 firefox 1.5 zope 2.9 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] does zope support java script
Mohammed, yes, firebug is your best friend when doing javascript development! I am wondering if the script call in your html is calling the correct location? I suggest serving javascript from apache. Then you can just make a header dtml page that calls those javascript files. Any zope page that needs the javascript can just use that header. Zope and javascript compliment each other quite well. The more processing you can push onto your client the more zope can scale. Tim On 7/17/07, Mohammed Tlais [EMAIL PROTECTED] wrote: Hi, thank you Andreas for replying Well I will try to explain the matter in details. I have an html page called DropDownMenu.html and it calls two js files, these three files (DropDownMenu.html, exmplmenu2_var.js, menu_com.js) are added into Zope (ADD FILE)into the same folder, when I execute it, DropDownMenu displays an emply page. Outside zope it executes normally and displays a menu. Here is the code of the DropDownMenu : [code] html head /head body bgcolor=gray script type='text/javascript' function Go(){return} /script script type='text/javascript' src='exmplmenu2_var.js'/script script type='text/javascript' src='menu_com.js'/script noscriptVotre naviguateur ne supporte pas les scripts/noscript /body /html[/code] Thanks for all On 7/17/07, Andreas Jung [EMAIL PROTECTED] wrote: Javascript has nothing to do with Zope. Javascript is client-side, Zope is sever-side. Your browser will this exactly that content that you put into Zope. Your description is far too vague in order give further help. -aj --On 17. Juli 2007 08:26:37 +0300 Mohammed Tlais [EMAIL PROTECTED] wrote: -- Forwarded message -- From: Mohammed Tlais [EMAIL PROTECTED] Date: Jul 16, 2007 2:36 PM Subject: does zope support java script To: [EMAIL PROTECTED] Greetings I have a web page that contains some java script code, when I add it to zope, it will not be displayed at all, what should be done to allow java scripts in zope? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] manipulating zodb from independent database connection
Thanks Paul and Stefan, I will look into learning ZEO. I wish somebody would write a new book on the latest zope releases. I think Zope is ready for a resurge in interest. Maybe it already is happening. Grok...eggificationREST + AJAX architectures.the growing interest in web services (just what is google doing with zope?). There are lots of reasons to be getting into zope these days. Tim On 4/11/07, Stefan H. Holek [EMAIL PROTECTED] wrote: On 11. Apr 2007, at 07:19, Tim Nash wrote: I'm using zope 2.5 (matches a book I like) and doing like so: This is a *very* old release (5 years?). from ZODB import FileStorage, DB storage = FileStorage.FileStorage('Data.fs') db = DB(storage) connection = db.open() root = connection.root() Also, can the ZODB be altered this way on a running Zope instance? I would like to have a script run on cron and insert objects and remove objects from the ZODB while the zope instance application is running. I'd like these newly inserted objects to be Zpublishable as well. To access the ZODB from separate processes you have to run ZEO. Stefan -- It doesn't necessarily do it in chronological order, though. --Douglas Adams ___ Zope maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] manipulating zodb from independent database connection
Does anybody have a script available that shows how to insert objects into the ZODB root['Application'] from a non-zope process outside the Zope application? Everytime I try to read root['Application'] I get a page template error. I'm using zope 2.5 (matches a book I like) and doing like so: from ZODB import FileStorage, DB storage = FileStorage.FileStorage('Data.fs') db = DB(storage) connection = db.open() root = connection.root() Also, can the ZODB be altered this way on a running Zope instance? I would like to have a script run on cron and insert objects and remove objects from the ZODB while the zope instance application is running. I'd like these newly inserted objects to be Zpublishable as well. Thanks! Tim ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] zope form server and workflow
I'd like to get zope developers advice. I'm interested in the possibility of developing a system by putting together several zope instance that talk to each other via web services. I'd like to use zope as a RESTful server but I am novice zope user. I have only built one product and that was over a year ago. What I would like to do is the following: I'd like to be able to use zope as a url addressed storage system for e-forms. These are forms like you would find in a hospital clinic. There would be a gui interface that would be separate from the zope server (maybe it would also run in a different zope server but it could also be built in php or jsp). The gui pulls a blank e-form by calling http://hospital.org/form_service/patientCareForms/12465.pdf and pre-populates it with patient data taken from the session. Gui then stores the partially completed e-form. MRN is a unique number associated with a patient and FIN is unique to the MRN as well as the current encounter (or visit to the clinic) http://hospital.org/cardiovascular/MRN/FIN/date/uniqueid_12465.pdf then at a later time, gui recalls the same e-form http://hospital.org/cardiovascular/MRN/FIN/date/uniqueid_12465.pdf and sends it to a users mailbox. The mailbox is a zope workflow service http://hospital.org/workflow_service/dr_phil/date/uniqueid_12465.pdf Dr. Phil signs it and sends it to become part of the final medical record and stored in a relational database. The eform data is processed http://hospital.org/workflow_service/process_eform/12465.pdf And the pdf is sent for storage: http://hospital.org/stored_forms/cardiovascular/MRN/FIN/date/uniqueid_12465.pdf Is this possible in zope? Is it even a good idea performance wise? The tough part to me is 1. calling a url with two consecutive url parts that are dynamically generated: /MRN/FIN 2. doing inserts into dynamic areas such as the final storage step. A system like this is would let the physician's use e-forms that look just like the paper forms they are used to and it could be scaled up quickly. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] work around for importing zexp into zope2.8.1?
Dieter, Thanks again. It worked like a charm! Tim On 2/7/06, Dieter Maurer [EMAIL PROTECTED] wrote: Tim Nash wrote at 2006-2-6 11:34 -0800: Has anyone come across a work around for the problem of importing zexp into zope 2.8.1? As others already pointed out: the easiest solution would be to use a fixed Zope 2.8.x version. Alternatively, you could fix Zope 2.8.1 yourself. For this, I added (in our local copy) in .../Products/PluggableIndexes/common/UnIndex.py: # DM 2005-08-25: compatibility from ComputedAttribute import ComputedAttribute ... # DM 2005-08-25: backward compatibility -- overridden at instance level def _length(self): length = self._length = BTrees.Length.Length(len(self._index)) return length _length = ComputedAttribute(_length) The second hunk can go (e.g.) after the definition of __len__. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] work around for importing zexp into zope2.8.1?
Hello Group, Has anyone come across a work around for the problem of importing zexp into zope 2.8.1? I want to utilize iungo which requires zexp imports but I'd rather not ask my hosting provider for an update to zope. Thanks Tim BTW, thanks for the input on using zope as a standard application server. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] work around for importing zexp into zope2.8.1?
Andreas, Here I quote the iungo website http://iunog.org/download If you want to use iungo with Zope 2.8.X or Zope 2.9.x (please note: Zope 2.8.1 is broken regarding .zexp-Imports ), you'll need to recreate all Catalog-Indices. I have found this to be the case and when I researched on the web others mentioned that it was broken. Tim from my import Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: _length However, the tutorial does import ok. Thanks, Tim On 2/6/06, Andreas Jung [EMAIL PROTECTED] wrote: --On 6. Februar 2006 11:34:10 -0800 Tim Nash [EMAIL PROTECTED] wrote: Hello Group, Has anyone come across a work around for the problem of importing zexp into zope 2.8.1? What is the problem of importing? If you don't have the permission to files to be imported into the filesystem of your Zope instance then you can't import it...just easy...and there is no workaround. -aj ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] work around for importing zexp into zope2.8.1?
Well in the FAQ I see it says to call manage_convertIndexes of the ZCatalog which is a lot like what it says on the iungo site If you want to use iungo with Zope 2.8.X or Zope 2.9.x (please note: Zope 2.8.1 is broken regarding .zexp-Imports ), you'll need to recreate all Catalog-Indices. After step 3) of the iungo-installation simply call: http://localhost:8080/iungo/Catalog/manage_convertIndexes However, step 3 is the importing of the zexp (which doesn't work). I followed the iungo installation procedure on a box that runs zope 2.9 and the zexp went smoothly and the call to manage_convertIndexes went smoothly but on the production box, I can't call this url because the iungo instance doesn't exist. The url is not valid, because the import failed. perhaps I need to call a different url? Tim On 2/6/06, Andreas Jung [EMAIL PROTECTED] wrote: --On 6. Februar 2006 11:50:40 -0800 Tim Nash [EMAIL PROTECTED] wrote: from my import Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: _length This is documented in doc/FAQ.txt of the Zope distribution. -aj ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] work around for importing zexp into zope2.8.1?
Andreas, BTW, There is no ZCatalog objects found on my site. Tim On 2/6/06, Tim Nash [EMAIL PROTECTED] wrote: Well in the FAQ I see it says to call manage_convertIndexes of the ZCatalog which is a lot like what it says on the iungo site If you want to use iungo with Zope 2.8.X or Zope 2.9.x (please note: Zope 2.8.1 is broken regarding .zexp-Imports ), you'll need to recreate all Catalog-Indices. After step 3) of the iungo-installation simply call: http://localhost:8080/iungo/Catalog/manage_convertIndexes However, step 3 is the importing of the zexp (which doesn't work). I followed the iungo installation procedure on a box that runs zope 2.9 and the zexp went smoothly and the call to manage_convertIndexes went smoothly but on the production box, I can't call this url because the iungo instance doesn't exist. The url is not valid, because the import failed. perhaps I need to call a different url? Tim On 2/6/06, Andreas Jung [EMAIL PROTECTED] wrote: --On 6. Februar 2006 11:50:40 -0800 Tim Nash [EMAIL PROTECTED] wrote: from my import Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: _length This is documented in doc/FAQ.txt of the Zope distribution. -aj ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] work around for importing zexp into zope2.8.1?
Andreas. iungo.zexp imports fine into zope 2.9 it doesn't import into zope2.8.1. Thanks for trying to help. It looks like I'm just stuck. Thanks, Tim On 2/6/06, Tim Nash [EMAIL PROTECTED] wrote: Andreas, BTW, There is no ZCatalog objects found on my site. Tim On 2/6/06, Tim Nash [EMAIL PROTECTED] wrote: Well in the FAQ I see it says to call manage_convertIndexes of the ZCatalog which is a lot like what it says on the iungo site If you want to use iungo with Zope 2.8.X or Zope 2.9.x (please note: Zope 2.8.1 is broken regarding .zexp-Imports ), you'll need to recreate all Catalog-Indices. After step 3) of the iungo-installation simply call: http://localhost:8080/iungo/Catalog/manage_convertIndexes However, step 3 is the importing of the zexp (which doesn't work). I followed the iungo installation procedure on a box that runs zope 2.9 and the zexp went smoothly and the call to manage_convertIndexes went smoothly but on the production box, I can't call this url because the iungo instance doesn't exist. The url is not valid, because the import failed. perhaps I need to call a different url? Tim On 2/6/06, Andreas Jung [EMAIL PROTECTED] wrote: --On 6. Februar 2006 11:50:40 -0800 Tim Nash [EMAIL PROTECTED] wrote: from my import Site Error An error was encountered while publishing this resource. Error Type: AttributeError Error Value: _length This is documented in doc/FAQ.txt of the Zope distribution. -aj ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: Zope development tutorial (Re: [Zope] Re: Product refreshing in Zope 2.9)
The things that tie together are Zope itself and larger frameworks on top of it, such as e.g. the CMF or Plone/CPS/Silva. Do you mean that nobody actually writes an application without using CMF or Plone/CPS/Silva? If that is the case then that explains my slow rate of development. But I wonder if I want to continue with zope. It looks like a cool application server, I have written an application (slowly) and I was hoping that I could see better examples of how to write a complete application. There is very little on sourceforge. I have read the zope bible cover to cover and I have read most of the zope book, but I admit that I haven't read the developer book. ( hate reading large amounts of text online). I guess that is my future. As for a specific question. Here goes: Could I please get a Zope application written by someone who has 2 years of Zope experience that uses several dtml or zpt pages, that 1. registers a user 2. collects data from a user and saves that data to the zodb 3. manages the accumulation of data in the zodb? If it was developed outside the zmi (I hope) can you also send me the associated test framework? Thanks! On 2/1/06, Dieter Maurer [EMAIL PROTECTED] wrote: Tim Nash wrote at 2006-1-31 11:48 -0800: ... I have completed my first zope product and I find that the change in mindset is the biggest challenge. Zope is cool but it is quite different from php or java or cgi. Have you read the Zope Developper Guide? It is something like a basic guide to product development in Zope 2. ... I have downloaded many of the products from zope.org but they really don't tie everything togather. Products are extensions that try to have very few dependancies. Therefore, they try not to tie other things together but use only services of Zope (which is always available). The things that tie together are Zope itself and larger frameworks on top of it, such as e.g. the CMF or Plone/CPS/Silva. I am looking for something that covers login in users, Look for the product PAS (PluggableAuthenticationService). building tables out of data stored in zodb, There is a product TinyTables (or similar) for (as the name tells you) tiny tables. Zope does not (yet) support large tables (it is not a relational database). But, you can use the ZCatalog to search your objects. Read the searching chapter in the Zope Book (Online, 2.7 edition). ... getters and setters for objects in the zodb, There is no difference in attribute access for persistent objects (those in the ZODB) and standard Python objects. Read the Python tutorial. collecting a variable in one page and passing it on to another page You have the standard HTML facility (e.g. query string and hidden variables; function in ZTUtils.Zope help you in using them) and you have sessions (explained in the Zope Book; read it!) where it modifies the data display, working with Sessions, etc. I guess what I'm looking for is a template for a real application, not for the individual pieces of functionality. I guess, you read the resources mentioned above (Zope Developper Guide and Zope Book, 2.7 edition, online) and then come back with concrete questions. Maybe, you then write the tutorial you are looking for now -- to the profit of future new Zope users... -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] starter application for zope 2.x
Does anybody have a zope 2.x application that you usually use to start building products with? I have combed the products at zope but they generally are built to demo a particular functionality. I am looking for an application that ties a lot of ideas together such as: 1. something that covers users registration, 2. building tables out of data stored in zodb, 3. getters and setters for objects in the zodb, 4. How to collect a variable in one page and pass it on to another page where it modifies the data displayed, 5. working with Sessions, etc. 6. coverage of the most commonly used DTML snippets 7. coverage of the most commonly used ZPT snippets 8. Test framework with setup scripts I guess what I'm looking for is a template for a real application, not for the individual pieces of functionality. I imagine that some of you who do full time zope development would have at least two of these starter applications, One for when the data is primarily stored in the zodb and one for when the data is primarily stored in a relational db. I think an application like this would help people get up and running with building (and testing) zope products. Also, it would help if the products on zope.org where ranked in some way so newbies like me can know what the community has found to work well. Thanks, Tim ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Product refreshing in Zope 2.9
This thread has been interesting. I wish there was even more writing about how people develop with zope. I have completed my first zope product and I find that the change in mindset is the biggest challenge. Zope is cool but it is quite different from php or java or cgi. I wish that there was complete basic application that had all the standard features in it so that a new developer could just start with that template and modify. I have downloaded many of the products from zope.org but they really don't tie everything togather. I am looking for something that covers login in users, building tables out of data stored in zodb, getters and setters for objects in the zodb, collecting a variable in one page and passing it on to another page where it modifies the data display, working with Sessions, etc. I guess what I'm looking for is a template for a real application, not for the individual pieces of functionality. And if it it has associated test framework, unit tests, setup scripts etc. that is even better. One application that has it all factored out to the most common way zope is used would be a beautiful thing. Also, more writting on how you guys go about developing zope apps. Do you start from scratch each time or do you have your own templates? Do you use the zmi? Do you mix zpt and dtml? What is the best products? most commonly used products? BTW, I find refresh usefull because my site is hosted in Europe and I'm in Calif.. I can live without refresh but it is one more reason for me to not request a zope upgrade from my hosting service. And if it isn't going to work, shouldn't it be removed? Tim On 1/31/06, Peter Bengtsson [EMAIL PROTECTED] wrote: On 1/31/06, Lennart Regebro [EMAIL PROTECTED] wrote: On 1/31/06, Peter Bengtsson [EMAIL PROTECTED] wrote: Refresh works well in limited situations, but it *cannot work* if you have global registries or many interrelated modules. The setup I use takes care of dependencies in a semi-manual way. In my refresh-config I define which other products depend on the one I'm defining. Problem solved. Well, if you have actually solved this problem, and therefore made Refresh useful, one question that pops up is why this hasn't been moved into Zope. ;) The setup is quite personal and ad hoc and probably only works on linux. I'm going to write an article about it some time soon but I've been waiting for finishing my company's website first where I'll publish it together with the code. In all honesty: lazyness :) -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Product refreshing in Zope 2.9
This thread has been interesting. I wish there was even more writing about how people develop with zope. I have completed my first zope product and I find that the change in mindset is the biggest challenge. Zope is cool but it is quite different from php or java or cgi. I wish that there was complete basic application that had all the standard features in it so that a new developer could just start with that template and modify. I have downloaded many of the products from zope.org but they really don't tie everything togather. I am looking for something that covers login in users, building tables out of data stored in zodb, getters and setters for objects in the zodb, collecting a variable in one page and passing it on to another page where it modifies the data display, working with Sessions, etc. I guess what I'm looking for is a template for a real application, not for the individual pieces of functionality. And if it it has associated test framework, unit tests, setup scripts etc. that is even better. One application that has it all factored out to the most common way zope is used would be a beautiful thing. Also, more writting on how you guys go about developing zope apps. Do you start from scratch each time or do you have your own templates? Do you use the zmi? Do you mix zpt and dtml? What is the best products? most commonly used products? BTW, I find refresh usefull because my site is hosted in Europe and I'm in Calif.. I can live without refresh but it is one more reason for me to not request a zope upgrade from my hosting service. And if it isn't going to work, shouldn't it be removed? Tim On 1/31/06, Peter Bengtsson [EMAIL PROTECTED] wrote: On 1/31/06, Lennart Regebro [EMAIL PROTECTED] wrote: On 1/31/06, Peter Bengtsson [EMAIL PROTECTED] wrote: Refresh works well in limited situations, but it *cannot work* if you have global registries or many interrelated modules. The setup I use takes care of dependencies in a semi-manual way. In my refresh-config I define which other products depend on the one I'm defining. Problem solved. Well, if you have actually solved this problem, and therefore made Refresh useful, one question that pops up is why this hasn't been moved into Zope. ;) The setup is quite personal and ad hoc and probably only works on linux. I'm going to write an article about it some time soon but I've been waiting for finishing my company's website first where I'll publish it together with the code. In all honesty: lazyness :) -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] xform in zope 2.8
Does anybody know how to monkey patch 2.8.0 so zope can process an xform? I found the xmlFix patch but a fellow zope user pointed out that 2.8.1 breaks the monkey patch because of the zope.app.publication.HTTPPublicationRequestFactory object. Does 2.8.0 have the HTTPPublicationRequestFactory object? I cannot find it but then I also cannot seem to process the xform.Thanks!Tim ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )