thank you so much thomas.. that was really very helpful. I'm starting to get the picture. 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>"<a href="http:/link/to/my/descrip<div id="1ern" class="ArwC7c ckChnd">
tion/template/?my_recnum=<dtml-var drug_name_recnum>"><dtml-var my_drug_name></a>"<br><br>Can you please elaborate on the code,, Am especially concerned about understanding the below line of code..<br>
"a href="http:/link/to/my/descrip
<div id="1ern" class="ArwC7c ckChnd">tion/template/?my_recnum=<dtml-var drug_name_recnum>"<br><br>The example youo showed aptly suits my need. I use CSS and HTML i don't use pagetemplates. If you are willing can you please send me the code of how you are dynamically <a href>'ing 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, <<a href="mailto:zope-request@zope.org">zope-request@zope.org</a>> 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>
<a href="mailto:zope@zope.org">zope@zope.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<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 'help' to<br>
<a href="mailto:zope-request@zope.org">zope-request@zope.org</a><br>
<br>
You can reach the person managing the list at<br>
<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 "Re: Contents of Zope digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Conditional dtml-boundary in dtml-sendmail (Josef Meile)<br>
2. Re: i18n/L10n support in zope2 (Maurits van Rees)<br>
3. Re: Problem with zopectl debug (Manuel Vazquez Acosta)<br>
4. Upgrade to 2.7.2 results in all content unavailable (Wes Modes)<br>
5. retrieving a single column from database and giving it as<br>
hyper link fetching respective data (member madhangc)<br>
6. Re: Upgrade to 2.7.2 results in all content unavailable<br>
(Andreas Jung)<br>
7. Re: retrieving a single column from database and giving it as<br>
hyper link fetching respective data (Andreas Jung)<br>
8. Re: Re: i18n/L10n support in zope2 (harshad behere)<br>
9. the grand reunion (Yuri)<br>
10. Re: ExternalMethod - add new parameter (rishi pathak)<br>
11. Re: Conditional dtml-boundary in dtml-sendmail (Chris Withers)<br>
12. Re: ExternalMethod - add new parameter (Chris Withers)<br>
13. Re: Conditional dtml-boundary in dtml-sendmail (Chris Withers)<br>
14. Re: the grand reunion (Raphael Ritz)<br>
15. Re: Upgrade to 2.7.2 results in all content unavailable (Jonathan)<br>
16. Re: Help writing test where bobobase_modification_time<br>
changes (Peter Bengtsson)<br>
17. Re: Conditional dtml-boundary in dtml-sendmail (Josef Meile)<br>
18. Re: Upgrade to 2.7.2 results in all content unavailable<br>
(Martijn Jacobs)<br>
19. Re: Conditional dtml-boundary in dtml-sendmail (Josef Meile)<br>
20. Re: [Plone-developers] the grand reunion (robert rottermann)<br>
21. Re: retrieving a single column from database and giving it as<br>
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 <<a href="mailto:jmeile@hotmail.com">jmeile@hotmail.com</a>><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: <<a href="mailto:47FE5EAE.8000202@hotmail.com">47FE5EAE.8000202@hotmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed<br>
<br>
> The 'email' module is part of the standard Python distribution since<br>
> generations.<br>
Well, I said "allowing or installing". I wasn't sure if it was and with<br>
allowing I meant by using allow_module or allow_class. I guess you can'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 <<a href="mailto:m.van.rees@zestsoftware.nl">m.van.rees@zestsoftware.nl</a>><br>
Subject: [Zope] Re: i18n/L10n support in zope2<br>
To: <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: <ftls22$6vc$<a href="mailto:2@ger.gmane.org">2@ger.gmane.org</a>><br>
<br>
harshad behere, on 2008-04-10:<br>
> I also found workaound for MSIE behaviour, include heading call<br>
> "X-Is-Fallback-For: ?????\n" in your .po file. For e.g -<br>
> "X-Is-Fallback-For: de-de\n".<br>
<br>
Ah yes, that is the correct solution here indeed.<br>
<br>
> After making change and updating sample page template - (English as<br>
> primary language for both browsers)<br>
><br>
><html><br>
><body><br>
> English -<br>
><span i18n:domain="English" i18n:translate=""><br>
> Reload this catalog<br>
></span><br>
><br><br>
> German -<br>
><span i18n:domain="Germany" i18n:translate=""><br>
> Reload this catalog<br>
></span><br>
><br><br>
> Czech -<br>
><span i18n:domain="Czech" i18n:translate=""><br>
> Reload this catalog<br>
></span><br>
><br><br>
></body><br>
></html><br>
<br>
Huh? You now state languages in the i18n domain. Don'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>
Work | <a href="http://zestsoftware.nl/" target="_blank">http://zestsoftware.nl/</a><br>
"This is your day, don't let them take it away." [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 <<a href="mailto:mva.led@gmail.com">mva.led@gmail.com</a>><br>
Subject: Re: [Zope] Problem with zopectl debug<br>
To: Dieter Maurer <<a href="mailto:dieter@handshake.de">dieter@handshake.de</a>><br>
Cc: Zope user list <<a href="mailto:zope@zope.org">zope@zope.org</a>><br>
Message-ID: <<a href="mailto:47FEDA5F.2010604@gmail.com">47FEDA5F.2010604@gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
Dieter Maurer wrote:<br>
> Manuel Vazquez Acosta wrote at 2008-4-7 15:21 -0400:<br>
>> Dieter Maurer wrote:<br>
>>> That is very strange:<br>
>>><br>
>>> "zopectl debug" uses almost exactly the same startup sequence<br>
>>> as "zopectl fg" (at least until after the configuration).<br>
>>> Thus, if your Zope starts at all, "zopectl debug" should start.<br>
>> ...<br>
>> zopectl fg starts. Would need to see the starting sequence?<br>
><br>
> Really funny....<br>
><br>
> Unfortunately, this means that is will be quite difficult<br>
> to find the cause of your problem.<br>
><br>
> One approach would be to emulate in a pure Python interpreter<br>
> what "zopectl debug" would do for us.<br>
><br>
> You may try:<br>
><br>
> bin/zopectl shell # will create a new shell process with the correct environment<br>
> <your_zope_python><br>
> from Zope2.Startup.run import configure<br>
> configure('etc/zope.conf')<br>
> # this is likely to raise the exception you have earlier reported<br>
> from pdb import pm<br>
> pm() # analyse the exception context<br>
><br>
><br>
><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 <<a href="mailto:wmodes@ucsc.edu">wmodes@ucsc.edu</a>><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: <<a href="mailto:47FEE358.9040001@ucsc.edu">47FEE358.9040001@ucsc.edu</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope.<br>
Honestly I'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've verified that the database still seems to be there in<br>
[instance]/var/Data.fs and hasn'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('/manage') in python and see that it returns<br>
a "Resource not found" 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't enough here to determine whether there is a bug<br>
or whether I've mucked something up myself. 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? 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>
Hostname: <a href="http://library.ucsc.edu" target="_blank">library.ucsc.edu</a><br>
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>
Hostname: <a href="http://library.ucsc.edu" target="_blank">library.ucsc.edu</a><br>
Port: 8021<br>
------<br>
2008-04-10T14:43:08 INFO(0) Zope Set effective user to "zope"<br>
------<br>
2008-04-10T14:43:12 PROBLEM(100) Init Ambiguous name for method of<br>
Products.ZpdfDocument.ZpdfDocument.ZpdfDoc<br>
ument: "manage" != "manage_main"<br>
------<br>
2008-04-10T14:43:12 PROBLEM(100) Init Ambiguous name for method of<br>
Products.ZpdfDocument.ZpdfDocument.ZpdfDoc<br>
ument: "manage" != "manage_editForm"<br>
------<br>
2008-04-10T14:43:12 PROBLEM(100) Init Ambiguous name for method of<br>
Products.ZpdfDocument.ZpdfDocument.ZpdfDoc<br>
ument: "manage" != "manage_editDocument"<br>
------<br>
2008-04-10T14:43:14 INFO(0) ZODB Opening database for mounting:<br>
'146584832_1040950278.401039'<br>
------<br>
2008-04-10T14:43:14 INFO(0) ZODB Mounted database<br>
'146584832_1040950278.401039' 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>
Hostname: <a href="http://0.0.0.0" target="_blank">0.0.0.0</a><br>
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 'manage_menu'<br>
------<br>
2008-04-10T16:45:21 WARNING Init Ambiguous name for method of<br>
Products.ZpdfDocument<br>
.ZpdfDocument.ZpdfDocument: 'manage' != 'manage_main'<br>
------<br>
2008-04-10T16:45:21 WARNING Init Ambiguous name for method of<br>
Products.ZpdfDocument<br>
.ZpdfDocument.ZpdfDocument: 'manage' != 'manage_editDocument'<br>
------<br>
2008-04-10T16:45:21 WARNING Init Ambiguous name for method of<br>
Products.ZpdfDocument<br>
.ZpdfDocument.ZpdfDocument: 'manage' != 'manage_editForm'<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 & 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: "member madhangc" <<a href="mailto:madhangc@opensuse.us">madhangc@opensuse.us</a>><br>
Subject: [Zope] retrieving a single column from database and giving it<br>
as hyper link fetching respective data<br>
To: <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID:<br>
<<a href="mailto:5bf66e2f0804102202v7c56aaav1a7a75c92e4325a8@mail.gmail.com">5bf66e2f0804102202v7c56aaav1a7a75c92e4325a8@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Dear all,<br>
<br>
I'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 "Isoniazid" with all other<br>
links(drug names) in it. When a user clicks one of the links as i said<br>
before as "isoniazid" only the information about isoniazid has to be<br>
retreived and displayed , likewise to all the other drug links. 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 <<a href="mailto:lists@zopyx.com">lists@zopyx.com</a>><br>
Subject: Re: [Zope] Upgrade to 2.7.2 results in all content<br>
unavailable<br>
To: Wes Modes <<a href="mailto:wmodes@ucsc.edu">wmodes@ucsc.edu</a>>, <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: <7734EA77A97C8F32B29FE571@[<a href="http://192.168.0.24" target="_blank">192.168.0.24</a>]><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
<br>
<br>
--On 10. April 2008 21:04:40 -0700 Wes Modes <<a href="mailto:wmodes@ucsc.edu">wmodes@ucsc.edu</a>> wrote:<br>
<br>
> I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope.<br>
> Honestly I'm not sure what the previous version I was running was (nor am<br>
> 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's the reason for picking just _some_<br>
2.7 version? If you'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 <<a href="mailto:lists@zopyx.com">lists@zopyx.com</a>><br>
Subject: Re: [Zope] retrieving a single column from database and<br>
giving it as hyper link fetching respective data<br>
To: member madhangc <<a href="mailto:madhangc@opensuse.us">madhangc@opensuse.us</a>>, <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: <EC333FA7CFB5325A9E6EA108@[<a href="http://192.168.0.24" target="_blank">192.168.0.24</a>]><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
<br>
<br>
--On 11. April 2008 10:32:15 +0530 member madhangc <<a href="mailto:madhangc@opensuse.us">madhangc@opensuse.us</a>><br>
wrote:<br>
<br>
> Dear all,<br>
><br>
> I'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 "Isoniazid" with all other<br>
> links(drug names) in it. When a user clicks one of the links as i said<br>
> before as "isoniazid" only the information about isoniazid has to be<br>
> retreived and displayed , likewise to all the other drug links. 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>
<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 <<a href="mailto:hbehere@zeomega.com">hbehere@zeomega.com</a>><br>
Subject: Re: [Zope] Re: i18n/L10n support in zope2<br>
To: Maurits van Rees <<a href="mailto:m.van.rees@zestsoftware.nl">m.van.rees@zestsoftware.nl</a>><br>
Cc: <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: <<a href="mailto:47FF049B.4010604@zeomega.com">47FF049B.4010604@zeomega.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Maurits van Rees wrote:<br>
><br>
>> After making change and updating sample page template - (English as<br>
>> primary language for both browsers)<br>
>><br>
>> <html><br>
>> <body><br>
>> English -<br>
>> <span i18n:domain="English" i18n:translate=""><br>
>> Reload this catalog<br>
>> </span><br>
>> <br><br>
>> German -<br>
>> <span i18n:domain="Germany" i18n:translate=""><br>
>> Reload this catalog<br>
>> </span><br>
>> <br><br>
>> Czech -<br>
>> <span i18n:domain="Czech" i18n:translate=""><br>
>> Reload this catalog<br>
>> </span><br>
>> <br><br>
>> </body><br>
>> </html><br>
>><br>
><br>
> Huh? You now state languages in the i18n domain. Don'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>
<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 <<a href="mailto:yurj@alfa.it">yurj@alfa.it</a>><br>
Subject: [Zope] the grand reunion<br>
To: Plone developers <<a href="mailto:plone-developers@lists.sourceforge.net">plone-developers@lists.sourceforge.net</a>>,<br>
<a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: <<a href="mailto:47FF236E.6090700@alfa.it">47FF236E.6090700@alfa.it</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Hi!<br>
<br>
Actually I've two Plone "working envinronment" and one zope, each in a<br>
different machine:<br>
<br>
- one, with two zope 2.9 istances (one for developing), running both<br>
multiple Plone 2.5 instances<br>
- one, with zope 2.9, running multiple Plone 2.5 instances<br>
- one, with zope 2.7.9, running zope only applications<br>
<br>
We have bought "big iron" 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>
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>
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: "rishi pathak" <<a href="mailto:mailmaverick666@gmail.com">mailmaverick666@gmail.com</a>><br>
Subject: Re: [Zope] ExternalMethod - add new parameter<br>
To: "Dieter Maurer" <<a href="mailto:dieter@handshake.de">dieter@handshake.de</a>><br>
Cc: <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID:<br>
<<a href="mailto:180b672e0804110259y3bab270bm818efb363b292aa0@mail.gmail.com">180b672e0804110259y3bab270bm818efb363b292aa0@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
hi again,<br>
Let me clarify what I am doing and what is my approach till<br>
now.<br>
We have a portal using which users use our compute resources.<br>
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 'file system explorer'.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'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 <<a href="mailto:dieter@handshake.de">dieter@handshake.de</a>> wrote:<br>
<br>
> rishi pathak wrote at 2008-4-8 18:03 +0530:<br>
> > I dont have a need to run all the external method as root,<br>
> only<br>
> >some of them.<br>
><br>
> I did understand this *BUT* you do not have a choice.<br>
><br>
> While a single ExternalMethod runs as "root", the complete<br>
> Zope process runs as root -- and this applies to all<br>
> requests which are run in parallel with your ExternalMethod.<br>
><br>
> Please reread my former message.<br>
><br>
> If you have touble to understand the terms "thread" and/or "process",<br>
> consult Wikipedia to get some insight.<br>
><br>
> > ...<br>
> >On Tue, Apr 8, 2008 at 12:50 AM, Dieter Maurer <<a href="mailto:dieter@handshake.de">dieter@handshake.de</a>><br>
> wrote:<br>
> ><br>
> >> rishi pathak wrote at 2008-4-7 17:46 +0530:<br>
> >> >There is a requirement for running some external methods as super<br>
> user.<br>
> >> >For this I thought of adding a new parameter.If set the code would be<br>
> >> >executed with effective uid of root.<br>
> >><br>
> >> This is extremely dangerous.<br>
> >><br>
> >> To run code as super user, you need to change the effective user id.<br>
> >> Changing the effective user id affects the whole process -- not just<br>
> >> the thread executing your external method.<br>
> >> These things are very difficult to handle in a multi threaded<br>
> environment,<br>
> >> in general.<br>
> >> Moreover, running internet driven code uncontrolled as super user<br>
> >> is likely to be a big security risk.<br>
> >><br>
> >><br>
> >> Let your application write some command to a queue and process<br>
> >> the queue asynchronously. The processing can be performed as<br>
> >> super user.<br>
> >><br>
> >> If this is not possible, let your application communicate<br>
> >> with another process which runs as super user -- and pass on<br>
> >> synchronous commands from your application to this process.<br>
> >><br>
> >> In both cases, it is ensured that only the restricted command<br>
> >> set can be used to run something as super user -- and<br>
> >> not some arbitrary code....<br>
><br>
><br>
><br>
> --<br>
> Dieter<br>
><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 <<a href="mailto:chris@simplistix.co.uk">chris@simplistix.co.uk</a>><br>
Subject: Re: [Zope] Conditional dtml-boundary in dtml-sendmail<br>
To: Tom Von Lahndorff <<a href="mailto:tom@modscape.com">tom@modscape.com</a>><br>
Cc: Josef Meile <<a href="mailto:jmeile@hotmail.com">jmeile@hotmail.com</a>>, <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: <<a href="mailto:47FF36B7.50502@simplistix.co.uk">47FF36B7.50502@simplistix.co.uk</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Tom Von Lahndorff wrote:<br>
> The email library should be available to use with a Script (Python) and can<br>
> 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't get products installed, he'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 & Python Consulting<br>
- <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 <<a href="mailto:chris@simplistix.co.uk">chris@simplistix.co.uk</a>><br>
Subject: Re: [Zope] ExternalMethod - add new parameter<br>
To: rishi pathak <<a href="mailto:mailmaverick666@gmail.com">mailmaverick666@gmail.com</a>><br>
Cc: Dieter Maurer <<a href="mailto:dieter@handshake.de">dieter@handshake.de</a>>, <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: <<a href="mailto:47FF3723.1070604@simplistix.co.uk">47FF3723.1070604@simplistix.co.uk</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
rishi pathak wrote:<br>
> We have a portal using which users use our compute resources.<br>
> 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 'file system explorer'.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's<br>
> 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 & Python Consulting<br>
- <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 <<a href="mailto:chris@simplistix.co.uk">chris@simplistix.co.uk</a>><br>
Subject: Re: [Zope] Conditional dtml-boundary in dtml-sendmail<br>
To: Tom Von Lahndorff <<a href="mailto:tom@modscape.com">tom@modscape.com</a>><br>
Cc: <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: <<a href="mailto:47FF3819.3060908@simplistix.co.uk">47FF3819.3060908@simplistix.co.uk</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Tom Von Lahndorff wrote:<br>
> How is dtml more "error-prone" than python? I'd imagine that all depends on<br>
> who's authoring it.<br>
<br>
In this particular example, python'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's easy to make mistakes and generate emails that won't work with most<br>
clients.<br>
<br>
It's also harder to generate emails with the correct headers (Date,<br>
Message-ID, etc) than it should be, so you'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 & Python Consulting<br>
- <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 <<a href="mailto:r.ritz@biologie.hu-berlin.de">r.ritz@biologie.hu-berlin.de</a>><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: <ftndbt$k3d$<a href="mailto:1@ger.gmane.org">1@ger.gmane.org</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Yuri wrote:<br>
> Hi!<br>
><br>
<br>
Hi Yuri,<br>
<br>
[..]<br>
<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>
<br>
Maybe not exactly what you are asking for but I recommend you play<br>
with buildout a bit - I'm sure you'll appreciate the ease with which<br>
you can manage independent installations in a repeatable and easily<br>
modifiable way.<br>
<br>
> 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>
<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 (-> 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>
Raphael<br>
<br>
> So, what is the best approach to migrate the three servers?<br>
> _______________________________________________<br>
> Zope maillist - <a href="mailto:Zope@zope.org">Zope@zope.org</a><br>
> <a href="http://mail.zope.org/mailman/listinfo/zope" target="_blank">http://mail.zope.org/mailman/listinfo/zope</a><br>
> ** No cross posts or HTML encoding! **<br>
> (Related lists - <a href="http://mail.zope.org/mailman/listinfo/zope-announce" target="_blank">http://mail.zope.org/mailman/listinfo/zope-announce</a><br>
> <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>
<br>
------------------------------<br>
<br>
Message: 15<br>
Date: Fri, 11 Apr 2008 07:20:49 -0400<br>
From: "Jonathan" <<a href="mailto:dev101@magma.ca">dev101@magma.ca</a>><br>
Subject: Re: [Zope] Upgrade to 2.7.2 results in all content<br>
unavailable<br>
To: "Wes Modes" <<a href="mailto:wmodes@ucsc.edu">wmodes@ucsc.edu</a>>, <<a href="mailto:zope@zope.org">zope@zope.org</a>><br>
Message-ID: <003601c89bc6$18995130$677ba8c0@DESKTOP><br>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";<br>
reply-type=original<br>
<br>
<br>
----- Original Message -----<br>
From: "Wes Modes" <<a href="mailto:wmodes@ucsc.edu">wmodes@ucsc.edu</a>><br>
To: <<a href="mailto:zope@zope.org">zope@zope.org</a>><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>
>I upgraded to Zope 2.7.2 and all of my content can't be seen by Zope.<br>
> Honestly I'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>
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: "Peter Bengtsson" <<a href="mailto:peter@fry-it.com">peter@fry-it.com</a>><br>
Subject: Re: [Zope] Help writing test where bobobase_modification_time<br>
changes<br>
To: "Chris Withers" <<a href="mailto:chris@simplistix.co.uk">chris@simplistix.co.uk</a>><br>
Cc: zope user list <<a href="mailto:zope@zope.org">zope@zope.org</a>><br>
Message-ID:<br>
<<a href="mailto:bc95c2800804110447y5515ab5em728d0d2c1240c9ad@mail.gmail.com">bc95c2800804110447y5515ab5em728d0d2c1240c9ad@mail.gmail.com</a>><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>
""" This file works the same as a normal File expect that<br>
in manage_edit() the internal modification time is set immediately.<br>
Normally Zope objects get their internal modification set when<br>
the transaction manager commits.<br>
"""<br>
<br>
def manage_edit(self, title, content_type, precondition='',<br>
filedata=None, REQUEST=None):<br>
# here's the mock hack, we set the _p_mtime NOW instead of letting<br>
# the transaction manager do it at the end.<br>
self._p_mtime = time()<br>
return File.manage_edit(self, title, content_type,<br>
precondition=precondition,<br>
filedata=filedata, REQUEST=REQUEST)<br>
<br>
This worked beautifully in the integration test. I'm happy.<br>
<br>
On 10/04/2008, Chris Withers <<a href="mailto:chris@simplistix.co.uk">chris@simplistix.co.uk</a>> wrote:<br>
> Peter Bengtsson wrote:<br>
><br>
> > How can I solve this? Make one big transaction two without having to<br>
> > use transaction.get().commit() which I don't think I can use in unit<br>
> > tests as per Dieter's advice.<br>
> ><br>
><br>
> I'd suggest monkeypatching bobobase_modification_time on the objects you're<br>
> testing with. You're testing your cache code, not the implementation of<br>
> those objects, so replacing them with (partially) dummy objects is great for<br>
> avoiding this kind of problem and is a pattern I've used frequently...<br>
><br>
> cheers,<br>
><br>
> Chris<br>
><br>
> --<br>
> Simplistix - Content Management, Zope & Python Consulting<br>
> - <a href="http://www.simplistix.co.uk" target="_blank">http://www.simplistix.co.uk</a><br>
><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 <<a href="mailto:jmeile@hotmail.com">jmeile@hotmail.com</a>><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: <<a href="mailto:47FF5101.6050501@hotmail.com">47FF5101.6050501@hotmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
> Tom Von Lahndorff wrote:<br>
>> How is dtml more "error-prone" than python? I'd imagine that all<br>
>> depends on<br>
>> who's authoring it.<br>
><br>
> In this particular example, python's email package has a very OO<br>
> approach to generating emails.<br>
Yes, that's what I hate from the dtml thing; it looks ugly :-(<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's easy to make mistakes and generate emails that won't work with most<br>
> clients.<br>
><br>
> It's also harder to generate emails with the correct headers (Date,<br>
> Message-ID, etc) than it should be, so you're more likely to pump out<br>
> 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: "To, From,<br>
Content-Type, etc, you will get your email, but in a format that you<br>
can'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'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>
> The DTML approach also makes attaching files a living hell...<br>
Yep, I agree on this. You can't dynamically set the number of<br>
attachments and even if you don'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 <<a href="mailto:martijn@fourdigits.nl">martijn@fourdigits.nl</a>><br>
Subject: Re: [Zope] Upgrade to 2.7.2 results in all content<br>
unavailable<br>
To: Jonathan <<a href="mailto:dev101@magma.ca">dev101@magma.ca</a>><br>
Cc: <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: <<a href="mailto:47FF52C2.6010209@fourdigits.nl">47FF52C2.6010209@fourdigits.nl</a>><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>
><br>
> ----- Original Message ----- From: "Wes Modes" <<a href="mailto:wmodes@ucsc.edu">wmodes@ucsc.edu</a>><br>
> To: <<a href="mailto:zope@zope.org">zope@zope.org</a>><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>
>> I upgraded to Zope 2.7.2 and all of my content can't be seen by<br>
>> Zope. Honestly I'm not sure what the previous version I was running<br>
>> was (nor 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>
> What version of zope did you upgrade from?<br>
> What happens when you try to access any of the problem objects via the<br>
> ZMI?<br>
><br>
><br>
> Jonathan<br>
><br>
> _______________________________________________<br>
> Zope maillist - <a href="mailto:Zope@zope.org">Zope@zope.org</a><br>
> <a href="http://mail.zope.org/mailman/listinfo/zope" target="_blank">http://mail.zope.org/mailman/listinfo/zope</a><br>
> ** No cross posts or HTML encoding! **<br>
> (Related lists - <a href="http://mail.zope.org/mailman/listinfo/zope-announce" target="_blank">http://mail.zope.org/mailman/listinfo/zope-announce</a><br>
> <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 <<a href="mailto:jmeile@hotmail.com">jmeile@hotmail.com</a>><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: <<a href="mailto:47FF5318.1020807@hotmail.com">47FF5318.1020807@hotmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
> The email library should be available to use with a Script (Python) and<br>
> 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'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('Sending mail through python module')<br>
<br>
or<br>
<br>
import email<br>
msg = email.MIMEText.MIMEText('Sending mail through python module')<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 <robert@redcor.ch><br>
Subject: [Zope] Re: [Plone-developers] the grand reunion<br>
To: Yuri <<a href="mailto:yurj@alfa.it">yurj@alfa.it</a>><br>
Cc: Plone developers <<a href="mailto:plone-developers@lists.sourceforge.net">plone-developers@lists.sourceforge.net</a>>,<br>
<a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: <47FF6FFB.5080701@redcor.ch><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>
> Hi!<br>
><br>
> Actually I've two Plone "working envinronment" and one zope, each in a<br>
> different machine:<br>
><br>
> - one, with two zope 2.9 istances (one for developing), running both<br>
> multiple Plone 2.5 instances<br>
> - one, with zope 2.9, running multiple Plone 2.5 instances<br>
> - one, with zope 2.7.9, running zope only applications<br>
><br>
> We have bought "big iron" 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>
> 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>
> So, what is the best approach to migrate the three servers?<br>
><br>
> -------------------------------------------------------------------------<br>
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference<br>
> Don't miss this year's exciting event. There's still time to save $100.<br>
> Use priority code J8TL2D2.<br>
> <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>
> _______________________________________________<br>
> Plone-developers mailing list<br>
> <a href="mailto:Plone-developers@lists.sourceforge.net">Plone-developers@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/plone-developers" target="_blank">https://lists.sourceforge.net/lists/listinfo/plone-developers</a><br>
><br>
><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 21<br>
Date: Fri, 11 Apr 2008 09:55:59 -0400<br>
From: Thomas Bennett <<a href="mailto:bennetttm@appstate.edu">bennetttm@appstate.edu</a>><br>
Subject: Re: [Zope] retrieving a single column from database and<br>
giving it as hyper link fetching respective data<br>
To: <a href="mailto:zope@zope.org">zope@zope.org</a><br>
Message-ID: <<a href="mailto:200804110955.59072.bennetttm@appstate.edu">200804110955.59072.bennetttm@appstate.edu</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
On Friday 11 April 2008 01:02, member madhangc wrote:<br>
> Dear all,<br>
><br>
> I'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 "Isoniazid" with all other<br>
> links(drug names) in it. When a user clicks one of the links as i said<br>
> before as "isoniazid" only the information about isoniazid has to be<br>
> retreived and displayed , likewise to all the other drug links. 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>
>From your description I can't tell if you are already populating the<br>
two column page from a database or if it is a static html page. If<br>
I understand your issue correctly you can do all this with your<br>
database. 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>
online databases and descriptions for each. 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. 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>
<dtml-in get_drug _names><br>
<a href="http:/link/to/my/description/template/?my_recnum=<dtml-var drug_name_recnum>"><dtml-var my_drug_name></a><br>
</dtml-in><br>
<br>
same thing can be done in pagetemplates. You can see my example at<br>
<br>
<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. Each subject link to another template<br>
that selects data from the main table based on subject table'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>
><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>
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. 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 Appalachian State University<br>
Operations & Systems Analyst P O Box 32026<br>
University Library Boone, North Carolina 28608<br>
(828) 262 6587<br>
<br>
"... using OpenOffice.org, and save them back to disk automatically,<br>
in MS Word format. 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. Our public library has been<br>
offering these Linux public stations for the past three years."<br>
- 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 - <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