[Zope] XML and Zope newbie question...
Hi All, I am just getting started in XML and am trying to figure out how it works with Zope. I would like to be able to post some data to Zope in XML format and have Zope parse the data into Zope objects. Is this possible? It seems like I should be able to create the Zclasses and, when Zope receives the post, have Zope automagically create the necessary objects from my classes. Any input on how to do this or pointers to a better way would be fantastic. Please respond to me directly as I am not currently able to handle the list volume. Thanks, Eric. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Java applet with inner classes causing probs in Zope
Just a follow-up: Morten Said: // Adding files to Zope through FTP doesn't seem to have the same restrictions. Actually, it did for me. FTP was able to upload all the class files except those with the $ in them (the classes with inner-classes). That's how I found out about the problem. Holger Lehmann said: // What about putting it all in a jar-file ? I tried that, too, but Java would choke on running the Jar file that was served from Zope. If anyone has a working JAR file applet in Zope, I'd love to see the syntax they used! To make my applet work, I had to go into the java code and separate out the inner classes so that every class was in its own file. This turned out to be a lot easier than I expected. Eric. Here's the original message... Hello all, The problem is that inner classes have names like "Parent$Inner.class" I'm unable to create a Zope file object with a name that includes the dollar sign. However, the applet won't function without it. Has any one overcome this? Yes, the applet functions properly when served from apache (but I need to serve it from Zope). Please respond directly to me and mailing list as I am not currently on the mailing list. Thanks, Eric. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Java applet with inner classes causing probs in Zope
Hello all, The problem is that inner classes have names like "Parent$Inner.class" I'm unable to create a Zope file object with a name that includes the dollar sign. However, the applet won't function without it. Has any one overcome this? Yes, the applet functions properly when served from apache (but I need to serve it from Zope). Please respond directly to me and mailing list as I am not currently on the mailing list. Thanks, Eric. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] password
Hi Jonathan, Try this from the console: python zpasswd.py --username="superuser" --password="TheNewPassword" "access" This is documented in the Zope installation files. Note that doing it this way, the command line will be stored in the command line buffer file on your system, which may be a security issue. HTH, Eric. // -Original Message- // From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of // Jonathan Desp // Sent: Saturday, July 29, 2000 3:21 PM // To: [EMAIL PROTECTED] // Cc: zope zope zope // Subject: [Zope] password // // // Hi, // // the program zpasswd prompt. // // they said: snip ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Incorrect Article: Zope Costly enterprise option
Hi Tom and the editors at InfoWorld, In regards to your article titled "Zope is a powerful open-source server" FYI, ZEO is now open source and free. It's been that way since March 2000. Is it possible to fix your article before too many folks get the wrong idea? Here's a link to all the details: http://www.zope.org/Products/ZEO/ZEOFactSheet Thanks, Eric Walstad. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Trouble compiling ZMySQLDA
Hello Ewald, Here's a mailing list archive that may help you: http://zope.nipltd.com/public/lists/zope-archive.nsf/242bb7cc2b2c343d802568a b003585d4/041159ede9899734802568a700259726?OpenDocument It helped me with the same problem. Basically, It tells you how to make a few simple modifications to the MySQLmodule.c file that allow the file to be compiled. Hope It Helps... Eric. // -Original Message- // From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ewald // Wasscher // Sent: Sunday, July 09, 2000 4:54 PM // To: [EMAIL PROTECTED] // Subject: [Zope] Trouble compiling ZMySQLDA // // // Hello all, // // When I try to compile ZMySQLDA I get the following error messages after // typing make: // // [root@catv6216 src]# make // gcc -fPIC -I/usr/local/mysql/include -I/usr/include/mysql -g -O2 // -I/usr/include/python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG_H -c // ./MySQLmodule.c // ./MySQLmodule.c: In function `pythonify_row': // ./MySQLmodule.c:238: warning: assignment from incompatible pointer type // ./MySQLmodule.c: In function `pythonify_res_fields': // ./MySQLmodule.c:384: invalid lvalue in unary `' // ./MySQLmodule.c: In function `STH_fetchdict': // ./MySQLmodule.c:1125: invalid lvalue in unary `' // ./MySQLmodule.c:1147: invalid lvalue in unary `' // make: *** [MySQLmodule.o] Error 1 // [root@catv6216 src]# // // I can't even read a single line of c so I have no idea what's wrong // exactly. // // FYI: // // OS: Immunix 6.2 (= RedHat 6.2 + stackguard) // Zope: 2.1.6 (compiled from Jeff Rush's source rpm, 2.2b3 doesn't work // either) // MySQL: 3.22.32 and 3.23.21 // Python MySQLdb: 2.0 2.1 // // Ewald Wasscher // // ___ // Zope maillist - [EMAIL PROTECTED] // http://lists.zope.org/mailman/listinfo/zope // ** No cross posts or HTML encoding! ** // (Related lists - // http://lists.zope.org/mailman/listinfo/zope-announce // http://lists.zope.org/mailman/listinfo/zope-dev ) // ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Which PostGreSQL DA should I use?
OK, I am thinking about going from MySQL to PostgreSQL for its transactions and subqueries. I am curious which DA I should use and why. I see that I can choose from: 1. SQLRelay 2. ZPoPyDA 3. ZPyGreSQLDA Which are you using and why did you choose it over the others? Thanks for your time. Eric. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] PoPy-1.2.tar.gz file is missing...
The PoPy-1.2.tar.gz file doesn't seem to be available from the ftp.mixadlive.com site. Would anyone out there mind emailing me the file? Thanks, Eric. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] ANN: Forthcoming Zope Book
YAY! Can't wait to see the new docs! Thanks!! -E ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZCatalog, subtransactions permissions
Hi All, I have a user that is trying to go thru the JobBoard tutorial. In part of the tutorial he is supposed to turn off subtransactions in his instance of ZCatalog. However, he does not have the necessary permissions to do so. I'm the one that is supposed to setup his permissions, but I can't seem to find how or where to do it. Which permission is it and where is it set? There is no security tab in the ZCatalog folder, so I can't change his local role for that folder. I've tried changing his local role in the folder that contains the ZCatalog folder, but without any luck. TIA, Eric. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] HTML Editors that recognize DTML (was bastardized form of XML)
// b. Make it possible for some HTML editors that can extend their tag // database to recognize DTML tags. Maybe this is a little off topic, but did you have an editor in mind when you changed the syntax? Can you recommend an HTML editor that runs on Windows that will do this? I am currently coding DTML in VisualC++'s IDE using VBScript to paste in the DTML. This method works OK, but if there is something better, I'd love to hear about it. Thanks, Eric. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZClass newbie problem...
I'm stuck. I would like to build a "shiny new ZClass" that has the following structure: WebSimProduct WebSim Class 'Properties' Property Sheet string RunID Calc Class Object 'Properties' Property Sheet PathToInputFile PathToWxFolder Results Class Object 'Properties' Property Sheet float gashtg float elchtg float elcclg float euihtg float euiclg I haven't seen anything in the Zope documentation on using Zclass instances as members of a super class. In other programming languages I would instantiate default objects when the WebSim class is initialized. That way, to use a WebSim object, all I would need to do is instantiate one, then fill the properties of the automatiacally-created Calc object and Results object. However, I'm not sure how to build these default objects in Zope. My next question is: do I have to build a bunch of products (one for the Calc class and one for the Results class, for example)? I can imagine this would result in a huge number of products under the control panel if this is the case. I would like to have just a WebSim product and have all the other classes defined within this product. Does Zope work this way? If not, how is this class structure (or one similar) achieved? BTW, I've read, and disected to the best of my ability, the Zope Developer's Guide and the Searchable Job Board HowTo and Ta'sss Adding ZClass Instances Programmatically and the Zope Content Manager's Guide 'Turining an Application into a Product.' However none of these deals with classes that contain custom class objects. Thanks for the guidance (TFTG?)! Eric. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] IRC Chat - tools[win32]
// I have not used IRC before, but would love to join the chat session. I've not used IRC either. Can I monitor the discussion using MS NetMeeting? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Calling External Method...
// Am I on the right track with this? Shouldn't it be easy ( secure) to // launch a C app on the server and pipe the results back to // Zope? If so, how. // The approach I took (above) was recommended by someone else on // the list. // // I think you should probably make sure the function works from Python // (unless you already have). Use an absolute path to the executable, as // your cwd may change inside of Zope. Then when you're able to import the // Python module that makes up the external method module and execute the // function successfully, make it an external method within Zope. That's the frustrating thing, it *is* working from the Python command line but it is outputting an entire web page, shich may be a problem(?). I will compile something that spits out extremely simple output, follow your directions regarding the absolute path and hard code in the name of the executable for security sake, then plug that into Zope with an external method. Thanks for your help, Chris! Eric. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] zsql method??/
Oops, I forgot to mention that the CONV function is used in your ZSQL method. Here's the ZSQL Method I use (returns upcoming birthdays falling within this, and the next, month): SELECT FirstName, LastName, MONTH(Birthday) AS Month, DAYOFMONTH(Birthday)AS Day, DATE_FORMAT(Birthday, '%M %D, %Y') AS BDay, CONV(ROUND((TO_DAYS(NOW())-TO_DAYS(Birthday))/365.25), 10, 10) as WillBeAge FROM users WHERE MONTH(Birthday) = MOD(MONTH(NOW()), 12) + 1 OR (MONTH(Birthday) = MONTH(NOW()) AND DAYOFMONTH(Birthday) = DAYOFMONTH(NOW())) ORDER BY Month, Day // -Original Message- // From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of // Jonathan Park // Sent: Thursday, May 18, 2000 1:35 PM // To: [EMAIL PROTECTED] // Subject: [Zope] zsql method??/ // // // Hello everyone! // // I have a dtml method that calls in the sql method like this //dtml-in sql method // the result I get is what I would expect except in the unique_# // field 'L' // is added at the end of the number // ex: // // unique_#blahblah blah // 1L data data data // 2L data data data // // any reason why it is adding the 'L'??? // // thanks // -jon // // Have a great afternoon! // // // ___ // Zope maillist - [EMAIL PROTECTED] // http://lists.zope.org/mailman/listinfo/zope // ** No cross posts or HTML encoding! ** // (Related lists - // http://lists.zope.org/mailman/listinfo/zope-announce // http://lists.zope.org/mailman/listinfo/zope-dev ) // ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )