Re: [Zope] where zope sessions are created zope-2.8.1

2008-09-12 Thread Andreas Jung



--On 12. September 2008 18:47:23 +0530 vaibhav pol <[EMAIL PROTECTED]> 
wrote:



hii,
 i am using zope-2.8.1,i just want to know that in which module zope
sessions have been created


Products.Sessions


and when i try to login into zope which module
is called first... if u have any idea please help me ..


No idea what you mean?! What is the reason/background of this question?

-aj

pgp6AmVCunLAG.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope error getting Plone running on HP UX

2008-09-12 Thread robert rottermann
I have not been near HP UX for more than 10 years..
but why dont you install zope plone from scratch?

this is very easy and done in less than an hour.
you then should have much more controll on what is happening when running 
zope/plone.
start with installing:
- easy_install
- ZopeSkell

and the creat a buildout with paster.
there are good tutorials on plone.org on how to do that.
robert

sjcurt02 schrieb:
> I've used the Plone-3.1.5.1-ex-UnifiedInstaller to install all necessary
> components on an HP-UX B.11.11 U 9000/800/L3000-8x system.  The Zope control
> pannel displays the following:
> 
> Zope Version: (Zope 2.10.6-final, python 2.4.5, hp-ux11)
> Python Version: 2.4.5 (#1, Sep 5 2008, 13:21:39) [GCC 3.3.2]
> System Platform: hp-ux11
> SOFTWARE_HOME: /public/plone/zinstance/parts/zope2/lib/python
> ZOPE_HOME: /public/plone/zinstance/parts/zope2
> INSTANCE_HOME: /public/plone/zinstance/parts/instance
> CLIENT_HOME: /public/plone/zinstance/var/instance
> Network Services: ZServer.HTTPServer.zhttp_server (Port: 9080)
> Process Id: 14823 (5)
> Running For: 4 min 54 sec
> 
> Accessing the Plone site results in a bus error and core dump.  Verbose
> debugging shows:
> 
> 
> # trying
> /public/plone/buildout-cache/eggs/plone.keyring-1.2-py2.4.egg/plone/keyring/random.sl
> # trying
> /public/plone/buildout-cache/eggs/plone.keyring-1.2-py2.4.egg/plone/keyring/randommodule.sl
> # trying
> /public/plone/buildout-cache/eggs/plone.keyring-1.2-py2.4.egg/plone/keyring/random.py
> # trying
> /public/plone/buildout-cache/eggs/plone.keyring-1.2-py2.4.egg/plone/keyring/random.pyc
> # trying
> /public/plone/buildout-cache/eggs/plone.contentrules-1.1.0-py2.4.egg/plone/contentrules/engine/storage.sl
> # trying
> /public/plone/buildout-cache/eggs/plone.contentrules-1.1.0-py2.4.egg/plone/contentrules/engine/storagemodule.sl
> # trying
> /public/plone/buildout-cache/eggs/plone.contentrules-1.1.0-py2.4.egg/plone/contentrules/engine/storage.py
> #
> /public/plone/buildout-cache/eggs/plone.contentrules-1.1.0-py2.4.egg/plone/contentrules/engine/storage.pyc
> matches
> /public/plone/buildout-cache/eggs/plone.contentrules-1.1.0-py2.4.egg/plone/contentrules/engine/storage.py
> import plone.contentrules.engine.storage # precompiled from
> /public/plone/buildout-cache/eggs/plone.contentrules-1.1.0-py2.4.egg/plone/contentrules/engine/storage.pyc
> # trying /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/base64.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/base64module.sl
> # trying /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/base64.py
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/base64.pyc
> sh: 702 Bus error(coredump)
> # clear __builtin__._
> # clear sys.path
> 
> 
> But a small test program that imports all the ZPublisher modules results in
> the following:
> 
> 
> # trying /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/socket.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/socketmodule.sl
> # trying /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/socket.py
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/socket.pyc
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/mimetools.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/mimetoolsmodule.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/mimetools.py
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/mimetools.pyc
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/httplib.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/httplibmodule.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/httplib.py
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/httplib.pyc
> # trying /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/base64.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/base64module.sl
> # trying /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/base64.py
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/base64.pyc
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/urlparse.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/urlparsemodule.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/urlparse.py
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/urlparse.pyc
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/HTTPRangeSupport.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/HTTPRangeSupportmodule.sl
> # trying
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/HTTPRangeSupport.py
> #
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/HTTPRangeSupport.pyc
> matches
> /public/plone/zinstance/parts/zope2/lib/python/ZPublisher/HTTPRangeSupport.py
> import 

Re: [Zope] DirectoryStorage product - zope won't start

2008-09-12 Thread Thomas Bennett
Thank you Dieter,  I've found that DirectoryStorage is not what I was looking 
for.  I didn't realize that DS was something more like an file system version 
of Data.fs.

Trying to install LocalFS it is missing two files, see below, and this is what 
happens with LocalFS and the updated LocalFS called StreamingFS.

  I wanted something more like the LocalFS product but it fails not finding 
content_types and then after adding content_types.py from Zope 2.6.1 it can't 
find ts_regex.  I see that content_types just uses re and mimetypes so I 
didn't think there would be any harm adding it from an older version of Zope 
to this one.  I added ts_regex.py from the 2.6.1 Zope and I can add a LocalFS 
object but opening it I get "Resource not found" and no errors on the 
terminal running zopectl fg.

Although when starting Zope I get 

/opt/zope/lib/python/ts_regex.py:15: DeprecationWarning: the regex module is 
deprecated; please use the re module
  import regex, regsub #, Sync
/usr/local/lib/python2.4/regsub.py:15: DeprecationWarning: the regsub module 
is deprecated; please use re.sub()
  DeprecationWarning)
/opt/zope/lib/python/OFS/Application.py:809: DeprecationWarning: __init__.py 
of Products.ExternalFile has a long deprecated 'methods' attribute. 'methods' 
support might be removed in Zope 2.11 or a later feature release. Please use 
the 'legacy' argument of registerClass instead if the methods are 
constructors. Or refactor the product using adapters.
  DeprecationWarning)


But I'm not sure what is involved in refactoring or registerClass and don't 
know if that will allow LocalFS to operate properly if that is done.  I 
assume filesystemview doesn't work with Zope alone, right?

I have moved away from the ExternalFile product because using the batch method 
does not update files in secondary folders, just the current folder and there 
are too many secondary folders to have to update each one individually.  

So, to anyone, is there a Product that works that will allow transparent 
access to files on the filesystem through zope, like LocalFS?



Thomas



On Wednesday 10 September 2008 13:36, Dieter Maurer wrote:
> Thomas Bennett wrote at 2008-9-9 13:12 -0400:
> >using
> >python 2.4.5
> >Zope 2.11.1-final
> >DirectoryStorage 1.1.19
> >
> >
> >First, is there a more preferable product to use to serve files, mostly
> > PDF, from the file system with Zope?
> >
> >I suspect lock_file.py has changed since the DirectoryStorage product was
> > last updated.
> >
> >I followed instructions on http://dirstorage.sourceforge.net/install.html
> > to install DirectoryStorage.  I got to step 11. "Start Zope" and at the
> > end of Traceback 1 (see below)
> >  File
> > "/usr/local/lib/python2.4/site-packages/DirectoryStorage/PosixFilesystem.
> >py", line 12, in ? from ZODB.lock_file import lock_file
> >ImportError: cannot import name lock_file
> >
> >There are no classes or methods named lock_file in lock_file.py so I
> > changed the import statement in PosixFilesystem.py to from ZODB import
> > lock_file
>
> The interface changed a bit.
>
> Now, it is assumed that "LockFile" is used (and "close" to release the
> lock).
>
> It is probably very simple to adapt "DirectoryStorage" correspondingly.

-- 

Thomas McMillan Grant Bennett   Appalachian State University
Operations & Systems AnalystP 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 
messaging, 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@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] where zope sessions are created zope-2.8.1

2008-09-12 Thread vaibhav pol
hii,
 i am using zope-2.8.1,i just want to know that in which module zope
sessions have been created and when i try to login into zope which module is
called first... if u have any idea please help me ..



thank you..
milind
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ZODB: Solutions similar to SQL triggers?

2008-09-12 Thread Andreas Jung



--On 12. September 2008 09:25:14 +0100 Phillip B Oldham 
<[EMAIL PROTECTED]> wrote:



How would I replicate the benefits of SQL triggers in ZODB?



No idea what your particular usecase is but the transaction module provides 
support for pre- and post-commit hooks beyond the standard DataManager 
functionality.


-aj

pgpqN9d9bljYM.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] ZODB: Solutions similar to SQL triggers?

2008-09-12 Thread Phillip B Oldham
How would I replicate the benefits of SQL triggers in ZODB?

-- 
Phillip B Oldham
[EMAIL PROTECTED]
+44 (0) 7525 01 09 01
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )