[Zope] Re: Zope Digest, Vol 47, Issue 13

member madhangc madhangc at opensuse.us
Sat Apr 12 13:17:29 EDT 2008


hi all, can anyone tel me how to query string in URL for querying data from
ZSQL from page containg DTML code.
thanx in advance..

On Sat, Apr 12, 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: Upgrade to 2.7.2 results in all content unavailable (Jonathan)
>   2. Re: Upgrade to 2.7.2 results in all content unavailable
>      (Wes Modes)
>   3. Re: Upgrade to 2.7.2 results in all content unavailable
>      (Thomas Bennett)
>   4. Critical System Hosed, Plan B - upgrade zope, convert db
>      (Wes Modes)
>   5. Database conversion (Wes Modes)
>   6. Re: Database conversion (Andreas Jung)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 11 Apr 2008 14:24:09 -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: <146101c89c01$3bf93fb0$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: "Dieter Maurer" <dieter at handshake.de>; <zope at zope.org>
> Sent: Friday, April 11, 2008 1:44 PM
> Subject: Re: [Zope] Upgrade to 2.7.2 results in all content unavailable
>
>
> >    2008-04-11 10:36:54 ERROR ZODB.lock_file Error locking file
> >    /var/lib/zope/var/Data.fs.lock
> >    Traceback (most recent call last):
> >      File "/usr/lib/zope/lib/python/ZODB/lock_file.py", line 63, in
> >    __init__
> >        lock_file(self._fp)
> >      File "/usr/lib/zope/lib/python/ZODB/lock_file.py", line 42, in
> >    lock_file
> >        fcntl.flock(file.fileno(), _flags)
> >    IOError: [Errno 11] Resource temporarily unavailable
>
> Make sure you have read/write access to the /var/lib/zope/var directory
> and
> that is 'owned' by 'zope'
>
>
> Jonathan
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 11 Apr 2008 12:14:30 -0700
> From: Wes Modes <wmodes at ucsc.edu>
> Subject: Re: [Zope] Upgrade to 2.7.2 results in all content
>        unavailable
> To: Dieter Maurer <dieter at handshake.de>, zope at zope.org
> Message-ID: <47FFB896.4030402 at ucsc.edu>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Better yet, here's a more informative debug output.  It tells me that
> zope thinks this is a new instance.  Though the old database is it place
> right where it should expect to see it.
>
>    *[root at library zope]# bin/zopectl debug*
>    Starting debugger (the name "app" is bound to the top-level Zope
> object)
>    2008-04-11 12:04:05 WARNING Init Class
>    Products.HappySession.HappySession.HappySession has a security
>    declaration for nonexistent method 'manage_menu'
>    [snipped a bunch of warnings...]
>
>    *>>> import Zope, ZPublisher*
>
>    *>>> ZPublisher.Zope('')*
>
>    Status: 200 OK
>    X-Powered-By: Zope (www.zope.org), Python (www.python.org)
>    Content-Length: 4066
>    Content-Type: text/html
>
>    [snipped a bunch of html and helpful info]
>    Zope Quick Start
>    You have not created any users in this Zope instance.  In order to
>    log in and manage this Zope instance, you'll need to add an
>    adminstrative
>    user account.
>
>    If you're running Zope on UNIX or Linux, you can create an
>    administrative
>    user account via the "zopectl adduser" command from a shell.
>    <b>Note: You'll
>    need to shut Zope itself down before "zopectl adduser" will work.
>    Restart
>    Zope after executing this command in order to log in.</b>
>
>    WARNING: you are running Zope 2.8.X with python 2.4.X, this is not a
>    supported
>    combination. Don't file bugreports or ask for support on zope.org.
>    ____________________________________________________________
>
>
>
> And apparently, I'm running 2.8.7 not 2.7.2 as I thought.  And I'm not
> supposted to ask you for help.  Help!
>
> W.
>
>
> >
> >
> >
> > Dieter Maurer wrote:
> >> Dieter Maurer wrote at 2008-4-11 19:13 +0200:
> >>
> >>> Wes Modes wrote at 2008-4-10 21:04 -0700:
> >>>
> >>>> 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
> >>>>
> >>> Difficult problems can be analyzed in interactive Python
> >>> sessions.
> >>>
> >>> Under *nix, you start such a session with "bin/zopectl debug"
> >>> (under Windows, this does not work but there are alternatives).
> >>>
> >>>    from request import getRequest
> >>>    request = getRequest()
> >>>    obj = request.traverse('pathpart_of_your_url')
> >>>    obj()
> >>>
> >>> If authentication is required, you use
> >>>
> >>>    from request import getAuthRequest
> >>>    request = getAuthRequest(user, password)
> >>>    ....
> >>>
> >>> If there are problems, you use "pdb.pm()" (or "dm.pdb.zpbd.pm()"
> >>> for better Zope support) to analyse them.
> >>>
> >>
> >> I forgot. You can download "request.py" from
> >>
> >>   http://www.dieter.handshake.de/pyprojects/zope/request.py
> >>
> >>
> >> In order to get rid of a deprecation warning, you must replace "Zope"
> >> with "Zope2".
> >>
> >>
> >>
> >
> > --
> >
> > Wes Modes
> > Server Administrator & Programmer Analyst
> > McHenry Library
> > Computing & Network Services
> > Information and Technology Services
> > 459-5208
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > 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 )
> >
>
> --
>
> Wes Modes
> Server Administrator & Programmer Analyst
> 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/20080411/2d1aa22a/attachment-0001.htm
>
> ------------------------------
>
> Message: 3
> Date: Fri, 11 Apr 2008 16:17:56 -0400
> From: Thomas Bennett <bennetttm at appstate.edu>
> Subject: Re: [Zope] Upgrade to 2.7.2 results in all content
>        unavailable
> To: zope at zope.org
> Message-ID: <200804111617.56442.bennetttm at appstate.edu>
> Content-Type: text/plain;  charset="utf-8"
>
> have you used locate or any other utility to make sure you only have one
> Zope
> installed, like "locate zope.conf" ?
>
> Thomas
>
> On Friday 11 April 2008 15:14, Wes Modes wrote:
> > Better yet, here's a more informative debug output.  It tells me that
> > zope thinks this is a new instance.  Though the old database is it place
> > right where it should expect to see it.
> >
> >     *[root at library zope]# bin/zopectl debug*
> >     Starting debugger (the name "app" is bound to the top-level Zope
> > object) 2008-04-11 12:04:05 WARNING Init Class
> >     Products.HappySession.HappySession.HappySession has a security
> >     declaration for nonexistent method 'manage_menu'
> >     [snipped a bunch of warnings...]
> >
> >     *>>> import Zope, ZPublisher*
> >
> >     *>>> ZPublisher.Zope('')*
> >
> >     Status: 200 OK
> >     X-Powered-By: Zope (www.zope.org), Python (www.python.org)
> >     Content-Length: 4066
> >     Content-Type: text/html
> >
> >     [snipped a bunch of html and helpful info]
> >     Zope Quick Start
> >     You have not created any users in this Zope instance.  In order to
> >     log in and manage this Zope instance, you'll need to add an
> >     adminstrative
> >     user account.
> >
> >     If you're running Zope on UNIX or Linux, you can create an
> >     administrative
> >     user account via the "zopectl adduser" command from a shell.
> >     <b>Note: You'll
> >     need to shut Zope itself down before "zopectl adduser" will work.
> >     Restart
> >     Zope after executing this command in order to log in.</b>
> >
> >     WARNING: you are running Zope 2.8.X with python 2.4.X, this is not a
> >     supported
> >     combination. Don't file bugreports or ask for support on zope.org.
> >     ____________________________________________________________
> >
> >
> >
> > And apparently, I'm running 2.8.7 not 2.7.2 as I thought.  And I'm not
> > supposted to ask you for help.  Help!
> >
> > W.
> >
> > > Dieter Maurer wrote:
> > >> Dieter Maurer wrote at 2008-4-11 19:13 +0200:
> > >>> Wes Modes wrote at 2008-4-10 21:04 -0700:
> > >>>> 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
> > >>>
> > >>> Difficult problems can be analyzed in interactive Python
> > >>> sessions.
> > >>>
> > >>> Under *nix, you start such a session with "bin/zopectl debug"
> > >>> (under Windows, this does not work but there are alternatives).
> > >>>
> > >>>    from request import getRequest
> > >>>    request = getRequest()
> > >>>    obj = request.traverse('pathpart_of_your_url')
> > >>>    obj()
> > >>>
> > >>> If authentication is required, you use
> > >>>
> > >>>    from request import getAuthRequest
> > >>>    request = getAuthRequest(user, password)
> > >>>    ....
> > >>>
> > >>> If there are problems, you use "pdb.pm()" (or "dm.pdb.zpbd.pm()"
> > >>> for better Zope support) to analyse them.
> > >>
> > >> I forgot. You can download "request.py" from
> > >>
> > >>   http://www.dieter.handshake.de/pyprojects/zope/request.py
> > >>
> > >>
> > >> In order to get rid of a deprecation warning, you must replace "Zope"
> > >> with "Zope2".
> > >
> > > --
> > >
> > > Wes Modes
> > > Server Administrator & Programmer Analyst
> > > McHenry Library
> > > Computing & Network Services
> > > Information and Technology Services
> > > 459-5208
> > >
> ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > 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 )
>
> --
> ====================================================================
> 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/
> ====================================================================
>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 11 Apr 2008 13:56:31 -0700
> From: Wes Modes <wmodes at ucsc.edu>
> Subject: [Zope] Critical System Hosed, Plan B - upgrade zope, convert
>        db
> To: zope at zope.org
> Message-ID: <47FFD07F.3030803 at ucsc.edu>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Okay, I accept that Zope is a mysterious god that requires sacrifice.
> And I wasn't able to solve the mysteries of how to get it up and running
> again with my old data after an unintentional "upgrade."
>
> However...  I can upgrade Python from 2.4.2 to 2.4.4 and upgrade Zope
> from 2.7.2 to 2.10.5, get that working, and then hopefully convert my
> old data.
>
> I can handle the python and zope upgrades, but have no idea how to take
> my old zope database and use it with my brand new zope installation.
>
> Any ideas?
>
> Wes
>
> --
>
> Wes Modes
> Server Administrator & Programmer Analyst
> 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/20080411/63a7fd94/attachment-0001.htm
>
> ------------------------------
>
> Message: 5
> Date: Fri, 11 Apr 2008 17:12:07 -0700
> From: Wes Modes <wmodes at ucsc.edu>
> Subject: [Zope] Database conversion
> To: zope at zope.org
> Message-ID: <47FFFE57.4090302 at ucsc.edu>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I am running Zope 2.10.5  I've just upgraded from Zope 2.7
>
> I would like to move my database to the newly created instance.
>
> I followed the very reasonable and clear instructions here,
> http://svn.zope.org/*checkout*/Zope/trunk/doc/FAQ.txt  (esentially, just
> moving the Data.fs file)
>
> However, the old data does not come up when I bring up the server again.
>
> Perhaps the old objects need conversion or some other juju?
>
> Any suggestions?
>
> W.
>
>
>
>
> --
>
> Wes Modes
> Server Administrator & Programmer Analyst
> 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/20080411/10ff79ea/attachment-0001.htm
>
> ------------------------------
>
> Message: 6
> Date: Sat, 12 Apr 2008 05:50:24 +0200
> From: Andreas Jung <lists at zopyx.com>
> Subject: Re: [Zope] Database conversion
> To: Wes Modes <wmodes at ucsc.edu>, zope at zope.org
> Message-ID: <22828623676BA87FC44FC6B2 at suxmac.local>
> Content-Type: text/plain; charset="us-ascii"
>
>
>
> --On 11. April 2008 17:12:07 -0700 Wes Modes <wmodes at ucsc.edu> wrote:
>
> > I am running Zope 2.10.5  I've just upgraded from Zope 2.7
> >
> > I would like to move my database to the newly created instance.
> >
> > I followed the very reasonable and clear instructions here,
> > http://svn.zope.org/*checkout*/Zope/trunk/doc/FAQ.txt  (esentially, just
> > moving the Data.fs file)
> >
> > However, the old data does not come up when I bring up the server again.
> >
> > Perhaps the old objects need conversion or some other juju?
>
> Even within the third new thread on this issue you have not told us about
> your "old" application. Is it core Zope?  Using any third party-products?
> Please provide details about the things you  have installed. We're not
> good
> in problem-solving-by-guessing.
>
> And please: don't create a new mail thread for followups. You have one
> issue
> and one mail thread is enough. We don't need three.
>
> 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/20080412/0cbd8303/attachment-0001.bin
>
> ------------------------------
>
> _______________________________________________
> Zope maillist  -  Zope at zope.org
>
>
>
> End of Zope Digest, Vol 47, Issue 13
> ************************************
>



-- 
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/20080412/a88c32e7/attachment.htm


More information about the Zope mailing list