thank you so much thomas.. that was really very helpful. I&#39;m starting to get the picture.&nbsp; As you have said, i am the data from the database not from the database. But i cannot understand the below Link code..<br><br>&quot;&lt;a href=&quot;http:/link/to/my/descrip<div id="1ern" class="ArwC7c ckChnd">
tion/template/?my_recnum=&lt;dtml-var drug_name_recnum&gt;&quot;&gt;&lt;dtml-var my_drug_name&gt;&lt;/a&gt;&quot;<br><br>Can you please elaborate on the code,, Am especially concerned about understanding the below line of code..<br>
&nbsp;&quot;a href=&quot;http:/link/to/my/descrip
<div id="1ern" class="ArwC7c ckChnd">tion/template/?my_recnum=&lt;dtml-var drug_name_recnum&gt;&quot;<br><br>The example youo showed aptly suits my need. I use CSS and HTML i don&#39;t use pagetemplates. If you are willing can you please send me the code of how you are dynamically &lt;a href&gt;&#39;ing&nbsp; the individual subjects. That will be more helpful.<br>
<br>Thanks again. ;-)  <br></div><br><br></div><br><br><div class="gmail_quote">On Fri, Apr 11, 2008 at 9:30 PM,  &lt;<a href="mailto:zope-request@zope.org">zope-request@zope.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Send Zope mailing list submissions to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:zope@zope.org">zope@zope.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://mail.zope.org/mailman/listinfo/zope" target="_blank">http://mail.zope.org/mailman/listinfo/zope</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:zope-request@zope.org">zope-request@zope.org</a><br>
<br>
You can reach the person managing the list at<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:zope-owner@zope.org">zope-owner@zope.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of Zope digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
 &nbsp; 1. Re: Conditional dtml-boundary in dtml-sendmail (Josef Meile)<br>
 &nbsp; 2. Re: i18n/L10n support in zope2 (Maurits van Rees)<br>
 &nbsp; 3. Re: Problem with zopectl debug (Manuel Vazquez Acosta)<br>
 &nbsp; 4. Upgrade to 2.7.2 results in all content unavailable (Wes Modes)<br>
 &nbsp; 5. retrieving a single column from database and giving it as<br>
 &nbsp; &nbsp; &nbsp;hyper link fetching respective data (member madhangc)<br>
 &nbsp; 6. Re: Upgrade to 2.7.2 results in all content unavailable<br>
 &nbsp; &nbsp; &nbsp;(Andreas Jung)<br>
 &nbsp; 7. Re: retrieving a single column from database and giving it &nbsp; &nbsp; &nbsp; &nbsp;as<br>
 &nbsp; &nbsp; &nbsp;hyper link fetching respective data (Andreas Jung)<br>
 &nbsp; 8. Re: Re: i18n/L10n support in zope2 (harshad behere)<br>
 &nbsp; 9. the grand reunion (Yuri)<br>
 &nbsp;10. Re: ExternalMethod - add new parameter (rishi pathak)<br>
 &nbsp;11. Re: Conditional dtml-boundary in dtml-sendmail (Chris Withers)<br>
 &nbsp;12. Re: ExternalMethod - add new parameter (Chris Withers)<br>
 &nbsp;13. Re: Conditional dtml-boundary in dtml-sendmail (Chris Withers)<br>
 &nbsp;14. Re: the grand reunion (Raphael Ritz)<br>
 &nbsp;15. Re: Upgrade to 2.7.2 results in all content unavailable (Jonathan)<br>
 &nbsp;16. Re: Help writing test where bobobase_modification_time<br>
 &nbsp; &nbsp; &nbsp;changes (Peter Bengtsson)<br>
 &nbsp;17. Re: Conditional dtml-boundary in dtml-sendmail (Josef Meile)<br>
 &nbsp;18. Re: Upgrade to 2.7.2 results in all content unavailable<br>
 &nbsp; &nbsp; &nbsp;(Martijn Jacobs)<br>
 &nbsp;19. Re: Conditional dtml-boundary in dtml-sendmail (Josef Meile)<br>
 &nbsp;20. Re: [Plone-developers] the grand reunion (robert rottermann)<br>
 &nbsp;21. Re: retrieving a single column from database and giving it as<br>
 &nbsp; &nbsp; &nbsp;hyper link fetching respective data (Thomas Bennett)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 10 Apr 2008 20:38:38 +0200<br>
From: Josef Meile &lt;<a href="mailto:jmeile@hotmail.com">jmeile@hotmail.com</a>&gt;<br>
Subject: [Zope] Re: Conditional dtml-boundary in dtml-sendmail<br>
To: <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: &lt;<a href="mailto:47FE5EAE.8000202@hotmail.com">47FE5EAE.8000202@hotmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed<br>
<br>
&gt; The &#39;email&#39; module is part of the standard Python distribution since<br>
&gt; generations.<br>
Well, I said &quot;allowing or installing&quot;. I wasn&#39;t sure if it was and with<br>
allowing I meant by using allow_module or allow_class. I guess you can&#39;t<br>
just use this module without removing security assertions. I will try to<br>
confirm this.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 10 Apr 2008 20:07:30 +0000 (UTC)<br>
From: Maurits van Rees &lt;<a href="mailto:m.van.rees@zestsoftware.nl">m.van.rees@zestsoftware.nl</a>&gt;<br>
Subject: [Zope] Re: i18n/L10n support in zope2<br>
To: <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: &lt;ftls22$6vc$<a href="mailto:2@ger.gmane.org">2@ger.gmane.org</a>&gt;<br>
<br>
harshad behere, on 2008-04-10:<br>
&gt; I also found workaound for MSIE behaviour, include heading call<br>
&gt; &quot;X-Is-Fallback-For: ?????\n&quot; in your .po file. For e.g -<br>
&gt; &quot;X-Is-Fallback-For: de-de\n&quot;.<br>
<br>
Ah yes, that is the correct solution here indeed.<br>
<br>
&gt; After making change &nbsp;and updating sample page template - (English as<br>
&gt; primary language for both browsers)<br>
&gt;<br>
&gt;&lt;html&gt;<br>
&gt;&lt;body&gt;<br>
&gt; English -<br>
&gt;&lt;span i18n:domain=&quot;English&quot; i18n:translate=&quot;&quot;&gt;<br>
&gt; Reload this catalog<br>
&gt;&lt;/span&gt;<br>
&gt;&lt;br&gt;<br>
&gt; German -<br>
&gt;&lt;span i18n:domain=&quot;Germany&quot; i18n:translate=&quot;&quot;&gt;<br>
&gt; Reload this catalog<br>
&gt;&lt;/span&gt;<br>
&gt;&lt;br&gt;<br>
&gt; Czech -<br>
&gt;&lt;span i18n:domain=&quot;Czech&quot; i18n:translate=&quot;&quot;&gt;<br>
&gt; Reload this catalog<br>
&gt;&lt;/span&gt;<br>
&gt;&lt;br&gt;<br>
&gt;&lt;/body&gt;<br>
&gt;&lt;/html&gt;<br>
<br>
Huh? You now state languages in the i18n domain. &nbsp;Don&#39;t you mean to<br>
make this three times the same domain and then perhaps add the<br>
i18n:target en/de/cs?<br>
<br>
--<br>
Maurits van Rees | <a href="http://maurits.vanrees.org/" target="_blank">http://maurits.vanrees.org/</a><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Work | <a href="http://zestsoftware.nl/" target="_blank">http://zestsoftware.nl/</a><br>
&quot;This is your day, don&#39;t let them take it away.&quot; [Barlow Girl]<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 10 Apr 2008 23:26:23 -0400<br>
From: Manuel Vazquez Acosta &lt;<a href="mailto:mva.led@gmail.com">mva.led@gmail.com</a>&gt;<br>
Subject: Re: [Zope] Problem with zopectl debug<br>
To: Dieter Maurer &lt;<a href="mailto:dieter@handshake.de">dieter@handshake.de</a>&gt;<br>
Cc: Zope user list &lt;<a href="mailto:zope@zope.org">zope@zope.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:47FEDA5F.2010604@gmail.com">47FEDA5F.2010604@gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
Dieter Maurer wrote:<br>
&gt; Manuel Vazquez Acosta wrote at 2008-4-7 15:21 -0400:<br>
&gt;&gt; Dieter Maurer wrote:<br>
&gt;&gt;&gt; That is very strange:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &nbsp; &quot;zopectl debug&quot; uses almost exactly the same startup sequence<br>
&gt;&gt;&gt; &nbsp; as &quot;zopectl fg&quot; (at least until after the configuration).<br>
&gt;&gt;&gt; &nbsp; Thus, if your Zope starts at all, &quot;zopectl debug&quot; should start.<br>
&gt;&gt; ...<br>
&gt;&gt; zopectl fg starts. Would need to see the starting sequence?<br>
&gt;<br>
&gt; Really funny....<br>
&gt;<br>
&gt; Unfortunately, this means that is will be quite difficult<br>
&gt; to find the cause of your problem.<br>
&gt;<br>
&gt; One approach would be to emulate in a pure Python interpreter<br>
&gt; what &quot;zopectl debug&quot; would do for us.<br>
&gt;<br>
&gt; You may try:<br>
&gt;<br>
&gt; &nbsp; &nbsp; bin/zopectl shell # will create a new shell process with the correct environment<br>
&gt; &nbsp; &nbsp; &lt;your_zope_python&gt;<br>
&gt; &nbsp; &nbsp; from Zope2.Startup.run import configure<br>
&gt; &nbsp; &nbsp; configure(&#39;etc/zope.conf&#39;)<br>
&gt; &nbsp; &nbsp; # this is likely to raise the exception you have earlier reported<br>
&gt; &nbsp; &nbsp; from pdb import pm<br>
&gt; &nbsp; &nbsp; pm() # analyse the exception context<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
I will try that. Any thing happens I report back to the list.<br>
<br>
Best regards,<br>
Manuel.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Thu, 10 Apr 2008 21:04:40 -0700<br>
From: Wes Modes &lt;<a href="mailto:wmodes@ucsc.edu">wmodes@ucsc.edu</a>&gt;<br>
Subject: [Zope] Upgrade to 2.7.2 results in all content unavailable<br>
To: <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: &lt;<a href="mailto:47FEE358.9040001@ucsc.edu">47FEE358.9040001@ucsc.edu</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
I upgraded to Zope 2.7.2 and all of my content can&#39;t be seen by Zope.<br>
Honestly I&#39;m not sure what the previous version I was running was (nor<br>
am I sure how to find out).<br>
<br>
Now, every page results in<br>
<br>
Site Error<br>
An error was encountered while publishing this resource.<br>
Resource not found<br>
Sorry, the requested resource does not exist.<br>
Check the URL and try again.<br>
Resource: Zope GET<br>
<br>
There is effectively no more web interface.<br>
<br>
I&#39;ve verified that the database still seems to be there in<br>
[instance]/var/Data.fs and hasn&#39;t been touched since the update.<br>
<br>
I tried going through some of the steps in the Troubleshooting and<br>
Debugging page<br>
<a href="http://www.zope.org/Documentation/Books/ZDG/current/TestingAndDebugging.stx" target="_blank">http://www.zope.org/Documentation/Books/ZDG/current/TestingAndDebugging.stx</a><br>
<br>
I can do a ZPublisher.Zope(&#39;/manage&#39;) in python and see that it returns<br>
a &quot;Resource not found&quot; page.<br>
<br>
Interestingly, my log which was being written to /var/log/zope started<br>
writing to the default location after the install.<br>
<br>
I feel like there isn&#39;t enough here to determine whether there is a bug<br>
or whether I&#39;ve mucked something up myself. &nbsp;But perhaps some gentle<br>
guidance would help me determine whether there is a bug or just my own<br>
ignorance.<br>
<br>
Was there a config file that got overwritten in the update? &nbsp;Where would<br>
it be?<br>
<br>
Perhaps there are some clues in the lines written to the log file upon<br>
startup.<br>
<br>
<br>
Old log file:<br>
<br>
2008-04-10T14:43:08 INFO(0) ZServer HTTP server started at Thu Apr 10<br>
14:43:08 2008<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Hostname: <a href="http://library.ucsc.edu" target="_blank">library.ucsc.edu</a><br>
 &nbsp; &nbsp; &nbsp; &nbsp;Port: 8080<br>
------<br>
2008-04-10T14:43:08 INFO(0) ZServer FTP server started at Thu Apr 10<br>
14:43:08 2008<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Hostname: <a href="http://library.ucsc.edu" target="_blank">library.ucsc.edu</a><br>
 &nbsp; &nbsp; &nbsp; &nbsp;Port: 8021<br>
------<br>
2008-04-10T14:43:08 INFO(0) Zope Set effective user to &quot;zope&quot;<br>
------<br>
2008-04-10T14:43:12 PROBLEM(100) Init Ambiguous name for method of<br>
Products.ZpdfDocument.ZpdfDocument.ZpdfDoc<br>
ument: &quot;manage&quot; != &quot;manage_main&quot;<br>
------<br>
2008-04-10T14:43:12 PROBLEM(100) Init Ambiguous name for method of<br>
Products.ZpdfDocument.ZpdfDocument.ZpdfDoc<br>
ument: &quot;manage&quot; != &quot;manage_editForm&quot;<br>
------<br>
2008-04-10T14:43:12 PROBLEM(100) Init Ambiguous name for method of<br>
Products.ZpdfDocument.ZpdfDocument.ZpdfDoc<br>
ument: &quot;manage&quot; != &quot;manage_editDocument&quot;<br>
------<br>
2008-04-10T14:43:14 INFO(0) ZODB Opening database for mounting:<br>
&#39;146584832_1040950278.401039&#39;<br>
------<br>
2008-04-10T14:43:14 INFO(0) ZODB Mounted database<br>
&#39;146584832_1040950278.401039&#39; at /temp_folder<br>
------<br>
2008-04-10T14:43:14 INFO(0) Zope Ready to handle requests<br>
<br>
<br>
New log file:<br>
<br>
<br>
2008-04-10T16:45:20 INFO ZServer HTTP server started at Thu Apr 10<br>
16:45:20 2008<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Hostname: <a href="http://0.0.0.0" target="_blank">0.0.0.0</a><br>
 &nbsp; &nbsp; &nbsp; &nbsp;Port: 8080<br>
------<br>
2008-04-10T16:45:20 WARNING Init Class<br>
Products.HappySession.HappySession.HappySess<br>
ion has a security declaration for nonexistent method &#39;manage_menu&#39;<br>
------<br>
2008-04-10T16:45:21 WARNING Init Ambiguous name for method of<br>
Products.ZpdfDocument<br>
.ZpdfDocument.ZpdfDocument: &#39;manage&#39; != &#39;manage_main&#39;<br>
------<br>
2008-04-10T16:45:21 WARNING Init Ambiguous name for method of<br>
Products.ZpdfDocument<br>
.ZpdfDocument.ZpdfDocument: &#39;manage&#39; != &#39;manage_editDocument&#39;<br>
------<br>
2008-04-10T16:45:21 WARNING Init Ambiguous name for method of<br>
Products.ZpdfDocument<br>
.ZpdfDocument.ZpdfDocument: &#39;manage&#39; != &#39;manage_editForm&#39;<br>
------<br>
2008-04-10T16:45:22 INFO Zope Ready to handle requests<br>
<br>
<br>
<br>
W.<br>
<br>
<br>
<br>
---<br>
Wes Modes<br>
McHenry Library<br>
Computing &amp; Network Services<br>
Information and Technology Services<br>
459-5208<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://mail.zope.org/pipermail/zope/attachments/20080410/c914f44c/attachment-0001.htm" target="_blank">http://mail.zope.org/pipermail/zope/attachments/20080410/c914f44c/attachment-0001.htm</a><br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Fri, 11 Apr 2008 10:32:15 +0530<br>
From: &quot;member madhangc&quot; &lt;<a href="mailto:madhangc@opensuse.us">madhangc@opensuse.us</a>&gt;<br>
Subject: [Zope] retrieving a single column from database and giving it<br>
 &nbsp; &nbsp; &nbsp; &nbsp;as &nbsp; &nbsp; &nbsp;hyper link fetching respective data<br>
To: <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:5bf66e2f0804102202v7c56aaav1a7a75c92e4325a8@mail.gmail.com">5bf66e2f0804102202v7c56aaav1a7a75c92e4325a8@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Dear all,<br>
<br>
I&#39;m developing a biological database using Zope 2.6 and pgsql. Let me<br>
explain my issue with an example. There is a menu called Drug in my<br>
homepage, by clicking the menu the drug names along with their type in two<br>
different columns get displayed in the body. I can do things till that. My<br>
problem is , lets say there is a link called &quot;Isoniazid&quot; &nbsp; with all other<br>
links(drug names) in it. When a user clicks one of the links as i said<br>
before as &quot;isoniazid&quot; only the information about isoniazid has to be<br>
retreived and displayed , likewise to all the other drug links. &nbsp;I have no<br>
idea how to capture the click event and the data to be retrieved. Can<br>
someone help. Thanks in advance.<br>
<br>
And another query, how can i select text from a dropdown box. I just need<br>
the data which is selected in the dropdown box and sent as query.<br>
<br>
Thanks again.<br>
<br>
--<br>
Best Regards<br>
\madhan<br>
<br>
Things must be learned only to be unlearned again or, more likely, to be<br>
corrected.<br>
-- Richard Feynman<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://mail.zope.org/pipermail/zope/attachments/20080411/27714eae/attachment-0001.htm" target="_blank">http://mail.zope.org/pipermail/zope/attachments/20080411/27714eae/attachment-0001.htm</a><br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Fri, 11 Apr 2008 07:46:51 +0200<br>
From: Andreas Jung &lt;<a href="mailto:lists@zopyx.com">lists@zopyx.com</a>&gt;<br>
Subject: Re: [Zope] Upgrade to 2.7.2 results in all content<br>
 &nbsp; &nbsp; &nbsp; &nbsp;unavailable<br>
To: Wes Modes &lt;<a href="mailto:wmodes@ucsc.edu">wmodes@ucsc.edu</a>&gt;, <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: &lt;7734EA77A97C8F32B29FE571@[<a href="http://192.168.0.24" target="_blank">192.168.0.24</a>]&gt;<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
<br>
<br>
--On 10. April 2008 21:04:40 -0700 Wes Modes &lt;<a href="mailto:wmodes@ucsc.edu">wmodes@ucsc.edu</a>&gt; wrote:<br>
<br>
&gt; I upgraded to Zope 2.7.2 and all of my content can&#39;t be seen by Zope.<br>
&gt; Honestly I&#39;m not sure what the previous version I was running was (nor am<br>
&gt; I sure how to find out).<br>
<br>
If you upgrade then you should upgrade to the latest Zope version or at<br>
least to the latest 2.7 version. What&#39;s the reason for picking just _some_<br>
2.7 version? If you&#39;re application works then better stick with your<br>
working solution. 2.7 is out-dated since a long. If you really want to<br>
upgrade, then choose the latest 2.10 version.<br>
<br>
-aj<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: not available<br>
Type: application/pgp-signature<br>
Size: 194 bytes<br>
Desc: not available<br>
Url : <a href="http://mail.zope.org/pipermail/zope/attachments/20080411/2a9b0bb2/attachment-0001.bin" target="_blank">http://mail.zope.org/pipermail/zope/attachments/20080411/2a9b0bb2/attachment-0001.bin</a><br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Fri, 11 Apr 2008 07:48:22 +0200<br>
From: Andreas Jung &lt;<a href="mailto:lists@zopyx.com">lists@zopyx.com</a>&gt;<br>
Subject: Re: [Zope] retrieving a single column from database and<br>
 &nbsp; &nbsp; &nbsp; &nbsp;giving it &nbsp; &nbsp; &nbsp; as hyper link fetching respective data<br>
To: member madhangc &lt;<a href="mailto:madhangc@opensuse.us">madhangc@opensuse.us</a>&gt;, <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: &lt;EC333FA7CFB5325A9E6EA108@[<a href="http://192.168.0.24" target="_blank">192.168.0.24</a>]&gt;<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
<br>
<br>
--On 11. April 2008 10:32:15 +0530 member madhangc &lt;<a href="mailto:madhangc@opensuse.us">madhangc@opensuse.us</a>&gt;<br>
wrote:<br>
<br>
&gt; Dear all,<br>
&gt;<br>
&gt; I&#39;m developing a biological database using Zope 2.6 and pgsql. Let me<br>
&gt; explain my issue with an example. There is a menu called Drug in my<br>
&gt; homepage, by clicking the menu the drug names along with their type in two<br>
&gt; different columns get displayed in the body. I can do things till that. My<br>
&gt; problem is , lets say there is a link called &quot;Isoniazid&quot; &nbsp; with all other<br>
&gt; links(drug names) in it. When a user clicks one of the links as i said<br>
&gt; before as &quot;isoniazid&quot; only the information about isoniazid has to be<br>
&gt; retreived and displayed , likewise to all the other drug links. &nbsp;I have no<br>
&gt; idea how to capture the click event and the data to be retrieved. Can<br>
&gt; someone help. Thanks in advance.<br>
&gt;<br>
&gt; And another query, how can i select text from a dropdown box. I just need<br>
&gt; the data which is selected in the dropdown box and sent as query.<br>
&gt;<br>
<br>
This issue is basically not related to Zope. You can achieve your goal<br>
using Javascript. I recommended looking at some elementary HTML and<br>
Javascript tutorial.<br>
<br>
Andreas<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: not available<br>
Type: application/pgp-signature<br>
Size: 194 bytes<br>
Desc: not available<br>
Url : <a href="http://mail.zope.org/pipermail/zope/attachments/20080411/a7a21073/attachment-0001.bin" target="_blank">http://mail.zope.org/pipermail/zope/attachments/20080411/a7a21073/attachment-0001.bin</a><br>
<br>
------------------------------<br>
<br>
Message: 8<br>
Date: Fri, 11 Apr 2008 11:56:35 +0530<br>
From: harshad behere &lt;<a href="mailto:hbehere@zeomega.com">hbehere@zeomega.com</a>&gt;<br>
Subject: Re: [Zope] Re: i18n/L10n support in zope2<br>
To: Maurits van Rees &lt;<a href="mailto:m.van.rees@zestsoftware.nl">m.van.rees@zestsoftware.nl</a>&gt;<br>
Cc: <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: &lt;<a href="mailto:47FF049B.4010604@zeomega.com">47FF049B.4010604@zeomega.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Maurits van Rees wrote:<br>
&gt;<br>
&gt;&gt; After making change &nbsp;and updating sample page template - (English as<br>
&gt;&gt; primary language for both browsers)<br>
&gt;&gt;<br>
&gt;&gt; &lt;html&gt;<br>
&gt;&gt; &lt;body&gt;<br>
&gt;&gt; English -<br>
&gt;&gt; &lt;span i18n:domain=&quot;English&quot; i18n:translate=&quot;&quot;&gt;<br>
&gt;&gt; Reload this catalog<br>
&gt;&gt; &lt;/span&gt;<br>
&gt;&gt; &lt;br&gt;<br>
&gt;&gt; German -<br>
&gt;&gt; &lt;span i18n:domain=&quot;Germany&quot; i18n:translate=&quot;&quot;&gt;<br>
&gt;&gt; Reload this catalog<br>
&gt;&gt; &lt;/span&gt;<br>
&gt;&gt; &lt;br&gt;<br>
&gt;&gt; Czech -<br>
&gt;&gt; &lt;span i18n:domain=&quot;Czech&quot; i18n:translate=&quot;&quot;&gt;<br>
&gt;&gt; Reload this catalog<br>
&gt;&gt; &lt;/span&gt;<br>
&gt;&gt; &lt;br&gt;<br>
&gt;&gt; &lt;/body&gt;<br>
&gt;&gt; &lt;/html&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt; Huh? You now state languages in the i18n domain. &nbsp;Don&#39;t you mean to<br>
&gt; make this three times the same domain and then perhaps add the<br>
&gt; i18n:target en/de/cs?<br>
&gt;<br>
&gt;<br>
<br>
Yes..using i18n:target (not in Zope 2.9.7 at least as no support there<br>
:) ) with single domain can be much better approach. But honestly I am<br>
just beginner in this i18n/L10n arena, so need to work on i18n/L10n<br>
rules/standards.<br>
<br>
Thank you,<br>
Harshad.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 9<br>
Date: Fri, 11 Apr 2008 10:38:06 +0200<br>
From: Yuri &lt;<a href="mailto:yurj@alfa.it">yurj@alfa.it</a>&gt;<br>
Subject: [Zope] the grand reunion<br>
To: Plone developers &lt;<a href="mailto:plone-developers@lists.sourceforge.net">plone-developers@lists.sourceforge.net</a>&gt;,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: &lt;<a href="mailto:47FF236E.6090700@alfa.it">47FF236E.6090700@alfa.it</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Hi!<br>
<br>
&nbsp;Actually I&#39;ve two Plone &quot;working envinronment&quot; and one zope, each in a<br>
different machine:<br>
<br>
&nbsp;- one, with two zope 2.9 istances (one for developing), running both<br>
multiple Plone 2.5 instances<br>
&nbsp;- one, with zope 2.9, running multiple Plone 2.5 instances<br>
&nbsp;- one, with zope 2.7.9, running zope only applications<br>
<br>
&nbsp;We have bought &quot;big iron&quot; hardware now, where I can do almost<br>
everything (with a fiber channel network storage, multiple rack servers).<br>
<br>
tipically, I use one instance to develop, and one to deploy. This mean<br>
different zope instances which shares only the base, and having<br>
different products.<br>
<br>
I would like to have an easy way to develop without having to be subject<br>
to dependencies from other envinroment, minimize the effort to mantain<br>
it and focus on doing things :)<br>
<br>
&nbsp;Is one big zope installation, with multiple instances, well suited for<br>
this tasks? Or is better different zope versions? What about the various<br>
Data.fs, is better to have them separated by application or by zope<br>
envinroment? I mean all the Plone in a single Data.fs or each one in a<br>
separated Data.fs?<br>
<br>
&nbsp;So, what is the best approach to migrate the three servers?<br>
<br>
<br>
------------------------------<br>
<br>
Message: 10<br>
Date: Fri, 11 Apr 2008 15:29:09 +0530<br>
From: &quot;rishi pathak&quot; &lt;<a href="mailto:mailmaverick666@gmail.com">mailmaverick666@gmail.com</a>&gt;<br>
Subject: Re: [Zope] ExternalMethod - add new parameter<br>
To: &quot;Dieter Maurer&quot; &lt;<a href="mailto:dieter@handshake.de">dieter@handshake.de</a>&gt;<br>
Cc: <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:180b672e0804110259y3bab270bm818efb363b292aa0@mail.gmail.com">180b672e0804110259y3bab270bm818efb363b292aa0@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
hi again,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Let me clarify what I am doing and what is my approach till<br>
now.<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;We have a portal using which users use our compute resources.<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;In zope we use NIS authentication for validating a user.We<br>
have many things that requires root/logged in user privledeges.One example<br>
is of a &#39;file system explorer&#39;.In this I have used ZFSpath product.This<br>
explorer is used by users to navigate through their home areas and select<br>
what ever file they want.As of now I have changed some functions of ZFSpath<br>
class which I was using so that they can be executed as the logged in<br>
user(since zope does not have rwx permissions on other user&#39;s<br>
directory).This is just one case.Hope I have cleared myself well.<br>
<br>
On Wed, Apr 9, 2008 at 11:44 PM, Dieter Maurer &lt;<a href="mailto:dieter@handshake.de">dieter@handshake.de</a>&gt; wrote:<br>
<br>
&gt; rishi pathak wrote at 2008-4-8 18:03 +0530:<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; I dont have a need to run all the external method as root,<br>
&gt; only<br>
&gt; &gt;some of them.<br>
&gt;<br>
&gt; I did understand this *BUT* you do not have a choice.<br>
&gt;<br>
&gt; &nbsp;While a single ExternalMethod runs as &quot;root&quot;, the complete<br>
&gt; &nbsp;Zope process runs as root -- and this applies to all<br>
&gt; &nbsp;requests which are run in parallel with your ExternalMethod.<br>
&gt;<br>
&gt; Please reread my former message.<br>
&gt;<br>
&gt; If you have touble to understand the terms &quot;thread&quot; and/or &quot;process&quot;,<br>
&gt; consult Wikipedia to get some insight.<br>
&gt;<br>
&gt; &gt; ...<br>
&gt; &gt;On Tue, Apr 8, 2008 at 12:50 AM, Dieter Maurer &lt;<a href="mailto:dieter@handshake.de">dieter@handshake.de</a>&gt;<br>
&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt; rishi pathak wrote at 2008-4-7 17:46 +0530:<br>
&gt; &gt;&gt; &gt;There is a requirement for running some external methods as super<br>
&gt; user.<br>
&gt; &gt;&gt; &gt;For this I thought of adding a new parameter.If set the code would be<br>
&gt; &gt;&gt; &gt;executed with effective uid of root.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; This is extremely dangerous.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; To run code as super user, you need to change the effective user id.<br>
&gt; &gt;&gt; Changing the effective user id affects the whole process -- not just<br>
&gt; &gt;&gt; the thread executing your external method.<br>
&gt; &gt;&gt; These things are very difficult to handle in a multi threaded<br>
&gt; environment,<br>
&gt; &gt;&gt; in general.<br>
&gt; &gt;&gt; Moreover, running internet driven code uncontrolled as super user<br>
&gt; &gt;&gt; is likely to be a big security risk.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Let your application write some command to a queue and process<br>
&gt; &gt;&gt; the queue asynchronously. The processing can be performed as<br>
&gt; &gt;&gt; super user.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; If this is not possible, let your application communicate<br>
&gt; &gt;&gt; with another process which runs as super user -- and pass on<br>
&gt; &gt;&gt; synchronous commands from your application to this process.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; In both cases, it is ensured that only the restricted command<br>
&gt; &gt;&gt; set can be used to run something as super user -- and<br>
&gt; &gt;&gt; not some arbitrary code....<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Dieter<br>
&gt;<br>
<br>
<br>
<br>
--<br>
Regards--<br>
Rishi Pathak<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://mail.zope.org/pipermail/zope/attachments/20080411/025c7536/attachment-0001.htm" target="_blank">http://mail.zope.org/pipermail/zope/attachments/20080411/025c7536/attachment-0001.htm</a><br>
<br>
------------------------------<br>
<br>
Message: 11<br>
Date: Fri, 11 Apr 2008 11:00:23 +0100<br>
From: Chris Withers &lt;<a href="mailto:chris@simplistix.co.uk">chris@simplistix.co.uk</a>&gt;<br>
Subject: Re: [Zope] Conditional dtml-boundary in dtml-sendmail<br>
To: Tom Von Lahndorff &lt;<a href="mailto:tom@modscape.com">tom@modscape.com</a>&gt;<br>
Cc: Josef Meile &lt;<a href="mailto:jmeile@hotmail.com">jmeile@hotmail.com</a>&gt;, <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: &lt;<a href="mailto:47FF36B7.50502@simplistix.co.uk">47FF36B7.50502@simplistix.co.uk</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Tom Von Lahndorff wrote:<br>
&gt; The email library should be available to use with a Script (Python) and can<br>
&gt; be done all within the ZMI.<br>
<br>
Yes, I wish it was. I believe that was one of the things I did in the<br>
MailTemplates product: just make the standard python email package bits<br>
available in Zope protected code.<br>
<br>
Still, if Josef can&#39;t get products installed, he&#39;s limited to a world of<br>
suck when it comes to email :-(<br>
<br>
cheers,<br>
<br>
Chris<br>
<br>
--<br>
Simplistix - Content Management, Zope &amp; Python Consulting<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- <a href="http://www.simplistix.co.uk" target="_blank">http://www.simplistix.co.uk</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 12<br>
Date: Fri, 11 Apr 2008 11:02:11 +0100<br>
From: Chris Withers &lt;<a href="mailto:chris@simplistix.co.uk">chris@simplistix.co.uk</a>&gt;<br>
Subject: Re: [Zope] ExternalMethod - add new parameter<br>
To: rishi pathak &lt;<a href="mailto:mailmaverick666@gmail.com">mailmaverick666@gmail.com</a>&gt;<br>
Cc: Dieter Maurer &lt;<a href="mailto:dieter@handshake.de">dieter@handshake.de</a>&gt;, <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: &lt;<a href="mailto:47FF3723.1070604@simplistix.co.uk">47FF3723.1070604@simplistix.co.uk</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
rishi pathak wrote:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; We have a portal using which users use our compute resources.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; In zope we use NIS authentication for validating a user.We<br>
&gt; have many things that requires root/logged in user privledeges.One example<br>
&gt; is of a &#39;file system explorer&#39;.In this I have used ZFSpath product.This<br>
&gt; explorer is used by users to navigate through their home areas and select<br>
&gt; what ever file they want.As of now I have changed some functions of ZFSpath<br>
&gt; class which I was using so that they can be executed as the logged in<br>
&gt; user(since zope does not have rwx permissions on other user&#39;s<br>
&gt; directory).This is just one case.Hope I have cleared myself well.<br>
<br>
You are playing a mind numbingly dangerous game.<br>
<br>
Good luck to you, but I hope people on this list refrain from further<br>
helping you point that large canon at your left toe...<br>
<br>
Chris<br>
<br>
--<br>
Simplistix - Content Management, Zope &amp; Python Consulting<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- <a href="http://www.simplistix.co.uk" target="_blank">http://www.simplistix.co.uk</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 13<br>
Date: Fri, 11 Apr 2008 11:06:17 +0100<br>
From: Chris Withers &lt;<a href="mailto:chris@simplistix.co.uk">chris@simplistix.co.uk</a>&gt;<br>
Subject: Re: [Zope] Conditional dtml-boundary in dtml-sendmail<br>
To: Tom Von Lahndorff &lt;<a href="mailto:tom@modscape.com">tom@modscape.com</a>&gt;<br>
Cc: <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: &lt;<a href="mailto:47FF3819.3060908@simplistix.co.uk">47FF3819.3060908@simplistix.co.uk</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Tom Von Lahndorff wrote:<br>
&gt; How is dtml more &quot;error-prone&quot; than python? I&#39;d imagine that all depends on<br>
&gt; who&#39;s authoring it.<br>
<br>
In this particular example, python&#39;s email package has a very OO<br>
approach to generating emails.<br>
<br>
The DTML approach relies on you remembering to put in the right<br>
statements for the right constituent email parts in the right places.<br>
It&#39;s easy to make mistakes and generate emails that won&#39;t work with most<br>
clients.<br>
<br>
It&#39;s also harder to generate emails with the correct headers (Date,<br>
Message-ID, etc) than it should be, so you&#39;re more likely to pump out<br>
email that mtas consider to be spam.<br>
<br>
The DTML approach also makes attaching files a living hell...<br>
<br>
cheers,<br>
<br>
Chris<br>
<br>
--<br>
Simplistix - Content Management, Zope &amp; Python Consulting<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- <a href="http://www.simplistix.co.uk" target="_blank">http://www.simplistix.co.uk</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 14<br>
Date: Fri, 11 Apr 2008 12:09:02 +0200<br>
From: Raphael Ritz &lt;<a href="mailto:r.ritz@biologie.hu-berlin.de">r.ritz@biologie.hu-berlin.de</a>&gt;<br>
Subject: [Zope] Re: the grand reunion<br>
To: <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Cc: <a href="mailto:plone-developers@lists.sourceforge.net">plone-developers@lists.sourceforge.net</a><br>
Message-ID: &lt;ftndbt$k3d$<a href="mailto:1@ger.gmane.org">1@ger.gmane.org</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Yuri wrote:<br>
&gt; Hi!<br>
&gt;<br>
<br>
Hi Yuri,<br>
<br>
[..]<br>
<br>
&gt;<br>
&gt; I would like to have an easy way to develop without having to be subject<br>
&gt; to dependencies from other envinroment, minimize the effort to mantain<br>
&gt; it and focus on doing things :)<br>
&gt;<br>
<br>
Maybe not exactly what you are asking for but I recommend you play<br>
with buildout a bit - I&#39;m sure you&#39;ll appreciate the ease with which<br>
you can manage independent installations in a repeatable and easily<br>
modifiable way.<br>
<br>
&gt; Is one big zope installation, with multiple instances, well suited for<br>
&gt; this tasks? Or is better different zope versions? What about the various<br>
&gt; Data.fs, is better to have them separated by application or by zope<br>
&gt; envinroment? I mean all the Plone in a single Data.fs or each one in a<br>
&gt; separated Data.fs?<br>
&gt;<br>
<br>
Without further knowing how these sites might be related or not<br>
this is hard to answer but often times I prefer to have separate<br>
Zope instances (-&gt; different ZODBs) for different Plone sites.<br>
Even if they share substantial configuration/add-ons etc.<br>
Again, using buildout makes it a snap to create and maintain<br>
as many Zope instances as you want. And using a common buildout<br>
cache they can also mostly share the basic installation.<br>
<br>
Just my 2 cents,<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Raphael<br>
<br>
&gt; So, what is the best approach to migrate the three servers?<br>
&gt; _______________________________________________<br>
&gt; Zope maillist &nbsp;- &nbsp;<a href="mailto:Zope@zope.org">Zope@zope.org</a><br>
&gt; <a href="http://mail.zope.org/mailman/listinfo/zope" target="_blank">http://mail.zope.org/mailman/listinfo/zope</a><br>
&gt; ** &nbsp; No cross posts or HTML encoding! &nbsp;**<br>
&gt; (Related lists - <a href="http://mail.zope.org/mailman/listinfo/zope-announce" target="_blank">http://mail.zope.org/mailman/listinfo/zope-announce</a><br>
&gt; <a href="http://mail.zope.org/mailman/listinfo/zope-dev" target="_blank">http://mail.zope.org/mailman/listinfo/zope-dev</a> )<br>
&gt;<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 15<br>
Date: Fri, 11 Apr 2008 07:20:49 -0400<br>
From: &quot;Jonathan&quot; &lt;<a href="mailto:dev101@magma.ca">dev101@magma.ca</a>&gt;<br>
Subject: Re: [Zope] Upgrade to 2.7.2 results in all content<br>
 &nbsp; &nbsp; &nbsp; &nbsp;unavailable<br>
To: &quot;Wes Modes&quot; &lt;<a href="mailto:wmodes@ucsc.edu">wmodes@ucsc.edu</a>&gt;, &lt;<a href="mailto:zope@zope.org">zope@zope.org</a>&gt;<br>
Message-ID: &lt;003601c89bc6$18995130$677ba8c0@DESKTOP&gt;<br>
Content-Type: text/plain; format=flowed; charset=&quot;iso-8859-1&quot;;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;reply-type=original<br>
<br>
<br>
----- Original Message -----<br>
From: &quot;Wes Modes&quot; &lt;<a href="mailto:wmodes@ucsc.edu">wmodes@ucsc.edu</a>&gt;<br>
To: &lt;<a href="mailto:zope@zope.org">zope@zope.org</a>&gt;<br>
Sent: Friday, April 11, 2008 12:04 AM<br>
Subject: [Zope] Upgrade to 2.7.2 results in all content unavailable<br>
<br>
<br>
&gt;I upgraded to Zope 2.7.2 and all of my content can&#39;t be seen by Zope.<br>
&gt; Honestly I&#39;m not sure what the previous version I was running was (nor<br>
&gt; am I sure how to find out).<br>
&gt;<br>
&gt; Now, every page results in<br>
&gt;<br>
&gt; Site Error<br>
&gt; An error was encountered while publishing this resource.<br>
&gt; Resource not found<br>
&gt; Sorry, the requested resource does not exist.<br>
&gt; Check the URL and try again.<br>
&gt; Resource: Zope GET<br>
<br>
What version of zope did you upgrade from?<br>
What happens when you try to access any of the problem objects via the ZMI?<br>
<br>
<br>
Jonathan<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 16<br>
Date: Fri, 11 Apr 2008 12:47:39 +0100<br>
From: &quot;Peter Bengtsson&quot; &lt;<a href="mailto:peter@fry-it.com">peter@fry-it.com</a>&gt;<br>
Subject: Re: [Zope] Help writing test where bobobase_modification_time<br>
 &nbsp; &nbsp; &nbsp; &nbsp;changes<br>
To: &quot;Chris Withers&quot; &lt;<a href="mailto:chris@simplistix.co.uk">chris@simplistix.co.uk</a>&gt;<br>
Cc: zope user list &lt;<a href="mailto:zope@zope.org">zope@zope.org</a>&gt;<br>
Message-ID:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:bc95c2800804110447y5515ab5em728d0d2c1240c9ad@mail.gmail.com">bc95c2800804110447y5515ab5em728d0d2c1240c9ad@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
Thanks for the tips Chris and Dieter, I actually solved it in a very simple way:<br>
<br>
<br>
from OFS.Image import File<br>
from time import time<br>
class MockFile(File):<br>
 &nbsp; &nbsp;&quot;&quot;&quot; This file works the same as a normal File expect that<br>
 &nbsp; &nbsp;in manage_edit() the internal modification time is set immediately.<br>
 &nbsp; &nbsp;Normally Zope objects get their internal modification set when<br>
 &nbsp; &nbsp;the transaction manager commits.<br>
 &nbsp; &nbsp;&quot;&quot;&quot;<br>
<br>
 &nbsp; &nbsp;def manage_edit(self, title, content_type, precondition=&#39;&#39;,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;filedata=None, REQUEST=None):<br>
 &nbsp; &nbsp; &nbsp; &nbsp;# here&#39;s the mock hack, we set the _p_mtime NOW instead of letting<br>
 &nbsp; &nbsp; &nbsp; &nbsp;# the transaction manager do it at the end.<br>
 &nbsp; &nbsp; &nbsp; &nbsp;self._p_mtime = time()<br>
 &nbsp; &nbsp; &nbsp; &nbsp;return File.manage_edit(self, title, content_type,<br>
precondition=precondition,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;filedata=filedata, REQUEST=REQUEST)<br>
<br>
This worked beautifully in the integration test. I&#39;m happy.<br>
<br>
On 10/04/2008, Chris Withers &lt;<a href="mailto:chris@simplistix.co.uk">chris@simplistix.co.uk</a>&gt; wrote:<br>
&gt; Peter Bengtsson wrote:<br>
&gt;<br>
&gt; &gt; How can I solve this? Make one big transaction two without having to<br>
&gt; &gt; use transaction.get().commit() which I don&#39;t think I can use in unit<br>
&gt; &gt; tests as per Dieter&#39;s advice.<br>
&gt; &gt;<br>
&gt;<br>
&gt; &nbsp;I&#39;d suggest monkeypatching bobobase_modification_time on the objects you&#39;re<br>
&gt; testing with. You&#39;re testing your cache code, not the implementation of<br>
&gt; those objects, so replacing them with (partially) dummy objects is great for<br>
&gt; avoiding this kind of problem and is a pattern I&#39;ve used frequently...<br>
&gt;<br>
&gt; &nbsp;cheers,<br>
&gt;<br>
&gt; &nbsp;Chris<br>
&gt;<br>
&gt; &nbsp;--<br>
&gt; &nbsp;Simplistix - Content Management, Zope &amp; Python Consulting<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;- <a href="http://www.simplistix.co.uk" target="_blank">http://www.simplistix.co.uk</a><br>
&gt;<br>
<br>
<br>
--<br>
Peter Bengtsson,<br>
work <a href="http://www.fry-it.com" target="_blank">www.fry-it.com</a><br>
home <a href="http://www.peterbe.com" target="_blank">www.peterbe.com</a><br>
hobby <a href="http://www.issuetrackerproduct.com" target="_blank">www.issuetrackerproduct.com</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 17<br>
Date: Fri, 11 Apr 2008 13:52:33 +0200<br>
From: Josef Meile &lt;<a href="mailto:jmeile@hotmail.com">jmeile@hotmail.com</a>&gt;<br>
Subject: [Zope] Re: Conditional dtml-boundary in dtml-sendmail<br>
To: <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: &lt;<a href="mailto:47FF5101.6050501@hotmail.com">47FF5101.6050501@hotmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
&gt; Tom Von Lahndorff wrote:<br>
&gt;&gt; How is dtml more &quot;error-prone&quot; than python? I&#39;d imagine that all<br>
&gt;&gt; depends on<br>
&gt;&gt; who&#39;s authoring it.<br>
&gt;<br>
&gt; In this particular example, python&#39;s email package has a very OO<br>
&gt; approach to generating emails.<br>
Yes, that&#39;s what I hate from the dtml thing; it looks ugly :-(<br>
<br>
&gt; The DTML approach relies on you remembering to put in the right<br>
&gt; statements for the right constituent email parts in the right places.<br>
&gt; It&#39;s easy to make mistakes and generate emails that won&#39;t work with most<br>
&gt; clients.<br>
&gt;<br>
&gt; It&#39;s also harder to generate emails with the correct headers (Date,<br>
&gt; Message-ID, etc) than it should be, so you&#39;re more likely to pump out<br>
&gt; email that mtas consider to be spam.<br>
Actually, I did several mistakes: first, if you include a blank line<br>
just after finishing defining the email settings, ie: &quot;To, From,<br>
Content-Type, etc, you will get your email, but in a format that you<br>
can&#39;t read.<br>
<br>
The second problem was with the unicode: first I got the characters<br>
wrong on the email subject, but on the mail&#39;s body were ok, then I<br>
change something and got them good on the subject, but on the<br>
body non-ascii characters were dropped. After lots of testing, I<br>
finally saw that you have to define content-type everywhere: on the<br>
mail headers and also on the text-mime contents. Then you have to<br>
encode all your strings to utf-8.<br>
<br>
&gt; The DTML approach also makes attaching files a living hell...<br>
Yep, I agree on this. You can&#39;t dynamically set the number of<br>
attachments and even if you don&#39;t submit a file on your form, zope<br>
will send an empty file with a strange name.<br>
<br>
<br>
Well, I guess I will do an external method on my own server and then try<br>
to convince the people owning the machine where the page is hosted to<br>
include it. Otherwise, my last resouce would be to embebbed the content<br>
on a iframe or call an external link to my server.<br>
<br>
Thanks anyways for your replies.<br>
<br>
Best regards<br>
Josef<br>
<br>
<br>
------------------------------<br>
<br>
Message: 18<br>
Date: Fri, 11 Apr 2008 14:00:02 +0200<br>
From: Martijn Jacobs &lt;<a href="mailto:martijn@fourdigits.nl">martijn@fourdigits.nl</a>&gt;<br>
Subject: Re: [Zope] Upgrade to 2.7.2 results in all content<br>
 &nbsp; &nbsp; &nbsp; &nbsp;unavailable<br>
To: Jonathan &lt;<a href="mailto:dev101@magma.ca">dev101@magma.ca</a>&gt;<br>
Cc: <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: &lt;<a href="mailto:47FF52C2.6010209@fourdigits.nl">47FF52C2.6010209@fourdigits.nl</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
And do you see any errors when starting zope with zopectl fg ? (or do<br>
you see any errors in the log/event.log file?)<br>
<br>
<br>
&gt;<br>
&gt; ----- Original Message ----- From: &quot;Wes Modes&quot; &lt;<a href="mailto:wmodes@ucsc.edu">wmodes@ucsc.edu</a>&gt;<br>
&gt; To: &lt;<a href="mailto:zope@zope.org">zope@zope.org</a>&gt;<br>
&gt; Sent: Friday, April 11, 2008 12:04 AM<br>
&gt; Subject: [Zope] Upgrade to 2.7.2 results in all content unavailable<br>
&gt;<br>
&gt;<br>
&gt;&gt; I upgraded to Zope 2.7.2 and all of my content can&#39;t be seen by<br>
&gt;&gt; Zope. &nbsp;Honestly I&#39;m not sure what the previous version I was running<br>
&gt;&gt; was (nor am I sure how to find out).<br>
&gt;&gt;<br>
&gt;&gt; Now, every page results in<br>
&gt;&gt;<br>
&gt;&gt; Site Error<br>
&gt;&gt; An error was encountered while publishing this resource.<br>
&gt;&gt; Resource not found<br>
&gt;&gt; Sorry, the requested resource does not exist.<br>
&gt;&gt; Check the URL and try again.<br>
&gt;&gt; Resource: Zope GET<br>
&gt;<br>
&gt; What version of zope did you upgrade from?<br>
&gt; What happens when you try to access any of the problem objects via the<br>
&gt; ZMI?<br>
&gt;<br>
&gt;<br>
&gt; Jonathan<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Zope maillist &nbsp;- &nbsp;<a href="mailto:Zope@zope.org">Zope@zope.org</a><br>
&gt; <a href="http://mail.zope.org/mailman/listinfo/zope" target="_blank">http://mail.zope.org/mailman/listinfo/zope</a><br>
&gt; ** &nbsp; No cross posts or HTML encoding! &nbsp;**<br>
&gt; (Related lists - <a href="http://mail.zope.org/mailman/listinfo/zope-announce" target="_blank">http://mail.zope.org/mailman/listinfo/zope-announce</a><br>
&gt; <a href="http://mail.zope.org/mailman/listinfo/zope-dev" target="_blank">http://mail.zope.org/mailman/listinfo/zope-dev</a> )<br>
<br>
<br>
--<br>
Martijn Jacobs<br>
Four Digits, Internet Solutions<br>
<br>
a: Willemsplein 15-1 6811 KB Arnhem NL<br>
kvk: 091621370000 | btw: 8161.22.234.B01<br>
e-mail: <a href="mailto:martijn@fourdigits.nl">martijn@fourdigits.nl</a> | web: <a href="http://www.fourdigits.nl" target="_blank">http://www.fourdigits.nl</a><br>
tel: +31 (0)26 44 22 700 | fax: +31 (0)84 22 06 117<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 19<br>
Date: Fri, 11 Apr 2008 14:01:28 +0200<br>
From: Josef Meile &lt;<a href="mailto:jmeile@hotmail.com">jmeile@hotmail.com</a>&gt;<br>
Subject: [Zope] Re: Conditional dtml-boundary in dtml-sendmail<br>
To: <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: &lt;<a href="mailto:47FF5318.1020807@hotmail.com">47FF5318.1020807@hotmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
&gt; The email library should be available to use with a Script (Python) and<br>
&gt; can be done all within the ZMI. Otherwise maybe use dtml-try?<br>
Well, I should have mentioned this: the zope installed on the server is<br>
2.8.x. Yes, it is old, but it is because all the page uses an own CMS<br>
based on silva, which isn&#39;t compatible with newer versions.<br>
<br>
I tried this:<br>
<br>
import email<br>
<br>
and it worked; however, as soon as I tried this:<br>
<br>
from email.MIMEText import MIMEText<br>
msg = MIMEText(&#39;Sending mail through python module&#39;)<br>
<br>
or<br>
<br>
import email<br>
msg = email.MIMEText.MIMEText(&#39;Sending mail through python module&#39;)<br>
<br>
An Unauthorized exception comes. So, I guess MIMEText is protected at<br>
least on 2.8.x. But I guess in 2.11.x is protected as well, or am I<br>
wrong?<br>
<br>
Thanks for your reply. I guess there is no way of achieving what I want<br>
on dtml, so, I will try to do it an external method and try to convince<br>
people there to store it on the server or I will have to do it on my<br>
own server and embebbed it on an iframe or call an external link.<br>
<br>
Best regards<br>
Josef<br>
<br>
<br>
------------------------------<br>
<br>
Message: 20<br>
Date: Fri, 11 Apr 2008 16:04:43 +0200<br>
From: robert rottermann &lt;robert@redcor.ch&gt;<br>
Subject: [Zope] Re: [Plone-developers] the grand reunion<br>
To: Yuri &lt;<a href="mailto:yurj@alfa.it">yurj@alfa.it</a>&gt;<br>
Cc: Plone developers &lt;<a href="mailto:plone-developers@lists.sourceforge.net">plone-developers@lists.sourceforge.net</a>&gt;,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: &lt;47FF6FFB.5080701@redcor.ch&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
hi yuri,<br>
<br>
when setting up a zope/zeo task and everything was still a bit of a<br>
challenge (at least to me) we tended to have everything in one big<br>
instance that served some 20 low traffic sites.<br>
since then setting up a site with all the tools it needs has become a<br>
trivially easy and quick to execute task. we have converted nearly all<br>
these sites to have their own instance.<br>
<br>
I would not do it differently anymore ..<br>
<br>
robert<br>
<br>
Yuri schrieb:<br>
&gt; Hi!<br>
&gt;<br>
&gt; &nbsp;Actually I&#39;ve two Plone &quot;working envinronment&quot; and one zope, each in a<br>
&gt; different machine:<br>
&gt;<br>
&gt; &nbsp;- one, with two zope 2.9 istances (one for developing), running both<br>
&gt; multiple Plone 2.5 instances<br>
&gt; &nbsp;- one, with zope 2.9, running multiple Plone 2.5 instances<br>
&gt; &nbsp;- one, with zope 2.7.9, running zope only applications<br>
&gt;<br>
&gt; &nbsp;We have bought &quot;big iron&quot; hardware now, where I can do almost<br>
&gt; everything (with a fiber channel network storage, multiple rack servers).<br>
&gt;<br>
&gt; tipically, I use one instance to develop, and one to deploy. This mean<br>
&gt; different zope instances which shares only the base, and having<br>
&gt; different products.<br>
&gt;<br>
&gt; I would like to have an easy way to develop without having to be subject<br>
&gt; to dependencies from other envinroment, minimize the effort to mantain<br>
&gt; it and focus on doing things :)<br>
&gt;<br>
&gt; &nbsp;Is one big zope installation, with multiple instances, well suited for<br>
&gt; this tasks? Or is better different zope versions? What about the various<br>
&gt; Data.fs, is better to have them separated by application or by zope<br>
&gt; envinroment? I mean all the Plone in a single Data.fs or each one in a<br>
&gt; separated Data.fs?<br>
&gt;<br>
&gt; &nbsp;So, what is the best approach to migrate the three servers?<br>
&gt;<br>
&gt; -------------------------------------------------------------------------<br>
&gt; This SF.net email is sponsored by the 2008 JavaOne(SM) Conference<br>
&gt; Don&#39;t miss this year&#39;s exciting event. There&#39;s still time to save $100.<br>
&gt; Use priority code J8TL2D2.<br>
&gt; <a href="http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone" target="_blank">http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone</a><br>
&gt; _______________________________________________<br>
&gt; Plone-developers mailing list<br>
&gt; <a href="mailto:Plone-developers@lists.sourceforge.net">Plone-developers@lists.sourceforge.net</a><br>
&gt; <a href="https://lists.sourceforge.net/lists/listinfo/plone-developers" target="_blank">https://lists.sourceforge.net/lists/listinfo/plone-developers</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 21<br>
Date: Fri, 11 Apr 2008 09:55:59 -0400<br>
From: Thomas Bennett &lt;<a href="mailto:bennetttm@appstate.edu">bennetttm@appstate.edu</a>&gt;<br>
Subject: Re: [Zope] retrieving a single column from database and<br>
 &nbsp; &nbsp; &nbsp; &nbsp;giving it as &nbsp; &nbsp;hyper link fetching respective data<br>
To: <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: &lt;<a href="mailto:200804110955.59072.bennetttm@appstate.edu">200804110955.59072.bennetttm@appstate.edu</a>&gt;<br>
Content-Type: text/plain; &nbsp;charset=&quot;utf-8&quot;<br>
<br>
On Friday 11 April 2008 01:02, member madhangc wrote:<br>
&gt; Dear all,<br>
&gt;<br>
&gt; I&#39;m developing a biological database using Zope 2.6 and pgsql. Let me<br>
&gt; explain my issue with an example. There is a menu called Drug in my<br>
&gt; homepage, by clicking the menu the drug names along with their type in two<br>
&gt; different columns get displayed in the body. I can do things till that. My<br>
&gt; problem is , lets say there is a link called &quot;Isoniazid&quot; &nbsp; with all other<br>
&gt; links(drug names) in it. When a user clicks one of the links as i said<br>
&gt; before as &quot;isoniazid&quot; only the information about isoniazid has to be<br>
&gt; retreived and displayed , likewise to all the other drug links. &nbsp;I have no<br>
&gt; idea how to capture the click event and the data to be retrieved. Can<br>
&gt; someone help. Thanks in advance.<br>
<br>
&gt;From your description I can&#39;t tell if you are already populating the<br>
two column page from a database or if it is a static html page. &nbsp;If<br>
I understand your issue correctly you can do all this with your<br>
database. &nbsp;You may have to add more columns to provide the<br>
interaction you need.<br>
<br>
I have a similar situation with a three column subjects page<br>
where clicking on each subject brings up a page with a list of<br>
&nbsp;online databases and descriptions for each. &nbsp;Within each<br>
description is a link to the online database.<br>
<br>
Again, if I understand your issue, have your two column page be<br>
created from a db that contains the a record number and the drug<br>
name. &nbsp;That template can build a link based on the record number<br>
to another template and the second template would query the<br>
database for a description field or whatever.<br>
<br>
so the first page would build its contents sorta like this.<br>
<br>
&lt;dtml-in get_drug _names&gt;<br>
 &nbsp; &lt;a href=&quot;http:/link/to/my/description/template/?my_recnum=&lt;dtml-var drug_name_recnum&gt;&quot;&gt;&lt;dtml-var my_drug_name&gt;&lt;/a&gt;<br>
&lt;/dtml-in&gt;<br>
<br>
same thing can be done in pagetemplates. &nbsp;You can see my example at<br>
<br>
&nbsp;<a href="http://www.library.appstate.edu/vdb/subjectgeneral05.html" target="_blank">http://www.library.appstate.edu/vdb/subjectgeneral05.html</a><br>
<br>
The list of subjects comes from a database and there are three select<br>
statements to make the three columns, select the first third, second third,<br>
and then the last third and use css. &nbsp;Each subject link to another template<br>
that selects data from the main table based on subject table&#39;s related field.<br>
And, on that second page you can narrow down the results by media type<br>
such as book, newspaper, audio, etc. which is a field in the database title<br>
table.<br>
<br>
Let me know if I misinterpreted your request, as I get older this becomes<br>
more frequent ;-)<br>
<br>
&gt;<br>
&gt; And another query, how can i select text from a dropdown box. I just need<br>
&gt; the data which is selected in the dropdown box and sent as query.<br>
&gt;<br>
&gt; Thanks again.<br>
<br>
If you click on a letter at the top you will see a list box on the right which uses<br>
a javascript called jumpmenu and OnChange which should work or be close to<br>
what you want. &nbsp;There is not an action attribute for the list box and no button, the<br>
Javascript takes care of it.<br>
<br>
<br>
Thomas<br>
<br>
<br>
--<br>
====================================================================<br>
Thomas McMillan Grant Bennett &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Appalachian State University<br>
Operations &amp; Systems Analyst &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;P O Box 32026<br>
University Library &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Boone, North Carolina 28608<br>
(828) 262 6587<br>
<br>
&quot;... using OpenOffice.org, and save them back to disk automatically,<br>
in MS Word format. &nbsp;They surf the Web, check e-mail, do instant<br>
messsaging, view YouTube videos, visit their Facebook pages, learn<br>
touch-typing skills and lots more. &nbsp;Our public library has been<br>
offering these Linux public stations for the past three years.&quot;<br>
&nbsp;- Phil Shapiro Linux Journal January 2008<br>
<br>
Library Systems Help Desk: <a href="https://www.library.appstate.edu/help/" target="_blank">https://www.library.appstate.edu/help/</a><br>
====================================================================<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Zope maillist &nbsp;- &nbsp;<a href="mailto:Zope@zope.org">Zope@zope.org</a><br>
<br>
<br>
<br>
End of Zope Digest, Vol 47, Issue 11<br>
************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br>Best Regards<br>\madhan<br><br>Things must be learned only to be unlearned again or, more likely, to be corrected.<br> -- Richard Feynman