Re: [Zope] something missing in my Oracle setup?
hi justin, it is your oracle install. i have had bad experiences with the fancy shmancy 8.1.x java installer myself. oci.h is in a subdirectory of $ORACLE_HOME called 'rdbms'. i remember doing the client setup did not give me the stuff i needed so i basically copied everything it was missing from a second pretty much identical box with a full server install. it would be easiest if you had a machine with a full server install. jens ---- Jens Vagelpohl[EMAIL PROTECTED] Software Engineer www.digicool.com Digital Creations (888) 344-4332 Got Zope? on 5/29/00 18:04, Justin Sheehy at [EMAIL PROTECTED] wrote: > Hello, > > I am trying to build the DCOracle module and having trouble right off > the bat. I have tried both 1.3.0 and 1.3.1 b1 with the same results. > > The file src/oci_8.c does an #include "oci.h", but I don't seem to > have a file named oci.h in my oracle install: > > $ find $ORACLE_HOME -name '*.h' > /opt/orahome1/network/public/tnsapi.h > /opt/orahome1/network/public/nzerror.h > /opt/orahome1/network/public/nzt.h > /opt/orahome1/otrace/public/epc.h > /opt/orahome1/plsql/public/ociextp.h > /opt/orahome1/precomp/public/sql2oci.h > /opt/orahome1/precomp/public/sqlucs2.h > /opt/orahome1/precomp/public/oraca.h > /opt/orahome1/precomp/public/sqlapr.h > /opt/orahome1/precomp/public/sqlca.h > /opt/orahome1/precomp/public/sqlcpr.h > /opt/orahome1/precomp/public/sqlda.h > /opt/orahome1/precomp/public/sqlkpr.h > /opt/orahome1/precomp/public/a.out.h > /opt/orahome1/precomp/public/limits.h > /opt/orahome1/precomp/public/bits/mathcalls.h > /opt/orahome1/precomp/public/sys/ipc.h > > My Oracle install is the 'Programmer' distribution from Oracle 8.1.5. > > Do I need the full install, not just the Programmer install, or am I > missing something else? > > I tried using the Setup file for Oracle 8i on Linux that was sent to > this list by Laurent Chane-Chuen-Kee, but that does not have any > effect on the problem. > > Thanks, > > -Justin Sheehy > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] PowerMac 7500 with LinuxPPC and Zope?
hi daniel, zope should build and run just fine with that setup if you get the source distribution and compile it yourself. i am running zope on a pismo powerbook using Yellow Dog myself. jens on 6/27/00 14:22, Daniel Muller at [EMAIL PROTECTED] wrote: > Hi, > > I would like to turn an old Mac 7500 into a Zope server. LinuxPPC installs > on the Mac PowerPC using the Red Hat 6.1 linux distribution. Does anyone > have any experience with Zope with this type of set up? > > Should I consider a different linux distribution than PPC? > > Thanks, Daniel ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] What is the best way to do this?
alex, IMHO when you try to do stuff using ZClasses and DTML and it starts looking too complex to you then it is. DTML is made for presentation, not for driving an application. a very sound architectural approach, and one that scales very well as your site and organzation grows, is a base of python-based zope products with ZClasses that derive from them. all the logic happens in the python product and all presentation is in the derived ZClasses. this will not only speed up your code but it will also make it easy to control presentation because that is stored in the ZODB and can be manipulated through the web. the only drawback is that a change in the underlying python product code requires you to restart zope. if you're like me and can't stand messy and kludgy code you will appreciate the extra effort spent on writing a real python zope product. for starters look at "How to create a Boring Product" at http://www.zope.org/Members/gtk/Boring/HowTo-Boring . this will explain some of the structure that is needed for a python class to become a "zope product". another guide is at http://www.zope.org/Members/Zen/howto/ProductAPITutorial . for the latest changes that need to be considered when writing a product for zope 2.2 read brian's guide at http://www.zope.org/Documentation/How-To/ProductAuthorUpdateGuide . a good deal of knowledge can be gained from simply looking at the code of products available in your zope install under /lib/python/Products. jens Jens Vagelpohl [EMAIL PROTECTED] Software Engineer www.digicool.com Digital Creations (888) 344-4332 Got Zope? > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Alex Gould > Sent: Tuesday, July 04, 2000 21:11 > To: [EMAIL PROTECTED] > Subject: [Zope] What is the best way to do this? > > > Hello zope-masters, I humbly ask your advice on several > matters. I am > making an internal website for a statewide student activist group with > many members. It will hopefully feature discussion boards, a contact > database, and a calendar of events. I want to make the users of the > site part of the contact database, so that an entry in the database (a > name, phone number, etc.) can be easily "promoted" into a user with a > password and varying priveliges based on his/her role (volunteer, core > member, board chair, etc.) > Another feature I want to include is regional > specialization - each > contact/user, calendar event, and forum has an associated "region" - > statewide or a specific campus or something in between. That way a > user's default view of the statewide calendar won't be cluttered by > irrelevant events, and a search through the contact database would by > default only return results pertaining to the user's region. > I've tried building some custom zClasses but when > things start to get > complex the dtml code gets really messy, so I think I should use > external methods to do most of the work. > Basically I'd appreciate any advice on how to put these > ideas into code > or pointers to relevant documentation. I don't mean to sound like > "here's my very complicated plan, write the code for me", I just need > some tips on how to get started. Thanks. > > > -- > Building highways to reduce traffic is like > loosening your belt to reduce obesity. > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Manager Screen Authenication
hi sean, the zpasswd is run like this: python zpasswd.py access the password creation is in dialog form. jens p.s.: please don't send HTML-formatted mail to the list on 7/11/00 14:55, Sean S. Rowe at [EMAIL PROTECTED] wrote: Hello. I'm new to Zope and have just installed it on a server running BSD. I built the source and everything went fine. I went to localhost:8080 bypassing Apache and the welcome screen came up as it was supposed to. However, I cannot logon to the manage section of Zope. My password is always wrong. I changed my password with the following: 'python zpasswd.pyo -p new_password access'. Nothing I do seems to work and the only info I can find is on running with Apache not Zserver. Any help would be greatly appreciated. Thank you, Sean S. Rowe Output Technology Corporation ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] simple instructions for site search
chris, catalogs don't automatically search other catalogs they find. until this is implemented you could create a separate catalog that only catalogs other catalog instances (and your squishdot instance) and then you could ask that main catalog to give you all its other catalogs and simply fire off the search you want to do on each of them. if your site is very simple and the location/number of catalogs doesn't really change you could also hard-code them into a search page that asks all of them directly. jens > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Chris > Withers > Sent: Thursday, July 13, 2000 04:49 > To: Ethan Fremen > Cc: Sean Kelley; [EMAIL PROTECTED] > Subject: Re: [Zope] simple instructions for site search > > > ethan mindlace fremen wrote: > > You want the ZCatalog Howto: > > > > http://www.zope.org/Documentation/How-To/ZCatalogTutorial > > Do catalogs search otehr catalogs they find? > > Only asking 'cos I don't think that'll help him search his > whole site as > the Squishdot postings won't get searched. But, if the above is true, > then it should be okay since Squishdot is now subclassed from ZCatalog > :-) > > cheers, > > Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Linux user group
you can create this yourself: http://www.zope.org/Members/jens/docs/zope_on_cdrom jens on 7/13/00 10:29, CURTIS David at [EMAIL PROTECTED] wrote: > 1) Is there a ZOPE > demo for that runs on a CDROM? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] PCGI still not functional
bill, i saw the same symptoms this weekend when i helped a good friend set up a zope box to serve some of his domains from. his machine runs RH 6.1. what did it for me was to copy Zope.cgi from apache's cgi-bin directory back into the root of the affected zope install, he has two instances running. after doing that the problems went away. i double-checked the file to see if it points to the wrong places, but everything in there seemed OK otherwise. jens > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bill > Anderson > Sent: Tuesday, July 25, 2000 01:40 > To: [EMAIL PROTECTED] > Subject: [Zope] PCGI still not functional > > > > OK, it isn't just me, I've gotten email from others having > this problem; unfortunately, I > have had to tell them I still have it. > > I have tried using older pcgi code, I have tried the > PCGI_FDS_CLOSE=0 variable, and still, > nothing seems to work right. The second method worked once, > but a reboot stopped that > clean in it's tracks, and it doesn't work now. I've even > tried combining both of the > above; no luck. > > In the 2.2betas, and in 2.1.6, I could use ZServer and PCGI, > but now, I get one or the > other. Can someone at DC look into fixing this? We still get > unable to connect errors, > _even_ if the pcgi.soc file is created. > > I am getting this on _every_ 2.2.0 final server I have. On > Linux and HPUX. > > Eagerly awaiting resolution ... > > Bill > > -- > Do not meddle in the affairs of sysadmins, for they are easy to annoy, > and have the root password. > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] SiteAccess and zope2.2
terry, have you done the following: * get the *latest* version of SiteAccess (only SiteAccess versions >2.0 work woth zope 2.2.0 * run the little helper script that comes with SiteAccess2 to upgrade all existing SiteAccess-related objects to version 2 * just to be on the safe side, re-registered the access rules with their respective folders jens > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Terry Kerr > Sent: Friday, August 04, 2000 06:04 > To: [EMAIL PROTECTED] > Subject: [Zope] SiteAccess and zope2.2 > > > Hi, > > I am trying to upgrade from zope2.1.6 to zope2.2 and my SiteAccess no > longer seems to work. I have the new version of SiteAccess, > and product > is not broken, it just doesn't redirect any hostnames of any of my > sites. All domains point to the root of zope instead of their > respective folders. > > Do I have to change anything else? > > terry > > > -- > Terry Kerr ([EMAIL PROTECTED]) > Adroit Internet Solutions Pty Ltd (www.adroit.net) > Phone: +613 9563 4461 > Fax: +613 9563 3856 > Mobile: +61 414 938 124 > ICQ: 79303381 > > > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Reloading file objects?
a simple workaround, but one that pretty much prevents any caching anywhere, is to append the URL for this file with a changing query string, e.g. a timestamp. this is what it would look like: ?x=">My File jens > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Peter > Arvidsson > Sent: Thursday, August 10, 2000 07:29 > To: Gijs Reulen > Cc: Mailinglist Zope > Subject: Re: [Zope] Reloading file objects? > > > Something like that will probably work but I cant tell everyone that > visit the site to change their IE settings :/ > > Gijs Reulen skrev: > > > > Have you tried to disable the browser cache (or 'temp > internet files') ? > > > > > -Oorspronkelijk bericht- > > > Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Namens Peter > > > Arvidsson > > > Verzonden: donderdag 10 augustus 2000 12:56 > > > Aan: [EMAIL PROTECTED] > > > Onderwerp: [Zope] Reloading file objects? > > > > > > > > > I have file-objects containing pdf-files. When I change > the object to > > > contain another pdf-file (with "manage_upload") I get a > problem. When I > > > want to view the file it still shows the old file. > However when I choose > > > save to disk I get the new object and if I take a look at > its properties > > > (size etc...) they are for the new object. > > > > > > Does anyone know a way to get the file to show the new > pdf-file when I > > > want to view it? > > > > > > I have tried to put CONTENT="no-cache"> in the > > > page where I have the link to the file but that doesnt > affect the file > > > when I open it. The link I use are the path for the file > as it is on the > > > view-tab of the object. Is there some way to get it to > show the new file > > > when I view it and not only when I save it to disk or > open it in a new > > > window? > > > > > > ___ > > > Zope maillist - [EMAIL PROTECTED] > > > http://lists.zope.org/mailman/listinfo/zope > > > ** No cross posts or HTML encoding! ** > > > (Related lists - > > > http://lists.zope.org/mailman/listinfo/zope-announce > > > http://lists.zope.org/mailman/listinfo/zope-dev ) > > > > > > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Defining High Load in Heavily DB Driven site (was: [Zope] zope2.2.0 and what is high load)
hi dario, to clear up some possible misunderstandings and naming issues: we have two different beasts here. one is the number of threads that zope uses while it runs. this can be tweaked by invoking the start script with an argument like "t " or by editing z2.py and changing the default number of 4 threads. again, these are application threads. the database connections that were talked about are a different issue. these refer to the number of connections zope creates to its underlying ZODB object store. you can see them if you go to /Control_Panel/manage_debug in Zope < 2.2.0 or by using the link in the control panel in Zope > 2.2.0. the number of these connections is set in /lib/python/ZODB/DB.py and the default is 7. in general, when a thread attempts to do anything with zope it needs to get hold of a ZODB connection so it can read or otherwise manipulate objects in the ZODB. this is why the number of application threads should be smaller than the number of ZODB connections. tweaking these numbers is possible, but mileage may vary depending on your specific site and usage. jens Jens Vagelpohl [EMAIL PROTECTED] Software Engineer www.digicool.com Digital Creations (888) 344-4332 Got Zope? > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Dario > Lopez-Kästen > Sent: Friday, August 11, 2000 07:10 > To: [EMAIL PROTECTED] > Subject: [Zope] Defining High Load in Heavily DB Driven site (was: > [Zope] zope2.2.0 and what is high load) > > > Hello! > > I need to find more info on how Zope handles threading with > relation to > database connections. > > I am currently considering and evaluating Zope as one of the > options we have > to build a really large, completely databasedriven "enterprise scale" > web-platform. I am a bit worried about this "maximum of 7 > threads per db > connection" limitation mentioned previously, and I need to > know a) what does > this mean in terms of accesibility, b) how does it affect > performace, and c) > how does Zope work (in detail) with external database connections. > > We are going to be using Oracle as our DB backend, all our > served data will > be database *only* (some of it will be fairly large), and > efficient database > connections is *crucial* to what we intend to do. > > We are going to have between 10-20k users at most and I > expect the maximun > of simultaneous connections to be beween 400 - 900 under > heavy load; "normal > load" will probably oscillate around 25-200 simultaneous > connections (these > numbers are crude guesses, but take into account increased > usage over time > as more services are provided in the future). > > Bandwith problems are not an issue, nor is computing power. > > I would appreciate any pointers to documentation or people to ask. > > Sincerely, > > /dario > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] re module & through the web security
i for my part think it makes sense. not just from a security standpoint (think of those sites that allow members who are not necessarily hand-picked to write DTML or attempt to do so) but also from a knowledge level standpoint. who wants their site crashed just because the new programmer doesn't know how to use that re functionality correctly? looking back at all the products and projects i have been involved in i did not have to use the re module a single time. as you know, you can still use the whole module in zope code that resides on the filesystem, like in products or in external methods. i'd rather be inconvenienced once every few months than basically invite denial of service attacks. jens ---- Jens Vagelpohl The VW Type 4 on the Web: http://www.type4.org on 9/6/00 5:43, Chris Withers at [EMAIL PROTECTED] wrote: > Chris McDonough wrote: >> There's the perception at DC that >> 're' isn't appropriate for through-the-web usage because it's possible to >> write and use regex that sends the Python interpreter thread it's >> operating within into a neverending loop. Sorry. > > Am I the only one who thinks this is silly? > > One of Zope's key strengths is its granular security, right? > So why isn't it the reponsibility of the site > designer/maintainer/owner/whatever to ensure that only people he trusts > have the ability to write DTML? > > It seems like that perception is hobbling Python Methods, in particular, > by removing useful stuff like the re module because the assumption is > being made that people editing TTW code will be untrusted. > > IMH(umble), either you don't have confidence in Zope's security, or > you're assuming your users are stupid (that may be fair for a lot of us, > but still ;-) > > Comments? :-) > > Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] zope 2.2.2 not compiling
roland, there is a precompiled Win32 version available to download at: http://www.zope.org/Products/Zope/2.2.2/Zope-2.2.2-win32-x86.exe use that instead. jens on 10/10/00 3:02, Roland Tepp at [EMAIL PROTECTED] wrote: > Hi. I downloaded Zope 2.2.2 source and I am trying to compile it on > WinNT to run without pcgi and it fails (console output following this letter). > > I tried to track down the problem but I don't seem to make any progress. > Could You help me please... > > -- > Compiling python modules > > -- > Building extension modules > > > Compiling extensions in lib/python > cp D:\Python/lib/python/config/Makefile.pre.in . > The name specified is not recognized as an > internal or external command, operable program or batch file. > Traceback (innermost last): > File "D:\Python\Zope-2.2.2\wo_pcgi.py", line 116, in ? > if __name__=='__main__': main(sys.argv[0]) > File "D:\Python\Zope-2.2.2\wo_pcgi.py", line 104, in main > import build_extensions > File "D:\Python\Zope-2.2.2\inst\build_extensions.py", line 96, in ? > make('lib','python') > File "D:\Python\Zope-2.2.2\inst\do.py", line 135, in make > do("cp %s ." % wheres_Makefile_pre_in()) > File "D:\Python\Zope-2.2.2\inst\do.py", line 104, in do > if i and picky: raise SystemError, i > SystemError: 1 > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Medusa Monitor
terry, you forgot the step of actually connecting to the monitor :) there is a very short howto on using the correct client program to log into the monitor at: http://www.zope.org/Members/teyc/howtoMonitorClient and similar info at: http://www.zope.org/Documentation/Misc/DEBUGGING.txt jens on 10/10/00 18:48, Terry Kerr at [EMAIL PROTECTED] wrote: > Use it for debugging sometimes. > > Is very easy to use. Basically > > import Zope > z = Zope.app() > > then z is the root of your zope tree so you can do anything. You will need > to import any other python modules you need too. > > terry > > Hung Jung Lu wrote: > >> Hi, >> >> Zope comes with the Medusa monitor (port 8099 by default) which is kind of >> cute and allows one to get into the guts of Zope. But do people really use >> it? How do people use it? Is there any document describing the usages of >> this monitor? Are there some features of this monitor that makes debugging >> easier? >> >> regards, >> >> Hung Jung ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope/PIL collision - what to do?
try something like import PIL image = PIL.Image.open('foo.png') that way you do not have two names "Image" colliding in the names Zope sees jens Jens Vagelpohl[EMAIL PROTECTED] Software Engineer www.digicool.com Digital Creations (888) 344-4332 Got Zope? on 10/26/00 18:44, Anselm Lingnau at [EMAIL PROTECTED] wrote: > I'm trying to use the Python Imaging Library in an external Python > method to modify some images dynamically. However, when I try to load > an image: > > import Image# from PIL - refers to PIL ImageFile module > image = Image.open("foo.png") > > the method crashes because the Image module sees the Zope »ImageFile« > module instead of the one from PIL. The Zope module, of course, does > something completely different from the other one. This is on Debian > GNU/Linux 2.2 with Zope 2.2.2 (taken from the »unstable« distribution > and re-built -- the Zope in Debian 2.2 is older) and the PIL 1.0.1 > from the distribution. > > How do I get around this? > > Anselm ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZODB in a hosed state
this error is coming out of the postgres database adapter. something happened while a database request was processed and database connection from the DA to postgres got disconnected. jens On 11/18/00 16:10, "Bak @ kedai" <[EMAIL PROTECTED]> wrote: > hi, > i sometimes got this traceback from zope, and my site will be in a totally > unusable state. i use zope2.2.2 with zeo0.4.1 and postgresql6.5 on RH > linux. > > i'm not sure whre the bug lies. also, can anybody be so kind and point me > to where i can check postgresql error > > the traceback > -- > 2000-11-16T03:08:04 PANIC(300) ZODB A storage error occurred in the last > phase o > f a two-phase commit. This shouldn't happen. The application may be in a > hosed > state, so transactions will not be allowed to commit until the site/storage > is r > eset by a restart. > Traceback (innermost last): > File /usr/local/Zope/lib/python/ZODB/Transaction.py, line 296, in commit > File /usr/local/Zope-2.2.0b3-src/lib/python/Shared/DC/ZRDB/THUNK.py, line > 108, > in tpc_finish > File /home/kdie/Zope-2.0.1-src/lib/python/Products/ZPyGreSQLDA/db.py, line > 114 > , in _finish > pg.error: pqReadData() -- backend closed the channel unexpectedly. > This probably means the backend terminated abnormally > before or while processing the request. > > thanks > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Stupid Installation Question Remains Unanswered
> Well, actually, the REAME.txt doesn't say ANYTHING about how to install it. > It *does* refer to doc/INSTALL.txt, which, unfortunately, is nowhere to be > found: there is no directory called *doc* nor any INSTALL.txt file that I > can see. Here's what unzipped: snip snip > drwxr-xr-x 3 webmaste users4096 Sep 18 11:22 doc snip snip umh, what's that part of your listing if not a "doc" directory..? jens On 11/18/00 22:53, "Ben Ocean" <[EMAIL PROTECTED]> wrote: > Well, actually, the REAME.txt doesn't say ANYTHING about how to install it. > It *does* refer to doc/INSTALL.txt, which, unfortunately, is nowhere to be > found: there is no directory called *doc* nor any INSTALL.txt file that I > can see. Here's what unzipped: > > drwxr-xr-x 11 webmaste users4096 Nov 18 13:57 . > drwxr-xr-x 3 webmaste users4096 Nov 18 00:58 .. > -rw-r--r-- 1 webmaste users 28 Nov 9 1999 .cvsignore > drwxr-xr-x 2 webmaste users4096 Sep 18 11:22 Extensions > -rw-r--r-- 1 webmaste users3479 Mar 9 1999 LICENSE.txt > -rw-r--r-- 1 webmaste users2074 Jul 23 1999 README.txt > drwxr-xr-x 4 webmaste users4096 Sep 18 11:22 ZServer > drwxr-xr-x 3 webmaste users4096 Sep 18 11:22 doc > drwxr-xr-x 2 webmaste users4096 Sep 18 11:22 import > drwxr-xr-x 2 webmaste users4096 Sep 18 11:22 inst > drwxr-xr-x 4 webmaste users4096 Sep 18 11:22 lib > drwxr-xr-x 7 webmaste users4096 Sep 18 11:22 pcgi > drwxr-xr-x 2 webmaste users4096 Sep 18 11:22 utilities > drwxr-xr-x 2 webmaste users4096 Sep 18 11:22 var > -rw-r--r-- 1 webmaste users4492 Jul 22 1999 w_pcgi.py > -rw-r--r-- 1 webmaste users4578 Oct 14 1999 wo_pcgi.py > -rw-r--r-- 1 webmaste users 22630 Aug 29 08:41 z2.py > -rw-r--r-- 1 webmaste users8832 May 10 2000 zpasswd.py > > So, back to my original question: How the &$)@#* do I install this??? > TIA, > BenO > > At 08:07 PM 11/18/2000 +, you wrote: >> * Ben Ocean <[EMAIL PROTECTED]> [001118 09:51]: >>> Hi; >>> Okay, hope I did this right... Installed Zope in a directory at doc root >>> (called zope) and untarred it. Now I have a directory called >> Zope-2.2.2-src >>> with a bunch of stuff in it. What do I do from here? How do I see it >> working? >>> TIA, >>> BenO >> >> umm, try reading the the README.txt file in that directory. and the >> INSTALL.txt file in the docs directory. >> >> seb > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Still More Problems On the Install...
i don't think python got to version 2.2.2 yet only zope did. i suppose if you could send some of the "stuff" that printed to the screen, especially the "stuff" around that error message, someone could help you. and maybe what version of python you're really running. jens On 11/19/00 7:08, "Ben Ocean" <[EMAIL PROTECTED]> wrote: > Hi; > Okay, I've untarred the distro. The instructions said to type in *python > w_pcgi.py*. Did so and lots of stuff printed to screen, the last of which > was *SystemError 512*. Should I worry about that? Then I thought I was > supposed to type in *./start* but it didn't recognize that command. I'm > running Python 2.2.2. Thanks for your help. > BenO > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Still More Problems On the Install...
ben, as far as i know python 2.0 is not (yet) fully supported. if you look at that famous INSTALL.txt again you will see this: Important notes ZOPE 2.0 REQUIRES PYTHON 1.5.2! See CHANGES.txt for important notes on Zope 2.0. so i suggest you try it with python 1.5.2. jens On 11/19/00 16:06, "Ben Ocean" <[EMAIL PROTECTED]> wrote: > At 12:19 PM 11/19/2000 +, you wrote: >> * Ben Ocean <[EMAIL PROTECTED]> [001119 06:38]: >>> Hi; >>> Okay, I've untarred the distro. The instructions said to type in *python >>> w_pcgi.py*. Did so and lots of stuff printed to screen, the last of which >>> was *SystemError 512*. Should I worry about that? Then I thought I was >>> supposed to type in *./start* but it didn't recognize that command. I'm >>> running Python 2.2.2. Thanks for your help. >> >> You shouldn't get any errors. What OS are you running? > > RedHat 6.? > >> Version of >> python? > > Python 2.0 > >> Is there any more information apart from SystemError 512? >> What's the output just before that error? > > Okay, I ran the line again and here's what I got: > > Traceback (most recent call last): > File "/apache/vhosts/zope/Zope-2.2.2-src/w_pcgi.py", line 111, in ? >if __name__=='__main__': main(sys.argv[0]) > File "/apache/vhosts/zope/Zope-2.2.2-src/w_pcgi.py", line 109, in main >import wo_pcgi; wo_pcgi.main(me) > File "/apache/vhosts/zope/Zope-2.2.2-src/wo_pcgi.py", line 104, in main >import build_extensions > File "/apache/vhosts/zope/Zope-2.2.2-src/inst/build_extensions.py", line > 96, in ? >make('lib','python') > File "/apache/vhosts/zope/Zope-2.2.2-src/inst/do.py", line 135, in make >do('make') > File "/apache/vhosts/zope/Zope-2.2.2-src/inst/do.py", line 104, in do >if i and picky: raise SystemError, i > SystemError: 512 > [webmaster@thor Zope-2.2.2-src]$ > > Thanks for your help. > BenO > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] More Problems Compiling from Source Code
ben, python 2.0 is not officially supported yet. you will need to install the supported version (python 1.5.2). jens on 12/23/00 5:22, Ben Ocean at [EMAIL PROTECTED] wrote: > Hi, > I'm trying to recompile Zope from the source because of a module I want to > include to better enable MySQL. I'm running into a problem when I try to > execute this: > python wo_pcgi.py > It executes a bunch then chokes here: > > gcc -fpic -g -O2 -Wall -Wstrict-prototypes -I/usr/local/include/python2.0 - > I/usr/local/include/python2.0 -DHAVE_CONFIG_H -c > ./../Components/cPickle/cPickle.c > ./../Components/cPickle/cPickle.c:57: mymath.h: No such file or directory > make: *** [cPickle.o] Error 1 > Traceback (most recent call last): > File "wo_pcgi.py", line 116, in ? > File "wo_pcgi.py", line 104, in main > File "/apache/vhosts/Zope-2.2.4-src/inst/build_extensions.py", line 96, in > ? > make('lib','python') > File "/apache/vhosts/Zope-2.2.4-src/inst/do.py", line 135, in make > do('make') > File "/apache/vhosts/Zope-2.2.4-src/inst/do.py", line 104, in do > if i and picky: raise SystemError, i > SystemError: 512 > > I dunno what the problem is with the cPickle, I believe the install of > python-2.0 was clean, any suggestions? > TIA, > BenO > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] première version de l'interface francisée de Zope
babelfish.altavista.com produced the following (amusing) translation: ** Hello, * You pouver to download a first version of the francized interface of Zope (currently 2.2.4) to the following address: http://zdp.zope.org/projects/zi18n/zzlocale/zzlocale_fr.tar.gz * you should install the product zzlocale: http://www.zope.org/Members/yemartin/zzLocale * To create a repertory lib/python/locales under your root of Zope and décompacter zzlocale_fr.tar.gz in this repertory. You must then have: let us lib/python/locales/fr/buttons lib/python/locales/fr/tabs lib/python/locales/fr/AccessControl/access.dtml lib/python/locales/fr/AccessControl/addUser.dtml [... ] * In Control_Panel (oops Paneau_de_controle) you have a mitre of management of the language (fixes or according to the navigator) It does not remain badly of shells, of awkwardnesses of drafting, and lack of coherence. Do not hesitate has to make share of your remarks and corrections. PS: Is Rémy for next the tar.gz, it possible to integrate the path lib/python/locales/fr directly? Didier. * on 12/23/00 11:36, Didier Georgieff at [EMAIL PROTECTED] wrote: > Bonjour, > > * Vous pouver télécharger une première version de l'interface francisée de > Zope (actuellement 2.2.4) à l'adresse suivante : > > http://zdp.zope.org/projects/zi18n/zzlocale/zzlocale_fr.tar.gz > > * il vous faut installer le produit zzlocale : > > http://www.zope.org/Members/yemartin/zzLocale > > * Créer un répertoire lib/python/locales sous votre racine de Zope et > décompacter zzlocale_fr.tar.gz dans ce répertoire. > > Vous devez alors avoir : > > lib/python/locales/fr/buttons > lib/python/locales/fr/tabs > lib/python/locales/fr/AccessControl/access.dtml > lib/python/locales/fr/AccessControl/addUser.dtml > [...] > > * Dans le Control_Panel (oops Paneau_de_controle) vous > avez un onglet de gestion de la langue (fixe ou selon le > navigateur) > > Il reste pas mal de coquilles, de maladresses de rédaction, et > de manque de cohérence. N'hésitez pas a faire part de vos > remarques et corrections. > > PS : Rémy pour le prochain tar.gz, est il possible d'intégrer le chemin > lib/python/locales/fr directement ? > > Didier. > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] passing parameters in a call/in/with
try... jens on 12/26/00 17:32, Lloyd Kvam at [EMAIL PROTECTED] wrote: > This is also a problem for me. > >> From using ZNOLK I have a DTML document that uses dtml-in to execute a query. > The query is get_names_for_id and is: > select name from name_table where id = > > I can now call the form using: > http://localhost:8080/form?chosen_id=123 > > My dtml form would be simpler if there was a way to code: > > > I was unable to make that work. > > Olaf Zanger wrote: > >> hi there, >> >> with the znolk product i get data by "select * ..." out of my database. >> some fields >> are id's and i would like to get data out of an other table basing on >> this id. >> >> how can i pass the id through a ? >> >> olaf >> ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Advice on searching/indexing Word documents?
if you're on linux check out WVWare: http://www.wvware.com it's a C library that handles all word doc formats since 6.0 or so jens On Tue, 02 Jan 2001, Bowyer, Alex wrote: > Our company has a repository of staff CVs (Resumes) as Word Documents and I > am about to embark on creating a new feature for our Zope Intranet to allow > project managers to search those documents for keywords such as particular > skills or projects. > > I am thinking about several possibilities such as a skills/CVs database > linked in via ODBC, or some task that converts the Word documents to text > files which can then be searched by Zope (I think Zope can do this, and I > assume it can't search Word format directly?). > > Has anyone ever approached a similar problem, does anyone have any tips on > how to index/search a load of documents in Zope? > > Any tips/suggestions/comments would be most welcome. > > Thanks, > > Alex ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] [python] converting int to string?
in python you can do: str(int) and in zope you do it like _.str(int) "Learning Python" by o'reilly is a pretty good beginner's book for python. i suggest you read it. it's well written and gives you the basics. jens on 1/7/01 11:12, Lee at [EMAIL PROTECTED] wrote: > Hi, > > I wonder if anyone could help me here... > > Is there any way to convert an integer to a string data type in Python? > I see there is a facility for accomplishing the reverse conversion > (string -> int)? > > I have 4 integers, which are primarily used to handled the logic in the > program below (in the while loops). The value of this integer must also > be added to a string (as a table column name), which will be used to > create a SQL query. > > Here's a rough sketch of the program: > > p = 2 # no.of practicals > t = 2 # no.of tutorials > a = 2 # no.of assignments > b = 3 # no.of bomus marks > > c = "52225" > > SQL = "CREATE TABLE CLASS" + c + "\n" > SQL = SQL + "( \n" > SQL = SQL + "matric float, \n" > SQL = SQL + "fname varchar, \n" > SQL = SQL + "lname varchar, \n" > SQL = SQL + "uname varchar, \n" > > while p > 0 : >SQL = SQL + "p" + p + " integer, \n" # cannot add type "int" to > string >p = p - 1 > > while t > 0 : >SQL = SQL + "t" + t + " char(1), \n" >t = t - 1 > > while a > 0 : >SQL = SQL + "a" + a + " integer, \n" >a = a - 1 > > while b > 1 : >SQL = SQL + "b" + b + " integer, \n" >b = b - 1 > while b > 0 : > SQL = SQL + "b" + b + " integer \n" # ',' taken out from last > query > b = b - 1 > > SQL = SQL + ")" > > Of course, I could have a load of statements in the while loops like: > > if p = 1: > pString="1" > ... etc. > > But that would look hella ugly! > > Another alternative would be to send both the integer value and a string > parameter (converted by Zope) in the calling DTML method. This is okay - > but is there a better way to do it? > > As usual, thankyou very much in advance. > > Is this off-topic BTW? Should I address any future questions regarding > Python to a Python newsgroup/list? > > -- > Lee Reilly > mailto:[EMAIL PROTECTED] > http://www.footkick.co.uk/lee > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] multiple unknown parameters -> ZSQL
this could be done in python in either an external method or python script/method. you can execute arbitrary SQL (which you would dynamically generate in python) on a database connection using the "query" method that is part of every database adapter. you need to - get a handle to your database connection by *calling* the database connection you have in your ZODB, like "db_conn = self.mydbconnection()" - once you have constructed the string carrying the SQL for one update statement you can pass it as argumant to the query method on the database connection, like "result = db_conn.query(sql_string)" looking at that page you put up you will have to create a SQL string for every student shown on the page and pick the correct variables from REQUEST for the SQL update statement. jens on 1/9/01 17:10, Lee at [EMAIL PROTECTED] wrote: > Hi, > > As usual, I'm finding this one hard to explain... so I've described it > with the aid of a diagram @ > http://homepages.strath.ac.uk/~aeu97172/h.htm > > I realise that this may be more of a burden on your time than a normal > request... but I'm hoping that some of you have met similar problems > before and can suggest the best way round the problem. > > Any comments would be greatly appreciated. > > Thanks very much, > > Lee > > -- > Lee Reilly > mailto:[EMAIL PROTECTED] > > ø?º°`°º?øø?º°`°º?øø?º°`°º?øø?º°`°º?ø > > HAVE SKILLS; WILL TRAVEL. > > I'm currently looking for an internship in the USA > in the field of web development. Ideally, I'm looking > for a placement for 3 to 18 months. Can you help? > > More details, my resume, etc. @ > http://homepages.strath.ac.uk/~aeu97172/ > > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] REQUEST object - obtaining variables from
here's how you could display the form variables on the receiving object: : REQUEST.form will contain all the fields from the form and REQUEST.form.items() will give you access to all key-value pairs that you can then access with sequence-key and sequence-item in the loop. jens on 1/13/01 13:11, Lee at [EMAIL PROTECTED] wrote: > Hi, > > I am having some problems with the REQUEST namespace/object. I > understand that if I submit form data then it can be retrieved using the > REQUEST object. I have looked at Chapter 7 (Advanced DTML) for support > but I'm still no closer to success. > > I have a DTML method, which passes an unknown number of arguments with > unknown names to another method. For example, > > > Name > Age > Name > Age > > > > I would like the display method to simply show each of the variable's > names and values i.e. iterate through each variable in the REQUEST > object. Maybe I've overlooked something in the Zope documentation but > could someone supply a useful snippet of code to get me started? > > Thanks very much, > > Lee ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Design Q: Product vs. External Methods
if you run zope in debug mode (./start -D) you won't have to hit 'edit" - all external methods are re-read every time you access them. jens on 1/15/01 6:04, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: > I also would like to know, if it is possible to update a bunch of external > method zope objects simultaneously, or do I have to click 'edit' on every > single external method object after editing the corresponding python method? ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope 2.3.0 beta 1 comments
i had the intermittent "browser displays the CSS text and not the real page" in another situation go away by expressly setting the content type in the linked CSS file. the first line would become... jens on 1/17/01 8:20, Martijn Pieters at [EMAIL PROTECTED] wrote: > On Wed, Jan 17, 2001 at 10:07:30AM +, Chris Withers wrote: >> - When you resize the top frame, you get back a load of CSS (but as text >> and without a content type) This didn't happen in a2. > > If you switch to inline CSS (instead of linked CSS) this problem will go > away. In a2 the inline/linked descision was made for you by using browser > sniffing (which isn't very reliable as many people use filtering proxies > these days). > > Netscape 4 is just way broken. I suspect that is also why Netscape > sometimes doesn't render a page. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ANNOUNCE: please have a look at ZDatabaseTool
here's a result from the "other side of the fence": it works just fine using IE5 on macOS 9.1 :) jens Jens Vagelpohl[EMAIL PROTECTED] Software Engineer www.digicool.com Digital Creations (888) 344-4332 Got Zope? on 1/29/01 12:24, Andreas Heckel at [EMAIL PROTECTED] wrote: > Perhaps we can get more feedback from WinXX users on this list ?! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] basic &dtml syntax question
jason, this is called 'entity notation'. the semicolon is a standard part of it. another example of an item in entity notation would be to replace "<" with < or the often abused blank space this entity notation is a general HTML thing, it's not zope-specific. jens on 1/30/01 17:49, Jason Cunliffe at [EMAIL PROTECTED] wrote: > example: >^ >^ >^ >? > > Please can anyone explain why <&dtml...> syntax has a semi-colon ; at the > end? > > What is for? > Why is necessary? etc > How to use/abuse it? > > thanks > Jason > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Does anyone care whether we deprecate ZClasses?
On Apr 6, 2005, at 6:59, Andreas Jung wrote: --On Dienstag, 5. April 2005 16:38 Uhr -0400 Jake <[EMAIL PROTECTED]> wrote: And that is probably the best arguement for keeping them around longer. We should get to the point: if some people depend on ZClasses then they should take over some responsibility in maintaining them in future releases. It can not be that a "feature" regarded as obsolete (from the majority) and almost unmaintained and untouched since ages holds up further releases. Amen. Actually, instead of maintaining them in the core the current users should immediately look at breaking it out of the core into a separate product, as suggested earlier, and maintain that product. I believe that would make it simpler both from a Zope maintainer perspective as well as from the ZClass maintainers' perspective. jens ___ 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] Re: login page problem
On Apr 6, 2005, at 0:52, Chris Withers wrote: Dieter Maurer wrote: exUserFolder has built in caching (positive and negative caches), Dunno what that means, but SUF supports caching via standard RAMCacheManagers or ZSQL method caching. "negative" caching means that there is a separate cache to cache failed user lookups for a while and return a failure immediately instead of re-trying the user lookup doing a (possibly expensive) user search in the underlying backend.It's a little bit like Squids negative_ttl, which is used to specify a duration for caching error responses. The negative cache allows the backend to "recover" and/or prevents backend overloading because otherwise every failing lookup would hit the backend again and again. jens ___ 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] symbols undefined after product refresh?
On Apr 8, 2005, at 15:20, Jürgen Herrmann wrote: hi! after reloading my own products through the zmi it seems like some classes and methods gets undefined. please see the following traceback: Refresh is *not* the panacea to avoid all restarts. If things get funky, restart. Simple as that. jens ___ 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] Session without cookies.
On Apr 11, 2005, at 23:47, Fernando Lujan wrote: Note that it says "Zope-generated" URLs. URLs that are not generated by Zope will not be encoded. The URL is generated by Zope. It's a simple code. I create two dtml documents with the following code. 1)test The URL "test1" in the form tag is obviously *not* generated by Zope. You put it in there manually. So it cannot work as you expect. jens ___ 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] Session without cookies.
On Apr 12, 2005, at 1:02, Fernando Lujan wrote: The URL "test1" in the form tag is obviously *not* generated by Zope. You put it in there manually. So it cannot work as you expect. Hum, I see. Just web pages that aren't dinamically generated by Zope. For instance, other DTML document will not keep the Session. Is this correct? No, you misunderstand what Chris said earlier. You need to let Zope generate the URL. In this case, instead of just saying... you could do "> of course that's ugly because it looks like putting a tag inside a tag, ZPT is much nicer that way: jens ___ 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] Subfolders of Extensions folder
On Apr 15, 2005, at 12:40, Vital Lobachevsky wrote: Hi, all! Can I use the folders in Zope's "Extensions" folder to keep the External Methods in more logical way? No, I think they all need to be at the toplevel directory. If you have too many external methods you should be writing a Python Zope product to store that logic. jens ___ 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] CMF 1.5.1beta2 Released
Zope Corporation is pleased to announce the release of version 1.5.1beta2 of the Zope Content Management Framework (CMF). This release is intended for testing purposes only; we do not recommend deploying it to production servers. The final release of version 1.5.1 is expected on the weekend of April 24, 2005. What is the CMF? The Zope Content Management Framework provides a set of services and content objects useful for building highly dynamic, content-oriented portal sites. As packaged, the CMF generates a site much like the Zope.org site. The CMF is intended to be easily customizable, in terms of both the types of content used and the policies and services it provides. Where do I get it? Download it from http://zope.org/Products/CMF/CMF-1.5.1beta2 Points of interest include: - "Windows ZIP file", http://zope.org/Products/CMF/CMF-1.5.1beta2/CMF-1.5.1beta2.zip - "Unix tar/gzip archive", http://zope.org/Products/CMF/CMF-1.5.1beta2/CMF-1.5.1beta2.tar.gz - "Release notes", http://zope.org/Products/CMF/CMF-1.5.1beta2/README.txt - "Change history", http://zope.org/Products/CMF/CMF-1.5.1beta2/CHANGES.txt - "Installation instructions", http://zope.org/Products/CMF/CMF-1.5.1beta2/INSTALL.txt Where do I go to learn more? The "CMF mailing list":mailto:[EMAIL PROTECTED] has many participants who are active in supporting the CMF. ...to report bugs? The "CMF Collector":http://zope.org/Collectors/CMF is ths place to report bugs (please search for existing reports of your issue first!) --- Jens Vagelpohl [EMAIL PROTECTED] Zetwork GmbHhttp://www.zetwork.com/ ___ 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] Both tal:on-error and error_log?
On Apr 18, 2005, at 20:20, Kirk Strauser wrote: Can I use a tal:on-error attribute in a page template to provide a user-friendly explanation of an exception while still recording the occurrence of that exception to error_log? I don't think that's possible. But you can test that very easily for yourself by putting code inside the on-error that provokes an error. jens ___ 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] Both tal:on-error and error_log?
On Apr 18, 2005, at 20:51, Kirk Strauser wrote: On Monday 18 April 2005 13:35, Jens Vagelpohl wrote: I don't think that's possible. But you can test that very easily for yourself by putting code inside the on-error that provokes an error. I guess I should've prefaced my question by saying that I know on-error normally ends propagation of the exception. I guess I was wondering if there was some way to manually add the exception to an error_log object so that i can come back later to analyze that logfile, while still presenting a non-confusing error screen to my users. There is a method named "raising" on the SiteErrorLog object but I don't see a way to call it from a PageTemplate itself because it seems to need the actual exception object as its argument. jens ___ 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] repozo over nfs?
On Apr 21, 2005, at 13:16, Sascha Ottolski wrote: What bothers me, however, is the fact, that the backup process is real hit on the overall performance (espacially . The server in question has a RAID-5 setup, storing the backups on the same array as it reads the Data.fs from. Obviously, this keeps the harddisk quite busy during the backup. This is, to be frank, a bad setup for a ZEO server. ZEO servers are I/O-bound and need the disk to be as fast as possible. I'd recommend moving away from RAID-5 to something simpler like RAID-1. Now, did anyone try to let repozo write the backups onto a nfs share on another machine? Would that reduce the hit? Yes. At least the backup write activity would hit some other disk. Besides that, how often do you guys run your backups? In fact, I never needed to recover one until now, but if the case ever happens, I would prefer to have as recent data as possible, of course. There is no golden rule. It all depends on your specific setup and how fast your data grows, and of course how recent you want to be if you need to restore from backup. I haven't had a setup where backup needs were so urgent that an hourly backup was done, nightly has been good enough so far. With weekly packing. jens ___ 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] ldap
On Apr 22, 2005, at 11:38, Fabio Marcone wrote: Hi! I'm looking for a zope-ldap howto. In particular I need to use a ldap connection in a zpt and I set Connection and Filter LDAP correctly (in test page) but not in a zpt (I have a key error on ldap filter) Anyone can help me? If you are talking specifically about the ZopeLDAP product, that's been deprecated years ago and has not seen any maintenance for 4 years or so. jens ___ 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] ldap
On Apr 22, 2005, at 15:32, Thierry FLORAC wrote: I actually use the LDAPUserFolder (release 1.6) product with Zope-2.6.1. I plan to upgrade to Zope-2.7.x in a few months. Is this product always maintained and functional with Zope-2.7 ? ZopeLDAP != LDAPUserFolder LDAPUserFolder has no connection to ZopeLDAP. LDAPUserFolder has been maintained for over 4 years and is continuing to be developed. See http://www.dataflake.org/software/ldapuserfolder/ (That's also the first Google hit if you search for LDAPUserFolder) jens ___ 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] ldap
On Apr 22, 2005, at 13:52, David wrote: I think I read that some people have successfully used exUserFolder (XUF) for linking Zope and LDAP users. Go to: http://sourceforge.net/search/index.php? type_of_search=mlists&group_id=36318&forum_id=190 And search on LDAP. Andrew Milton (author of XUF) is very helpful. Just post to the exuserfolder-users list. I'm using XUF to sync with users stored in PostgreSQL and found the product to be great. The original poster does not seem to talk about a user folder, but about a product to manipulate LDAP directories directly from within Zope. The standard for LDAP-enabled user folders on the other hand is LDAPUserFolder: http://www.dataflake.org/software/ldapuserfolder/ jens ___ 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] ldap
On Apr 22, 2005, at 13:32, Fabio Marcone wrote: I don't know I install it using debian Sarge package. but exists documentation about it? or exist another similar product? I need to access and modify a ldap directory from zope. Do you think I have to do it from python? If you are not seeking user folder functionality then I would suggest doing it from python. jens ___ 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] CMF 1.5.1 Released
Zope Corporation is pleased to announce the release of version 1.5.1 of the Zope Content Management Framework (CMF). This release marks the latest stable release in the CMF 1.5 series and should be suitable for production use. What is the CMF? The Zope Content Management Framework provides a set of services and content objects useful for building highly dynamic, content-oriented portal sites. As packaged, the CMF generates a site much like the Zope.org site. The CMF is intended to be easily customizable, in terms of both the types of content used and the policies and services it provides. Where do I get it? Download it from http://zope.org/Products/CMF/CMF-1.5.1 Points of interest include: - "Windows ZIP file", http://zope.org/Products/CMF/CMF-1.5.1/CMF-1.5.1.zip - "Unix tar/gzip archive", http://zope.org/Products/CMF/CMF-1.5.1/CMF-1.5.1.tar.gz - "Release notes", http://zope.org/Products/CMF/CMF-1.5.1/README.txt - "Change history", http://zope.org/Products/CMF/CMF-1.5.1/CHANGES.txt - "Installation instructions", http://zope.org/Products/CMF/CMF-1.5.1/INSTALL.txt Where do I go to learn more? The "CMF mailing list":mailto:[EMAIL PROTECTED] has many participants who are active in supporting the CMF. ...to report bugs? The "CMF Collector":http://zope.org/Collectors/CMF is ths place to report bugs (please search for existing reports of your issue first!) --- Jens Vagelpohl [EMAIL PROTECTED] Zetwork GmbHhttp://www.zetwork.com/ ___ 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] high loads, more threads, spinning wheels
On Apr 25, 2005, at 17:46, Tim Middleton wrote: I've been doing some simple load tests on a zope application, and I've found when i increase the zserver-threads in zope.conf very much the zope server goes into some sort of cycle where it eats 100% cpu and refuses to any future requests until restarted. To put it in a very simple way, you should not tweak the threads setting unless you really know what you are doing. If your goal is performance the usual way of going about that is to run ZEO and add ZEO clients as needed. You're bumping into the very simple fact that there are two items interacting badly: Threads and the connections in the Zope database connection pool. A thread, under normal circumstances, can only do work if it has a connection to work with, and wwill only release the connection when the request is finished. There are 7 connections in the pool by default. jens ___ 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] high loads, more threads, spinning wheels
Can this be taken to mean that: - the practical maximum number of threads to run your single (non-ZEO) zope instance is {number of zodb connections in pool} else you risk deadlock No, there should be more connections than threads, just as in the original configuration. if yes, would upping the number of ZODB connections effectively raise the ceiling - e.g. 12 ZODB connections -> 12 threads should perform properly ? Is increasing the number of ZODB cx's possible, let alone advisable? (why the default of 7 - not 6 or 8?) More concretely, is there any good way to increase the request-handling capacity of a standalone instance, beyond the limits imposed by the defaults, without deploying ZEO? Trying to squeeze a single instance that way is fraught with problems, and not just the experimentation needed to come up with sane values for threads, connections, and then connection cache sized to avoid memory contention. A single Zope process also means you are running one Python process with one global interpreter lock. It's just a bad situation to base a production site on. Use ZEO and set up additional clients as needed, anything else is hackish and error-prone. jens ___ 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] custom_zodb.py and Control_Panel
On Apr 29, 2005, at 20:32, Jim Abramson wrote: v2.7.4 running on Linux - I'm trying to use this (custom_zodb.py in INSTANCE_HOME) custom_zodb.py is no longer used for Zope 2.7.x. You define databases in zope.conf. jens ___ 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] custom_zodb.py and Control_Panel
On May 2, 2005, at 14:49, Jim Abramson wrote: v2.7.4 running on Linux - I'm trying to use this (custom_zodb.py in INSTANCE_HOME) custom_zodb.py is no longer used for Zope 2.7.x. You define databases in zope.conf. Ah, OK thanks. Is it for the collector that, aside from messing up the ZMI a bit, the custom_zodb.py approach is still basically effective? I suppose it could be argued that custom_zodb.py should simply not be read in any longer, or throw big fat warnings. jens ___ 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] Password Protection
On May 6, 2005, at 12:08 , Phil Beardmore wrote: This may be a really simple thing to do (but I'm a bit stuck and searched the web but found no answers). I have a Plone site working great. I have a folder which I wish to password protect (and all of the data in the folder). Thing is, I want to use our LDAP server for authentication. I have the site setup as normal with an ACL_users folder. I then have a folder called "protected". In this folder I have added a LDAPUserFolder object and linked it with our main LDAP server. Question is, how do I use this LDAPUserFolder to provide authentication for the "Protected" folder? ??? There is nothing you set up to make Zope "use" a user folder. It will automatically be consulted. jens ___ 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] Password Protection
On May 6, 2005, at 1:24 , Andreas Pakulat wrote: There is nothing you set up to make Zope "use" a user folder. It will automatically be consulted. As long as the object has an id of "acl_users". Umh, no. First of all, all user folders have that ID. If not, they are not user folders. Secondly, the ID is not used to hook into the authentication mechanism. It has nothing to do with it really. jens ___ 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] Password Protection
On May 6, 2005, at 1:26 , Andrew Milton wrote: | > There is nothing you set up to make Zope "use" a user folder. It will | > automatically be consulted. | | As long as the object has an id of "acl_users". And the containing folder has __allow_groups__ attribute set to that user folder. In fact you can call your user folder anything, as long as this attribute is set to be the instance.. Exactly. jens ___ 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] Password Protection
On May 6, 2005, at 2:23 , Phil Beardmore wrote: Hi Guys, still cant get it to work. Is it okay to have multiple ACL_users folders? Basdically I want to grant access to Folder A to all users in one tree of our LDAP server, then grant access to Folder B to all users in another Tree. I can get the folder to be password protected, so they need to login to access the pages, but it always seems to use the acl_users folder at the root of the site. It is perfectly OK to have several user folders. The "closest one" looking towards the root of the ZODB will be used when accessing a resource, and if it cannot resolve the credentials the next one up is consulted, until you reach the root user folder. The fact that authentications falls through to the root user folder makes me thing the LDAPUserFolder instance is misconfigured. jens ___ 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] Is it possible to extend Zopes WebDAV authentication?
On May 6, 2005, at 23:52 , mark hellewell wrote: On 5/6/05, Tino Wildenhain <[EMAIL PROTECTED]> wrote: Actually, it does not. You have no such thing like a session when all you have is webdav. I dont know if many dav-clients store cookies too - it may depend on your usecase. Yes the use-case is Windows Explorer users only. If this is supposed to use that "Web Folder" thingy in Windoze Explorer you might want to reconsider. That WebDAV implementation is seriously broken. Installing helpers like WebDrive on Windoze seems to make WebDAV access work for many people. jens ___ 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 stops responding on hpux
On May 7, 2005, at 23:45 , Samuel Bieri wrote: Dear list-members I am desperately trying to get our zope application run on hpux, and any help is greatly appreciated. I have the following problem: I know this isn't really helpful, but when it comes to exotic operating systems like HP-UX you might be all on your own and there won't be many people to help. If you really want to use Zope it might be easier and cheaper in the long run to buy a i386-based commodity server and put Linux on it. jens ___ 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] Access log
On May 9, 2005, at 20:17, Luiz Fernando B. Ribeiro wrote: Hi all, I am hosting several virtual hosts and I need to provide access log reports (like awstats) for my clients. I would like to know if any of the following alternatives is possible: 1. Is it possible to have diferent access log files for each virtual host? 2. Is it possible to include the "%v" (virtualhost) field in the current access log? No on both counts. I suggest you use something in front of Zope, like Apache, and analyze its logs instead. jens ___ 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] Hiding HTML URL
On May 10, 2005, at 00:48, J Cameron Cooper wrote: But please note, this is very hostile web design. I would suggest you re-think your need for such a "feature". "Hostile" is an excellent word for that kind of behavior. It certainly breaks quite a few rules in the "user friendliness" book. So what exactly is the goal for following such a user-defeating technique? jens ___ 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] LDAPUserFolder and roles/groups assignment Problem
On May 11, 2005, at 11:21, Bernard Lange wrote: Traceback (innermost last): * Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Products.GroupUserFolder.GroupUserFolder, line 1372, in changeOrCreateUsers * Module Products.GroupUserFolder.GroupUserFolder, line 1110, in _updateUser * Module Products.GroupUserFolder.GroupUserFolder, line 1057, in _doChangeUser * Module Products.GroupUserFolder.LDAPUserFolderAdapter, line 138, in _doChangeUser * Module Products.LDAPUserFolder.LDAPUserFolder, line 1497, in manage_editUserRoles AttributeError: 'NoneType' object has no attribute 'find' That "LDAPUserFolderAdapter" thingamajig is feeding garbage to the LDAPUserFolder.manage_editUserRoles method. These questions should probably go to Plone/GRUF lists. jens ___ 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] what are the dtml for logout and deleting a existing user??
On May 11, 2005, at 22:32, Andreas Pakulat wrote: That's not necessary, look at the ZMI, there is a logout option in the dropdown box. I never digged into "zmi_logout" (IIRC it has that name) but I think it is not accessible by _any_ Zope-User even not the Emergency User, so regardless of what you type in the Login-dialog you get logged out. The only problem I find is that you get presented a login dialog which always fails to login and this is a bit "weird" as "logout-action". That's only as weird as basic HTTP auth itself. There *is* no other way to make the browser discard the credentials you typed in other than to tell the browser that an access is unauthorized, which will then always pop up the login box again. This has nothing to do with Zope, it's just basic HTTP auth. jens ___ 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] Export/import preserving bobobase_modification_time?
On May 12, 2005, at 12:28, Marcin Kasperski wrote: Is it possible to somehow export data from Zope instance and import into another one preserving somehow bobobase_modification_time info? No it is not. If you need a time value to store a time you are interested in you should create and maintain it yourself in your code. jens ___ 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] custom_zodb.py and Control_Panel
On May 12, 2005, at 21:45, Chris Withers wrote: Jens Vagelpohl wrote: I suppose it could be argued that custom_zodb.py should simply not be read in any longer, or throw big fat warnings. Why wouldn't it still work fine, apart from some minor Control Panel barfage? You will agree that it is confusing at best to even allow a completely different and totally unmaintained way of configuring these things. zope.conf is the way it should be done, and people who don't do it yet should be reminded to change their config. jens ___ 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] dollars-and-cents display fails
On May 13, 2005, at 03:21, Greg Fischer wrote: Thanks Andy. I do have those versions. But Python is 2.3.5 because I didnt want to move to 2.4.x as I think I read something in the README for Zope stating it was not tested for compatibility. (right?) Yes, that is correct. Do not use it if you expect anyone here to help with problems you encounter. jens ___ 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] LDAPUserFolder at Zope root
On May 26, 2005, at 22:34, J Cameron Cooper wrote: Oscar Figueiredo wrote: this might be trivial but I just can't find a way to do it. How does one replace the initial UserFolder at Zope root with a LDAPUSerFolder ? I tried the dummy way : delete the acl_users with an intent to instanciate a LDAPUSerFolder afterwards but that locked me out in a way I could do nothing but recreate a new Zope instance... skip-authentication-checking in etc/zope.conf didn't help... Do not do that. You don't want to get locked out of your Zope because of LDAP problems. The emergency user always works. You can't lock yourself out due to LDAP problems. If anyone sees a symptom like that on the current LDAPUserFolder version it will be fixed right away because it is a bug. jens ___ 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] LDAPUserFolder at Zope root
On May 27, 2005, at 19:29, J Cameron Cooper wrote: Do not do that. You don't want to get locked out of your Zope because of LDAP problems. The emergency user always works. You can't lock yourself out due to LDAP problems. If anyone sees a symptom like that on the current LDAPUserFolder version it will be fixed right away because it is a bug. Yes, you can always break into Zope that way. But that's not something I would want to plan to do, especially when the alternative is so easy. My point is simply that asserting "never do that, you will lock yourself out" is just spreading FUD unless you work with badly written user folders. jens ___ 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] Uploading files
On 3 Jun 2005, at 18:09, Nikko Wolf wrote: In my python script I use: filedata = container.REQUEST.file.read() then merge this data into a MIME submission for the external web site, and on success, save it locally as a "file". My question is -- aside from memory usage, what problems might there be with this approach? It is *highly dangerous* to start requests to external resources from a running Zope request, unless you make sure the external request has a timeout that kicks in if it hangs for any reason. Just four hanging external resource requests and your Zope site is dead because all available threads are in use... jens ___ 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] Reloading iframes with DTML
On 8 Jun 2005, at 07:47, Wim Bekker wrote: Hi, Suppose I have two iframes in a DTML document. If I submit a form in one iframe and reload this iframe, I want to also reload the other iframe. This can be done with javascript. Is there a way to do this with DTML or python? You're confusing server-side and client-side here. DTML and python work on the *server* and cannot cause the client browser to reload anything. You need *client-side* scripting or simple HTML methods like the meta refresh tag. jens ___ 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] developing with zmi: how to move a patch from data from devel to live?
On 20 Jun 2005, at 07:35, gabor wrote: now you create the fix/improvement on the devel server. but now how do you move the improvement/fix to the live server? you cannot just copy the data.fs over. the customer already has some content/data in it... one way seems to be to not use the ZMI at all. you create an install python script, which calls the methods of the ZMI interface. this way works, but it seems for me to waste my time. finding the right method that the gui calls to call it from the install script seems stupid for me. but it solves the problem. with the script i can really make the changes i need on the devel server. so, is there a solution where i can use the ZMI? how do you solve this kind of problem? The problem is that you develop using the ZMI. It's a bad pattern. Don't do it. jens ___ 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] developing with zmi: how to move a patch from data from devel to live?
On 20 Jun 2005, at 10:16, gabor wrote: well, or let me ask the question a different way: if i should not use the ZMI, then why is it there? The ZMI is great for maintenance tasks, but not great for software development. You already ran into the first issue, replicating changes to other machines. Then there is no way to apply sane software development techniques, like using version control software and developing in a team. jens ___ 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] ZPT tutorial
On 21 Jun 2005, at 23:23, Tamas Hegedus wrote: Hi, In addition, Zope is heading fast into even less friendly territory. DTML, which is technically 'mucky' but reasonably easy to grasp for non-programmers, > is increasingly deprecated. I just started to learn Zope recently. I choose dtml over page templates to learn as it => seemed to me easier (maybe as I am a non-programmer); => has the possibility to build dynamic SQL queries; => was written in the Book to exist forever. I would like to know that 'increasingly deprecated' means by everybody (I mean here: in the www-programmers-word), or just by Zope. That's FUD and not true. DTML is not being deprecated, period. Don't believe anyone who says that. Everyone should choose the tool they work with best, and DTML is suitable for many people. There's more people who choose to use ZPT nowadays, but that does not mean DTML will be deprecated. jens ___ 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] Removing old FileStorage backups from repozo
On 27 Jun 2005, at 14:00, Felix Ulrich-Oltean wrote: Can I just go in and delete files older than X days from the backup directory, or will this upset repozo, which apparently keeps info about its backup files in the .dat file? You can safely delete all files older than your last *full backup*. jens ___ 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] 2.5.1 to 2.8.0
On 27 Jun 2005, at 21:30, Paul Winkler wrote: 2005-06-27T13:06:58 WARNING ZODB Could not import class 'SimpleLog' from module 'Products.LDAPUserFolder.SimpleLog' It's pretty clear that Zope is having a major problem with LDAPUserFolder. Possibly you have an old version of LDAPUserFolder that is not compatible with Zope 2.8? New versions can be downloaded here: http://www.dataflake.org/software/ldapuserfolder/ Let's just say that whatever LDAPUserFolder version you ran with Zope 2.5.1 has long since passed into the "unsupported" pile... - Get the latest released LDAPUserFolder version and install it into your new Zope 2.8-based instance - Make a backup copy of your old ZODB - Log into a 2.5.1-based instance as the emergency user (-> see doc/ SECURITY.txt in your 2.5.1 Zope installation about how to create one) - if you don't have a LDAPUserFolder in the Zope root you can skip that and log in as a Manager user from the root user folder - Delete every single LDAPUserFolder instance you have - Stop Zope - Copy the Data.fs into your Zope 2.8-based sandbox - If you had a LDAPUserFolder at the root, make sure you're set up for an emergency user - Start Zope and log in either as an emergency user or a root user folder manager - Recreate all LDAPUserFolder instances. jens ___ 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] 2.5.1 to 2.8.0
On 27 Jun 2005, at 22:27, Tim Suter wrote: We don't want to use LDAPUserFolder for authentication. The preferred method of authentication is against an authzldap enabled apache. Or when authenticating, is it necessary to add the LDAPUserFolder? Which, this might explain why when attempting to edit the page, it would ask for authentication. If you don't use the LDAPUserFolder then simply delete all instances in your 2.5.1-based sandbox. Just FYI, having another webserver do authentication and making that work nicely with Zope Sucks with a Capital S. Most of the time there is no valid reason to go that route, other than the lame excuse "but we only know it this way". Requests for Zope should be proxied/rewritten through and Zope can do the authentication itself. If mod_authzldap works, LDAPUserFolder will work fine as well. jens ___ 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] CMF 1.5.2beta released
Zope Corporation is pleased to announce the release of version 1.5.2beta of the Zope Content Management Framework (CMF). This release is intended for testing purposes only; we do not recommend deploying it to production servers. The final release of version 1.5.2 is expected mid-July 2005. What is the CMF? The Zope Content Management Framework provides a set of services and content objects useful for building highly dynamic, content-oriented portal sites. As packaged, the CMF generates a site much like the Zope.org site. The CMF is intended to be easily customizable, in terms of both the types of content used and the policies and services it provides. Where do I get it? Download it from http://zope.org/Products/CMF/CMF-1.5.2beta Points of interest include: - "Windows ZIP file", http://zope.org/Products/CMF/CMF-1.5.2beta/CMF-1.5.2beta.zip - "Unix tar/gzip archive", http://zope.org/Products/CMF/CMF-1.5.2beta/CMF-1.5.2beta.tar.gz . - "Release notes", http://zope.org/Products/CMF/CMF-1.5.2beta/README.txt - "Change history", http://zope.org/Products/CMF/CMF-1.5.2beta/CHANGES.txt - "Installation instructions", http://zope.org/Products/CMF/CMF-1.5.2beta/INSTALL.txt Where do I go to learn more? The CMF mailing list ([EMAIL PROTECTED]) has many participants who are active in supporting the CMF. ...to report bugs? The "CMF Collector":http://zope.org/Collectors/CMF is the place to report bugs (please search for existing reports of your issue first!) ___ 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] Breadcrumb dilemma
On 28 Jun 2005, at 23:50, Adamo, Steven wrote: However, the breadcrumb trail will only display "you are here: home". I simply cannot figure out what I haven't included (or what I "killed" when I created my new skin) that will make the breadcrumb pick up the new folder (you are here: home > company). Since that is probably specific Plone functionality you might be better off asking on the Plone lists. jens ___ 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] blacklisting referers and/or specific hosts
On 3 Jul 2005, at 20:05, Tim Hicks wrote: So, I'm wondering if there's a way to blacklist those clients that I don't like based on host/ip and/or on referer. If there is a set of distinguishable IPs/hosts, then use a tool that was *made* for that purpose such as a firewalling/filtering tool (IPTables, IPChains, fw, etc) and not Zope. jens ___ 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] Apache 2 + Zope can't gzip HTTP response body?
On 4 Jul 2005, at 01:26, Daniel Dekany wrote: Thanks! Just on more thing... According to http://sourceforge.net/mailarchive/forum.php? thread_id=7393296&forum_id=12354 the gzip compression was enabled by default in Plone 2.0.x (only from 2.0.4 I guess), but will be disabled in 2.1. If it is true, why? Is it not recommenced after all? (Actually I try to gzip only because my predecessor did...) I suggest you ask on the Plone list. jens ___ 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] Re: Re: zopectl debug, 2.8.0 local zeo, Data.fs.lock file locking error
On 5 Jul 2005, at 12:20, Florent Guillaume wrote: Running zopectl debug runs your normal instance with additional debug breakpoints and pdb started. So in the same way that you cannot start the same instance twice, you cannot start your instance and a zopectl debug at the same time. Umh, that's incorrect. zopectl debug has nothing to do with debug breakpoints or pdb. And you can run it right alongside your running Zope instance. All it does is present you with a Python prompt where the root object is bound to "app", nothing more and nothing less. jens ___ 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] Re: Re: zopectl debug, 2.8.0 local zeo, Data.fs.lock file locking error
On 5 Jul 2005, at 12:55, Jens Vagelpohl wrote: Umh, that's incorrect. zopectl debug has nothing to do with debug breakpoints or pdb. And you can run it right alongside your running Zope instance. All it does is present you with a Python prompt where the root object is bound to "app", nothing more and nothing less. One correction: If you use ZEO you can run it alongside the running instance. Otherwise, since it would want exclusive access to the database, you could not. One of the reasons why ZEO is recommended even in single server setups. jens ___ 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] LDAPUserFolder OLD and Zope 2.5.1 migration to LDAPUserFolder 2.5 and Zope 2.8
On 5 Jul 2005, at 18:42, Tim Suter wrote: - Log into a 2.5.1-based instance as the emergency user (-> see doc/ SECURITY.txt in your 2.5.1 Zope installation about how to create one) I can't do this part because I was left with no info in regards to what the credentials are as the emergency user. I have located the access file though. Can I delete this file and create a new one documented in SECURITY.txt? yes jens ___ 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] Pluggable Auth Service ... how is it used?
On 7 Jul 2005, at 06:41, Richard Jones wrote: I'd like to get session-based login going, and on the surface PAS appears to support that. First up, is there any documentation? I've set up in my PAS "acl_users" the following objects: 1. "cookies" - a Cookie Auth Helper active for Challenge 2. "session" - a Session Auth Helper active for Extraction, Update Credentials and Reset Credentials 3. "users" - a ZODB User Manager with a single user "test" 4. "roles" - a ZODB Role Manager with the "test" user assigned to "Manager" Then accessing a "Manager" protected method inside the folder brings up the login form from the Cookie Auth Helper, but submitting that form does nothing (it returns the empty form to me). Add "Extraction" to the cookie object. Only the cookie object would know how to extract credentials coming back from the cookie object's challenge. Makes sense, doesn't it? I have described such a setup before either here or on the PAS list itself, take a look at the archives. The very first challenge and extraction is done by the cookie auth helper, and the credentials are then stored by the session auth helper which is doing all extractions after that. jens ___ 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] CMF 1.5.2beta released
Zope Corporation is pleased to announce the release of version 1.5.2beta2 of the Zope Content Management Framework (CMF). This release is intended for testing purposes only; we do not recommend deploying it to production servers. The final release of version 1.5.2 is expected mid-July 2005. What is the CMF? The Zope Content Management Framework provides a set of services and content objects useful for building highly dynamic, content-oriented portal sites. As packaged, the CMF generates a site much like the Zope.org site. The CMF is intended to be easily customizable, in terms of both the types of content used and the policies and services it provides. Where do I get it? Download it from http://www.zope.org/Products/CMF/CMF-1.5.2beta2 Points of interest include: - "Windows ZIP file", http://www.zope.org/Products/CMF/CMF-1.5.2beta2/ CMF-1.5.2beta2.zip - "Unix tar/gzip archive", http://www.zope.org/Products/CMF/CMF-1.5.2beta2/ CMF-1.5.2beta2.tar.gz . - "Release notes", http://www.zope.org/Products/CMF/CMF-1.5.2beta2/README.txt - "Change history", http://www.zope.org/Products/CMF/CMF-1.5.2beta2/CHANGES.txt - "Installation instructions", http://www.zope.org/Products/CMF/CMF-1.5.2beta2/INSTALL.txt Where do I go to learn more? The CMF mailing list ([EMAIL PROTECTED]) has many participants who are active in supporting the CMF. ...to report bugs? The "CMF Collector":http://www.zope.org/Collectors/CMF is the place to report bugs (please search for existing reports of your issue first!) ___ 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] ldap authentication with apache or LDAPUserFolder?
On 11 Jul 2005, at 17:00, Tim Suter wrote: As some of you know, I am working on an installation of Zope/Zwiki. What I have inherited is a 2.5.1 Zope/Zwiki on a Debian box. I am wanting to move the data from the 2.5.1 to a 2.8. But here's the situation. Why don't you just *try* different combinations and see what happens? Like, comment out the Apache AuthLDAP stuff and see what happens. jens ___ 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] security for ZPT-based Product
On 11 Jul 2005, at 17:41, Andreas Pakulat wrote: add a security.declareProtected('comment_add_form', '') Where the second string would be one of the rights listed on the security tab with in the ZMI. If that right is granted to the authenticated user only, you have your access restrictions. It's the other way around. Permission first, then the method name. jens ___ 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] LDAPUSerFolder permission problem
On 12 Jul 2005, at 14:03, Nicholas Watmough wrote: I'm trying to access the getProperty() method of the LDAPUser class in a Python script, in order to access the Active Directory email address of the user. There is no problem with this, if I use the method on the current active user. However, it doesn't work when I attempt to use the method on another property. The output of VerboseSecurity is: *Error Type: Unauthorized* *Error Value: Your user account does not have the required permission. Access to 'getProperty' of nwuser denied. Your user account, abuser, exists at /acl_users. Access requires one of the following roles: ['Manager']. Your roles in this context are ['Anonymous', 'Authenticated', 'User'].* It appears that the currently authenticated used has the 'View' permission (required to use getProperty) on itself, but not for other users. I'm not sure how to change this. I'm assuming that the "other" user is not wrapped. How are you getting that other user object? jens ___ 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] How to create Version Object
On 12 Jul 2005, at 15:28, Charlene wrote: I'm using the book The Book of Zope: How to Build and Deliver Web Applications to learn Zope. I'm on the chapter on Versions. Neither the book nor Zope documentation explains exactly how to create a version. That's probably your luck. They are deprecated, unsupported, and carry the risk of data loss. So you should not be using them, anyway :) jens ___ 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] How to create Version Object
On 12 Jul 2005, at 19:57, Charlene wrote: Except in the documentation. Which made it even more confusing. I guess I'll skip this chapter of the book. Books about fast-evolving software always carry the big risk of becoming at least partially obsolete quickly. Not much one can do about that. jens ___ 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] LDAPUSerFolder permission problem
On 14 Jul 2005, at 02:53, Nicholas Watmough wrote: I'm not sure what you mean by a 'wrapped' user. What causes a user to have a wrapper in Zope? I am getting the 'other' user via the following code: user = context.acl_users.getUserById(username) Will this cause the user to be returned with a wrapper, and if so, how would I remove the wrapper? No, it's the other way around. You want the wrapper. getUserbyId returns unwrapped users. If you use CMF or something based on CMF you could use the membership tool's getMemberById to return something more useful, otherwwise you'll have to do the wrapping yourself: user = acl_users.getUserById(user_id).__of__(acl_users) jens ___ 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] CMF 1.5.2 Released
Zope Corporation is pleased to announce the release of version 1.5.2 of the Zope Content Management Framework (CMF). This release marks the latest stable release in the CMF 1.5 series and should be suitable for production use. What is the CMF? The Zope Content Management Framework provides a set of services and content objects useful for building highly dynamic, content-oriented portal sites. As packaged, the CMF generates a site much like the Zope.org site. The CMF is intended to be easily customizable, in terms of both the types of content used and the policies and services it provides. Where do I get it? Download it from http://zope.org/Products/CMF/CMF-1.5.2 Points of interest include: - "Windows ZIP file", http://zope.org/Products/CMF/CMF-1.5.2/CMF-1.5.2.zip - "Unix tar/gzip archive", http://zope.org/Products/CMF/CMF-1.5.2/CMF-1.5.2.tar.gz - "Release notes", http://zope.org/Products/CMF/CMF-1.5.2/README.txt - "Change history", http://zope.org/Products/CMF/CMF-1.5.2/CHANGES.txt - "Installation instructions", http://zope.org/Products/CMF/CMF-1.5.2/INSTALL.txt Where do I go to learn more? The "CMF mailing list":mailto:[EMAIL PROTECTED] has many participants who are active in supporting the CMF. ...to report bugs? The "CMF Collector":http://zope.org/Collectors/CMF is ths place to report bugs (please search for existing reports of your issue first!) --- Jens Vagelpohl[EMAIL PROTECTED] Zetwork GmbHhttp://www.zetwork.com/ ___ 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] Re: How to upload a file and save it in a physical path
On 17 Jul 2005, at 11:27, Peter Bengtsson wrote: Why use Blob when there's ExtFile? I don't understand the difference. Did you follow the link and read the description? For one, Blob also hooks into the Zope transaction machinery, to maintain transactional integrity. I doubt ExtFile does... jens ___ 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] [ATTN]: CMF and related packages moved to svn.zope.org
Hi everyone, I just finished migrating the CMF and related projects from cvs.zope.org to svn.zope.org, from CVS to Subversion. All tags and branches have moved, unlike Zope itself there won't be some development using CVS and some using Subversion. These are the packages: - CMF - CMF_Hotfixes - CMF_Extras They packages became new toplevel projects at svn.zope.org, as can be seen here: http://svn.zope.org/ Pending final agreement on the CMF list (or an overriding word from the CMF Pope himself) svn.zope.org will now be the canonical location for CMF sources. They are accessed just like Zope 2.8 and Zope trunk as described here: http://www.zope.org/DevHome/Subversion/ZopeSVNFAQ The only difference is, of course, the last element in the path. Eveerything else works as described in the document linked above. The packages are at... /repos/main/[CMF|CMF_Extras|CMF_Hotfixes] ***To all CMF developers***: Please change your sandboxes and convert them to SVN. If you see any problem please make it known on the CMF list as soon as possible. No data is lost on cvs.zope.org, so if there are show-stoppers we can always switch back to using CVS. Please **do not** commit into cvs.zope.org or svn.zope.org until we have a "yay" or "nay" on which repository we go forward with. ***Next steps***: If we have agreement on using svn.zope.org a couple cleanup tasks need to be done, such as... - "Close off" or "freeze" the CMF projects on cvs.zope.org to either disallow checkins or bring up big fat warnings if someone tries to. Input and ideas on this are welcome, if it was up to me I would use the "commitinfo" file in the CVSROOT to completely prevent updates as the first step. - Change any references to cvs.zope.org in the CMF code to their svn.zope.org equivalents - Change any references to cvs.zope.org on the project web pages, mostly http://www.zope.org/Products/CMF, to point to the svn.zope.org equivalent - Change any download instructions that use CVS to instructions for SVN jens ___ 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] Re: emergency user account does not work
On 21 Jul 2005, at 20:44, Tim Suter wrote: The emergency user account will not work. I have tried deleting and creating it no with no domain restrictions. Outside of that, I don't know what to do. The LDAPUserFolder IS at the root folder of the ZMI. Could that be hanging it up? No. The LDAPUserFolder does not interfere with emergency user handling. jens ___ 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] FSZSQLMethod.py refactory
I did a refactory in the FSZSQLMethod.py module of CMFCore from SVN. I want to use my ZSQLs from the filesystem and I improved the module to better support to this feature. First of all, CMF-related items are better discussed on the zope- [EMAIL PROTECTED] list. Can you explain how your changes "better support" ZSQL methods on the file system? They work perfectly fine the way they are. Oh, and what exactly is not working about the CMF Subversion repository? jens ___ 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] manage_changeProperties quirk?
On 22 Jul 2005, at 11:04, Joe Bezier wrote: So I tried pretty much everything - checking all sorts of permissions and other stuff, but eventually made a copy of the folder, to make sure it wasn't something peculiar with the folder name - the copy worked perfectly. So, I then replaced the original folder with the folder copy and this worked fine too. So, basically, problem solved. But I'm now concerned - could this happen again? Is there something I'm missing? Has anyone experienced something like this before? Shot in the dark: Was this folder created (and thus under effective ownership) of a user that has been deleted from the user folder? jens ___ 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] FSZSQLMethod.py refactory
On 22 Jul 2005, at 14:31, Jean Rodrigo Ferri wrote: So, the entire data information is submited in template, or either, the body of zsql method receives tags and the arguments list too. I don't know how can it work!? It does work. In the top of template has a comment: """ (not yet) Customizable ZSQL methods that come from the filesystem. """ I think (not yet) means this module is not working yet, and it is my impression after my tests and analisys the code! It does work. The comment is wrong. If you find something that does *not* work I'll be glad to look at it, but so far you have not given any specific information about breakages like tracebacks or steps to follow to produce an error. jens ___ 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] FSZSQLMethod.py refactory
On 22 Jul 2005, at 17:17, Jean Rodrigo Ferri wrote: Jens Vagelpohl wrote: It does work. How? Give me an example! Take a look at the unit tests which exercise the FSZSQL code, there is a sample one that is part of the fake skins directory used by the CMFCore unit tests: http://svn.zope.org/CMF/trunk/CMFCore/tests/fake_skins/fake_skin/ testsql.zsql?rev=37165&view=markup I can't give this information because it doesn't raise exceptions. It works (not raise errors), but not properly. I never saw an example of ZSQL Methods running from file system in CMF, can you give me this? My intention is just contribute, however, solving a real problem I have. You're still giving no clue about what exactly it is that works "not properly". jens ___ 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] Getting a methods parent (in a product)
On 22 Jul 2005, at 18:48, Jan-Ole Esleben wrote: Hi! How can I get a Product instance's _actual_ parent when one of its methods is called? (In other ways: how can I find out, from an instance, where that instance is located without falling prey to acquisition in Zope 2?) from Acquisition import aq_inner, aq_parent parent = aq_parent(aq_inner(self)) This will return the true container the instance is set in, not just the acquisition parent. jens ___ 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] FSZSQLMethod.py refactory
I only wait that someone test my reimplementation of parser and says me it's really insignificant. I would like at least not to have that trash (...) in the body of the method. As far as the CMF goes, IMHO it doesn't make much sense to put code into the repository just because one person doesn't like the way arguments are handed to these ZSQL methods. They work perfectly as is. I fail to see how several lines of double-hash-escaped lines is any less "trash" than the comment-tagged version that is there right now. jens ___ 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] Different IPs, one zope instance
On 22 Jul 2005, at 21:16, Remy Pinsonnault wrote: Hello everyone, We a have a server with 5 differents IPs. How would it be possible to specify one IP (only one out of 5) to the Zope server? Yes. See the "servers" directive in zope.conf, which documents all this very well. jens ___ 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] Re: Getting a methods parent (in a product)
On 23 Jul 2005, at 16:12, Peter Bengtsson wrote: from Acquisition import aq_inner, aq_parent parent = aq_parent(aq_inner(self)) This will return the true container the instance is set in, not just the acquisition parent. What's so bad about parent = self.aq_parent Two things: - simply using aq_parent does not guarantee giving you the real containment parent. Depending on the path used to access the object it could be something different from the true containment parent. That's the power of acquisition... - direct attribute access like that makes me feel dirty. I prefer the true object-oriented style where you use methods to get at stuff. jens ___ 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] zoperun vs start and ssh
On 23 Jul 2005, at 18:46, virgil huston wrote: This may be a stupid question, but, after searching the archives to find out how to keep Zope running after starting and then disconnecting from a remote ssh session, nothing works. First, the Zope manual and all the archives messages talk about using ./start. That doesn't work for me unless I am just in the wrong directory. I am running ./zoperun from /bin. The "start" script was used in Zope versions up to 2.6.x, replaced by "zopectl" for safely starting and stopping Zope in the 2.7-series and up. Apart from that, packages that are put together by other people or by Linux distribution maintainers may have their own scripts. I have no idea what "zoperun" is, I'm assuming you mean "runzope.py", which is part of 2.7.x and up? If not then this smells like some non- standard package, you should contact its maintainer. jens ___ 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] Searching Content Objects in Zope 3
On 23 Jul 2005, at 19:01, Jim Vine wrote: As recommended on this list I opted for Zope 3 to build my app, and I'm finding it quite powerful. However, I've hit a bit of a brick wall around searching. In case you don't get help here, you should subscribe to the specific Zope 3 list and ask there: http://mail.zope.org/mailman/listinfo/zope3-users jens ___ 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 )