RE: [Zope] Finding and Mass-renaming objects
--On 1. August 2006 10:02:58 +0800 "Sinang, Danny" <[EMAIL PROTECTED]> wrote: However, since manage_renameObject() renames subobjects, I think I need to determine the parent-object or container of the found objects. obj.aq_parent (as documented in the Zope Developers Guide on zope.org). -aj -- ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376 E-Publishing, Python, Zope & Plone development, Consulting pgpNA53kG529K.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Finding and Mass-renaming objects
> Look at the ZopeFind() and/or ZopeFindAndApply() methods as defined in OFS.FindSupport. I've tried ZopeFind() and it can indeed find the objects I'm looking for. Am now trying to use ZopeFindAndApply() to find and rename the objects found using "manage_renameObject()". However, since manage_renameObject() renames subobjects, I think I need to determine the parent-object or container of the found objects. Would anyone here know how to do so or suggest an alternate way of renaming these objects ? Regards, Danny ___ 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] FTP and Firewall
Dan Gaibel wrote: > Hi, > > I'm using Zope 2.8.6 with Python 2.3.5 and have found that when I FTP > into zope, I am unable to list the contents of the directory I am in. It > seems that logging in is no problem. Could this be a problem with my > firewall? Has anyone seen this before? We are using port 8021 rather > than the usual port 21. Could this be the issue? > > Any help is appreciated. > > Thanks! > > Dan > ___ > 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 ) > on suse you can configure the firewall to allow negotiating for the second port. I do not remember the parameter but could look it up if you wish. robert begin:vcard fn:robert rottermann n:rottermann;robert email;internet:[EMAIL PROTECTED] tel;work:031 333 10 20 tel;fax:031 333 10 23 tel;home:031 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] ANN (Screencast): Step by step installation of a Zope and Plone site at WebFaction
Hello everyone, WebFaction have just released a screencast demo showing a step by step installation of a Zope and Plone site and product on their servers. The 10 minute screencast shows how to: - Create a Zope application using the control panel and mount it on some domains - Access the ZMI and create a Plone site - Use the VirtualHostMonster to run Plone at the root of the website - Add a new product and restart Zope - Run two websites from the same Zope instance The screencast is available at: http://blog.webfaction.com/zope-and-plone-screencast Remi. http://www.webfaction.com - Hosting for an agile web ___ 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] acl_users in MySQL
Hello Chris, We have been using the SimpleUserFolder product for two years now to authenticate users on an Oracle database, it was working great. We are currently migrating to Plone 2.5 and we have are experiencing some difficulties. How can I use SimpleUserFolder with Plone 2.5 and PlonePAS? Thanks in advance. On 6/19/06, Chris Withers <[EMAIL PROTECTED]> wrote: Cliff Ford wrote:> Suggestion: have a look at exUserFolder. It has a MySQL Authentication> Source. The minimum requirement is a table with Username, Password and > Roles fields.I think you'll actually find SimpleUserFolder much easier and moreflexible for this specific requirement:http://www.simplistix.co.uk/software/zope/simpleuserfolder cheers,Chris--Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk___ Zope maillist - Zope@zope.orghttp://mail.zope.org/mailman/listinfo/zope** No cross posts or HTML encoding! ** (Related lists -http://mail.zope.org/mailman/listinfo/zope-announcehttp://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] Combining TAL and JavaScript
On 7/31/06, Andreas Jung <[EMAIL PROTECTED]> wrote: > Yes, and I was wondering if I could put JS code on the view template > which would do rewriting on link URLs that come from TAL statements. No, but you can generate the related dynamic parts e.g. as JS variables through TALES and reference these variables from within a static JS that is loaded in addition, got it? Yes, this makes more sense. Thanks! -- Mikko Koivunen ___ 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] Combining TAL and JavaScript
--On 31. Juli 2006 14:32:59 +0300 Mikko Koivunen <[EMAIL PROTECTED]> wrote: Hi, On 7/31/06, Andreas Jung <[EMAIL PROTECTED]> wrote: > Is it possible to process TAL with JavaScript? TAL=Server-side, JS=Client-side...how should be both related? You can of course generate JS code on the server-side. Yes, and I was wondering if I could put JS code on the view template which would do rewriting on link URLs that come from TAL statements. No, but you can generate the related dynamic parts e.g. as JS variables through TALES and reference these variables from within a static JS that is loaded in addition, got it? -aj ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376 E-Publishing, Python, Zope & Plone development, Consulting pgpWW9F7rdCRm.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Combining TAL and JavaScript
Hi, On 7/31/06, Andreas Jung <[EMAIL PROTECTED]> wrote: > Is it possible to process TAL with JavaScript? TAL=Server-side, JS=Client-side...how should be both related? You can of course generate JS code on the server-side. Yes, and I was wondering if I could put JS code on the view template which would do rewriting on link URLs that come from TAL statements. Maybe I should think about this more, the whole concept feels a bit weird. Some solution would still be nice eventually. -- Mikko Koivunen ___ 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] Combining TAL and JavaScript
--On 31. Juli 2006 14:19:26 +0300 Mikko Koivunen <[EMAIL PROTECTED]> wrote: Hello all, Is it possible to process TAL with JavaScript? TAL=Server-side, JS=Client-side...how should be both related? You can of course generate JS code on the server-side. -aj pgpaZxY8nn4ZM.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Finding and Mass-renaming objects
--On 31. Juli 2006 19:12:02 +0800 "Sinang, Danny" <[EMAIL PROTECTED]> wrote: Hello, We need to find some objects in Zope and rename them to their lower-case equivalents. Look at the ZopeFind() and/or ZopeFindAndApply() methods as defined in OFS.FindSupport. -aj -- ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376 E-Publishing, Python, Zope & Plone development, Consulting pgpmXqHFOEzza.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Combining TAL and JavaScript
Hello all, Is it possible to process TAL with JavaScript? I have a custom Plone content type which is used for external links. The link tags get presented from a page template like this: tal:attributes="href here/remote_url" Is it possible to process this remote_url somehow with a JavaScript rewrite? Reason: We have another non-Zope system which uses GET variables for some settings, and I need to rewrite some variables on links that go to that system. Example: I have links like http://foo/index?action=list&;... and I need to rewrite them to http://foo/index?action=start&;... Any other routes beside JavaScript are welcome as well, it's just the first thing I thought of. The reason I can't just ask the webmasters/authors to change the variable while making the links is that I actually need to present both unchanged and rewritten versions with the view template. PS. I hope this message suits this list. -- Mikko Koivunen ___ 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] Finding and Mass-renaming objects
Hello, We need to find some objects in Zope and rename them to their lower-case equivalents. Is there a way to do this either via the ZMI or programmatically ? Regards, Danny ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How can i improve performance of website under heavy load in Zope2.6.1
1) improve the number of object in the cache: the default is 400 which is incredibly low for a normal site; put it to 5000 and check; 2) (if possible) upgrade to a newer release of Zope, namely 2.8, which removes many possible conflict, and therefore improves response time; 3) install a Zope/ZEO configuration, with more than one Zope server responding; don't mix too much with threads which is, as far as I know, tricky stuff; use more than one physical server, running Zope, connected to a ZEO backend; distribute the load using whatever load balancer of your choice; 4) review your application needs; check what are the actual bottlenecks; is there any static content you could better serve using apache (like images, documents..) ? 5) make a google search with "improving Zope performance" ;) Regards Marco On 7/31/06, Sudesh Soni <[EMAIL PROTECTED]> wrote: Hi, I am using Zope 2.6.1 I wonder why Zope is default set for handling 4 threads and 7 database connections. I tried inreasing threads to 20 and database connections to 30 by updating z2.py and DB.py, presuming that this will help to improve performance under heavy load. Can anyone suggest what impact will be there if i do this , in Zope 2.6.1 OR Can anyone suggest any other option to improve performance under heavy load in Zope 2.6.1 Any help will be appreciated. Suson ___ 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 ) -- Marco Bizzarri http://notenotturne.blogspot.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 )
[Zope] How can i improve performance of website under heavy load in Zope2.6.1
Hi, I am using Zope 2.6.1 I wonder why Zope is default set for handling 4 threads and 7 database connections. I tried inreasing threads to 20 and database connections to 30 by updating z2.py and DB.py, presuming that this will help to improve performance under heavy load. Can anyone suggest what impact will be there if i do this , in Zope 2.6.1 OR Can anyone suggest any other option to improve performance under heavy load in Zope 2.6.1 Any help will be appreciated. Suson ___ 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 )