[Zope-Checkins] SVN: Zope/trunk/releases/Zope2. Name the root collection simply Zope so that the name of the tarball will
Log message for revision 40158: Name the root collection simply Zope so that the name of the tarball will be decent. This doesn't conflict with the collection representing the 'zope' package because the *root* collection and a dependency of it never have to coexist as sibling directories somewhere; so no danger of problems due to case ignorant file systems. Changed: U Zope/trunk/releases/Zope2.cfg U Zope/trunk/releases/Zope2.map -=- Modified: Zope/trunk/releases/Zope2.cfg === --- Zope/trunk/releases/Zope2.cfg 2005-11-16 16:07:39 UTC (rev 40157) +++ Zope/trunk/releases/Zope2.cfg 2005-11-16 16:18:58 UTC (rev 40158) @@ -3,4 +3,4 @@ build-application yes collect-dependencies yes resource-map Zope2.map -default-collectionZope2-src +default-collectionZope Modified: Zope/trunk/releases/Zope2.map === --- Zope/trunk/releases/Zope2.map 2005-11-16 16:07:39 UTC (rev 40157) +++ Zope/trunk/releases/Zope2.map 2005-11-16 16:18:58 UTC (rev 40158) @@ -74,4 +74,4 @@ # project; they define what goes into the Zope 2 and related # releases. # -Zope2-src ../releases/Zope2 +Zope ../releases/Zope2 ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Checkins] SVN: Zope/branches/Zope-2_9-branch/releases/Zope2. Merge r40158 from the trunk:
Log message for revision 40159: Merge r40158 from the trunk: Name the root collection simply Zope so that the name of the tarball will be decent. This doesn't conflict with the collection representing the 'zope' package because the *root* collection and a dependency of it never have to coexist as sibling directories somewhere; so no danger of problems due to case ignorant file systems. Changed: U Zope/branches/Zope-2_9-branch/releases/Zope2.cfg U Zope/branches/Zope-2_9-branch/releases/Zope2.map -=- Modified: Zope/branches/Zope-2_9-branch/releases/Zope2.cfg === --- Zope/branches/Zope-2_9-branch/releases/Zope2.cfg2005-11-16 16:18:58 UTC (rev 40158) +++ Zope/branches/Zope-2_9-branch/releases/Zope2.cfg2005-11-16 16:20:27 UTC (rev 40159) @@ -3,4 +3,4 @@ build-application yes collect-dependencies yes resource-map Zope2.map -default-collectionZope2-src +default-collectionZope Modified: Zope/branches/Zope-2_9-branch/releases/Zope2.map === --- Zope/branches/Zope-2_9-branch/releases/Zope2.map2005-11-16 16:18:58 UTC (rev 40158) +++ Zope/branches/Zope-2_9-branch/releases/Zope2.map2005-11-16 16:20:27 UTC (rev 40159) @@ -74,4 +74,4 @@ # project; they define what goes into the Zope 2 and related # releases. # -Zope2-src ../releases/Zope2 +Zope ../releases/Zope2 ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
Re: [Zope-Checkins] SVN: Zope/trunk/releases/Zope2. Name the root collection simply Zope so that the name of the tarball will
On 11/16/05, Philipp von Weitershausen [EMAIL PROTECTED] wrote: coexist as sibling directories somewhere; so no danger of problems due to case ignorant file systems. The technical term for this is case-senseless. -Fred -- Fred L. Drake, Jr.fdrake at gmail.com Society attacks early, when the individual is helpless. --B.F. Skinner ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins
[Zope-Coders] Zope tests: 8 OK
Summary of messages to the zope-tests list. Period Tue Nov 15 12:01:02 2005 UTC to Wed Nov 16 12:01:02 2005 UTC. There were 8 messages: 8 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux From: Zope Unit Tests Date: Tue Nov 15 22:17:31 EST 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-November/003562.html Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Tue Nov 15 22:19:01 EST 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-November/003563.html Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Tue Nov 15 22:20:31 EST 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-November/003564.html Subject: OK : Zope-2_7-branch Python-2.4.2 : Linux From: Zope Unit Tests Date: Tue Nov 15 22:22:01 EST 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-November/003565.html Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux From: Zope Unit Tests Date: Tue Nov 15 22:23:31 EST 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-November/003566.html Subject: OK : Zope-2_8-branch Python-2.4.2 : Linux From: Zope Unit Tests Date: Tue Nov 15 22:25:01 EST 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-November/003567.html Subject: OK : Zope-2_9-branch Python-2.4.2 : Linux From: Zope Unit Tests Date: Tue Nov 15 22:26:31 EST 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-November/003568.html Subject: OK : Zope-trunk Python-2.4.2 : Linux From: Zope Unit Tests Date: Tue Nov 15 22:28:01 EST 2005 URL: http://mail.zope.org/pipermail/zope-tests/2005-November/003569.html ___ Zope-Coders mailing list Zope-Coders@zope.org http://mail.zope.org/mailman/listinfo/zope-coders
Re: [Zope3-dev] Re: [Zope-dev] Re: branched Zope 2.9
--On 14. November 2005 14:25:17 -0500 Jim Fulton [EMAIL PROTECTED] wrote: On Tue, 2005-11-15 at 00:20 +0800, Philipp von Weitershausen wrote: Florent Guillaume wrote: BTW I'm for removing the 2.9 branch for now. You didn't, so I presume 2.9 branch stays? It's important to clear the status of this branch because bugfixes need to be merged to it (see my email about Tres' bugfix, for example). This is Andreas' call. Philipp is still working on the zpkg issue and he will require some more days. As soon as this issue is resolved will cut the 2.9 branch and head for the 2.9 b1 release. Andreas pgpOJg3Mf5PmV.pgp Description: PGP signature ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope3-dev] Re: [Zope-dev] Re: branched Zope 2.9
On Wed, 2005-11-16 at 19:47 +0100, Andreas Jung wrote: --On 14. November 2005 14:25:17 -0500 Jim Fulton [EMAIL PROTECTED] wrote: On Tue, 2005-11-15 at 00:20 +0800, Philipp von Weitershausen wrote: Florent Guillaume wrote: BTW I'm for removing the 2.9 branch for now. You didn't, so I presume 2.9 branch stays? It's important to clear the status of this branch because bugfixes need to be merged to it (see my email about Tres' bugfix, for example). This is Andreas' call. Philipp is still working on the zpkg issue and he will require some more days. As soon as this issue is resolved will cut the 2.9 branch and head for the 2.9 b1 release. Does this mean that the existing 2.9 branch needs to be removed and that the trunk remains frozen? 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 ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope3-dev] Re: [Zope-dev] Re: branched Zope 2.9
--On 16. November 2005 14:03:05 -0500 Jim Fulton [EMAIL PROTECTED] wrote: Does this mean that the existing 2.9 branch needs to be removed and that the trunk remains frozen? Didn't Florent delete the branch? Obviously he did not as I assumed. So in this case Philipp needs to commit his fixes to the existing 2.9 branch and the HEAD and the HEAD would be open for new code. Andreas pgpBECEUyQvao.pgp Description: PGP signature ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: branched Zope 2.9
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: --On 16. November 2005 14:03:05 -0500 Jim Fulton [EMAIL PROTECTED] wrote: Does this mean that the existing 2.9 branch needs to be removed and that the trunk remains frozen? Didn't Florent delete the branch? Obviously he did not as I assumed. So in this case Philipp needs to commit his fixes to the existing 2.9 branch and the HEAD and the HEAD would be open for new code. I think he actually voted *for* removing it, but I read it as saying he was removing it, too. In any case, the 2.9 branch has had several backported fixes since it was created. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDe5R2+gerLs4ltQ4RAuvlAKDF5oAC7NgwXKm5dgJqtg+qJe5JCgCdFMfG z9ZLP8haROC1/JhATzatlJU= =SkAj -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope3-dev] Re: [Zope-dev] Re: branched Zope 2.9
Andreas Jung wrote: --On 16. November 2005 14:03:05 -0500 Jim Fulton [EMAIL PROTECTED] wrote: Does this mean that the existing 2.9 branch needs to be removed and that the trunk remains frozen? Didn't Florent delete the branch? Obviously he did not as I assumed. So in this case Philipp needs to commit his fixes to the existing 2.9 branch and the HEAD and the HEAD would be open for new code. Yes, I comitted all the changes to both the trunk and the Zope 2.9 branch. They should be identical. So at this point I don't care whether we get rid of it again and recreate it at a later point or simply leave it. Again, Andreas' call. Note that most of the work I still need to do is happening in the zpkg code, so the Zope code is basically ready for a release. The only things I have on my todo list for Zope 2 are: - stitch in more things from Zope 3 so that ALL unit tests pass (this will effectively mean stitching in twisted, maybe even more). - make some CHANGES.txt entries ;) Philipp ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope] experience w/ filestorage mount points? maximum?
Christoph Berendes wrote: Why so many, in separate files, you ask... 1. why not? (what's the cost/risk of multiple Data.fs files and mount points), hmmm? Because it's not a common use case, so you end up pushing limits and bumping into bugs that no-one else cares about ;-) 2. makes it easy to move a single client site between instances and servers (we don't yet know how load is going to mount up, and whether we'll need to set up a new server at, say, 30 sites, or 100, or ...) zexp 3. site import/export doesn't work as well, and it seems that import/export of large Zope objects is deprecated... huh? rubbish. What specific problems have you had? 4. I'm told that, occasionally, Data.fs become corrupted. I've yet to see that in 5 years of extensive ZODB use, other than by hardware failure, in which case you're screwed however you have things set up ;-) We have some protection if that happens, since it should (I'd think) affect only one client, not many. Nah, the stuff you're worried about will trash multiple mounted storages just as well as one big one ;-) I'm very interested in answers to #1 (things that will make me regret our current strategy) The biggest risk is that you'll be the only person who cares if things go wrong because of that setup... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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] Render a string as tal
Mark Gibson wrote: However, what I'm looking for is being able to take a string such as 'div tal:content=here/absolute_urlThe url/div' and be able to evaluate the TALES expression in the string to produced something like: 'divhttp://mydomain.com/theUrl/div' Any chance there's a recipe for this? If you can explain to us why you think you want to do that, we can likely tell you what you really want to be doing ;-) Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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] (no subject)
Title: Message Hi, excuse-me for my English but i'm french ;-) i've installzope 2.8.4and Plone 2.1.1.i've do a copy of my data.fsand my products of my old Zope 's version zope 2.6.1, in the new version. the problem is that when i write http://localhost:8080/intranet to my URL, i've an error (see the traceback): someone can help me ? thank you and have a good day. Time 2005/11/15 14:28:07.484 GMT+1 User Name (User Id) controle (controle) Request URL http://localhost:8080/intranet/index_html Exception Type AttributeError Exception Value plone_javascripts.js Traceback (innermost last): Module ZPublisher.Publish, line 113, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in call_object Module Shared.DC.Scripts.Bindings, line 311, in __call__ Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec Module Products.PythonScripts.PythonScript, line 323, in _exec Module None, line 1, in index_htmlPythonScript at /intranet/index_htmlLine 1 Module Shared.DC.Scripts.Bindings, line 311, in __call__ Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec Module Products.PageTemplates.ZopePageTemplate, line 256, in _exec Module Products.PageTemplates.PageTemplate, line 104, in pt_renderZopePageTemplate at /intranet/frontpage used for /intranet/frontpage Module TAL.TALInterpreter, line 206, in __call__ Module TAL.TALInterpreter, line 250, in interpret Module TAL.TALInterpreter, line 711, in do_useMacro Module TAL.TALInterpreter, line 250, in interpret Module TAL.TALInterpreter, line 711, in do_useMacro Module TAL.TALInterpreter, line 250, in interpret Module TAL.TALInterpreter, line 308, in do_startTag Module TAL.TALInterpreter, line 374, in attrAction_tal Module Products.PageTemplates.TALES, line 227, in evaluateText Module Products.PageTemplates.TALES, line 221, in evaluateURL: /intranet/headerLine 61, Column 4_expression_: standard:'here/plone_javascripts.js/absolute_url'Names:{'container': PloneSite at /intranet, 'context': ZopePageTemplate at /intranet/frontpage, 'default': Products.PageTemplates.TALES.Default instance at 0x01B1FDC8, 'here': ZopePageTemplate at /intranet/frontpage, 'loop': Products.PageTemplates.TALES.SafeMapping object at 0x05CE5490, 'modules': Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x01AE4350, 'nothing': None, 'options': {'args': ()}, 'repeat': Products.PageTemplates.TALES.SafeMapping object at 0x05CE5490, 'request': HTTPRequest, URL="" 'root': Application at , 'template': ZopePageTemplate at /intranet/frontpage used for /intranet/frontpage, 'traverse_subpath': [], 'user': controle} Module Products.PageTemplates.Expressions, line 185, in __call__ Module Products.PageTemplates.Expressions, line 173, in _eval Module Products.PageTemplates.Expressions, line 127, in _eval__traceback_info__: here Module Products.PageTemplates.Expressions, line 315, in restrictedTraverse__traceback_info__: {'path': [plone_javascripts.js, 'absolute_url'], 'TraversalRequestNameStack': ['absolute_url']} AttributeError: plone_javascripts.js * "Le contenu de ce courriel et ses eventuelles pièces jointes sont confidentiels. Ils s'adressent exclusivement à la personne destinataire. Si cet envoi ne vous est pas destiné, ou si vous l'avez reçu par erreur, et afin de ne pas violer le secret des correspondances, vous ne devez pas le transmettre à d'autres personnes ni le reproduire. Merci de le renvoyer à l'émetteur et de le détruire. Attention : L'Organisme de l'émetteur du message ne pourra être tenu responsable de l'altération du présent courriel. Il appartient au destinataire de vérifier que les messages et pièces jointes reçus ne contiennent pas de virus. Les opinions contenues dans ce courriel et ses éventuelles pièces jointes sont celles de l'émetteur. Elles ne reflètent pas la position de l'Organisme sauf s'il en est disposé autrement dans le présent courriel." ** ___ 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] (no subject)
--On 16. November 2005 10:13:24 +0100 AZAIS Bruce [EMAIL PROTECTED] wrote: AttributeError: plone_javascripts.js Please ask on the plone-users list for Plone related issues. -aj pgpUXSKlvJCHB.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] Re: (no subject)
On Wed, 16 Nov 2005 01:13:24 -0800, AZAIS Bruce [EMAIL PROTECTED] wrote: AttributeError: plone_javascripts.js Have you visited portal_migrations in the ZMI and migrated the site to 2.1? Also, http://plone.org/contact#setup is the right place for migration and setup questions. -- _ Alexander Limi · Chief Architect · Plone Solutions · Norway Consulting · Training · Development · http://www.plonesolutions.com _ Plone Co-Founder · http://plone.org · Connecting Content Plone Foundation · http://plone.org/foundation · Protecting Plone ___ 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] conflicts, sessions, and programming best practices guidelines
Try to partition your collision space. Do you mount a shared temp_folder? Don't! Do as Chris said and keep a temp_folder per ZEO client. Let the load balancer send people to the same ZEO client every time (according to the cookie). Note that there is no solution for bad coding practice other than to fix it ;-). Keep session access to an absolute minimum (read *and* write). You may also want to look at SQLSessions, which seem to be able to take a higher load (haven't tried for a while). But only up to a point until you get concurrency issues in the RDBMS. Psycopg in particular defers conflicts to Zope by again raising ConflictErrors... In the end, the key to scaling is to keep state out of the app server. http://www.loudthinking.com/arc/000479.html http://www.danga.com/words/2004_oscon/oscon2004.pdf Stefan On Tue, 15 Nov 2005, Dennis Allison wrote: Peter, That's pretty much what we've done, but it is not really enough in our case. Our sites are interactive with lots of per user state. We make fairly heavy use of session variables to track the state. Our number of simultaneous users is also fairly high. In addition, during development, we structured things for ease of development rather than for mimimum liklihood of conflict errors. At this point we are seeing many conflicts and interactions with both the sessioning mechanism and the persistence mechanism--or so it appears. Even when we resolve the current database interaction problem, a refactoring seems in order to ensure the number of conflicts is kept to a minimum. ___ 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] Installing Zope on Ubuntu Breezy
Hi I wonder if anybody could tell me what I am doing wrong. I installed zope 2.8, and plone 2.1 via synaptic. I also installed plone-site via synaptic. (When I installed this I was promted for a username and password) Now when I access: http://localhost:8081, I get a quickstart screen. When I click on the link to the management interface (http://localhost:8081/manage) I am promted for user name and password. It does not accept the username and password that I typed when setting up plone-site. I've been googling, and at one place there was an explanation that zope sets up an inituser file with a username and password. I found such a file under /var/lib/zope2.8/instance/plone-site/ with the following information in it: admin:{SHA}JPpU/BsXGIcv7LQrwgMiOS25PB4= I've tried to use this in various ways: username: admin password: {SHA}JPpU/BsXGIcv7LQrwgMiOS25PB4= or username: {SHA}JPpU password: BsXGIcv7LQrwgMiOS25PB4= That did not work. I tried to create a new inituser account using the following command [EMAIL PROTECTED]:/usr/lib/zope2.8/bin$ sudo python zpasswd.py inituser and then got the following feedback: The programme asked me for a username and a password, to repeat the password. I also selected SHA as a mode of encrypting the password, and left the domain restrictions blank. Unfortunately when I try to connect to (http://localhost:8081/manage), I still get the same problem. It won't accept my password. I tried to look for other inituser files on my computer, but I do not see any. I am really stuck. I don't know how to get plone or zope to work on my computer. Please help. If you help me, I promise that I will write the details into a wiki somewhere. Thanks Weiers ___ 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] Re: Installing Zope on Ubuntu Breezy
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Weiers Coetser wrote: Hi I wonder if anybody could tell me what I am doing wrong. I installed zope 2.8, and plone 2.1 via synaptic. I also installed plone-site via synaptic. (When I installed this I was promted for a username and password) Now when I access: http://localhost:8081, I get a quickstart screen. When I click on the link to the management interface (http://localhost:8081/manage) I am promted for user name and password. It does not accept the username and password that I typed when setting up plone-site. I've been googling, and at one place there was an explanation that zope sets up an inituser file with a username and password. I found such a file under /var/lib/zope2.8/instance/plone-site/ with the following information in it: admin:{SHA}JPpU/BsXGIcv7LQrwgMiOS25PB4= I've tried to use this in various ways: username: admin password: {SHA}JPpU/BsXGIcv7LQrwgMiOS25PB4= or username: {SHA}JPpU password: BsXGIcv7LQrwgMiOS25PB4= That did not work. I tried to create a new inituser account using the following command [EMAIL PROTECTED]:/usr/lib/zope2.8/bin$ sudo python zpasswd.py inituser and then got the following feedback: The programme asked me for a username and a password, to repeat the password. I also selected SHA as a mode of encrypting the password, and left the domain restrictions blank. Unfortunately when I try to connect to (http://localhost:8081/manage), I still get the same problem. It won't accept my password. I tried to look for other inituser files on my computer, but I do not see any. I am really stuck. I don't know how to get plone or zope to work on my computer. Please help. If you help me, I promise that I will write the details into a wiki somewhere. The 'inituser' file is consumed when Zope starts; if you still see the file on the filesystem, then Zope isn't running from the directory where you think it is, or else doesn't have access to remove the file. You can create an 'access' file in the instance home (looks like '/var/lib/zope2.8/plone-site' in your case), with an emergency user ID and password; you can even leave the password in plain text while testing, e.g.: $ cat /var/lib/zope2.8/plone-site/access emergency:123 You should then be able to log in as that user after restarting Zope; that user has limited powers, mostly involving creating normal users and setting up user folders. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDeytI+gerLs4ltQ4RApgQAJ9RiBlGao6LTE4E4h0Mr5PbGIzLDwCfce/4 ohaYaR6Es9aHbLvEUEr0bns= =ph0Q -END 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] Installing Zope on Ubuntu Breezy
Try to do a file named access in your c:\zopesite with, in this file, the line (login and password): admin:toto Load, run zope and try again. -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Weiers Coetser Envoyé : mercredi 16 novembre 2005 12:50 À : zope@zope.org Objet : [Zope] Installing Zope on Ubuntu Breezy Hi I wonder if anybody could tell me what I am doing wrong. I installed zope 2.8, and plone 2.1 via synaptic. I also installed plone-site via synaptic. (When I installed this I was promted for a username and password) Now when I access: http://localhost:8081, I get a quickstart screen. When I click on the link to the management interface (http://localhost:8081/manage) I am promted for user name and password. It does not accept the username and password that I typed when setting up plone-site. I've been googling, and at one place there was an explanation that zope sets up an inituser file with a username and password. I found such a file under /var/lib/zope2.8/instance/plone-site/ with the following information in it: admin:{SHA}JPpU/BsXGIcv7LQrwgMiOS25PB4= I've tried to use this in various ways: username: admin password: {SHA}JPpU/BsXGIcv7LQrwgMiOS25PB4= or username: {SHA}JPpU password: BsXGIcv7LQrwgMiOS25PB4= That did not work. I tried to create a new inituser account using the following command [EMAIL PROTECTED]:/usr/lib/zope2.8/bin$ sudo python zpasswd.py inituser and then got the following feedback: The programme asked me for a username and a password, to repeat the password. I also selected SHA as a mode of encrypting the password, and left the domain restrictions blank. Unfortunately when I try to connect to (http://localhost:8081/manage), I still get the same problem. It won't accept my password. I tried to look for other inituser files on my computer, but I do not see any. I am really stuck. I don't know how to get plone or zope to work on my computer. Please help. If you help me, I promise that I will write the details into a wiki somewhere. Thanks Weiers ___ 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 ) * Le contenu de ce courriel et ses eventuelles pièces jointes sont confidentiels. Ils s'adressent exclusivement à la personne destinataire. Si cet envoi ne vous est pas destiné, ou si vous l'avez reçu par erreur, et afin de ne pas violer le secret des correspondances, vous ne devez pas le transmettre à d'autres personnes ni le reproduire. Merci de le renvoyer à l'émetteur et de le détruire. Attention : L'Organisme de l'émetteur du message ne pourra être tenu responsable de l'altération du présent courriel. Il appartient au destinataire de vérifier que les messages et pièces jointes reçus ne contiennent pas de virus. Les opinions contenues dans ce courriel et ses éventuelles pièces jointes sont celles de l'émetteur. Elles ne reflètent pas la position de l'Organisme sauf s'il en est disposé autrement dans le présent courriel. ** ___ 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] Passing Parameters to External Methods
Hello. I am trying to use the Python version of the PHP script written by Jason Rust called 'HTML_ToPDF.php'. I have represented this script using an External Method since it uses functions, such as open, which cannot be used in Zope Python scripts for security reasons. The python code for the script consists of a class definition and so I have had to create a python function which instantiates an object of this class. However, I am having toruble passing parameters to this function which are needed by the class constructor to instantiate an object of this class. Can parameters be passed to external methods? Whenever I try to pass parameters to function 'createHtmlToPdf', Zope returns an error stating that no such function exists. Other on the hand, if I pass no parameters this call is successful but the init function fails complaining that three parameters are expected. I have provided a snippet of my code below. Any help would be greatly appreciated. Thanks. - Asad def createHtmlToPdf(in_htmlFile, in_domain, in_pdfFile): return html2pdf(in_htmlFile, in_domain, in_pdfFile) # This is based on a php script (c) Jason Rust [EMAIL PROTECTED] # See that script for licensing # Convert an HTML file to a PDF file using html2ps and ps2pdf from tempfile import gettempdir, mkstemp import os import re from re import IGNORECASE, DOTALL from copy import copy class html2pdf: def __init__(self, in_htmlFile, in_domain, in_pdfFile = None): Constructor in_htmlFile The full path to the html file to convert in_domain The default domain name for images that have a relative path in_pdfFile (optional) The full path to the pdf file to output. If not given then we create a temporary name. ___ 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] convert DTML Document to a folder.
Hello, Is it possible to convert a DTML Document to a folder, Both with properties ? I use Zope 2.8.4. Regards, Martin Koekenberg ___ 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] convert DTML Document to a folder.
--On 16. November 2005 15:35:14 +0100 Martin Koekenberg [EMAIL PROTECTED] wrote: Hello, Is it possible to convert a DTML Document to a folder, Both with properties ? I use Zope 2.8.4. Converting a piece of textual content to a folder makes no sense. WHat are you trying to do??? -aj pgpznKHR7a6Sg.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] Render a string as tal
Hi, I'm not sure I entirely understand the goal here either, but you may want to look into the path method. Here's what I recently had to use it for. I'm building a little photo album application for my sister, it supports nested albums. I had a page template called view I was using as a method, but wanted to logically group the actions specific to a single image into a folder. So, I have a folder called view. When an image is viewed the URL looks like /some_album/some_pic.jpg/view/?display=large If I want to do operations or locate properties on some_pic.jpg I extract that part of the URL, and then pass it to the path function. The code looks like this: span tal:define=imgName python:request['URL2'][len(request['URL3']+1:] span tal:define=global imgObj python:path('here/'+imgName)/span /span HTH, Alan On 11/16/05, Chris Withers [EMAIL PROTECTED] wrote: Mark Gibson wrote: However, what I'm looking for is being able to take a string such as 'div tal:content=here/absolute_urlThe url/div' and be able to evaluate the TALES expression in the string to produced something like: 'divhttp://mydomain.com/theUrl/div' Any chance there's a recipe for this? If you can explain to us why you think you want to do that, we can likely tell you what you really want to be doing ;-) Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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] Re: Zope 2.8.4 compilation error
David H escribió: Gusti Gonzalez wrote: Hi, I am having the following error when compiling Zope: --- /usr/bin/python /infra/portal/Zope-2.8.4-final/setup.py \ build --build-base=/infra/portal/Zope-2.8.4-final/build-base/python-2.3 --build-lib=/infra/portal/Zope-2.8.4-final/build-base/python-2.3/build-lib --build-scripts=/infra/portal/Zope-2.8.4-final/build-base/python-2.3/build-scripts --build-temp=/infra/portal/Zope-2.8.4-final/build-base/python-2.3/build-temp running build running build_py running build_ext building 'AccessControl.cAccessControl' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -IExtensionClass -IAcquisition -I/usr/include/python2.3 -c AccessControl/cAccessControl.c -o /infra/portal/Zope-2.8.4-final/build-base/python-2.3/build-temp/AccessControl/cAccessControl.o En el fichero incluído de /usr/lib/gcc-lib/i486-linux/3.3.5/include/syslimits.h:7, de /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:11, de /usr/include/python2.3/Python.h:19, de ExtensionClass/ExtensionClass.h:83, de AccessControl/cAccessControl.c:51: /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:122:75: limits.h: No existe el fichero o el directorio En el fichero incluído de ExtensionClass/ExtensionClass.h:83, de AccessControl/cAccessControl.c:51: /usr/include/python2.3/Python.h:28:19: stdio.h: No existe el fichero o el directorio /usr/include/python2.3/Python.h:30:5: #error Python.h requires that stdio.h define NULL. /usr/include/python2.3/Python.h:33:20: string.h: No existe el fichero o el directorio /usr/include/python2.3/Python.h:34:19: errno.h: No existe el fichero o el directorio /usr/include/python2.3/Python.h:36:20: stdlib.h: No existe el fichero o el directorio /usr/include/python2.3/Python.h:39:20: unistd.h: No existe el fichero o el directorio /usr/include/python2.3/Python.h:46:20: assert.h: No existe el fichero o el directorio ... ... and the error list goes on. --- but the limits.h file does exist at the above mentioned location My environment is: Debian 3.1 (stable) dpkg -l | grep python ii python 2.3.5-2An interactive high-level object-oriented la ii python-ldap2.0.4-1A LDAP interface module for Python. [dummy p ii python2.3 2.3.5-3An interactive high-level object-oriented la ii python2.3-dev 2.3.5-3Header files and a static library for Python ii python2.3-ldap 2.0.4-1A LDAP interface module for Python 2.3 dpkg -l | grep gcc ii gcc3.3.5-3The GNU C compiler ii gcc-3.33.3.5-13 The GNU C compiler ii gcc-3.3-base 3.3.5-13 The GNU Compiler Collection (base package) ii libgcc13.4.3-13 GCC support library dpkg -l | grep make ii ant1.6.2-2Java based build tool like make ii libant1.6-java 1.6.2-2.1 Java based build tool like make -- library ii make 3.80-9 The GNU version of the make utility. ii makedev2.3.1-77 creates device files in /dev Any ideas what can be missing from my installation? Best regards, Gustavo. Gustavo, Did you download the full (developers) version of python from python.org? If not you'll need to to compile Zope. David I installed the python2.3-dev debian package with apt-get install. Are there any other debian packages that provides all missing parts? I would rather not install it outside of the apt. ___ 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] Passing Parameters to External Methods
On Wed, Nov 16, 2005 at 09:30:22AM -0500, Asad Habib wrote: Can parameters be passed to external methods? Certainly. Whenever I try to pass parameters to function 'createHtmlToPdf', Zope returns an error stating that no such function exists. Can you provide us with the complete traceback? -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Passing Parameters to External Methods
Asad Habib wrote: Hello. I am trying to use the Python version of the PHP script written by Jason Rust called 'HTML_ToPDF.php'. I have represented this script using an External Method since it uses functions, such as open, which cannot be used in Zope Python scripts for security reasons. The python code for the script consists of a class definition and so I have had to create a python function which instantiates an object of this class. However, I am having toruble passing parameters to this function which are needed by the class constructor to instantiate an object of this class. Can parameters be passed to external methods? Whenever I try to pass parameters to function 'createHtmlToPdf', Zope returns an error stating that no such function exists. Other on the hand, if I pass no parameters this call is successful but the init function fails complaining that three parameters are expected. I have provided a snippet of my code below. Any help would be greatly appreciated. Thanks. def createHtmlToPdf(in_htmlFile, in_domain, in_pdfFile): return html2pdf(in_htmlFile, in_domain, in_pdfFile) Functions in external methods generally start with the 'self' parameter. Your description of the error messages doesn't entirely support my supposition, but you could try it. --jcc -- Building Websites with Plone http://plonebook.packtpub.com/ Enfold Systems, LLC http://www.enfoldsystems.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] Passing Parameters to External Methods
Hi Cameron. You are right but the self parameter is implicitly passed. - Asad On Wed, 16 Nov 2005, J Cameron Cooper wrote: Asad Habib wrote: Hello. I am trying to use the Python version of the PHP script written by Jason Rust called 'HTML_ToPDF.php'. I have represented this script using an External Method since it uses functions, such as open, which cannot be used in Zope Python scripts for security reasons. The python code for the script consists of a class definition and so I have had to create a python function which instantiates an object of this class. However, I am having toruble passing parameters to this function which are needed by the class constructor to instantiate an object of this class. Can parameters be passed to external methods? Whenever I try to pass parameters to function 'createHtmlToPdf', Zope returns an error stating that no such function exists. Other on the hand, if I pass no parameters this call is successful but the init function fails complaining that three parameters are expected. I have provided a snippet of my code below. Any help would be greatly appreciated. Thanks. def createHtmlToPdf(in_htmlFile, in_domain, in_pdfFile): return html2pdf(in_htmlFile, in_domain, in_pdfFile) Functions in external methods generally start with the 'self' parameter. Your description of the error messages doesn't entirely support my supposition, but you could try it. --jcc -- Building Websites with Plone http://plonebook.packtpub.com/ Enfold Systems, LLC http://www.enfoldsystems.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 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] Re: Installing Zope on Ubuntu Breezy
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Weiers Coetser wrote: You can create an 'access' file in the instance home (looks like '/var/lib/zope2.8/plone-site' in your case), with an emergency user ID and password; you can even leave the password in plain text while testing, e.g.: $ cat /var/lib/zope2.8/plone-site/access emergency:123 You should then be able to log in as that user after restarting Zope; that user has limited powers, mostly involving creating normal users and setting up user folders. It's just not working. I created the access file, but I am still asked for a password that I cannot seem to provide. I've now uninstalled all of Plone and All of Zope, and used Synaptic to try to install only Zope. I installed the Zope Sandbox, but I still cannot get it launched. Now I get The connection was refused when attempting to contact local host 8081. I tried to create an instance using ./bin/runzope command, but every time I got error messages (I could not locate a ./bin/runzope anywhere except in the /var/lib/zope2.9/instances/sandbox directory. Am I getting the impression that Ubuntu is doing a very non-standard install of Zope? I'm sorry that I'm complaining. I've spent more than 5 hours trying to solve this now. I am very new to linux and I am learning a lot (even in the process of solving this problem). The environment is quite different to Windows, where I downloaded Plone and had it working in a few minutes. I just don't want to keep dual-booting if I can do it right here in my native filesystem. I don't normally install the packaged versions. Here is what I just did: $ sudo apt-get update $ sudo apt-get install zope2.8 $ sudo apt-get install plone2.1 This fails: Couldn't find package plone2.1 $ sudo apt-get install plone-site which wants a lot of zope2.7 packages installed. I don't know how you were able to install plone2.1 via synaptic. Here is something else to try: $ sudo /var/lib/zope2.8/plone-site/bin/zopectl zope adduser admin 123 zope restart You should then be able to log in as 'admin' with password '123'. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDe2pR+gerLs4ltQ4RAgs+AJ9LtCekeacDkemFeMNfwr4yRTsd6gCgza2H GJUFTduNgo5VHle2T1rtJ4s= =E0Cl -END 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] Passing Parameters to External Methods
Asad Habib wrote: Hi Cameron. You are right but the self parameter is implicitly passed. It is implicitly passed, but must be explicitly defined:: def createHtmlToPdf(self, in_htmlFile, in_domain, in_pdfFile): return html2pdf(in_htmlFile, in_domain, in_pdfFile) When you say:: context.createHtmlToPdf(in_htmlFile, in_domain, in_pdfFile) Python ends up calling this method/function something like:: createHtmlToPdf(context, in_htmlFile, in_domain, in_pdfFile) Your message signature must agree. --jcc On Wed, 16 Nov 2005, J Cameron Cooper wrote: Asad Habib wrote: Hello. I am trying to use the Python version of the PHP script written by Jason Rust called 'HTML_ToPDF.php'. I have represented this script using an External Method since it uses functions, such as open, which cannot be used in Zope Python scripts for security reasons. The python code for the script consists of a class definition and so I have had to create a python function which instantiates an object of this class. However, I am having toruble passing parameters to this function which are needed by the class constructor to instantiate an object of this class. Can parameters be passed to external methods? Whenever I try to pass parameters to function 'createHtmlToPdf', Zope returns an error stating that no such function exists. Other on the hand, if I pass no parameters this call is successful but the init function fails complaining that three parameters are expected. I have provided a snippet of my code below. Any help would be greatly appreciated. Thanks. def createHtmlToPdf(in_htmlFile, in_domain, in_pdfFile): return html2pdf(in_htmlFile, in_domain, in_pdfFile) Functions in external methods generally start with the 'self' parameter. Your description of the error messages doesn't entirely support my supposition, but you could try it. --jcc -- Building Websites with Plone http://plonebook.packtpub.com/ Enfold Systems, LLC http://www.enfoldsystems.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 ) -- Building Websites with Plone http://plonebook.packtpub.com/ Enfold Systems, LLC http://www.enfoldsystems.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] cookie crumbler and error messages
Hi all, I'm using CookieCrumbler on a project which sits in / on one server, and /project in another. I'd like to secure a part of the site through *.metadata files so that users of a certain role can't access it. this is done and works well. however, when they try to access a part of the site which is secured, they're: a- given a log in popup prompt which they don't have the details for. and b- when they click cancel, they're given the dreaded zope barf screen. how can i either just redirect them to loggin_form or change the standard_error_message template to pick up these errors. i've tried changing the template that is in my zmi root, but none of the changes affect the screen when it appears, so i have no idea where to go from here. many thanks for reading! paul ___ 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] Passing Parameters to External Methods
On Wed, Nov 16, 2005 at 11:26:10AM -0600, J Cameron Cooper wrote: Asad Habib wrote: Hi Cameron. You are right but the self parameter is implicitly passed. It is implicitly passed, but must be explicitly defined:: def createHtmlToPdf(self, in_htmlFile, in_domain, in_pdfFile): return html2pdf(in_htmlFile, in_domain, in_pdfFile) When you say:: context.createHtmlToPdf(in_htmlFile, in_domain, in_pdfFile) Python ends up calling this method/function something like:: createHtmlToPdf(context, in_htmlFile, in_domain, in_pdfFile) Your message signature must agree. No, it's optional. If you don't inlude self in the signature, it's not passed. You can see this in the source of ExternalMethod.py: if ((self._v_func_code.co_argcount- len(self._v_func_defaults or ()) - 1 == len(args)) and self._v_func_code.co_varnames[0]=='self'): return f(self.aq_parent.this(), *args, **kw) I think the problem lies elsewhere. Traceback? -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Passing Parameters to External Methods
Paul Winkler wrote: On Wed, Nov 16, 2005 at 11:26:10AM -0600, J Cameron Cooper wrote: Asad Habib wrote: Hi Cameron. You are right but the self parameter is implicitly passed. It is implicitly passed, but must be explicitly defined:: def createHtmlToPdf(self, in_htmlFile, in_domain, in_pdfFile): return html2pdf(in_htmlFile, in_domain, in_pdfFile) When you say:: context.createHtmlToPdf(in_htmlFile, in_domain, in_pdfFile) Python ends up calling this method/function something like:: createHtmlToPdf(context, in_htmlFile, in_domain, in_pdfFile) Your message signature must agree. No, it's optional. If you don't inlude self in the signature, it's not passed. You can see this in the source of ExternalMethod.py: if ((self._v_func_code.co_argcount- len(self._v_func_defaults or ()) - 1 == len(args)) and self._v_func_code.co_varnames[0]=='self'): return f(self.aq_parent.this(), *args, **kw) I think the problem lies elsewhere. Traceback? I thought I'd seen that work before, but didn't want to dip into asides. Oh well. There goes my guess. --jcc -- Building Websites with Plone http://plonebook.packtpub.com/ Enfold Systems, LLC http://www.enfoldsystems.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] ZopeTestCase.Functional and sessions?
Hi, I've been using CMFTestCase and ZopeTestCase for integration tests and mostly finding it a pretty nice system to work with - I can finally test all the glue code in my skin scripts, which has always been a big blind spot in my tests. But one snag I've run into: ZopeTestCase.utils.setupCoreSessions() works fine with regular ZopeTestCase and CMFTestCase tests; but if I create a test derived from ZopeTestCase.Functional, when I call self.publish() the thread that handles the publishing (it is another thread, right?) has its own app.REQUEST which doesn't contain a SESSION object. The workaround is obvious: 1) Any script that uses sessions should only be tested with other techniques than publish(). 2) If you really want to test something about that script with publish(), the script should be coded so that it works around the possible lack of REQUEST.SESSION. But it would be nice if I didn't have to enforce that. #2 means that when I call publish() I am testing a code path that never actually comes up in production, so that doesn't seem like much of a real integration test. Am I missing something? -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZopeTestCase.Functional and sessions?
One correction: On Wed, Nov 16, 2005 at 01:12:37PM -0500, Paul Winkler wrote: but if I create a test derived from ZopeTestCase.Functional, when I call self.publish() the thread that handles the publishing (it is another thread, right?) has its own app.REQUEST which doesn't contain a SESSION object. That was a bad guess; there's no threading going on there of course, I should've just read the source. What happens is that publish does a transaction.commit(), thus implicitly starting a new request. So the problem remains the same: as far as I can tell there's no way for pages tested with publish() to make use of sessions. -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] HTML to PDF.
Does Anyone has this product in a production environment? It's easy to configure and stuff? We currently are working with the reportlab, but it's painful to change the document... :( I need a product which generates a PDF file on the fly. Any other application or suggestion will be welcome. Thanks, Fernando Lujan ___ 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] HTML to PDF.
On Wednesday 16 November 2005 02:07 pm, Fernando Lujan wrote: Does Anyone has this product in a production environment? It's easy to configure and stuff? We currently are working with the reportlab, but it's painful to change the document... :( I need a product which generates a PDF file on the fly. Any other application or suggestion will be welcome. I know of Prince, which translates any xml+css document into a pdf. Very nice, but it isn't free. This isn't an ad, but we've demoed it, and I believe it very easy to integrate into Zope. Here's the url: http://www.princexml.com/ Andy Thanks, Fernando Lujan ___ 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] HTML to PDF.
We use htmldoc. It's a bit old and a bit grotty, but it does the job. On Wed, 16 Nov 2005, Fernando Lujan wrote: Does Anyone has this product in a production environment? It's easy to configure and stuff? We currently are working with the reportlab, but it's painful to change the document... :( I need a product which generates a PDF file on the fly. Any other application or suggestion will be welcome. Thanks, Fernando Lujan ___ 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] HTML to PDF.
Some discussion on this general area last week (not so much experience - at least on my part - but options) http://mail.zope.org/pipermail/zope/2005-November/162812.html Does Anyone has this product in a production environment? It's easy to configure and stuff? We currently are working with the reportlab, but it's painful to change the document... :( I need a product which generates a PDF file on the fly. Any other application or suggestion will be welcome. Thanks, Fernando Lujan ___ 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] conflicts, sessions, and programming best practices guidelines
Chris, I am aware that using ZEO to back session database is likely to increase the opportunity for conflicts, but using a single session database seems to be reaquired if you want, as we do, to distribute out interactive application acrosss a cluster of processors cleanly. Under our current approach, we have multiple Zopes running on multiple machines, all referencing a shared database of session variables. This allows a HTTP request to be blindly distributed to any of the machines. Given the conflict problems, we may need to rethink this simplistic architecture. On Tue, 15 Nov 2005, Chris McDonough wrote: On Nov 15, 2005, at 5:54 PM, Dennis Allison wrote: Has anyone prepared a set of best practice guidelines on the techniques to use to minimize conflicts? It is becoming clear that we need to do to refactor some of our code to get us out of our current conflict pickle. A quick google produced lots of commentary but nothing I could hand to our programmers as guidelines. Nothing in general except the (probably too general) attempt not to allow one process/thread to write to the same object at the same time as another process/thread. One tip, since you've told us you use sessions heavily: using ZEO to back your session database provides more opportunity for conflicts than if you used a normal Zope storage. This is because: - the opportunity for conflict naturally grows as transaction time increases and using a ZEO storage rather than a local storage adds latency to the total transaction time that would not otherwise exist. - you have n processes attempting to write to essentially the same objects at the same time when you use a shared ZEO sessioning database. If these were instead local databases, each process would only compete with itself (between all of its threads). I tend to try to use local sessioning databases backed by tempstorage plus a frontend load balancer that allows for cookie-based session affinity (Pound). - 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] conflicts, sessions, and programming best practices guidelines
On Nov 16, 2005, at 6:18 PM, Dennis Allison wrote: Chris, I am aware that using ZEO to back session database is likely to increase the opportunity for conflicts, but using a single session database seems to be reaquired if you want, as we do, to distribute out interactive application acrosss a cluster of processors cleanly. Under our current approach, we have multiple Zopes running on multiple machines, all referencing a shared database of session variables. This allows a HTTP request to be blindly distributed to any of the machines. Given the conflict problems, we may need to rethink this simplistic architecture. Sure. The alternative solutions are: - session affinity load balancing solutions which always send the user to the same appserver instance across some number of requests based on a cookie value or the remote IP address. - session data manager implementations that don't use ZODB. Tres Seaver coded up a drop-in SDM implementation that used MySQL although I'm not sure that it was able to be released OSS at the time. A quick Google search doesn't turn up anything, so it's hard to tell. - 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] conflicts, sessions, and programming best practices guidelines
Changing the architecture will likely get you the most bang but note also that there are a few knobs that you can turn on the transient object container UI that may limit the number of conflicts (in the temp_folder/session_data_container): - Data object timeout value -- the timeout value in minutes.. make this higher. - Timeout resolution -- the timeout resolution in seconds.. make this higher. You can also turn off inband housekeeping of session data by calling the method disableInbandHousekeeping on a transient object container. At that point, sessions will continue to work properly but old session data won't be garbage collected and you will need to do this every so often by calling the housekeep method on TOC. See this written by dunny about conflicts and sessions (although this was written before MVCC): http://www.plope.com/Members/dunny/conflicts/view HTH, - C On Nov 16, 2005, at 6:18 PM, Dennis Allison wrote: Chris, I am aware that using ZEO to back session database is likely to increase the opportunity for conflicts, but using a single session database seems to be reaquired if you want, as we do, to distribute out interactive application acrosss a cluster of processors cleanly. Under our current approach, we have multiple Zopes running on multiple machines, all referencing a shared database of session variables. This allows a HTTP request to be blindly distributed to any of the machines. Given the conflict problems, we may need to rethink this simplistic architecture. On Tue, 15 Nov 2005, Chris McDonough wrote: On Nov 15, 2005, at 5:54 PM, Dennis Allison wrote: Has anyone prepared a set of best practice guidelines on the techniques to use to minimize conflicts? It is becoming clear that we need to do to refactor some of our code to get us out of our current conflict pickle. A quick google produced lots of commentary but nothing I could hand to our programmers as guidelines. Nothing in general except the (probably too general) attempt not to allow one process/thread to write to the same object at the same time as another process/thread. One tip, since you've told us you use sessions heavily: using ZEO to back your session database provides more opportunity for conflicts than if you used a normal Zope storage. This is because: - the opportunity for conflict naturally grows as transaction time increases and using a ZEO storage rather than a local storage adds latency to the total transaction time that would not otherwise exist. - you have n processes attempting to write to essentially the same objects at the same time when you use a shared ZEO sessioning database. If these were instead local databases, each process would only compete with itself (between all of its threads). I tend to try to use local sessioning databases backed by tempstorage plus a frontend load balancer that allows for cookie-based session affinity (Pound). - 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 )
[Zope] question about Zope capabilities
Hi, I'm brand new on this list and writing to get a bit of insight here. We had someone design a web site using Zope, and very pleased with it. That person is no longer with us and I'm not at all a savvy back-end person, let alone Zope-savvy. At this point, the site is great for managing content via the database. However, as far as I can see pretty much all the content needs to fit into templates, with the result that there appears to be little room for setting up a more free-form looking page that can incorporate graphics in a freer, more visual way. Sure, we can add images and any HTML we like, but they are confined to the areas designated by the templates. In other words, the site tends to look like a database-driven website - not unpleasing by any means, but I'm wondering if Zope lends itself to more creative looking pages that departs from the templated look. At zope.org there is a list of sites using Zope that I'll have a look at, but I'd be appreciative of any feedback. We are thinking of hiring someone with more graphics than back-end experience and I'd like to hear if anyone thinks Zope is adaptable to give someone plenty of creative expression. Thanks! Rich ___ 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] question about Zope capabilities
On Wed, 16 Nov 2005 16:49:47 -0800 Rich Robinson [EMAIL PROTECTED] wrote: At this point, the site is great for managing content via the database. However, as far as I can see pretty much all the content needs to fit into templates, with the result that there appears to be little room for setting up a more free-form looking page that can incorporate graphics in a freer, more visual way. Well, *ANY* system that generates a web page is going to have that problem. Yes, you *CAN* make it more free form, but freedom carries responsibility -- the code will be much more complicated. And of course, Humans are smart. Your readers will eventually figure out the trick no matter how smart your code is (that is, they will be able to predict its behavior, thus find it unsurprising, hence dull compared to pages designed by Humans). That's just life, really. Hand crafted is recognizeable, and machine generated is never going to be it. Sure, we can add images and any HTML we like, but they are confined to the areas designated by the templates. In other words, the site tends to look like a database-driven website - not unpleasing by any means, but I'm wondering if Zope lends itself to more creative looking pages that departs from the templated look. *However*, the layout of the page can itself be database driven (whether we are talking about an external RDBMS or the ZODB within Zope). It is entirely possible to design a page in which the structure itself varies according to the content. But, as I said above, this is more complicated. I have pulled background images from a randomly-ordered list, based on the date or time of viewing (this is much more scalable than picking randomly on each pull, because it means that ALL people viewing the page at the same time will need the SAME image, so it can be cached). I have written markup structured to build words out of images, based on the content of the words (an alternative to using special fonts, which is a bit more wasteful of bandwidth, but allows *any* kind of font). I have written Zope table-layouts that cascaded in a zigzag pattern down the page, distributing the content in an apparently out of square layout (actually it really is in squares, but they partially overlap). I wrote a table layout generator that makes clock patterns with 12 table cels arranged in a circle. And of course, you can always intersperse hand crafted pages with data-driven content pages, or combine both on the same page. -- Terry Hancock ([EMAIL PROTECTED]) Anansi Spaceworks http://www.AnansiSpaceworks.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] HTML to PDF.
--On 16. November 2005 13:38:03 -0800 Dennis Allison [EMAIL PROTECTED] wrote: We use htmldoc. It's a bit old and a bit grotty, but it does the job. For a recent project we are using csstoxslto to convert HTML to XSL-FO. Using an XSL-FO processor you can produce RTF, PDF etc. from a single source. I recommended using the commercial Xinc processor for PDF over the free Apache FOP processor (which sucks totally). -aj pgpndO4G3Iswb.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-DB] DCOracle2 for Python2.4
I have an application which uses DCOracle2. I wonder if anyone has built dco2.pyd for Python 2.4. The 2.3 version built by Mikey at Zope has been working great. Matthew ___ Zope-DB mailing list Zope-DB@zope.org http://mail.zope.org/mailman/listinfo/zope-db