Re: [Zope3-Users] zope 3.3 on windows can't create pages
Hello Anton, That's a small incompatibility between python 2.4.4 and Zope 3.3. You can use python 2.4.3 to work around that. The fix for Zope is there but only in the svn yet. Monday, November 27, 2006, 10:51:48 PM, you wrote: Hi, I have a win2k sp4 PC. I installed: - python 2.4.4 - pythonwin 2.10 - zope 3.3 (the installer from zope.org) I created a zope-instance can start zope, all is fine. I create a new folder it works :-) I try to create a new ZPT Page .. it fails :-( Here is the log with the error message:- 2006-11-24T22:59:00 ERROR SiteError http://localhost:8080 Traceback (most recent call last): File C \Programme\util\Python24\Lib\site-packages\zope\publisher\publish.py, line 126, in publish request.processInputs() File C \Programme\util\Python24\Lib\site-packages\zope\publisher\browser.py, line 263, in processInputs fs = FieldStorage(fp=fp, environ=self._environ, keep_blank_values=1) File C:\Programme\util\Python24\lib\cgi.py, line 530, in __init__ self.read_multi(environ, keep_blank_values, strict_parsing) File C:\Programme\util\Python24\lib\cgi.py, line 650, in read_multi environ, keep_blank_values, strict_parsing) File C:\Programme\util\Python24\lib\cgi.py, line 532, in __init__ self.read_single() File C:\Programme\util\Python24\lib\cgi.py, line 665, in read_single self.read_lines() File C:\Programme\util\Python24\lib\cgi.py, line 687, in read_lines self.read_lines_to_outerboundary() File C:\Programme\util\Python24\lib\cgi.py, line 715, in read_lines_to_outerboundary line = self.fp.readline(116) TypeError: readline() takes exactly 1 argument (2 given) - Is the windows version of zope 3.3 still beta/experimantal or is it suitable for prodution use? Do you have any workaround/ patch?? Bye Anton ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users -- Best regards, Adammailto:[EMAIL PROTECTED] -- Quote of the day: Upgrade (UHP-grayde), n. - Take old bugs out, put new ones in. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] how to know which port zope is runnning on?
Hi, Is it possible for the application code to figure out the port number on which zope is running? What is the suitable api for that? With regards, -shailesh ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Custom Content Container
I created a custom content container that reads entries from a MySQL database and allows editing of the container objects. Or at least that is my desire... The content container by itself seems to work well. However when I click on an object in the contents ZMI view, I receive the following exception: ComponentLookupError: ((zope.schema._bootstrapfields.Field object at 0x420f450c, zope.publisher.browser.BrowserRequest instance URL=http://192.168.81.89:8070/++etc++site/default/TPM%20on%20Dev/4/@@editTPM Owner.html), InterfaceClass zope.app.form.interfaces.IInputWidget, u'') I'm not quite sure why IInputWidget is being looked up, though I suppose it has something to do with the form I am creating, and I'm not sure why it is not finding what it is looking for. editTPMOwner.html is simply a browser:editform ZCML directive that uses schema IOwner. Any ideas or thoughts? Thanks so kindly in advance. -- David Johnson ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Custom Content Container
Hi David, which fields does your IOwner-interface consist of? You get this error if you call an auto generated form from a List-field, without having value_type specified, but there are other scenarios, so this information would be helpful. Cheers -Tom David Johnson wrote: I created a custom content container that reads entries from a MySQL database and allows editing of the container objects. Or at least that is my desire... The content container by itself “seems” to work well. However when I click on an object in the contents ZMI view, I receive the following exception: ComponentLookupError: ((zope.schema._bootstrapfields.Field object at 0x420f450c, zope.publisher.browser.BrowserRequest instance URL=http://192.168.81.89:8070/++etc++site/default/TPM%20on%20Dev/4/@@editTPMOwner.html), InterfaceClass zope.app.form.interfaces.IInputWidget, u'') I’m not quite sure why “IInputWidget” is being looked up, though I suppose it has something to do with the form I am creating, and I’m not sure why it is not finding what it is looking for. editTPMOwner.html is simply a browser:editform ZCML directive that uses schema IOwner. Any ideas or thoughts? Thanks so kindly in advance. -- David Johnson ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] how to know which port zope is runnning on?
Hi Shailesh, try request.get('SERVER_PORT'). Cheers -Tom Shailesh Kumar wrote: Hi, Is it possible for the application code to figure out the port number on which zope is running? What is the suitable api for that? With regards, -shailesh ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
RE: [Zope3-Users] Custom Content Container
Yes indeed. I'm only using 1 Text and 3 TextLine fields. This is my first attempt at this so I'm trying to keep it fairly simple. -Original Message- From: Tom Gross [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 28, 2006 2:05 PM To: David Johnson Cc: zope3-users@zope.org Subject: Re: [Zope3-Users] Custom Content Container Hi David, which fields does your IOwner-interface consist of? You get this error if you call an auto generated form from a List-field, without having value_type specified, but there are other scenarios, so this information would be helpful. Cheers -Tom David Johnson wrote: I created a custom content container that reads entries from a MySQL database and allows editing of the container objects. Or at least that is my desire... The content container by itself seems to work well. However when I click on an object in the contents ZMI view, I receive the following exception: ComponentLookupError: ((zope.schema._bootstrapfields.Field object at 0x420f450c, zope.publisher.browser.BrowserRequest instance URL=http://192.168.81.89:8070/++etc++site/default/TPM%20on%20Dev/4/@@editT PMOwner.html), InterfaceClass zope.app.form.interfaces.IInputWidget, u'') I'm not quite sure why IInputWidget is being looked up, though I suppose it has something to do with the form I am creating, and I'm not sure why it is not finding what it is looking for. editTPMOwner.html is simply a browser:editform ZCML directive that uses schema IOwner. Any ideas or thoughts? Thanks so kindly in advance. -- David Johnson ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
RE: [Zope3-Users] Custom Content Container
I figured out the problem. In my interfaces I was using the contains and containers methods. When I stuck to the more tedious __parent__ = ... approach as outlined in Stephan's book, all was solved. Thanks. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Johnson Sent: Tuesday, November 28, 2006 2:21 PM To: 'Tom Gross' Cc: zope3-users@zope.org Subject: RE: [Zope3-Users] Custom Content Container Yes indeed. I'm only using 1 Text and 3 TextLine fields. This is my first attempt at this so I'm trying to keep it fairly simple. -Original Message- From: Tom Gross [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 28, 2006 2:05 PM To: David Johnson Cc: zope3-users@zope.org Subject: Re: [Zope3-Users] Custom Content Container Hi David, which fields does your IOwner-interface consist of? You get this error if you call an auto generated form from a List-field, without having value_type specified, but there are other scenarios, so this information would be helpful. Cheers -Tom David Johnson wrote: I created a custom content container that reads entries from a MySQL database and allows editing of the container objects. Or at least that is my desire... The content container by itself seems to work well. However when I click on an object in the contents ZMI view, I receive the following exception: ComponentLookupError: ((zope.schema._bootstrapfields.Field object at 0x420f450c, zope.publisher.browser.BrowserRequest instance URL=http://192.168.81.89:8070/++etc++site/default/TPM%20on%20Dev/4/@@editT PMOwner.html), InterfaceClass zope.app.form.interfaces.IInputWidget, u'') I'm not quite sure why IInputWidget is being looked up, though I suppose it has something to do with the form I am creating, and I'm not sure why it is not finding what it is looking for. editTPMOwner.html is simply a browser:editform ZCML directive that uses schema IOwner. Any ideas or thoughts? Thanks so kindly in advance. -- David Johnson -- -- ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] how to know which port zope is runnning on?
Shailesh Kumar wrote: Thanx Tom, but I was looking for the general case, not in the context of a request. Like say during application startup I want to know the port number. Is it possible? This is surely in the event log, why don't you look there? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: zope 3.3 on windows can't create pages
Adam Groszer wrote: Hello Anton, That's a small incompatibility between python 2.4.4 and Zope 3.3. You can use python 2.4.3 to work around that. The fix for Zope is there but only in the svn yet. Hi Adam, Do you have any hint what file is affected (if its only one or two lines to tweak it would be faster than to reinstall 2.4.3) If its a whole bunch of files, ... then of courxe ... forget it :-) Anton ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Re: Function that is called when object is fullyinstantiated
Am Dienstag, 28. November 2006 02:47 schrieb Roger Ineichen: Hi Florian def sendMessage(self, message, toJID): if status == available: self.client.send(xmpp.protocol.Message(toJID, message)) sendMessage is never called. Anyway, changed it to self.status, tried it but changed nothing. Any other idea? Thanks, Florian ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] how to know which port zope is runnning on?
Thanx for the hint. I still don't know how to programmatically access the event log. will try to figure it out. With regards, -shailesh On 11/28/06, Chris Withers [EMAIL PROTECTED] wrote: Shailesh Kumar wrote: Thanx Tom, but I was looking for the general case, not in the context of a request. Like say during application startup I want to know the port number. Is it possible? This is surely in the event log, why don't you look there? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users