Re: [Zope] is it possible to upgrade from 2.9 to 2.13?
Does anyone have any further information on this bug in 2.10 regarding ZSQL methods? Would an upgrade from 2.9 to 2.10+ in an app using lots of zsql methods cause unforseen issues? On 04/07/11 09:46, Stefan Loidl wrote: Hi Fernando, the option 'enable-product-installation' in zope.conf has to be set to on to enable product registration of old products in the Products directory. Regards, Stefan Am 03.07.2011 18:44, schrieb Fernando Martins: On 07/03/2011 09:30 AM, Fernando Martins wrote: merely dropping Products in the site-packages does not add a product. Browsing through the list I saw this post: https://mail.zope.org/pipermail/zope/2011-June/176165.html with reference to a directive in zope.conf: products /usr/local/Products.CMFCore-2.2.4/ I tried it with the package Products.ZSQLMethods here: http://pypi.python.org/pypi/Products.ZSQLMethods but no product is added and I see no error messages. The README.txt is not helpful and I found nothing useful in zope docs. In despair, I tried python setup.py build/install and all I got is a lot of zope packages being downloaded and dumped into the python install. Could someone be so kind to tell me the procedure to install Products from pypi? Is it possible to do it also with old products not in pypi? Also, what is the difference between zope.xxx and Products.xxx packages? Regards, Fernando ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev ) -- Rich Harley Director (Development) (0044) 01754 871243 | http://www.scholarpack.com ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] is it possible to upgrade from 2.9 to 2.13?
I can not tell for sure if the problem was that one of the aliases mentioned by Tres Seaver in results.py. However, I had a simple application displaying merely one page and involving a few tables and maybe 10 queries, and 2.10 could not even take hundreds of hits. I made a simple Python program to hit the web site on the same page and randomly changing the parameters. In my experience, if you cook up some simple testing like this you'll quickly see the leak (I was using top in Linux). On Jul 4, 2011 10:24 Richard Harley rich...@scholarpack.com rich...@scholarpack.com wrote: Does anyone have any further information on this bug in 2.10 regarding ZSQL methods? Would an upgrade from 2.9 to 2.10+ in an app using lots of zsql methods cause unforseen issues? On 04/07/11 09:46, Stefan Loidl wrote: Hi Fernando, the option 'enable-product-installation' in zope.conf has to be set to on to enable product registration of old products in the Products directory. Regards, Stefan Am 03.07.2011 18:44, schrieb Fernando Martins: On 07/03/2011 09:30 AM, Fernando Martins wrote: merely dropping Products in the site-packages does not add a product. Browsing through the list I saw this post: https://mail.zope.org/pipermail/zope/2011-June/176165.html with reference to a directive in zope.conf: products /usr/local/Products.CMFCore-2.2.4/ I tried it with the package Products.ZSQLMethods here: http://pypi.python.org/pypi/Products.ZSQLMethods but no product is added and I see no error messages. The README.txt is not helpful and I found nothing useful in zope docs. In despair, I tried python setup.py build/install and all I got is a lot of zope packages being downloaded and dumped into the python install. Could someone be so kind to tell me the procedure to install Products from pypi? Is it possible to do it also with old products not in pypi? Also, what is the difference between zope.xxx and Products.xxx packages? Regards, Fernando ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] is it possible to upgrade from 2.9 to 2.13?
Stefan, thanks for your reply. In the meanwhile I was indeed able to put products in INSTANCE/Products (Zope 2.13.8). I did not know about that option you mention and I cannot check it now, but the Products from pypi were being recognised, as long as I put only the specific Product subfolder (not the whole pypi package which contains cruft for eggs, whatever else, I still don't fully understand). However, with ZSQL Methods, the situation is different. It contains the specific ZSQL Methods folder, but also Shared/DC/ZRDB. When loading, Zope complains it can't find the module ZRDB/Search.py (or something like that). So, ZSQLMethods depends on Shared, but Share is not being recognised (or at least not yet processed before ZSQL). How can I fix this? Somehow I guess the pypi package should be made an egg and dropped in lib/python2.6, and somehow configured. I couldn't yet find instructions on doing this for Zope. I've been trying to read about this whole new procedure[s] (setup tools, buildout, eggs, virtualenv, ???), but I have the impression the situation has been changing and it's quite hard to figure out what makes sense or works right now. Fernando On Jul 4, 2011 09:46 Stefan Loidl stefan.lo...@lrz.de stefan.lo...@lrz.de wrote: Hi Fernando, the option 'enable-product-installation' in zope.conf has to be set to on to enable product registration of old products in the Products directory. Regards, Stefan Am 03.07.2011 18:44, schrieb Fernando Martins: On 07/03/2011 09:30 AM, Fernando Martins wrote: merely dropping Products in the site-packages does not add a product. Browsing through the list I saw this post: https://mail.zope.org/pipermail/zope/2011-June/176165.html with reference to a directive in zope.conf: products /usr/local/Products.CMFCore-2.2.4/ I tried it with the package Products.ZSQLMethods here: http://pypi.python.org/pypi/Products.ZSQLMethods but no product is added and I see no error messages. The README.txt is not helpful and I found nothing useful in zope docs. In despair, I tried python setup.py build/install and all I got is a lot of zope packages being downloaded and dumped into the python install. Could someone be so kind to tell me the procedure to install Products from pypi? Is it possible to do it also with old products not in pypi? Also, what is the difference between zope.xxx and Products.xxx packages? Regards, Fernando ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] is it possible to upgrade from 2.9 to 2.13?
On 4 July 2011 13:26, Fernando ferna...@cmartins.nl wrote: Stefan, thanks for your reply. In the meanwhile I was indeed able to put products in INSTANCE/Products (Zope 2.13.8). I did not know about that option you mention and I cannot check it now, but the Products from pypi were being recognised, as long as I put only the specific Product subfolder (not the whole pypi package which contains cruft for eggs, whatever else, I still don't fully understand). However, with ZSQL Methods, the situation is different. It contains the specific ZSQL Methods folder, but also Shared/DC/ZRDB. When loading, Zope complains it can't find the module ZRDB/Search.py (or something like that). So, ZSQLMethods depends on Shared, but Share is not being recognised (or at least not yet processed before ZSQL). How can I fix this? Somehow I guess the pypi package should be made an egg and dropped in lib/python2.6, and somehow configured. I couldn't yet find instructions on doing this for Zope. I've been trying to read about this whole new procedure[s] (setup tools, buildout, eggs, virtualenv, ???), but I have the impression the situation has been changing and it's quite hard to figure out what makes sense or works right now. I suggest using http://pypi.python.org/pypi/plone.recipe.zope2instance (it is not Plone specific) and referring to the Plone documentation for installing add-ons: http://plone.org/documentation/kb/add-ons/installing Laurence ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] is it possible to upgrade from 2.9 to 2.13?
On Jul 4, 2011 13:30 Laurence Rowe l...@lrowe.co.uk l...@lrowe.co.uk wrote: I suggest using http://pypi.python.org/pypi/plone.recipe.zope2instance (it is not Plone specific) and referring to the Plone documentation for installing add-ons: http://plone.org/documentation/kb/add-ons/installing Thanks Lawrence, I have already a zope 2.13.7 installation following the instructions and using virtualenv. This seems to be an alternative to the buildout system explained in those links. There are several options in the add-ons page and I don't feel confident it really applies to my case: 1) what is the ZSQLMethods package in pypi? http://pypi.python.org/pypi/Products.ZSQLMethods/2.13.4. It's a zip with some egg-info stuff in there but it is not clear that it really is an egg (no .egg extension) 2) is Buildout compatible with virtualenv? The option to install an Egg without Buildout is not recommended over there. Fernando ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] is it possible to upgrade from 2.9 to 2.13?
On 4 July 2011 14:48, Fernando ferna...@cmartins.nl wrote: On Jul 4, 2011 13:30 Laurence Rowe l...@lrowe.co.uk wrote: I suggest using http://pypi.python.org/pypi/plone.recipe.zope2instance (it is not Plone specific) and referring to the Plone documentation for installing add-ons: http://plone.org/documentation/kb/add-ons/installing Thanks Lawrence, I have already a zope 2.13.7 installation following the instructions and using virtualenv. This seems to be an alternative to the buildout system explained in those links. There are several options in the add-ons page and I don't feel confident it really applies to my case: I would recommend using buildout, most people do, if you have problems it helps to be in the main stream. 1) what is the ZSQLMethods package in pypi? http://pypi.python.org/pypi/Products.ZSQLMethods/2.13.4. It's a zip with some egg-info stuff in there but it is not clear that it really is an egg (no .egg extension) This is a source distribution that a binary egg will be automatically built from. As you are using virtualenv you should be able to easy_install Products.ZSQLMethods in the same way you installed Zope2. (I hope you have some way of ensuring a consistent known good set of packages equivalent to the buildout versions.cfg, without it you are unlikely to get a working system.) 2) is Buildout compatible with virtualenv? The option to install an Egg without Buildout is not recommended over there. On my development machine I have a virtualenv python (using --no-site-packages) which I use to run buildout's bootstrap. Laurence ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] is it possible to upgrade from 2.9 to 2.13?
[resending as original seems to have got lost] I got stuck with 2.9.9 because 2.10 introduced a major leakage in the ZSQL Methods. Now the number of users in my web site have increased and other leakages have become also major issue (e.g., PageTemplates.Expressions.SubPathExpr). I was considering a major upgrade to 2.12 or 2.13 and I was trying 2.13.8. However, how can I install products?? It states in 2.12 What's new that they are still working but in fact merely dropping Products in the site-packages does not add a product. Regards, Fernando ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] is it possible to upgrade from 2.9 to 2.13?
On 07/03/2011 09:30 AM, Fernando Martins wrote: merely dropping Products in the site-packages does not add a product. Browsing through the list I saw this post: https://mail.zope.org/pipermail/zope/2011-June/176165.html with reference to a directive in zope.conf: products /usr/local/Products.CMFCore-2.2.4/ I tried it with the package Products.ZSQLMethods here: http://pypi.python.org/pypi/Products.ZSQLMethods but no product is added and I see no error messages. The README.txt is not helpful and I found nothing useful in zope docs. In despair, I tried python setup.py build/install and all I got is a lot of zope packages being downloaded and dumped into the python install. Could someone be so kind to tell me the procedure to install Products from pypi? Is it possible to do it also with old products not in pypi? Also, what is the difference between zope.xxx and Products.xxx packages? Regards, Fernando ___ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
[Zope-dev] Another possible zope.testing deprecation...
There is a zope.testing.exceptions module. It contains only one exception: DocTestFailureException, which is used by the testrunner, and as far as I can tell, only the testrunner. So we should probably move that one over to zope.testrunner as well. Which means deprecating it in zope.testing, of course. Anyone see any problems with this? -- Lennart Regebro: Python, Zope, Plone, Grok http://regebro.wordpress.com/ +33 661 58 14 64 ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Another possible zope.testing deprecation...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lennart Regebro wrote: There is a zope.testing.exceptions module. It contains only one exception: DocTestFailureException, which is used by the testrunner, and as far as I can tell, only the testrunner. So we should probably move that one over to zope.testrunner as well. Which means deprecating it in zope.testing, of course. Anyone see any problems with this? +1. Does zope.testing depend on zope.testrunner already? Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkvZ5C8ACgkQ+gerLs4ltQ7RzgCgzRC7IqJWfQ4Hp97Syjxeh63q Z7UAn2OSHugS9hZh4XuopJyMSUwDN4VC =waNh -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Another possible zope.testing deprecation...
On Thu, Apr 29, 2010 at 21:55, Tres Seaver tsea...@palladion.com wrote: +1. Does zope.testing depend on zope.testrunner already? No, and with this zope.testrunner doesn't have to depend on zope.testing either, except for running the tests. Freedom baby yeah! :) -- Lennart Regebro: Python, Zope, Plone, Grok http://regebro.wordpress.com/ +33 661 58 14 64 ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope] is it possible to bypass ZSQL methods and call storedprocedures in sqlserver straight from ZPT?
+---[ michael nt milne ]-- | ok thanks. I guess then if you're using the ZMI could you embed this in your | ZPT? But I guess that is not best practice. Using the ZMI you'd make a Python Script to call from your ZPT instead. -- 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] is it possible to bypass ZSQL methods and call storedprocedures in sqlserver straight from ZPT?
ok thanks. I guess then if you're using the ZMI could you embed this in your ZPT? But I guess that is not best practice. On 11/6/07, Andrew Milton [EMAIL PROTECTED] wrote: +---[ michael nt milne ]-- | thanks. Is there an example or a tutorial at all on this anywhere? # queryConnection holds the id of a DA connectionObject=getattr(self, queryConnection) connection = connectionObject() results = connection.query(SQL_GOES_HERE) This is from Product code, it should be usable (s/self/context/) in a PythonScript, but, I haven't tested it. -- Andrew Milton [EMAIL PROTECTED] -- michael ___ 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] is it possible to bypass ZSQL methods and callstoredprocedures in sqlserver straight from ZPT?
You could also write a Product or External Method to access your databases directly, using something like: http://pymssql.sourceforge.net/ you should not do that, you would get into lots of problems with zope's transaction machinery. always go trough a zope connection. robert begin:vcard fn:Robert Rottermann n: Rottermann;Robert email;internet:[EMAIL PROTECTED] tel;work:++41 31 333 10 20 tel;fax:++41 31 333 10 23 tel;home:++41 31 333 36 03 x-mozilla-html:FALSE version:2.1 end:vcard ___ 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] is it possible to bypass ZSQL methods and call stored procedures in sqlserver straight from ZPT?
Hi We have some dynamic ZSQL methods all working but are looking to optimise our code and also access some stored procedures which are already written in SQL Server. The question is, can you go straight through to a relational database using the connector object and call a stored procedure straight from a ZPT? Or must you use a ZSQL method to access the procedure? Thanks -- michael ___ 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] is it possible to bypass ZSQL methods and call storedprocedures in sqlserver straight from ZPT?
Yes - Original Message - From: michael nt milne We have some dynamic ZSQL methods all working but are looking to optimise our code and also access some stored procedures which are already written in SQL Server. The question is, can you go straight through to a relational database using the connector object and call a stored procedure straight from a ZPT? Or must you use a ZSQL method to access the procedure? ___ 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] is it possible to bypass ZSQL methods and call storedprocedures in sqlserver straight from ZPT?
thanks. Is there an example or a tutorial at all on this anywhere? On 11/6/07, Jaroslav Lukesh [EMAIL PROTECTED] wrote: Yes - Original Message - From: michael nt milne We have some dynamic ZSQL methods all working but are looking to optimise our code and also access some stored procedures which are already written in SQL Server. The question is, can you go straight through to a relational database using the connector object and call a stored procedure straight from a ZPT? Or must you use a ZSQL method to access the procedure? -- michael ___ 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] is it possible to bypass ZSQL methods and call storedprocedures in sqlserver straight from ZPT?
IIRC, DB connections have a 'manage_test' method that could be (ab) used for things like that. On 6. Nov 2007, at 15:23, Jaroslav Lukesh wrote: The question is, can you go straight through to a relational database using the connector object and call a stored procedure straight from a ZPT? Or must you use a ZSQL method to access the procedure? -- Anything that, in happening, causes something else to happen, causes something else to happen. --Douglas Adams ___ 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] is it possible to bypass ZSQL methods and call storedprocedures in sqlserver straight from ZPT?
+---[ michael nt milne ]-- | thanks. Is there an example or a tutorial at all on this anywhere? # queryConnection holds the id of a DA connectionObject=getattr(self, queryConnection) connection = connectionObject() results = connection.query(SQL_GOES_HERE) This is from Product code, it should be usable (s/self/context/) in a PythonScript, but, I haven't tested it. -- 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 )
[Zope-dev] Re: Possible performance problem in Page Template engine?
Ok, little correction here: I used ploneout on plone-trunk and it then uses Zope trunk and thus 2.11. This problem seems to be a new problem coming from refactoring: r78767 | andreasjung | 2007-08-12 12:55:45 +0200 (So, 12 Aug 2007) | 4 lines - Collector #2339: ZPT: fixed unicode issue when using the 'structure' directive - ZopeContext: added evaluateStructure() and refactored _handleText() in order to deal with unicode issues when using the 'structure' directive -- christian ___ 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] Re: possible bug in Catalog.py with keyword index ?
Dieter Maurer schrieb: Joachim Schmitz wrote at 2007-7-20 10:40 +0200: Obviously, you got the wrong mainling list. This is not a ZODB problem... my mistake it should have gone to the zope-dev list. ... I found in Catalog.py updateMetadata around line 306 else: if data.get(index, 0) != newDataRecord: data[index] = newDataRecord the if condition evaluates always to false, cause the data.get(index,0) accesses the data of the index and not of the metadata field as long as Zope was not restarted that worked fine. The code above should prevent a write (which would grow the storage) when in fact nothing changed. And it looks correct. Yes, but it does not work as exspected. Here is a more detailed description of our usecase: In our catalog we have a keyword index registered_courses and a metadata field registered_courses. If a student registers a new course an event is triggered, which adds the new course to the index. In our event-handler we have: res = students_catalog(id = student_id) if not res: return student_rec = res[0] registered_courses = getattr(student_rec,'registered_courses',None) if not registered_courses: registered_courses = [] #import pdb;pdb.set_trace() if event_type == sys_add_object: if course_id not in registered_courses: registered_courses.append(course_id) else: return elif registered_courses and event_type == sys_del_object: removed = False while course_id in registered_courses: removed = True registered_courses.remove(course_id) if not removed: return record_data = {} for field in self.schema() + self.indexes(): record_data[field] = getattr(student_rec, field) # Add the updated data: record_data.update(data) self.catalog_object(dict2ob(record_data), student_id) where dict2obj does just that. That updates the meta_data only on index_creation, and after a zope restart the meta_data for registered_courses only contained the first added course. That was because (i asume) data.get(index, 0) always got the data from the index, and not from the meta_data. I could veryfy this by looking at the catalog-record in the ZMI. So it neve got to update the meta_data, so the real cause for this problem is that data.get(index, 0), returns the value of the index here and not that of the meta_data. -- Gruß Joachim ___ 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] Is it possible to render a TAL expression from a Page Template?
Suppose I have a variable foo that has value request/name|nothing. Is it possible from a Python Script to have this evaluated as a TAL expression? Alternatives? Thanks jim ___ 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] Is it possible to render a TAL expression from a Page Template?
En/na [EMAIL PROTECTED] ha escrit: Suppose I have a variable foo that has value request/name|nothing. Is it possible from a Python Script to have this evaluated as a TAL expression? AFAIK TALES machinery ($ZOPE_HOME/lib/python/Products/PageTemplates) can't be accessed from restricted code. Maybe ZTUtils, PythonScript.standard or other module expose it in some way, I don't know. Alternatives? * External method: from Products.PageTemplates.Expressions import getEngine def evalTAL(talstr, **kw) : engine = getEngine() comp = engine.compile(talstr) return engine.getContext(**kw).evaluate(comp) then, from a PythonScript do: result = context.evalTAL(request/name|nothing, here=context, request=REQUEST) * Create a PageTemplate named evalTAL with a body like: foo tal:replace=python:path(options['param'])/foo then, from a PythonScript do: result = context.evalTAL(param=request/name|nothing) result will always be an string. Not a serious alternative, just a creative way. HTH ___ 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] Is it possible to render a TAL expression from a Page Template?
Thanks, the external method appears to work fine. I thought about the silly Page Template, but forgot the path: modifier exists! But the EM should be far faster, anyway. Thanks again. jim [EMAIL PROTECTED] wrote on 06/21/2006 04:04:31 PM: En/na [EMAIL PROTECTED] ha escrit: Suppose I have a variable foo that has value request/name|nothing. Is it possible from a Python Script to have this evaluated as a TAL expression? AFAIK TALES machinery ($ZOPE_HOME/lib/python/Products/PageTemplates) can't be accessed from restricted code. Maybe ZTUtils, PythonScript.standard or other module expose it in some way, I don't know. Alternatives? * External method: from Products.PageTemplates.Expressions import getEngine def evalTAL(talstr, **kw) : engine = getEngine() comp = engine.compile(talstr) return engine.getContext(**kw).evaluate(comp) then, from a PythonScript do: result = context.evalTAL(request/name|nothing, here=context, request=REQUEST) * Create a PageTemplate named evalTAL with a body like: foo tal:replace=python:path(options['param'])/foo then, from a PythonScript do: result = context.evalTAL(param=request/name|nothing) result will always be an string. Not a serious alternative, just a creative way. HTH ___ 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] Is it possible to add fields to the user registration in zope and plone?
Hi-Does anyone know if you can you can alter the user registration process in plone and zope to create extra user entry fields? Basically altering the zope database. ___ 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] Is it possible to add fields to the user registration in zope and plone?
Yeah, you need to do some programming. Look at Chris Withers' SimpleUserFolder product. On 8/4/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi-Does anyone know if you can you can alter the user registration process in plone and zope to create extra user entry fields? Basically altering the zope database. ___ 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 ) -- 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 )
Re: [Zope] Is it possible to extend Zopes WebDAV authentication?
mark hellewell wrote at 2005-5-7 20:22 +0100: On 5/7/05, Chris McDonough [EMAIL PROTECTED] wrote: Web Folders pass cookies around too, FWIW, so it's probably not strictly necessary to use http basic auth. But without using http basic auth, there is no way to log in unless you have them go to the web interface first, then launch a web folder, so maybe impractical. That's exactly what's happening at the moment; the WebDAV access is linked to via the web interface after they log in (it's only one small part of a larger system). They log in via the web, gaining a cookie which is passed to the Explorer 'web folders' thing, so when they click on the link to the WebDAV part of the site the cookie is still valid and they don't have to log in to WebDAV. * I think this can only work when WebDAV uses the normal HTTP port. However, Powerpoint can get severely confused when it accesses a resource via WebDAV over the HTTP port and the access requires authentication. In this case, Powerpoint uses the login page as resource content. -- 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] Is it possible to extend Zopes WebDAV authentication?
On May 6, 2005, at 23:52 , mark hellewell wrote: On 5/6/05, Tino Wildenhain [EMAIL PROTECTED] wrote: Actually, it does not. You have no such thing like a session when all you have is webdav. I dont know if many dav-clients store cookies too - it may depend on your usecase. Yes the use-case is Windows Explorer users only. If this is supposed to use that Web Folder thingy in Windoze Explorer you might want to reconsider. That WebDAV implementation is seriously broken. Installing helpers like WebDrive on Windoze seems to make WebDAV access work for many people. jens ___ 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] Is it possible to extend Zopes WebDAV authentication?
Web Folders pass cookies around too, FWIW, so it's probably not strictly necessary to use http basic auth. But without using http basic auth, there is no way to log in unless you have them go to the web interface first, then launch a web folder, so maybe impractical. - C On Sat, 2005-05-07 at 06:31, Jens Vagelpohl wrote: On May 6, 2005, at 23:52 , mark hellewell wrote: On 5/6/05, Tino Wildenhain [EMAIL PROTECTED] wrote: Actually, it does not. You have no such thing like a session when all you have is webdav. I dont know if many dav-clients store cookies too - it may depend on your usecase. Yes the use-case is Windows Explorer users only. If this is supposed to use that Web Folder thingy in Windoze Explorer you might want to reconsider. That WebDAV implementation is seriously broken. Installing helpers like WebDrive on Windoze seems to make WebDAV access work for many people. jens ___ 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] Is it possible to extend Zopes WebDAV authentication?
Am Samstag, den 07.05.2005, 12:04 -0400 schrieb Chris McDonough: Web Folders pass cookies around too, FWIW, so it's probably not strictly necessary to use http basic auth. But without using http basic auth, there is no way to log in unless you have them go to the web interface first, then launch a web folder, so maybe impractical. Well, in theory its possible if the client accepts cookie to just store the amount of wrong attempts via cookie (or id - which would be the same) and deny any password, be it even the correct one when it comes via basic auth. But I strongly believe this does not save from abuse because its just too easy to remove the cookie or just not accept it in the first place. So I'd say its not worth the work. ___ 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] Is it possible to extend Zopes WebDAV authentication?
On 5/7/05, Chris McDonough [EMAIL PROTECTED] wrote: Web Folders pass cookies around too, FWIW, so it's probably not strictly necessary to use http basic auth. But without using http basic auth, there is no way to log in unless you have them go to the web interface first, then launch a web folder, so maybe impractical. That's exactly what's happening at the moment; the WebDAV access is linked to via the web interface after they log in (it's only one small part of a larger system). They log in via the web, gaining a cookie which is passed to the Explorer 'web folders' thing, so when they click on the link to the WebDAV part of the site the cookie is still valid and they don't have to log in to WebDAV. * All I'm trying to do is boost the security of the system overall by ensuring an attacker can't simply sidestep the 'three login failure lockout' just by repeatedly trying to log in via WebDAV. mark * A thought occurs to me after writing it like this. Might it be possible to forbid HTTP Basic auth logins to WebDAV, so that only cookies are the allowed authentication type? - C ___ 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] Is it possible to extend Zopes WebDAV authentication?
On 5/7/05, Tino Wildenhain [EMAIL PROTECTED] wrote: Well, in theory its possible if the client accepts cookie to just store the amount of wrong attempts via cookie (or id - which would be the same) and deny any password, be it even the correct one when it comes via basic auth. Store the incorrect login count client-side in a cookie?! No way! :) But I strongly believe this does not save from abuse because its just too easy to remove the cookie or just not accept it in the first place. So I'd say its not worth the work. Yes, I think it would be a bad idea. mark ___ 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] Is it possible to extend Zopes WebDAV authentication?
Hello! I'd like a little help, please :) I have a site that uses PluggableUserFolders for its acl_users. The web-based portion of the login process locks out a user after 3 unsuccessfull attempts at the password and i'd like to be able to do something similar for users who try to connect via WebDAV. I'm sure something like this should be possible but am uncertain where to begin. Is it possible to override the authentication methods used by WebDAV? If so what are those methods? I'd be grateful for any help and insight into this problem! Many thanks, Mark ___ 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] Is it possible to extend Zopes WebDAV authentication?
mark hellewell wrote at 2005-5-6 14:44 +0100: I have a site that uses PluggableUserFolders for its acl_users. The web-based portion of the login process locks out a user after 3 unsuccessfull attempts at the password and i'd like to be able to do something similar for users who try to connect via WebDAV. I'm sure something like this should be possible but am uncertain where to begin. Is it possible to override the authentication methods used by WebDAV? WebDAV uses basic HTTP authentication which should use whatever UserFolder you have installed. -- 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] Is it possible to extend Zopes WebDAV authentication?
Am Freitag, den 06.05.2005, 19:26 +0100 schrieb mark hellewell: On 5/6/05, Dieter Maurer [EMAIL PROTECTED] wrote: WebDAV uses basic HTTP authentication which should use whatever UserFolder you have installed. Thanks.. So, I think I should be able to modify the authentication plugin of PUF so that each time a user makes a bad login attempt (either via WebDAV or the login form) it increments the bad login counter? Sounds like a plan, anyway :) Actually, it does not. You have no such thing like a session when all you have is webdav. I dont know if many dav-clients store cookies too - it may depend on your usecase. Without cookies you dont know if a request is the first, second or third time. And just counting per user would make an excellent way to DoS. 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 )
Re: [Zope] Is it possible to extend Zopes WebDAV authentication?
On 5/6/05, Tino Wildenhain [EMAIL PROTECTED] wrote: Actually, it does not. You have no such thing like a session when all you have is webdav. I dont know if many dav-clients store cookies too - it may depend on your usecase. Yes the use-case is Windows Explorer users only. Without cookies you dont know if a request is the first, second or third time. And just counting per user would make an excellent way to DoS. It would! However, there's no accounting for client requirements ;) mark 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 )
Re: [Zope-dev] Re: Possible Windows Service improvements.
Tres Seaver wrote: I still think we should look at making a Windwos version of the 'zdaemon' handler, which uses a Unix-domain socket between parent and child: we could either use a named pipe on Windows, or else a socket on localhost, to achieve the same ends. This would have the upside that 'zopectl' would work the same way on windows, as well, which would be a boon for WIndows-based developers. BIG +1 from me :-) Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist - [EMAIL PROTECTED] 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] Re: Possible Windows Service improvements.
Mark Hammond wrote: Would a lockfile work ok to signify running state? IOW, Zope would lock a file as one of the last steps during startup (which it actually does now, but might do it a bit too early). The Windows service manager would attempt to lock the same file after timeout seconds (although I'm not sure where to get timeout from) on initial startup. If the file doesn't exist or the lock succeeds, the process is nonrestartable. If it exists and cannot be locked (Zope has locked it, signifying successful startup), the process is restartable. This lets the parent know of successful startup, but doesn't help it during the 'starting' phase (if the lock never gets set, how long do we wait before giving up?) Ditto for shutdown - after requesting the child shutdown, how long do we wait for it to terminate? A single timeout leaves us where we started - it is too fragile to assume that if the app has not started after x seconds, it never will. By having the child actively report progress, the parent process can be more confident it is alive and normal, even if it is taking a very long time to start. Wouldn't a socket work? As the parent process is starting the child, it could pass the port on the cmdline. I think by *describing* the API, I made it sound more complicated than it is. It consists of 2 functions: def reportState(state, timeout, error_info = None): Called by the child process, and implemented by the parent. Reports the status of the child process to the parent. state may be 'starting', 'running', 'stopping', 'stopped', 'pausing' or 'paused'. timeout is how long before the parent will consider us dead if we don't report progress again. error_info may be specified as the program reports 'stopped'. If None, the shutdown was normal. # This second one is optional, but abstracts away using signals :) def changeState(new_state): Called by the parent process, and implemented by the child. Requests that the client process enter the specified state. Only 'running', 'stopped' and 'paused' are valid (ie, the parent must never request any of the transition states) If we ignore the second and stick to signals, it seems fairly robust and achievable. The other option is that we get rid of the 'parent' service all together. Just have the service code use run.py directly, and run it in-process. The Windows builtin 'auto-restart' facilities for services can handle the bizarre errors, and offers the benefit of allowing the user to define the restart policy (even allowing them to reboot should it go down wink). There may be good reasons for that though. I still think we should look at making a Windwos version of the 'zdaemon' handler, which uses a Unix-domain socket between parent and child: we could either use a named pipe on Windows, or else a socket on localhost, to achieve the same ends. This would have the upside that 'zopectl' would work the same way on windows, as well, which would be a boon for WIndows-based developers. Tres. -- === Tres Seaver[EMAIL PROTECTED] Zope Corporation Zope Dealers http://www.zope.com ___ Zope-Dev maillist - [EMAIL PROTECTED] 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-dev] Re: Zope 2.4 crashes -- possible fix identified, other solutions also suggested
Well, if you want to grab what is probably going to turn in to Python 2.1.2 from CVS, you can get the release21-maint branch from :pserver:[EMAIL PROTECTED]:/cvsroot/python package python. This already has the important change to ceval.c in it; but I'm not sure that the rest of the changes for the 2.1.2 release have been finalized. I think Anthony Baxter is going to try to put a beta / release candidate of 2.1.2 up real soon now, but I can't speak for him :) On Wednesday, December 19, 2001, at 10:39 PM, Joseph Wayne Norton wrote: Matt - If possible, I would prefer to use a source Python 2.1.2 release with a source zope 2.4.4 ? bugfix release (or create my own from the 2.4 cvs branch) once the fixes are complete. We do not want to put a 2.5 release in production at this time. Thanks for the update. regards, - j At Wed, 19 Dec 2001 09:25:08 -0500, Matthew T. Kromer wrote: The ExtensionClass.h patch has NOT been merged into the branches and trunk yet pending further review. just my 2 cents, but we have been using this in production for about 1 week or more without any troubles. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: Zope 2.4 crashes -- possible fix identified, other solutions also suggested
Leonardo Rochael Almeida wrote: On Tue, 2001-12-18 at 13:44, Matthew T. Kromer wrote: Soo... if shutting off GC extends time between crashes for some folks from every 15 minutes to 3 times a day, my advise is to shut off GC. Now I can really confirm that gc.disable() is enough to avoid the crashes (no need to recompile python --without-gc). I changed the z2.py to include this, but just as a data point to Matt, ParsedXML is still crashing. ;) Regards, Martijn ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: Zope 2.4 crashes -- possible fix identified, other solutions also suggested
Matthew T. Kromer wrote Anthony Baxter is anticipating a Python 2.1.2 beta real soon now (probably this weekend) so I am going to try to get that into Zope 2.5's binary releases, although we may put out a Zope 2.5 beta 3 first. This will include the necessary Python patches to ceval.c to fix the frame bug; after it hits the streets Python 2.1.2 will become our recommended Python for Zope. That's still the plan - ripping along through the todo list at the moment. I'm just double-quadruple-triple checking the safety of the patch to make solaris threading not suck as a backport. Note that it's not going to be a beta, but a release candidate - it shouldn't be necessary to have a beta for a bugfix release. Anthony -- Anthony Baxter [EMAIL PROTECTED] It's never too late to have a happy childhood. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: Zope 2.4 crashes -- possible fix identified, other solutions also suggested
Matthew T. Kromer wrote Well, if you want to grab what is probably going to turn in to Python 2.1.2 from CVS, you can get the release21-maint branch from :pserver:[EMAIL PROTECTED]:/cvsroot/python package python. I'd _love_ it if people wanted to do this, once the release candidate is out - I don't have access to a massive number of platforms, so I'd like to know if I've accidentally broken anything. :) Watch this space... -- Anthony Baxter [EMAIL PROTECTED] It's never too late to have a happy childhood. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: Zope 2.4 crashes -- possible fix identified, other solutions also suggested
Matt - If possible, I would prefer to use a source Python 2.1.2 release with a source zope 2.4.4 ? bugfix release (or create my own from the 2.4 cvs branch) once the fixes are complete. We do not want to put a 2.5 release in production at this time. Thanks for the update. regards, - j At Wed, 19 Dec 2001 09:25:08 -0500, Matthew T. Kromer wrote: The ExtensionClass.h patch has NOT been merged into the branches and trunk yet pending further review. just my 2 cents, but we have been using this in production for about 1 week or more without any troubles. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: Zope 2.4 crashes -- possible fix identified, other solutions also suggested
Jeremy Hylton wrote: MTK == Matthew T Kromer [EMAIL PROTECTED] writes: MTK A side effect of shutting off the garbage collector is that you MTK can have some storage leaks. We're working on being able to MTK re-enable the garbage collector so that you don't exhaust MTK memory over time. Do you have any more idea about what shutting the garbage collector off achieves? In practice, the garbage collector's most common effect is to turn latent bugs into manifest bugs; a bug has trashed part of memory and the garbage collector just happens to find it first. If you turn GC off in these cases, you run a little longer, but you're running with corrupted memory. Jeremy Well, one suspicion I have is that (aside from memory corruption caused by the compiler sack size bugs and the frame setup bug in 2.1 when handling exceptions) ExtensionClasses are providing bogus data to modules which aren't checking the flags to see if the GC fields are populated. Some of the people who have tried the modified extensionclass.h which pads out the type object to align it with the 2.1 type object THINK they have seen a reduction in crashes, but these same folks also have not applied fixes for the two known bugs. Soo... if shutting off GC extends time between crashes for some folks from every 15 minutes to 3 times a day, my advise is to shut off GC. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: Zope 2.4 crashes -- possible fix identified, other solutions also suggested
Leonardo Rochael Almeida wrote: On Tue, 2001-12-18 at 13:44, Matthew T. Kromer wrote: Soo... if shutting off GC extends time between crashes for some folks from every 15 minutes to 3 times a day, my advise is to shut off GC. Now I can really confirm that gc.disable() is enough to avoid the crashes (no need to recompile python --without-gc). And as far as we could notice, it didn't start leaking like crazy. We haven't been able to identify any noticeable increase in memory consumption. If it is leaking we will need some more time to notice it. Cheers, Leo Keep in mind that the leaks you may experience are directly related to what code you run, and whether or not they introduce cycles. Some of the restricted python compiler code did/does create cycles under the assumption that the GC would break them. But if you dont lean on code that uses RestrictedPython too much, you can live with slow leaks elsewhere. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope] Is it possible to use regular CGI's like htDig with zserver?
I've been fooling around with htDig as a method of searching both my dynamic pages and older static pages, on two different sites, and it works great, since it's a 'spidering' search engine But since it is running on the same machine as my Zope install, while experimenting with it, I've had to run it on port 81, using a dedicated instance of Apache. I realize that the "right" way to do this would be to run Zope as a CGI and use Apache as the server, but since the performance of zserver has been quite good I wanted to ask this. I know that Zope can serve pages put of the filesystem. (i.e. act as a standard web server in some ways) Can it also avail itself of the services of Apache-compatible CGIs, notably htDig? And if so, how would I set that up? Thank you! Chris Beaumont [EMAIL PROTECTED] ___ 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] Is it possible to use regular CGI's like htDig with zserver?
And if so, how would I set that up? -Use Apache as your main server. -Use mod_proxy(?) to proxypass Zope requests through to ZServer. -install htdig as a normal CGI under Apache cheers, Chris ___ 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] Is it possible to use regular CGI's like htDig withzserver?
On Mon, 29 Jan 2001, Chris Withers wrote: And if so, how would I set that up? -Use Apache as your main server. -Use mod_proxy(?) to proxypass Zope requests through to ZServer. -install htdig as a normal CGI under Apache Presumably, then, this would be the same approach for getting Mailman working alongside Zope? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ [EMAIL PROTECTED] | dtml-var pithy_quote | http://linux.com/ ___ 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] Is it possible to make a thumbnail from an added image..?
Just a quick Idea: Can somebody make a routine RESIZING an image...? It would be great if someone could make something like that... Just imagine it: You add an Image_with_thumb... Browse for the image, then it adds your image to the site AND it is being resized to, for instance, 16x16pixels, and you can use that thumb as an icon for the image...! Wouldn't that be great...? Sorry about this silly question... It will not happen again (I hope) = ) ( = Stoons = ) - Webmaster @ 3D festival (http://www.3dfestival.com) ___ 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] Is it possible to make a thumbnail from an added image..?
You could try: http://www.zope.org/Members/haqa/archive/ZPhotoAlbum http://www.zope.org/Members/Drew/Photo These seem to do something similar to what you are asking. If not well, dtml-var typical_open_source_quote. Dale -Original Message- From: thomas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 4:28 AM To: zope Cc: thomas Subject: [Zope] Is it possible to make a thumbnail from an added image..? Just a quick Idea: Can somebody make a routine RESIZING an image...? It would be great if someone could make something like that... Just imagine it: You add an Image_with_thumb... Browse for the image, then it adds your image to the site AND it is being resized to, for instance, 16x16pixels, and you can use that thumb as an icon for the image...! Wouldn't that be great...? Sorry about this silly question... It will not happen again (I hope) = ) ( = Stoons = ) - Webmaster @ 3D festival (http://www.3dfestival.com) ___ 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] Is it possible to make a thumbnail from an added image..?
3dfestival - WebMaster wrote: Just a quick Idea: Can somebody make a routine RESIZING an image...? It would be great if someone could make something like that... Just imagine it: You add an Image_with_thumb... Browse for the image, then it adds your image to the site AND it is being resized to, for instance, 16x16pixels, and you can use that thumb as an icon for the image...! Wouldn't that be great...? Check out the Photo Product: http://www.zope.org/Members/Drew/Photo HTH, Michael Bernstein. ___ 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] Is it possible to make a thumbnail from an added image..?
You could use the Python Imaging Library with some external methods: http://www.pythonware.com/products/pil/index.htm dtml-var typical_open_source_hint_hint_hint Troy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 8:19 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [Zope] Is it possible to make a thumbnail from an added image..? You could try: http://www.zope.org/Members/haqa/archive/ZPhotoAlbum http://www.zope.org/Members/Drew/Photo These seem to do something similar to what you are asking. If not well, dtml-var typical_open_source_quote. Dale -Original Message- From: thomas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 4:28 AM To: zope Cc: thomas Subject: [Zope] Is it possible to make a thumbnail from an added image..? Just a quick Idea: Can somebody make a routine RESIZING an image...? It would be great if someone could make something like that... Just imagine it: You add an Image_with_thumb... Browse for the image, then it adds your image to the site AND it is being resized to, for instance, 16x16pixels, and you can use that thumb as an icon for the image...! Wouldn't that be great...? Sorry about this silly question... It will not happen again (I hope) = ) ( = Stoons = ) - Webmaster @ 3D festival (http://www.3dfestival.com) ___ 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] ZOPE and PHP - possible or not ?
Hi! How do I combine the PHP code with ZOPE ? How to tell Apache to parse the PHP code ? Where do I find info ? Best regards, Greg -- BEZPLATNE konto e-mail o adresie [EMAIL PROTECTED] i NIELIMITOWANEJ pojemnosci Tylko w POLAND.COM ! www.poland.com ___ 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] ZOPE and PHP - possible or not ?
A lot came up with you just put 'PHP' in the Zope.org search box. Here are the best. http://www.zope.org/Members/Mamey/PHP http://www.zope.org/Members/Ioan/PHPObject J At 7:18 PM +0100 1/21/01, Greg Nowak wrote: Hi! How do I combine the PHP code with ZOPE ? How to tell Apache to parse the PHP code ? Where do I find info ? Best regards, Greg -- BEZPLATNE konto e-mail o adresie [EMAIL PROTECTED] i NIELIMITOWANEJ pojemnosci Tylko w POLAND.COM ! www.poland.com ___ 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 )
Re: [Zope] Is it possible to install the Bug Collector Product in my Zope ???
Frederic Quin wrote: Hi all, I can't find the bug collector product to install it in my zope. Maybe it's not possible... If it is, please tell me where to download it. http://www.zope.org/Members/klm/TrackerWiki/ cheers, Chris ___ 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-dev] ZPatterns; possible bug?
I have a specialist "Instructors". It holds a rack, containing DataSkin-derived ZClasses of meta-type "Instructor". The Instructor class has a DataSkin Attribute propertysheet called "Basic", and this has properties for forename, surname, address, areas. I have some skinscript in the Instructors specialist: WITH SELF COMPUTE name='%s %s' % (forename, surname), areas_comma_sep=_.string.join(areas, ','), address_lines=_.string.join(address, '\n'), address_comma_sep=_.string.join(address, (', ')) WITH SELF COMPUTE __roles__=_.None # XXX publicly visible!! Nutter!! # change __roles__ to ('Operator',) later. This works fine. The __roles__ bit is a hack to make Zope 2.3 ZCatalog play nicely with the Specialist and __bobo_traverse__. I have some other skinscript that keeps an instructors index in a ZCatalog inside Instructors. WHEN OBJECT ADDED CALL Catalog.catalog_object(self, _.string.join(self.getPhysicalPath(),'/')) WHEN OBJECT DELETED CALL Catalog.uncatalog_object(_.string.join(self.getPhysicalPath(),'/')) WHEN OBJECT CHANGED CALL Catalog.uncatalog_object(_.string.join(self.getPhysicalPath(),'/')), Catalog.catalog_object(self, _.string.join(self.getPhysicalPath(),'/')) This worked fine. When I changed the first skinscript to make one WITH SELF statement, I got some strange inconsistencies: WITH SELF COMPUTE name='%s %s' % (forename, surname), areas_comma_sep=_.string.join(areas, ','), address_lines=_.string.join(address, '\n'), address_comma_sep=_.string.join(address, (', ')), __roles__=_.None On changing an instructor's properties using manage_changeProperties on its propertysheet, I'd see the change in the instructor. However, the ZCatalog metadata would always have the most recent value for "surname", but the last value for "name". Changing the skinscript back to using two statements makes cataloging function normally again. I could tell when the catalog was doing by instrumenting the recordify method of Catalog.py: def recordify(self, object): """ turns an object into a record tuple """ print "recordify %s" % (object) record = [] # the unique id is allways the first element for x in self.names: try: attr = getattr(object, x) if(callable(attr)): attr = attr() except: attr = MV print " appending %s:%s" % (x, attr) record.append(attr) return tuple(record) A typical (wrong) debug output would be: recordify Instructor instance at 86c16b0 appending id:instructor-977678608 appending meta_type:Instructor appending bobobase_modification_time:2001/01/04 17:26:01.35408 GMT appending name:Bob Collins8 appending surname:Collins9 appending areas_comma_sep:M12 This is after changing the surname of the instructor from "Collins8" to "Collins9". The cause of the problem? I don't know. Maybe I'm doing something silly. I think what is happening in the broken example is that when the zope security machinery asks for __roles__, name is also computed. The machinery must request __roles__ before changing anything. After that, surname gets changed. However, changing "surname" only invalidates "surname" in the cache; not anything that is computed using surname. At the end of the transaction, when the triggers are called, name is already in the dataskin's attribute cache, so it does not get recomputed. In the working example, when __roles__ is requested, it is in a different skinscript statement, so it does not cause "name" to be computed. Thus, "name" can be computed freshly after "surname" is set. Is this behaviour intended, is it a bug, or is it an unimplemented feature? Thanks. Oh, almost forgot: ZPatterns-0-4-3b2 -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net I ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZPatterns; possible bug?
At 06:03 PM 1/4/01 +, Steve Alexander wrote: I think what is happening in the broken example is that when the zope security machinery asks for __roles__, name is also computed. The machinery must request __roles__ before changing anything. The behavior is as documented, though I'm not sure I'd call it "intended", exactly. :) You can fix this with either a seperate statement, as you've noticed, OR by placing the __roles__ computation *first* in the WITH SELF statement. This will ensure that it is already computed before the other items execute. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope] Is it possible to install the Bug Collector Product in my Zope ???
Hi all, I can't find the bug collector product to install it in my zope. Maybe it's not possible... If it is, please tell me where to download it. Frederic ___ 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] is it possible to import from Excel
When on a windows platform, I prefer to define an ODBC datasource on the excel spreadsheet, write ZSQL method that selects the fields to be imported, write a DTML method that iterates on returned records and call another ZSQL method that writes into Gadfly. You may need to handle None/Missing values to prevent from ending up in gadfly as 'None' etc. If your not want to be tied to ODBC and Excel on the deployment platform, you can always try saving the content of the Excel sheet in a text format, if that is possible for your kind of data? The text file could then be parsed by at external method or even imported to the TinyTable product. On lage amounts of data this could be quite time consuming. So it would probably be more efficient to write a seperate import program. There might even be one for Gadfly. In that way you don't have to use a "unreliable" HTTP connection when importing data. That's my 25 öre (which is approximatly 5 cents) Regards, Johan Carlsson "How about Office 2000? Can it export data as XML? And in that case, can it describe more things than just values in a text export?" ___ 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] is it possible to import from Excel
Gadfly is a distinct product, www.chordate.com/gadfly.html, so you can, at least, write python to insert data directly into gadfly. You can get the data out of Excel through COM or export to csv. Bill. On Wed, 27 Dec 2000, K H Subrahmanyan wrote: Now we have developed some database using gadfly in zope. Actually there are some datum which are there in Excel. I would like to know is it possible to import all that datum from Excel to zope database, instead of giving all the data to zope manually. ___ 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] is it possible to import from Excel
On Wednesday 27 December 2000 17:30, K H Subrahmanyan wrote: Hello, Now we have developed some database using gadfly in zope. Actually there are some datum which are there in Excel. I would like to know is it possible to import all that datum from Excel to zope database, instead of giving all the data to zope manually. Actually all those data are the Emp. records. Currently they are maintaining it in Excel. Now they want to make it web based stuff. We have developed a tool for that. Since all that data are there in Excel I wanted some stuff to import that. Hoping your reply. Well... firstly, moving from a spreadsheet to a db is probably a very good move, in the case of employment records. As for how to go about it... I would recommend you export the Excell data in a comma or tab delimited text file, then write a Python Method (or Script, whichever you have) to munge each line and store it in the db. bye yours subrahmanyan. Have a better one, Curtis Maloney ___ 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] is it possible to import from Excel
When on a windows platform, I prefer to define an ODBC datasource on the excel spreadsheet, write ZSQL method that selects the fields to be imported, write a DTML method that iterates on returned records and call another ZSQL method that writes into Gadfly. You may need to handle None/Missing values to prevent from ending up in gadfly as 'None' etc. Ayhan ___ 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] is it possible to import from Excel
Hello, Now we have developed some database using gadfly in zope. Actually there are some datum which are there in Excel. I would like to know is it possible to import all that datum from Excel to zope database, instead of giving all the data to zope manually. Actually all those data are the Emp. records. Currently they are maintaining it in Excel. Now they want to make it web based stuff. We have developed a tool for that. Since all that data are there in Excel I wanted some stuff to import that. Hoping your reply. bye yours subrahmanyan. ___ 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] Is it Possible 2: Get resolution!
Quote: "ASP Sux, Php isOK, but ZOPE RULEZ!" Stoons (me) friday 8th dec. 2000. Q: Is it posible to get the current users SCREEN-RESOLUTION (without using Javascript!)..? Stoons = )
Re: [Zope] Is it Possible 2: Get resolution!
Q: Is it posible to get the current users SCREEN-RESOLUTION (without using Javascript!)..? Since Zope is a server-side application, it is completely ignorant to client settings. It can get only variables from the HTTP environment settings. Since Javascript is a client side language, it can get client-specific information. Regards, Stephan -- Stephan Richter CBU - Physics and Chemistry Student Web2k - Web Design/Development Technical Project Management
Re: [Zope] Is it Possible 2: Get resolution!
On Fri, 8 Dec 2000, Stoonsdesign wrote: Q: Is it posible to get the current users SCREEN-RESOLUTION (without using Javascript!)..? You can't, and you don't need. Even if you get the resolution, you'd have hard times generating HTML for that resolution: HTML is very bad concerning strict screen positioninig. HTML is not "publishing". Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ 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] Is it Possible 2: Get resolution!
Oleg Broytmann wrote: On Fri, 8 Dec 2000, Stoonsdesign wrote: Q: Is it posible to get the current users SCREEN-RESOLUTION (without using Javascript!)..? You can't, and you don't need. Even if you get the resolution, you'd have hard times generating HTML for that resolution: HTML is very bad concerning strict screen positioninig. HTML is not "publishing". I can imagine webpage which uses some Javascript to append information about resolution to the request as some parameter. Then you could use it, but it does not make too much sense. What if some people use your page through caching proxy, which serves it to a few guys without refetching it (yes, you can forbid caching). What if someone dynamically changes resolution (as I do with Ctrl-Alt-+ working on my XWindows Linux)? What if the client disables JavaScript? ___ 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] is it possible to run a DTML method without using a browser.
Hi, To run a DTML method is there any other method than using a browser. Or even if it is running in a browser, it should not be there in the task bar. I have an application which need to run for some times. So one DTML method will be running continuously , and it will refresh it self after some duration. And this will continue for some times. So Kindly suggest me what is better. thanks yours, K.H.Subrahmanyan ( [EMAIL PROTECTED] ) ___ 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] is it possible to see whether any user is using a perticular zope object
hi, I got your reply. thanks. Actually my problem is not that. I am doing some web based stuff. So it is natural that more than one users can access the same page at the same time. So in my project, if such a situation comes then at least one user will get the error message. To avoid that I am planning to block one user until the other gets the complete page downloaded. So if it is possible to see whether the method is used by another user, then I can block that new user until the first user completes his task. How can I use dtml-var REQUEST tag for that. OR do u have any other alternative solution. I will be grateful to u. thanks bye yours, K.H.Subrahmanyan ( [EMAIL PROTECTED] ) ___ 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] is it possible to see whether any user is using a perticular zope object
subrahmanyan kalathur wrote: So it is natural that more than one users can access the same page at the same time. So in my project, if such a situation comes then at least one user will get the error message. Why? Zope is a multi-threaded we bserver capable of handling several simultaneous requests. Many more if you use ZEO, but I would go there just yet... cheers, Chris PS: Thanks for not using HTML mail anymore ;-) ___ 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] is it possible to see whether any user is using a perticular zope object
Okay, firstup, keep CC:'ing [EMAIL PROTECTED] so other people can help, and so other people can _get_ help from any answers you find... subrahmanyan kalathur wrote: so now I am getting the error. What is this error? (the lines starting with 'traceback:' are really useful...) what is that ZEO and all. It's probably best you don't go there for a while ;-) cheers, Chris ___ 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] is it possible to see whether any user is using a perticular zope object
hi, when I use the DTML method which include call to SQL methods, if someone is also using that DTML Method then either of us get the error message. And the error message is as follows. Error Type: SyntaxError Error Value: unexpected token sequence.near :: "\012Q_name = 'q24'"*'' *** current state = 231 expects: 'EXCEPT', '+', ')', 'HAVING', '-', 'UNION', 'AND', 'GROUP', '*', ';', 'OR', 'ORDER', 'INTERSECT', ('nomatch1',) current token = ((-6, 'WHERE'), 'WHERE') I would like to avoid that error, instead of that I would like say 'wait ' or something like that. and after the first one gets the complete page the other's page should come. Can u give any suggestions. thanks bye yours, K.H.Subrahmanyan ( [EMAIL PROTECTED] ) ___ 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] is it possible to see whether any user is using a perticular zope object
subrahmanyan kalathur wrote: Error Type: SyntaxError Error Value: unexpected token sequence.near :: "\012Q_name = 'q24'"*'' *** current state = 231 expects: 'EXCEPT', '+', ')', 'HAVING', '-', 'UNION', 'AND', 'GROUP', '*', ';', 'OR', 'ORDER', 'INTERSECT', ('nomatch1',) current token = ((-6, 'WHERE'), 'WHERE') It sounds more likely that your SQL has problems. Perhaps you could post your ZSQL method to the list? (but only if it's shorter than 20 lines long! ;-) What dabatase are you using? What database adapter? What versions? cheers, Chris ___ 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] is it possible to see whether any user is using a perticular zope object
hi I am n using gadfly database. This is not the problem of ZSQL method.(I think) Because when only one user is working there won't be any problem. It seems like when more than one users access the same table it gives the error message. That is why when more than one users try to access the same DTML method only one will be able to continue , others will get the error message. thanks yours, K.H.Subrahmanyan ( [EMAIL PROTECTED] ) ___ 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] is it possible to see whether any user is using a perticular zope object
Have you tried using any other dbms to alleviate the problem. - Original Message - From: "subrahmanyan kalathur" [EMAIL PROTECTED] To: "Chris Withers" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, November 22, 2000 11:03 AM Subject: Re: [Zope] is it possible to see whether any user is using a perticular zope object hi I am n using gadfly database. This is not the problem of ZSQL method.(I think) Because when only one user is working there won't be any problem. It seems like when more than one users access the same table it gives the error message. That is why when more than one users try to access the same DTML method only one will be able to continue , others will get the error message. thanks yours, K.H.Subrahmanyan ( [EMAIL PROTECTED] ) ___ 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 )
Re: [Zope] is it possible to see whether any user is using a perticular zope object
No, I haven't used any other DBMS. I have almost finished working in this gadfly. So I can't change now. Because there is no time to change it now. So please give me the solution. thanks yours, K.H.Subrahmanyan ( [EMAIL PROTECTED] ) ___ 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] is it possible to see whether any user is using a perticular zope object
In reality changing the dbms shouldn't cause too many problems (I'd give it a day to get the conversion done myself). Try MySQL or Interbase as they work fine on Win32 (which if I remember correctly is what you use?) Phil - Original Message - From: "subrahmanyan kalathur" [EMAIL PROTECTED] To: "Phil Harris" [EMAIL PROTECTED]; "Chris Withers" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, November 22, 2000 11:36 AM Subject: Re: [Zope] is it possible to see whether any user is using a perticular zope object No, I haven't used any other DBMS. I have almost finished working in this gadfly. So I can't change now. Because there is no time to change it now. So please give me the solution. thanks yours, K.H.Subrahmanyan ( [EMAIL PROTECTED] ) ___ 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] is it possible to see whether any user is using a perticular zope object
Hi, Same as you, i tried to use this gadfly thing when I started and even when choosing it I received a message from zope telling me that it wasn't the real thing/unreliable/etc. I *think* there is a more stable GadFly somewhere but I would advise you to go with mySQL which I use and never had any problems with. Unless I'm wrong, it wouldn't be such a pain to change to mySQL or other DBMS... You would only have to dump the content of the current DB and create the tables, if necessary. mySQL's learning curve is not that big and is faily easy to understand/use/get used to. HTH Dany -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of subrahmanyan kalathur Sent: Wednesday, November 22, 2000 7:36 AM To: Phil Harris; Chris Withers Cc: [EMAIL PROTECTED] Subject: Re: [Zope] is it possible to see whether any user is using a perticular zope object No, I haven't used any other DBMS. I have almost finished working in this gadfly. So I can't change now. Because there is no time to change it now. So please give me the solution. thanks yours, K.H.Subrahmanyan ( [EMAIL PROTECTED] ) ___ 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] is it possible to see whether any user is using a perticular zope object
hello , I am subrahmanyan. I am using zope for my project. Now I would like to know is it possible to know if any body is using the zope object. I mean , if one user is running one DTML method , Iwant to know that one user is using that object. Is there any DTML tag for that. thanks. bye yours, K.H.Subrahmanyan ( [EMAIL PROTECTED] )
[Zope] is this possible?
is it possible to use zope to run a demo program written in c++, online in a html environment? If it is possible, than how do you do this? thanks, boogie. [EMAIL PROTECTED] ___ 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] WorldPilot 1.1.0 - Possible bug and solution ?
Hi Zopers, apparently, WorldPilot has an error in the getIMAPFolders function, that do not allow the creation of folders. The line is the following: cf.AddChild(IMAPFolder(Folder,TmpFolderFullName[:-1] , padding+Folder)) I have changed it in: cf.AddChild(IMAPFolder(Folder,TmpFolderFullName[1:] , padding+Folder)) and now I can happily create folders and move messages around. I am using courier IMAP on a Red Hat Linux. Can someone confirm the patch ? Many thanks Paolo -- Paolo Bizzarri - Responsabile Marketing I3 Icube Srl Sede: Via Ridolfi 15 - 56124 Pisa (PI), Italia E-mail: [EMAIL PROTECTED] WWW: www.icube.it Tel:(+39) 050 97 02 07 Fax: (+39) 050 31 36 588 ___ 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-dev] Re: possible bug in dtml-in
You want sequence-end, not sequence-last. That just bit me yesterday. ;) --jfarr "Perl is worse than Python because people wanted it worse." Larry Wall, 14 Oct 1998 - Original Message - From: Federico Di Gregorio [EMAIL PROTECTED] To: Zope Dev [EMAIL PROTECTED] Sent: Thursday, June 22, 2000 10:16 AM Subject: [Zope-dev] possible bug in dtml-in hi *, an external method returns a list of tuples like this one: [(elt1, elt2), (elt3, elt4), ...] and i want to print something after the last one so i do: dtml-in "build_list(args...)" ...do some work here... dtml-if sequence-last should be executed only after last iteration /dtml-if /dtml-in that always worked (when getting stuff out of a DB, for example) but with a list built as above, if there is *more* than 1 element i get... File /usr/lib/zope/lib/python/DocumentTemplate/DT_Util.py, line 276, in render File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 146, in __call__ (Object: lettera_ricevuta) File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: lettera_ricevuta) File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 146, in __call__ (Object: genera_ricevuta_mail) File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: genera_ricevuta_mail) File /usr/lib/zope/lib/python/DocumentTemplate/DT_In.py, line 691, in renderwob (Object: elenco.keys()) File /usr/lib/zope/lib/python/DocumentTemplate/DT_Let.py, line 145, in render (Object: key=sequence-item) File /usr/lib/zope/lib/python/DocumentTemplate/DT_In.py, line 691, in renderwob (Object: elenco[key][1]) File /usr/lib/zope/lib/python/DocumentTemplate/DT_Let.py, line 145, in render (Object: row=sequence-item) File /usr/lib/zope/lib/python/DocumentTemplate/DT_InSV.py, line 392, in __getitem__ File /usr/lib/zope/lib/python/DocumentTemplate/DT_InSV.py, line 194, in last File /usr/lib/zope/lib/python/DocumentTemplate/DT_InSV.py, line 182, in value TypeError: getattr, argument 2: expected string, int found any idea? federico -- Federico Di Gregorio MIXAD LIVE System Programmer [EMAIL PROTECTED] Debian GNU/Linux Developer Italian Press Contact[EMAIL PROTECTED] Those who do not study Lisp are doomed to reimplement it. Poorly. -- from Karl M. Hegbloom .signature ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )