[Zope3-Users] Problem with Python 2.4.4
I guess this may be a Python problem rather than a zope problem, but I just thought I'd check here. I have set up Zope 3.3.0 with Python 2.4.4, and it didn't quite work. Some operations such as adding a content object provoked an error from cgi.py line 716, this line reads: line = self.fp.readline(116) and then Python reacts that readline should have max one argument, but it gets two. By correcting it to line = self.fp.readline() everything works well. Have anybody else had this problem? -Torvald ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Problem with Python 2.4.4
Torvald Bringsvor wrote: I guess this may be a Python problem rather than a zope problem, but I just thought I'd check here. I have set up Zope 3.3.0 with Python 2.4.4, and it didn't quite work. Some operations such as adding a content object provoked an error from cgi.py line 716, this line reads: line = self.fp.readline(116) and then Python reacts that readline should have max one argument, but it gets two. By correcting it to line = self.fp.readline() everything works well. Have anybody else had this problem? You should report this in the Zope 3 collector, http://www.zope.org/Collectors/Zope3-dev. It looks like Zope's file stream object that it passes to the CGI module needs to grow a maximum size. Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! CTO (540) 361-1714http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Problem with Python 2.4.4
Le mardi 24 octobre 2006 à 07:51 -0400, Jim Fulton a écrit : Torvald Bringsvor wrote: I guess this may be a Python problem rather than a zope problem, but I just thought I'd check here. I have set up Zope 3.3.0 with Python 2.4.4, and it didn't quite work. Some operations such as adding a content object provoked an error from cgi.py line 716, this line reads: line = self.fp.readline(116) and then Python reacts that readline should have max one argument, but it gets two. By correcting it to line = self.fp.readline() everything works well. Have anybody else had this problem? You should report this in the Zope 3 collector, http://www.zope.org/Collectors/Zope3-dev. It looks like Zope's file stream object that it passes to the CGI module needs to grow a maximum size. Hi, I had the same problem on Debian GNU/Linux. Problem is due to a security patch applied on cgi.py in Debian's unstable release. Thierry Florac -- Chef de projet intranet/internet Office National des Forêts - Département Informatique 2, Avenue de Saint-Mandé 75570 PARIS Cedex 12 Mél : [EMAIL PROTECTED] Tél. : +33 01.40.19.59.64 Fax. : +33 01.40.19.59.85 ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] z3c.zrtresource or zc.resourcelibrary
Which one should I use for my new zope 3 site? z3c.zrtresource or zc.resourcelibrary? I don't understand the difference between them and I don't have hours to spare on evaluating both. I'm sure they do different things and do them differently well. My aim to be able to smoothly define css, images, js without too much magic for my one and only skin. -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Problem with Python 2.4.4
On Tue, Oct 24, 2006 at 02:00:05PM +0200, Thierry Florac wrote: Le mardi 24 octobre 2006 à 07:51 -0400, Jim Fulton a écrit : Torvald Bringsvor wrote: I have set up Zope 3.3.0 with Python 2.4.4, and it didn't quite work. Some operations such as adding a content object provoked an error from cgi.py line 716, this line reads: line = self.fp.readline(116) and then Python reacts that readline should have max one argument, but it gets two. By correcting it to line = self.fp.readline() everything works well. Have anybody else had this problem? You should report this in the Zope 3 collector, http://www.zope.org/Collectors/Zope3-dev. It looks like Zope's file stream object that it passes to the CGI module needs to grow a maximum size. I had the same problem on Debian GNU/Linux. Problem is due to a security patch applied on cgi.py in Debian's unstable release. I've fixed this bug a couple of weeks ago. It was http://www.zope.org/Collectors/Zope3-dev/535 (It's not marked as resolved, because the Zope file stream object discards the maximum size, circumventing the CGI security patch, and that's because Twisted's file stream object doesn't accept a maximum size). Marius Gedminas -- Read what I mean, not what I write. signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Problem with Python 2.4.4
Marius Gedminas wrote: On Tue, Oct 24, 2006 at 02:00:05PM +0200, Thierry Florac wrote: Le mardi 24 octobre 2006 à 07:51 -0400, Jim Fulton a écrit : Torvald Bringsvor wrote: I have set up Zope 3.3.0 with Python 2.4.4, and it didn't quite work. Some operations such as adding a content object provoked an error from cgi.py line 716, this line reads: line = self.fp.readline(116) and then Python reacts that readline should have max one argument, but it gets two. By correcting it to line = self.fp.readline() everything works well. Have anybody else had this problem? You should report this in the Zope 3 collector, http://www.zope.org/Collectors/Zope3-dev. It looks like Zope's file stream object that it passes to the CGI module needs to grow a maximum size. I had the same problem on Debian GNU/Linux. Problem is due to a security patch applied on cgi.py in Debian's unstable release. I've fixed this bug a couple of weeks ago. It was http://www.zope.org/Collectors/Zope3-dev/535 (It's not marked as resolved, because the Zope file stream object discards the maximum size, circumventing the CGI security patch, and that's because Twisted's file stream object doesn't accept a maximum size). I wonder if a newer version of twisted fixes this. I wonder why we aren't using 2.2. Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! CTO (540) 361-1714http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Problem with Python 2.4.4
On Tue, Oct 24, 2006 at 10:42:41AM -0400, Jim Fulton wrote: Marius Gedminas wrote: I've fixed this bug a couple of weeks ago. It was http://www.zope.org/Collectors/Zope3-dev/535 (It's not marked as resolved, because the Zope file stream object discards the maximum size, circumventing the CGI security patch, and that's because Twisted's file stream object doesn't accept a maximum size). I wonder if a newer version of twisted fixes this. http://twistedmatrix.com/trac/ticket/1451 says it was fixed on Oct 10 (ten days ago). I wonder why we aren't using 2.2. Marius Gedminas -- Go not unto the Usenet for advice, for you will be told both yea and nay (and quite a few things that just have nothing at all to do with the question). signature.asc Description: Digital signature ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] z3c.zrtresource or zc.resourcelibrary
On Oct 24, 2006, at 8:41 AM, Peter Bengtsson wrote: Which one should I use for my new zope 3 site? z3c.zrtresource or zc.resourcelibrary? I don't understand the difference between them and I don't have hours to spare on evaluating both. I'm sure they do different things and do them differently well. My aim to be able to smoothly define css, images, js without too much magic for my one and only skin. It sounds like you may just want the standard Zope 3 resourcedirectory: just makes JS, CSS, images, et al available. z3c.zrtresource: a way to write dynamic css and js files. For instance, you have a css file that wants to refer to an image served by Zope, taking virtual hosting into account. Particularly suitable for situations when you are working with a shop that has a separate design team. Of course, can be effectively used in other environments as well. zc.resourcelibrary: a resourcedirectory-based tool to define and use resources with dependencies. For instance, one part of your assembled page, like a widget, needs MochiKit; another part, maybe a widget, needs a custom library that uses MochiKit; and another part needs a second custom library that depends on MochiKit.New, that itself depends on MochiKit; all three are assembled dynamically, and need to put JS/CSS code in the head, preferably without duplication, and in the right order. It might be nice to have zc.resourcelibrary be able to somehow serve z3c.zrtresource files too...it doesn't right now. FWIW, right now in lieu of zrtresource I just use script ... tal:content=string: /* ... JS that specifies dynamic variables and calls ... */ /script. Simple, and encourages delineation between library and usage; but a bit hacky, and unfriendly to designers. Other JS-related bits to know about (you'll have to do your own reading sometime :-): http://zif.hill-street.net/headincludes (WSGI variation on resourcelibrary), http://zif.hill-street.net/gzipper/ (WSGI, gzips all output for smaller browser page sizes), http:// zif.hill-street.net/jsmin/ (WSGI, compresses JS for smaller browser page sizes), and http://svn.zope.org/z3c.javascript/ (resourcelibrary- aware collection of mochikit, dojo, et al). Gary ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Synchronizing with a remote host
Hi, I need a few advises. I'm building a new Zope3 site, including : - a 'back-office' server, containing all internal data handled by contributors and administrators, including drafts, versioning, workflows, publication, archiving... - a 'front-office' server, containing a selection of published data available to the outside. I need to be able to synchronize data from back-office to front-office, so that : - all the maintenance is made on the back-office server - any published data is made available to the front-office - any retired data is deleted from the front-office immediately. To handle such a task, I was thinking about using : - a ZEO server instance on the front-office server, - and a ZEO ClientStorage on the back-office to handle replication of data to the front-office. Of course, I'm far from sure if this is the best way to handle my problem. There may be several approachs (using XML-RPC ?) and as I'm not a great ZODB or ZEO specialist, any advise would be greatly welcome. Thanks, Thierry Florac -- Chef de projet intranet/internet Office National des Forêts - Département Informatique 2, Avenue de Saint-Mandé 75570 PARIS Cedex 12 Mél : [EMAIL PROTECTED] Tél. : +33 01.40.19.59.64 Fax. : +33 01.40.19.59.85 ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] emacs with metal and tal namespaces
I am using nxml-mode in GNU emacs to edit the zcml files as well as page template files. I picked up the schema for zcml. All that works fine. Has anyone done a schema for the metal and tal name spaces?If not, I'll try and put one together.Thank you,Perry SmithEase Software, Inc.[EMAIL PROTECTED]http://www.easesoftware.comSATA Products for IBMs RS/6000, pSeries, and AIX systems ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Strange - You are not authorized
Hi Alek, On Mon, 2006-10-23 at 11:57 +0200, [EMAIL PROTECTED] wrote: Hello, I have a strange behavior of my content object. I have defined browser:editform for it and proper class directive (with zope.Public permissions) and I get only the following message in browser, even when logged in as Manager: Unauthorized - You are not authorized I don't have any error/exception on console. Mulitiple interfaces are probably not the source of the problem. I guess you are looking at the ZMI? You can click on 'errors' and 'configure' the utility to also record Unauthorized exceptions. This will give you a traceback to begin tracking your problem. Regards, Darryl ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Strange - You are not authorized
Darryl Cousins escribió: Hi Alek, Mulitiple interfaces are probably not the source of the problem. I guess you are looking at the ZMI? You can click on 'errors' and 'configure' the utility to also record Unauthorized exceptions. This will give you a traceback to begin tracking your problem. Regards, Darryl Thanks! The problem was actually my fault - I had class declarations only with allow directive and no require set_schema=... directive. After adding this, everything is fine. Best regards! Alek. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users