[Zope-dev] Zope 2.11.0 a1 released
I've just released Zope 2.11.0a1 as snapshot of the current trunk. The tarball is available from: http://www.zope.org/Products/Zope/2.11.0a1 The major changes are the inclusion of Zope 3.4 and ZODB 3.8 (with BLOB support). For details refer to the release notes. Andreas pgpHBaHtJzDiI.pgp Description: PGP signature ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope Tests: 5 OK
Summary of messages to the zope-tests list. Period Tue Jul 17 12:00:00 2007 UTC to Wed Jul 18 12:00:00 2007 UTC. There were 5 messages: 5 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.7 Python-2.3.6 : Linux From: Zope Unit Tests Date: Tue Jul 17 20:55:13 EDT 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-July/008047.html Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Unit Tests Date: Tue Jul 17 20:56:47 EDT 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-July/008048.html Subject: OK : Zope-2.9 Python-2.4.4 : Linux From: Zope Unit Tests Date: Tue Jul 17 20:58:19 EDT 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-July/008049.html Subject: OK : Zope-2.10 Python-2.4.4 : Linux From: Zope Unit Tests Date: Tue Jul 17 20:59:50 EDT 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-July/008050.html Subject: OK : Zope-trunk Python-2.4.4 : Linux From: Zope Unit Tests Date: Tue Jul 17 21:01:21 EDT 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-July/008051.html ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope] How to import a basic class in Script (Python)
--On 18. Juli 2007 12:26:06 +0300 Tudor Gabriel [EMAIL PROTECTED] wrote: To learn zope I am trying to write a basic library page. I wrote a book_py class ... and from search_books_py try to return a list of books to show in a ZPT. now let's suppose all the files (all the py and zpt files) are in the same directory:Library in search_books_py i tried importing the book class in this ways: from book_py import * from Library.book_py import * from here.book_py import * from container.book_py import * Move your code into a Product (see Zope Developers Guide) or use an external method. PythonScripts are not equal to an unrestricted Python environment. -aj pgpCZGLho3usV.pgp Description: 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] modifying zope conf ruins everything
Hi guys, I wanted to access zope from port 80, so i opened the zope conf file and modified the section that says address 8080 into address 80.and saved it, it didn't work. I restored the address into 8080, and now zope is not working at all , i can't access it even from port 8080! Am I doing something wrong? Thanks in advance Regards M. Tleis ___ 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] modifying zope conf ruins everything
--On 18. Juli 2007 13:13:27 +0300 Mohammed Tlais [EMAIL PROTECTED] wrote: Hi guys, I wanted to access zope from port 80 Why? If you run Zope as root then you must set the 'effective-user'. There is usually no need to run Zope as root. If you want to make Zope available as a public server, put Apache/Squid as reverse-proxy in front of Zope. , so i opened the zope conf file and modified the section that says address 8080 into address 80.and saved it, it didn't work. I restored the address into 8080, and now zope is not working at all , i can't access it even from port 8080! Am I doing something wrong? Error messages? -aj pgpExmbCZGEhh.pgp Description: 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] does zope support java script
- Original Message - From: Mohammed Tlais [EMAIL PROTECTED] To: Tim Nash [EMAIL PROTECTED] Cc: zope@zope.org Sent: Wednesday, July 18, 2007 1:32 AM Subject: Re: [Zope] does zope support java script Thank you Tim, thank you Andreas, thanks for all. You gave me valuable information. I figured out that the small browser inside ZMI has a problem with javascripts, it can't display them. But, when I visit the URL of the page from IE, the javascripts are executed normally. Am I right that ZMI can't displays JS ? and is there a solution for it. I use two different methods for incorporating js into my routines: 1- For js code which is used by several routines: I create a dtml method with a name like 'popup.js' and then put the js code into the dtml method (nothing in this method except js code). I then include the js code into the target routine (another dtml method) using something like: html head script src=popup.js language=JavaScript type=text/javascript/script ... The js popup routine can then be called from anywhere within this dtml method 2- For js code that is used by only one rotuine, I include it directly in the target routine (a dtml method) as follows: dtml-var HeaderFrame2 script type=text/javascript alert('Password Changed'); location.href = 'dtml-var nextRoutine'; /script dtml-var FooterFrame2 In both of the above cases, the js code is 'readable/editable' via the ZMI (just the same as the dtml code is). Note: the js code can be edited via the ZMI, but will not be executed unless you click on the 'View' tab of the dtml method that contains the js code. Zope works very well with js and can add significant flexibility and functionality to your applications. 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 )
Re: [Zope] How to import a basic class in Script (Python)
On Wed, Jul 18, 2007 at 12:26:06PM +0300, Tudor Gabriel wrote: I've searched Zope Help and it mentions in there that i have to make a new dir in Products called whatever and add to __init__.py the allowimport or something like that, for my package. i tried that too ... same error (haven't restarted zope after... should i?) . Yes. Changes to filesystem code require a restart. -- Paul Winkler http://www.slinkp.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 )
Re: [Zope] How to import a basic class in Script (Python)
Tudor Gabriel wrote at 2007-7-18 12:26 +0300: ... now let's suppose all the files (all the py and zpt files) are in the same directory:Library in search_books_py i tried importing the book class in this ways: from book_py import * from Library.book_py import * from here.book_py import * from container.book_py import * The import * is not very good style: You do not see where names come from -- this may drastically affect readability of your code A later import * may accidentally override names imported in a previous import. I have seen cases where considerable analysis time was caused by such constructs. If at all, you should have at most a single import * -- the first import. Your names look funny. Why do they all end in _py? Your Zope folders cannot be reached by the Python interpreter. You cannot import from objects places in Zope's Web hiearachy. -- 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] modifying zope conf ruins everything
Mohammed Tlais wrote at 2007-7-18 13:13 +0300: ... I wanted to access zope from port 80, so i opened the zope conf file and modified the section that says address 8080 into address 80.and saved it, it didn't work. You didn't tell us on what platform you work. Under *nix, all ports below 1024 are previledged and can only be bind to by processes running under root. For security reasons, Zope has special requirements when run under root. I restored the address into 8080, and now zope is not working at all , i can't access it even from port 8080! Am I doing something wrong? Obviously -- although I cannot tell you what. If you really have restored the original state, then you should see again the same behaviour. When you see a different behaviour, then you have not yet fully restored the original state... -- 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] Problem w/ ZMySQLDA
[EMAIL PROTECTED] wrote: Forgive my ignorance, but not quite sure how to do that. Nonetheless... 1) There was no problem with any of this on the old server until the server crashed. 2) My backups were taken from a time when the old server was was working fine. Did you ever check these backups? We are talking mySQL here which has a lot of nasty bugs regarding reliability. 3) This problem occurs with *all* my shopping carts, not just this one. Consequently, I have a hard time believing this is a code error. There *must* be something more fundamental at play here. From what you wrote further down it looks like a threading issue with the mysqlda. You would have to write a test case to isolate it. Easiest if you set thread number in zope to 1 and test. This should work similar to single threaded application. Regards Tino ___ 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] z3c.form 1.5.0 and z3c.formdemo 1.3.0 released!
Hello everyone, I am pleased to announce new releases for z3c.form and z3c.formdemo. The latest changes were mainly driven by Paul Carduner's work on z3c.formjs and z3c.formjsdemo, but also by continued customer work. Again for the curious and impatient ... --- This time there is no new demo available, but the old ones still work as expected. To run the demos do the following:: $ svn co svn://svn.zope.org/repos/main/z3c.formdemo/trunk formdemo $ cd formdemo $ python bootstrap.py $ ./bin/buildout -v $ ./bin/demo fg Now you can access the demo under: http://localhost:8080/ We now also have functional tests that check all the demos: $ ./bin/test -vp1 On the Javascript Front --- A lot more progress has been made on this front. Look out for Paul's announcement! It will make up for the missing new demo in formdemo! Changes --- z3c.form - Feature: Added a span around values for widgets in display mode. This allows for easier identification widget values in display mode. - Feature: Added the concept of widget events and implemented a particular after widget update event that is called right after a widget is updated. - Feature: Restructured the approach to customize button actions, by requiring the adapter to provide a new interface ``IButtonAction``. Also, an adapter is now provided by default, still allowing cusotmization using the usual methods though. - Feature: Added button widget. While it is not very useful without Javascript, it still belongs into this package for completion. - Feature: All ``IFieldWidget`` instances that are also HTML element widgets now declare an additional CSS class of the form fieldtype.lower()-field. - Feature: Added ``addClass()`` method to HTML element widgets, so that adding a new CSS class is simpler. - Feature: Renamed css attribute of the widget to klass, because the class of an HTML element is a classification, not a CSS marker. - Feature: Reviewed all widget attributes. Added all available HTML attributes to the widgets. - Documentation: Removed mentioning of widget's hint attribute, since it does not exist. - Optimization: The terms for a sequence widget were looked up multiple times among different components. The widget is now the canonical source for the terms and other components, such as the converter uses them. This avoids looking up the terms multiple times, which can be an expensive process for some applications. - Bug/Feature: Correctly create labels for radio button choices. - Bug: Buttons did not honor the name given by the schema, if created within one, because we were too anxious to give buttons a name. Now name assignment is delayed until the button is added to the button manager. - Bug: Button actions were never updated in the actions manager. - Bug: Added tests for textarea widget. z3c.formdemo - Feature: Created functional tests for the demos. - Feature: Moved all application ZCML declarations into a ZCML file called ``application.zcml``. Enjoy! Regards, Stephan -- Stephan Richter CBU Physics Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ 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 )