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