RE: [Zope] HELP!! Data.fs corrupted
Sorry, I didn't make myself clear .. I have the full backup of the original Data.fs and then the incremental deltafs files, from which I tried to recover Data.fs: 2004-11-19-07-32-58.fs 2005-01-04-07-00-53.deltafs 2005-01-01-07-00-57.deltafs ... 2005-08-26-06-01-25.deltafs 2005-08-27-06-01-29.deltafs 2005-08-30-06-01-28.deltafs -Original Message- From: Tino Wildenhain [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 31, 2005 2:18 AM To: Paul Sue Cc: zope@zope.org Subject: Re: [Zope] HELP!! Data.fs corrupted Paul Sue schrieb: Hi, Our server crashed and wouldn't boot up. Fortunately, we had backups of of Data.fs on another server .. so I installed Zope 2./7.4/Plone 2.0.5 on another server and used repozo to try to restore Data.fs: ./repozo.py -Rv -r /temp/recover -o Data.fs However, when I start up Zope, I get: 2005-08-31T01:20:21 PANIC(300) ZODB FS FS21 ERROR: /home/zope/ssoi/var/Data.fs data record exceeds transaction record at 54956706 ZODB.FileStorage.CorruptedTransactionError: /home/zope/ssoi/var/Data.fs data record exceeds transaction record at 54956706 I've tried restoring from a few days ago using the -D option, but I get the same problem. Am I totally hooped or is there some way to recover??? Err. I dont think you need repozo to use your backup Data.fs. You should just be able to put (a regular file copy) of your backed up Data.fs in place. ___ 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] HELP!! Data.fs corrupted
Paul Sue wrote at 2005-8-31 01:31 -0700: ... ./repozo.py -Rv -r /temp/recover -o Data.fs However, when I start up Zope, I get: 2005-08-31T01:20:21 PANIC(300) ZODB FS FS21 ERROR: /home/zope/ssoi/var/Data.fs data record exceeds transaction record at 54956706 ZODB.FileStorage.CorruptedTransactionError: /home/zope/ssoi/var/Data.fs data record exceeds transaction record at 54956706 You may try fsrecover. Be warned however, that it will loose information (at least the broken transaction will be lost). -- Dieter ___ 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] Help!!! Zope won't start -- StorageSystemError
On 8/28/05, Dan Gaibel [EMAIL PROTECTED] wrote: Hi folks, This is my first post to this list and I'm desperate for help. I'm running Zope 2.6.1 with Python 2.1.3. My Zope instance died today and won't come back. When I try to start it, I get: 2005-08-27T20:58:15 PANIC(300) z2 Startup exception Traceback (innermost last): File /home/lrc/z2.py, line 497, in ? File string, line 1, in ? File /home/lrc/lib/python/Zope/__init__.py, line 37, in ? File /home/lrc/lib/python/ZODB/FileStorage.py, line 213, in __init__ File /home/lrc/lib/python/ZODB/lock_file.py, line 33, in lock_file StorageSystemError: Could not lock the database file. There must be another process that has opened the file. lock_file.py has a simple try/except block around that line. As a debugging step remove the try/except block and see if you get more verbose exception details. ___ 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] Help me with acquisition and custom types
Mark Gibson wrote at 2005-8-21 12:38 -0600: I've created two objects, A folderish object called myfolder, and a document-type object called mydocument. Here's how my classes are defined... class mydocument( CatalogAware, Implicit, Persistent, RoleManager, PropertyManager, Item): class myfolder( CatalogAware, Implicit, Persistent, RoleManager, PropertyManager, Folder) So, say I have a hierarchy like this... / /ObjectA /folder /folder/mydocument ( an instance of mydocument) /folder/myfolder (an instance of myfolder) /folder/myfolder/ObjectA Ok.. I want to be able to call http://mysite/folder/mydocument/ObjectA - this works fine http://mysite/folder/myfolder/ObjectA - this works fine http://mysite/folder/myfolder/mydocument/ObjectA - this returns the ObjectA at '/ObjectA', I'd like it to return ObjectA at '/folder/myfolder/ObjectA' Any ideas how I would go about making this happen? It will not work as acquisition works differently... You should read Jim's acquisition lecture Containment before Context. It tells you why acquisition will not do what you like. -- Dieter ___ 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] Help need for a Zope presentation to java lovers...
On 8/17/05, Chris McDonough [EMAIL PROTECTED] wrote: I only meant that it would get dynamic data using XML-RPC queries, but I already have an efficient product for this, so it's not an issue. So what they want is a Web Management Framework and CMS system. And they wonder if Zope is better than a JSP/Struts/Velocity solution. Please, give us a feedback about your presentation. ;) It's a very interesting topic to discuss. Fernando Lujan ___ 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] Help need for a Zope presentation to java lovers...
Zope excels at providing web services via XML-RPC. Basically: - You need to do exactly nothing to make a Zope application accessible via XML-RPC. - When Zope isn't responsible for rendering HTML, it can be quite fast. - Zope is capable of interfacing transactionally with many data stores. - C On Wed, 2005-08-17 at 12:59 +0100, Pascal Peregrina wrote: Hi, I know that this is an unusual request, but if some of you have some time to help me on this it would be great ! Basically, I can summarize the question I will have to answer this way : why should we use Zope 2 instead of JSP/struts ? All the business logic of the company is implemented in services that talk to backend and can be queried through xmlrpc (so this is fine for Zope integration). So the context is to use Zope or JSP/struts to manage the presentation layer. I am currently planning to talk about built-in ZMI and transaction management, TAL, ... Thanks a lot for your help. Pascal ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.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 ) ___ 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] Help need for a Zope presentation to java lovers...
Hi Chris, Ooops... Reading your reply shows me that I was unclear ;) Zope will be the CMS system of the architecture (so it will render HTML). I only meant that it would get dynamic data using XML-RPC queries, but I already have an efficient product for this, so it's not an issue. So what they want is a Web Management Framework and CMS system. And they wonder if Zope is better than a JSP/Struts/Velocity solution. Don't get me wrong, I have been using Zope for almost 2 years now, I love it. The problem is that I don't do any Java development since then so I miss knowledge about Java evolutions in terms of Web Management Framework and CMS systems. So any links, advice, opinion, experience would be appreciated. Thanks a lot. Pascal -Original Message- From: Chris McDonough [mailto:[EMAIL PROTECTED] Sent: 17 August 2005 15:47 To: Pascal Peregrina Cc: zope@zope.org Subject: Re: [Zope] Help need for a Zope presentation to java lovers... Zope excels at providing web services via XML-RPC. Basically: - You need to do exactly nothing to make a Zope application accessible via XML-RPC. - When Zope isn't responsible for rendering HTML, it can be quite fast. - Zope is capable of interfacing transactionally with many data stores. - C On Wed, 2005-08-17 at 12:59 +0100, Pascal Peregrina wrote: Hi, I know that this is an unusual request, but if some of you have some time to help me on this it would be great ! Basically, I can summarize the question I will have to answer this way : why should we use Zope 2 instead of JSP/struts ? All the business logic of the company is implemented in services that talk to backend and can be queried through xmlrpc (so this is fine for Zope integration). So the context is to use Zope or JSP/struts to manage the presentation layer. I am currently planning to talk about built-in ZMI and transaction management, TAL, ... Thanks a lot for your help. Pascal ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.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 ) ___ 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] Help need for a Zope presentation to java lovers...
On Wed, 2005-08-17 at 16:02 +0100, Pascal Peregrina wrote: Hi Chris, Ooops... Reading your reply shows me that I was unclear ;) Zope will be the CMS system of the architecture (so it will render HTML). Ah. Well, it's not too bad at doing that either. ;-) I only meant that it would get dynamic data using XML-RPC queries, but I already have an efficient product for this, so it's not an issue. So what they want is a Web Management Framework and CMS system. And they wonder if Zope is better than a JSP/Struts/Velocity solution. Considering you're likely the one that will be implementing it, I'd say so as you know Zope very well. But they're probably thinking strategically (which IMO is a mistake ;-). Don't get me wrong, I have been using Zope for almost 2 years now, I love it. The problem is that I don't do any Java development since then so I miss knowledge about Java evolutions in terms of Web Management Framework and CMS systems. I don't know much about Struts either, sorry. I have never actually implemented a CMS using Java so I may be the wrong person to speak up. I did give a minor look-see to Cocoon lately and was distinctly unimpressed because it doesn't do some things that you just take for granted in Zope (declarative security being the big one). - C ___ 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] Help.. I accidentally deleted admin at the root acl_users
Hi, first time I also had some problems with the rescue login. The key is to put the generated access file into the root of your Zope instance. After that it should be working. Hope it helps, Istvan u1207440 rta: Help.. I accidentally deleted admin at the root acl_users I try to create the emergency and inituser using zpasswd.py but when I try to get into ZMI by http://localhost:8080/manage, all zope pass back to me is You are not authorized to access this resource. Username and password are not correct. can someone tell me the exact step I have to do. From first to Last. I'm really need to get this fix before Monday. This site I constructed with zope was suppose to be up on Sunday. Now its not going to happen, I hope I could get it up on Monday. ___ 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 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] Help.. I accidentally deleted admin at the root acl_users
u1207440 wrote: Help.. I accidentally deleted admin at the root acl_users I try to create the emergency and inituser using zpasswd.py but when I try to get into ZMI by http://localhost:8080/manage, all zope pass back to me is You are not authorized to access this resource. Username and password are not correct. can someone tell me the exact step I have to do. From first to Last. I'm really need to get this fix before Monday. This site I constructed with zope was suppose to be up on Sunday. Now its not going to happen, I hope I could get it up on Monday. This can really be gotten from Zope/docs/SECURITY.txt or http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/Security.stx or many other places... cd SOFTWARE_HOME/bin python zpasswd.py access # follow the prompts mv access INSTANCE_HOME cd INSTANCE_HOME ./bin/zopectl restart # login and fix your userfolder # logout, delete access and you're done. If it doesn't work with the access file in the instance dir, put it in the var subdir, though I'm pretty sure I'm right. --jcc ___ 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-dev] Re: [Zope] Help to find URL logs in Zope
webalizer, analog - var/Z2.log (google for more informations - FAQ). -aj --On Dienstag, 2. Dezember 2003 16:23 Uhr +0100 MAHAUT Dany [EMAIL PROTECTED] wrote: Hi, can you give us an explanation in order to trace URL logs in Zope on linux debian ? We'd like to retrieve the percentage of utilization of our different web sites. Best regards, ___ Dany MAHAUT - Responsible d'Application Groupe EDHEC - Direction des Systèmes d'Information 58, rue du Port 59046 LILLE Tel. +33 (0)3 20 15 45 55 - Fax. +33 (0)3 20 15 45 01 ___ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope] Help - Python
Ol :) On Tue, Jan 23, 2001 at 08:56:34PM +, Paula Mangas wrote: I'm a newbie and i would like to know how can i create a DTMLDocument from a Python method. Here is a short example of document creation (with a few other tips), assuming it's in a Python method with parameters (self, REQUEST): #~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ # ... # The following refers to folder "/farm", in a virtual host # supported by SiteRoot. farm = REQUEST.PARENTS[-2].farm # `farm' now refers to the folder object. # And this is a subfolder, "/farm/the_ducks" the_ducks = farm.the_ducks # This just reads the id for a new document from a submitted form, # using a default value if no `duck_id' was sent. id = REQUEST.get ('duck_id', 'new_duck_in_town') duck_notes = ... some_title = ... some_colour = ... # This creates the document (under "/farm/the_ducks"), assuming you have # defined some string, `duck_notes', holding the initial content for it: the_ducks.manage_addProduct['OFSP'].manage_addDTMLDocument (id, file = duck_notes) # This changes the document's title (it already had an empty one by default). the_ducks[id].manage_changeProperties ({'title': some_title}) # And this adds a property of type `string'. the_ducks[id].manage_addProperty ('colour', some_colour, 'string') #~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Look for some API documentation in Zope's internal help and on the Web. Browsing Zope sources may also be most helpful... -- jmce: +351 919838775 ~ http://artenumerica.com/ ~ http://artenumerica.org/ ___ 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] Help: Photo Jpeg Support Problems
The PIL module is insalled (this I know) I just think I need to do a little more work with the JPEG support. It says it should be part of the installation but never was.. so I downloaded it and included it in the configure path. Probably just missed something. J At 9:12 PM -0500 1/23/01, Ausum wrote: It doesn't happen to me. I'm running Zope 2.2.5 at Win98. Python 1.5.2 and PIL module are installed at the "Python" directory that the Python's binary distribution uses as default. Maybe I'm wrong but it looks like you didn't install the PIL module. Ausum "J. Atwood" wrote: I have been playing around with Drew's photo product and it works great with GIFs but when I try to upload a JPEG into it I get the following Error Type: IOError Error Value: decoder jpeg not available Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_addPhoto) File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_addPhoto) File /usr/local/zope/lib/python/Products/Photo/Photo.py, line 132, in manage_addPhoto (Object: Traversable) File /usr/local/zope/lib/python/OFS/Image.py, line 276, in manage_upload (Object: BZ_li_13.jpg) File /usr/local/zope/lib/python/Products/Photo/Photo.py, line 290, in update_data (Object: BZ_li_13.jpg) File /usr/local/zope/lib/python/Products/Photo/Photo.py, line 319, in _generateDisplays (Object: BZ_li_13.jpg) File /usr/local/zope/lib/python/Products/Photo/Photo.py, line 329, in _generateDisplay (Object: BZ_li_13.jpg) File /usr/local/zope/lib/python/Products/Photo/Photo.py, line 370, in resize (Object: BZ_li_13.jpg) File /usr/local/zope/lib/python1.5/PIL/Image.py, line 634, in resize File /usr/local/zope/lib/python1.5/PIL/ImageFile.py, line 133, in load File /usr/local/zope/lib/python1.5/PIL/Image.py, line 237, in _getdecoder IOError: (see above) I have tried and tried again to recompile jpeg, include the path.. whatever! I am using Zope 2.2.4 , on RH 6.2 Thanks, J ___ 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] HELP: ZPatterns Installation on Linux
assuming you have a source distro of zope than this 'should' work # from zope base dir cd lib/python/Products/ZPatterns # the following is dependent on your python install, assuming # a stock redhat rpm cp /usr/lib/python1.5/config/Makefile.pre.in.boot . make -f Makefile.pre.in boot make should do it leaving you with an *so file in your Zpatterns directory. restart zope and you should be good to go. kapil On Friday 19 January 2001 14:11, J. Atwood wrote: The instructions in the README.txt and on zope.org are a little vague.. How, indeed, do I " build this extension using the included Setup file in the ZPatterns directory" I can see the Setup file but that is about it. I would be more than happy to write up some documentation (on Zope.org) if someone sends me the answer. RH Linux 6.2, Zope 2.2.2, Latest ZPatterns Thanks, J ___ 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] HELP: ZPatterns Installation on Linux
After reading around more (a lot more) I got to. cp /usr/lib/python1.5/config/Makefile.pre.in . make -f Makefile.pre.in boot make At which point I get: make gcc -fPIC -I../../ZODB -I../../../Components/ExtensionClass -g -O2 -I/usr/include/python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG_H -c ./DynPersist.c In file included from ./DynPersist.c:1: ../../ZODB/cPersistence.h:89: ExtensionClass.h: No such file or directory make: *** [DynPersist.o] Error 1 I took a look and there is no ExtensionsClass. Any further help? Thanks, J At 5:07 PM -0600 1/19/01, Steve Drees wrote: copy the Setup.in to the ZPatterns directory make -f Setup.in I think that's how I built it. It's been awhile -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of J. Atwood Sent: Friday, January 19, 2001 4:12 PM To: [EMAIL PROTECTED] Subject: [Zope] HELP: ZPatterns Installation on Linux The instructions in the README.txt and on zope.org are a little vague.. How, indeed, do I " build this extension using the included Setup file in the ZPatterns directory" I can see the Setup file but that is about it. I would be more than happy to write up some documentation (on Zope.org) if someone sends me the answer. RH Linux 6.2, Zope 2.2.2, Latest ZPatterns Thanks, J ___ 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] Help with getting started with Login Manager
Try this: http://www.zope.org/Members/jok/SQL_based_LoginManager Some extra pointers: Step 7: Customize the LoginManger instance to call the SQL methods You'll have this /root /folder /acl_users (LoginManager) /UserSource SQL_check_user SQL_get_password SQL_get_roles You're then supposed to add DTML Methods called userAuthenticate,userExists,userRoles *BUT* if you do this, you'll be locked out. Instead, add xuserAuthenticate xuserExists xuserRoles Edit test the DTML methods, then when you're sure they work, batch rename them (i.e. tick the boxes next to all three, then click rename). They'll be renamed as an atomic unit, and hopefully the LoginManager will work. It can be very frustrating to get going though - Once you've completed step 6, I recommend taking a copy of "folder" i.e. /root /folder (...etc...) /copy_of_folder (...etc...) If you break it, you can get back to /root, delete folder, copy "copy_of_folder" back to "folder" and not have to start from scratch. Very time saving. Regards, Phil +--+ | Phil Mayers, Network Support | | Centre for Computing Services| | Imperial College | +--+ -Original Message- From: Steffen Bergmann [mailto:[EMAIL PROTECTED]] Sent: 18 January 2001 09:32 To: [EMAIL PROTECTED] Subject: [Zope] Help with getting started with Login Manager Hi ! I installed the Login Manager to my Zope, but I dont know how to use it. I want to authenticate my users with an SQL database. Is there anywhere good documentation about Login Manager. And how does the Login Manager solve the N*M problem with managing the users. Regards Steffen ___ 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] Help with getting started with Login Manager
Hi Phil, Mayers, Philip J wrote: Try this: http://www.zope.org/Members/jok/SQL_based_LoginManager Some extra pointers: is it o.k. that i include them in an updated version of the How-To? Steffen: There is also http://www.zope.org/Members/dlpierson/sqlLogin , a solution which is more integrated into the zpatterns framework. Ciao, Jochen-- -- Jochen Knuth WebMaster http://www.ipro.de IPRO GmbH Phone ++49-7152-93330 Steinbeisstr. 6 Fax ++49-7152-933340 71229 LeonbergEMail: [EMAIL PROTECTED] ___ 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] Help getting zope to do frames!
To properly reference your frames by their absolute urls, instead of this: frame name="A" src="dtml-var top" frame name="B" src="dtml-var main" Try this: frame name="A" src="dtml-var "top.absolute_url()"" frame name="B" src="dtml-var "main.absolute_url()"" -PSJ ___ 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] HELP re: MailHost and Hotfix 2000_-12-08
Norman Khine wrote: Hello, I am having difficulty in setting up the MailHost on the Zope Server. Every time I try I get an error: Zope has encountered an error while publishing this resource. Debugging Notice Zope has encountered a problem publishing your object. Cannot locate object at: zope/manage_addProduct/MailHost/manage_addMailHost I am having the same problem as a post I found on the eGroups list Two solutions: 1) Temporarily move Hotfix_2000-12-08 to a different place on your system, restart Zope, create the MailHost, move the product back, and restart again. 2) Upgrade to Zope 2.2.5b1. Shane ___ 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] Help save my sanity (DTML-in string comparison)
Darin Lee writes: ... comparisons involving "id" do not work ... "id" is particularly difficult in DTML. For some objects, "id" is an attribute (a string), for others, it is a method. Due to Zope's acquisition magic, it is difficult to compare method's to one another: the "same" method compare different, if accessed on different access paths. Thus, you want to work with strings only. The problem is: DTML does not let you test for types. You can do something like this: dtml-with your_object dtml-let id_name=id !-- now: "id_name" contains a string -- dtml-call "REQUEST.set('id_name',id_name) /dtml-let /dtml-with Dieter ___ 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] Help save my sanity (DTML-in string comparison)
On Tue, Dec 19, 2000 at 09:57:31PM +0100, Dieter Maurer wrote: Darin Lee writes: ... comparisons involving "id" do not work ... "id" is particularly difficult in DTML. For some objects, "id" is an attribute (a string), for others, it is a method. Due to Zope's acquisition magic, it is difficult to compare method's to one another: the "same" method compare different, if accessed on different access paths. Thus, you want to work with strings only. The problem is: DTML does not let you test for types. You can do something like this: dtml-with your_object dtml-let id_name=id !-- now: "id_name" contains a string -- dtml-call "REQUEST.set('id_name',id_name) /dtml-let /dtml-with Or you could use "_['id']" in place of "id". Which does exactly the same as the let tag does in the above statement, ie a lookup in the namespace and then calling it if it is a method. Example: dtml-with your_object dtml-call "REQUEST.set('id_name', _['id'])" /dtml-with This kind of hoopjumping is exactly why in Zope 2.3 you now can use the method 'getId()', which will hide the confusion for you. From Zope 2.3 onwards, *always* use getId(): dtml-with your_object dtml-call "REQUEST.set('id_name', getId())" /dtml-with or: dtml-call "REQUEST.set('id_name', your_object.getId())" -- Martijn Pieters | Software Engineer mailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ - ___ 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] Help save my sanity (DTML-in string comparison)
Darin Lee wrote: Zopistas, I am trying to build a simple, 2 tier, tree-style navigation structure for my site. I have puzzled over the following code for hours, and it's just not working right. I have two loops, one that goes through the Parents, and when the parent matches the current folder, I go through the children (There are 2 scripts, one that resides one level up and presents a simple list of objects to click on) The following code lives in the child folders, and displays the parents and all of the HTML documents in the current folder. The output I am looking for resembles below. [snip] ¯-- BTW, I have tried the NFGNav product, but It doesn't work in my application (I suspect) because I am using transparent folders to organize things. I also want my NAV to start farther down the heirarchy (level 2), not from the root. Try ZNavigator, instead. HTH, Michael Berrnstein. ___ 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] HELP with Postgress!! HELP!!
On Thu, 14 Dec 2000, Paolo Quaglia wrote: I have tried the ZPyGreSQLDA-0.3-rjr2.tar.gz, but the product result BROKEN PRODUCT!! Instead of asking for free HELP!!! you'd better try to fix the broken product; after all, it is free software, do it yourself or hire someone. Go to Control Panel and click on this broken product. Now see a traceback. Look what is wrong and fix the problem. Restart Zope. Use th DA. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ 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] HELP with Postgress!! HELP!!
Paolo Quaglia wrote: I have tried the ZPyGreSQLDA-0.3-rjr2.tar.gz, but the product result BROKEN PRODUCT!! Did you have compiled it? []s -- +-+-+ | César A. K. Grossmann | Capacitação Solidária | | [EMAIL PROTECTED]| http://www.uol.com.br/umminuto/ | | http://members.xoom.com/ckant/ | Clique e doe - é de graça | +-+-+ http://www.halcyon.com/sciclub/cgi-pvt/instr/instr.html A ética do iG: http://antispambr.abranetrj.org.br/not-20001023.html All is well that ends well. -- John Heywood ___ 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] HELP with Postgress!! HELP!!
Thank you very much to all for the quick replies. I'm fighting compiling the modules ... and trying to solve the prob I'll let you know ... :) Ciao Paolo Quaglia -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of César A. K. Grossmann Sent: Thursday, December 14, 2000 6:49 PM To: Paolo Quaglia Cc: [EMAIL PROTECTED] Subject: Re: [Zope] HELP with Postgress!! HELP!! Paolo Quaglia wrote: I have tried the ZPyGreSQLDA-0.3-rjr2.tar.gz, but the product result BROKEN PRODUCT!! Did you have compiled it? []s -- +-+-+ | César A. K. Grossmann | Capacitação Solidária | | [EMAIL PROTECTED]| http://www.uol.com.br/umminuto/ | | http://members.xoom.com/ckant/ | Clique e doe - é de graça | +-+-+ http://www.halcyon.com/sciclub/cgi-pvt/instr/instr.html A ética do iG: http://antispambr.abranetrj.org.br/not-20001023.html All is well that ends well. -- John Heywood ___ 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] HELP! - DTML Variables
You can't have DTML inside DTML. The dtml- stuff is to tell Zope that this is not HTML. The correct answer is: dtml-in expr="find_employee(employee_id=AUTHETICATED_USER.getUserName())" size=50 start=query_start cheers, peter - Original Message - From: Mohan Baro To: [EMAIL PROTECTED] Sent: Friday, December 08, 2000 1:53 PM Subject: [Zope] HELP! - DTML Variables In the code segment : dtml-in expr="find_employee(employee_id='XXX')" size=50 start=query_start dtml-if sequence-start How do I declare a variable such as intEmployee='123456' so that I can use it as: dtml-in expr="find_employee(employee_id=dtml-var intEmployee)" size=50 start=query_start dtml-if sequence-start What I am really tring to do is: dtml-in expr="find_employee(employee_id='dtml-var "AUTHETICATED_USER.getUserName()"')" size=50 start=query_start dtml-if sequence-start But I keep on getting syntax errors. Mohan. ___ 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] Help! publishing Images from a Database
This works with mysql: 1. make mysql table with a LONGBLOB field for holding the image, suppose you make it a field called "imageData" 2. in your DTML, do this (assume getImage gets the image you want) dtml-in getImage dtml-call "RESPONSE.setHeader('content-type','image/png')" dtml-return imageData /dtml-in The retrieve, etc. things you mentioned are just sql, displaying it is the tricky part! Regards, JJ Mohan Baro wrote: Can anyone help me to I want to know how I can publish images stored in a SQL database. I am trying to create an online photo album that stores images in a database. The features I want to implement are: RetrieveImage, UpdateImage, InsertImage I am running zope on linux mandrake and use ZSever The database I am currently using is MySQL on MySQLDA (MySQLdb non-binary dist.) Mo. ___ 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] Help - cannot import zexp
Hi! I already got it! :) I imported earlier zexp and removed default args from the External Method. The site now seems to do export/import flawlessly. As I said, it's undocumented misfeature. Thanks for documenting it. Can you make it a Tip or a HOWTO and publish it on zope.org? On Sun, 3 Dec 2000, Dieter Maurer wrote: Oleg Broytmann writes: functions as default parameters to external method functions cause import problems "Cannot import default_render from module __main__". Oops! What's that? The default_render isn't in __main__, sure. I tried to create External Method before importing, but this didn't help :( This is a severe danger of "pickle" and the external method implementation: * the implementation does not import the Python source files but reads them in and executes them. All functions and classes appear to be defined in the module "__main__". * The implementation places the function default arguments into the ZODB (as a pickle). * "unpickle" cannot load the corresponding object, as it imports "__main__" and looks there for the function -- in vain. As a rule: Avoid the use of class of function definitons from an external method source file for anything that may be written to the ZODB (or more generally be pickled; this applies e.g. to session context, too). This includes created object instances that may end up as attributes of Zope objects or function default parameters to external methods. If you defined such classes or functions in a true Python module, you should have no problem. What can you do, if your zexp is valuable? * put a dummy definition of "default_render" in the "__main__" module. You should then be able to import your zexp and change the problematic external method. I do not know precisely, what Zope's "__main__" module is. I expect the "z2.py". If this is not the case, then a small dummy product that does "import __main__; __main__.default_render= 0" should do the trick, whatever "__main__" may be. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ 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] Help - cannot import zexp
Oleg Broytmann writes: functions as default parameters to external method functions cause import problems "Cannot import default_render from module __main__". Oops! What's that? The default_render isn't in __main__, sure. I tried to create External Method before importing, but this didn't help :( This is a severe danger of "pickle" and the external method implementation: * the implementation does not import the Python source files but reads them in and executes them. All functions and classes appear to be defined in the module "__main__". * The implementation places the function default arguments into the ZODB (as a pickle). * "unpickle" cannot load the corresponding object, as it imports "__main__" and looks there for the function -- in vain. As a rule: Avoid the use of class of function definitons from an external method source file for anything that may be written to the ZODB (or more generally be pickled; this applies e.g. to session context, too). This includes created object instances that may end up as attributes of Zope objects or function default parameters to external methods. If you defined such classes or functions in a true Python module, you should have no problem. What can you do, if your zexp is valuable? * put a dummy definition of "default_render" in the "__main__" module. You should then be able to import your zexp and change the problematic external method. I do not know precisely, what Zope's "__main__" module is. I expect the "z2.py". If this is not the case, then a small dummy product that does "import __main__; __main__.default_render= 0" should do the trick, whatever "__main__" may be. Dieter ___ 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] Help! Accessing product constructors methods programmatically
[EMAIL PROTECTED] writes: Can anyone suggest an approach to this problem? Any relevant documents I need to read? I like to repeat my general remark (you find it several time in the (searchable) list archiv ;-)): Whenever, you can do something with the Zope management interface, you can do it programmatically. Moreover, a look at the source of the Zope management pages (mostly DTML and mostly in the OFS/ and App/ subfolders of your distribution), will tell you how to do it. Dieter ___ 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] Help! Accessing product constructors methods programmatically
Hello, Zopers-- I'm fairly new at this, so I apologize if this is a dumb question. Anyway, I've been looking for a way to do a bulk upload of XML documents from a local directory. So I need a method (either DTML or Python is fine with me) that would build a list of files and create an XML Document object from each one. I have tried a variety of different approaches, but I can't find a way to access the XMLDocument.add() method. Have you looked at load_site.py? It is included in the zope-distribution or can be found at http://www.zope.org/Members/itamar/load_site It doesn't do XMLDocuments, but I found it a great help in figuring out how to inject a bunch of external files into zope. I guess you just have to change the relevant lines to create XMLDocuments instead of DTML-ones. cheers, oliver ___ 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] Help!!
Ot, I've seen this myself. Are you using IE5.5? It seems that on occasion when you have active desktop and outlook express running that win98/2K remembers the authentication details between instances of IE5.5. Realising that Outlook Express uses IE to display mail and active desktop is also based on IE then this starts to make some sense. It's only happened to me when using W2K but it definitely happened and made me doubt my sanity for a while ;) I reinstalled the machine and downgraded to IE5 to get rid of the problem. One ray of hope though is that IE5.5sp1 seems to cure the problem, at least for me. hth Phil [EMAIL PROTECTED] - Original Message - From: "Ot Ratsaphong" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 29, 2000 3:16 AM Subject: [Zope] Help!! Hi, I'm new to Zope and have just installed Zope on a Win98 PC. I'm trying to install squishdot and TinyTable, but Zope tells me that superuser has no permission to install the above products. I have created another user called 'admin' with Manager priviledges but I don't know how to logout of superuser and login as 'admin'. I have tried shutting down Zope and closed off internet explorer and restarting again but I still get into superuser. If I need to login as a non superuser, how do I do this? I have looked for all relevant documentation but can't find anything on this. Your help would be appreciated. TIA Ot Ratsaphong Canberra, Australia ___ 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] Help!!
Hi Phil, Eric, Thanks for your responses, Chris McDonough sent me a message earlier today and told me what I had to do. My IE5.5 authentication settings were set so that it would automatically log me on to any application (ie. save my password). Because the first time I logged in was as 'superuser', it logged me in as 'superuser' everytime. Once I disabled this setting and set it to "Prompt for User name and Password", the login prompt appeared again. see: Tools-Internet Options-Security-Custom Level... Cheers, Ot Ratsaphong [EMAIL PROTECTED] - Original Message - From: "Phil Harris" [EMAIL PROTECTED] To: "Ot Ratsaphong" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, November 29, 2000 8:04 PM Subject: Re: [Zope] Help!! Ot, I've seen this myself. Are you using IE5.5? It seems that on occasion when you have active desktop and outlook express running that win98/2K remembers the authentication details between instances of IE5.5. Realising that Outlook Express uses IE to display mail and active desktop is also based on IE then this starts to make some sense. It's only happened to me when using W2K but it definitely happened and made me doubt my sanity for a while ;) I reinstalled the machine and downgraded to IE5 to get rid of the problem. One ray of hope though is that IE5.5sp1 seems to cure the problem, at least for me. hth Phil [EMAIL PROTECTED] ___ 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] Help!!
hi, Create a user in acl_users, then use that person to manage the site. j. .. . Jason C. Leach ... University College of the Cariboo. .. On Wed, 29 Nov 2000, Ot Ratsaphong wrote: Hi, I'm new to Zope and have just installed Zope on a Win98 PC. I'm trying to install squishdot and TinyTable, but Zope tells me that superuser has no permission to install the above products. I have created another user called 'admin' with Manager priviledges but I don't know how to logout of superuser and login as 'admin'. I have tried shutting down Zope and closed off internet explorer and restarting again but I still get into superuser. If I need to login as a non superuser, how do I do this? I have looked for all relevant documentation but can't find anything on this. Your help would be appreciated. TIA Ot Ratsaphong Canberra, Australia ___ 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] Help with Nested ZSQL methods
try calling like this : dtml-in "sql_get_items(_.None,_)" also you might what to use dmt-sql var instead of dtml-var inside ZAQL Methods. regards -- pashah Here's the operative part of the dtml method that calls these methods: == dtml-in sql_get_schedules TABLE BORDER="3" TRTHItem No./THTHDescription/THTHMn/DOT No./THTHUnits/TH/TR dtml-in sql_get_items TR TDdtml-var ItemNo/TD TDdtml-var Description/TD TDdtml-var MnDOTNo/TD TDdtml-var UnitDescription/TD /TR dtml-in TABLE /dtml-in == I get the error: Error Type: Bad Request Error Value: ['SchedID'] I suspect there is some type of namespace-related problem going on here where the var SchedID is not getting passed to the internal ZSQL method. P. Johnson ___ 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] Help with Nested ZSQL methods
[EMAIL PROTECTED] writes: ... passing parameters to Z SQL methods ... This is an FAQ. You already know the searchable list archive at NIP? Z SQL methods do *NOT* take parameters from the DTML namespace. They only look at "REQUEST". You have two options: 1. put your parameters into the REQUEST object: dtml-call "REQUEST.set('myparam', myparam_value)" 2. call the Z SQL method with explicit parameters: dtml-in "myMethod(myparam= myparam_value, )" Dieter ___ 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] Help!!
I have created another user called 'admin' with Manager priviledges but I don't know how to logout of superuser and login as 'admin'. I have tried shutting down Zope and closed off internet explorer and restarting again but I still get into superuser. Did you tell Internet Explorer to "save your username and password" when you logged in as superuser for the first time? If so, you'll get logged in automatically as superuser every time you hit the site. To turn off this behavior (at least in IE 5.5), visit Options--Security--Custom Level--User Authentication--Logon and check "Prompt for Username" and save the security level as default. ___ 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] Help!!
Hi Ot, Try closing down all instances of your browser, then open up your browser and login as your admin user. You will be "logged out" when you close all instances of your browser. HTH, Eric. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ot Ratsaphong Sent: Tuesday, November 28, 2000 7:16 PM To: [EMAIL PROTECTED] Subject: [Zope] Help!! Hi, I'm new to Zope and have just installed Zope on a Win98 PC. I'm trying to install squishdot and TinyTable, but Zope tells me that superuser has no permission to install the above products. I have created another user called 'admin' with Manager priviledges but I don't know how to logout of superuser and login as 'admin'. I have tried shutting down Zope and closed off internet explorer and restarting again but I still get into superuser. If I need to login as a non superuser, how do I do this? I have looked for all relevant documentation but can't find anything on this. Your help would be appreciated. TIA Ot Ratsaphong Canberra, Australia ___ 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] Help!!! (was: sudden ZClass breakage)
My ZClass is broken, but only in Zope 2.2.2 why? I exported my ZClass and imported it into a Zope 2.2.0 installation and it works GREAT. I figured, some how, I must have really screwed up my 2.2.2 installation so I removed it off my server. I then downloaded and installed 2.2.2 again, installed all the products that I use (same products on the 2.2.0 server) and then imported my ZClass. I tried to add an instance and it errors out with "Invalid Date-Time String" again. What is up??? Could some Zope power user fill me in? Why would the same ZClass work fine in 2.2.0 and not work in 2.2.2? HELP!!! Thanks! Jamey -Original Message- From: James Sintz [SMTP:[EMAIL PROTECTED]] Sent: Friday, November 10, 2000 5:17 PM To: '[EMAIL PROTECTED]' Subject: RE: [zope] sudden ZClass breakage Only seen a couple of posts on this and the suggested fixes did NOT work. My ZClass was working fine until I added a new string type property and now my date type property seems broken. I can't see any reason why I would be getting "Invalid Date-Time String", especially when it was working fine. I'm happy post my code if that will help. Any ideas?? Jamey -Original Message- From: Timothy Wilson [SMTP:[EMAIL PROTECTED]] Sent: Friday, November 10, 2000 4:46 PM To: James Sintz Subject:RE: [zope] sudden ZClass breakage On Fri, 10 Nov 2000, James Sintz wrote: Did you ever figure out how to fix your ZClass problem? I have a application I have been working on and and all of a sudden today I start getting the same error message "Invalid Date-Time String" . The odd thing is that it is only broken when I try and add an instance from my custom add form. When I use the management screen to add the instance my goLiveDate field works just fine. I've never gotten an answer. I figured I would work on other things and wait for 2.2.3 and see if that made any difference. If it doesn't, I'll make some more noise or dig in deeper and try to figure out what's going on. :-( -Tim Hi everyone, I've been working away on a ZClass-based product that will provide a searchable job board for our Human Resources Dept. here at school. Things were going along fine until, it seemed, out of the blue I started getting an error message about an "Invalid Date-Time String" and a lengthy traceback. I'm wondering if anyone can glean anything from the traceback. Is this one of those obvious errors that I'm just missing? I'm really puzzled. Any advice would be appreciated. -Tim ___ 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] help
This refers to the user in Zope and has nothing to do with the file system. You must go into acl_users create a new user, then close your browser an log back in again as that user. The superuser is kind of an "emergency access only" user. I think we need an FAQ on this question, isn't there one around? -- Andy McKay, Developer. ActiveState. - Original Message - From: "Padrino" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 13, 2000 11:23 AM Subject: [Zope] help Well I Installed Zope But When I Want To Add A Folder Or A File The Next Mesagge Apearse to me Well I have This Permitions in every file of the zope 777 nobody:nobody With Red Hat 6.2 Zope Error Zope has encountered an error while publishing this resource. Error Type: SuperCannotOwn Error Value: Objects cannot be owned by the superuser Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /root/src/Zope-2.2.2-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_addFolder) File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_addFolder) File /root/src/Zope-2.2.2-src/lib/python/OFS/Folder.py, line 116, in manage_addFolder File /root/src/Zope-2.2.2-src/lib/python/OFS/ObjectManager.py, line 267, in _setObject (Object: ApplicationDefaultPermissions) File /root/src/Zope-2.2.2-src/lib/python/AccessControl/Owned.py, line 271, in manage_fixupOwnershipAfterAdd (Object: Traversable) SuperCannotOwn: (see above) Well I Will Be Waiting your Answer thanks For Your Help Sincerly Manuel Alejandro Peña Sànchez ___ 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] help
You need to add a user. The superuser cannot own any objects inside zope. Go to the folder called acl_users and add a user with manager permissions. Close all copies of your browser. Open a new one and login as the new user. Then you will be able to add objects. See also: http://www.zope.org/Members/michel/ZB/ Troy -Original Message- From: Padrino [mailto:[EMAIL PROTECTED]] Sent: Monday, November 13, 2000 1:24 PM To: [EMAIL PROTECTED] Subject: [Zope] help Well I Installed Zope But When I Want To Add A Folder Or A File The Next Mesagge Apearse to me Well I have This Permitions in every file of the zope 777 nobody:nobody With Red Hat 6.2 Zope Error Zope has encountered an error while publishing this resource. Error Type: SuperCannotOwn Error Value: Objects cannot be owned by the superuser Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /root/src/Zope-2.2.2-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_addFolder) File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_addFolder) File /root/src/Zope-2.2.2-src/lib/python/OFS/Folder.py, line 116, in manage_addFolder File /root/src/Zope-2.2.2-src/lib/python/OFS/ObjectManager.py, line 267, in _setObject (Object: ApplicationDefaultPermissions) File /root/src/Zope-2.2.2-src/lib/python/AccessControl/Owned.py, line 271, in manage_fixupOwnershipAfterAdd (Object: Traversable) SuperCannotOwn: (see above) Well I Will Be Waiting your Answer thanks For Your Help Sincerly Manuel Alejandro Peña Sànchez ___ 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] help
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Padrino Error Type: SuperCannotOwn Error Value: Objects cannot be owned by the superuser This is a Zope security feature that is confusing the first time you meet it. the Zope super user cannot own objects in Zope. Just add a new user in acl_user in your Zope root and give that user Manger rights. Then you can do what you expect. Regards Max M Btw. You should probably use a more descriptive subject in your e-mails. It was by coincidence that I opened it. "Help" isn't terribly descriptive and time is short. ___ 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] help
-Original Message- From: Padrino [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: 13 íîÿáðÿ 2000 ã. 22:40 Subject: [Zope] help Error Type: SuperCannotOwn Error Value: Objects cannot be owned by the superuser ^^ this is the answer (: create a new user, login as the newly created user and try to do what you wanted. regards -- pashah ___ 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] help
BTW: Im not a Unix guru but I dont think having everythin 777 is the most secure way of maintaining your installation... -- Andy McKay, Developer. ActiveState. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Padrino" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, November 13, 2000 11:37 AM Subject: Re: [Zope] help This refers to the user in Zope and has nothing to do with the file system. You must go into acl_users create a new user, then close your browser an log back in again as that user. The superuser is kind of an "emergency access only" user. I think we need an FAQ on this question, isn't there one around? -- Andy McKay, Developer. ActiveState. - Original Message - From: "Padrino" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 13, 2000 11:23 AM Subject: [Zope] help Well I Installed Zope But When I Want To Add A Folder Or A File The Next Mesagge Apearse to me Well I have This Permitions in every file of the zope 777 nobody:nobody With Red Hat 6.2 Zope Error Zope has encountered an error while publishing this resource. Error Type: SuperCannotOwn Error Value: Objects cannot be owned by the superuser Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /root/src/Zope-2.2.2-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_addFolder) File /root/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_addFolder) File /root/src/Zope-2.2.2-src/lib/python/OFS/Folder.py, line 116, in manage_addFolder File /root/src/Zope-2.2.2-src/lib/python/OFS/ObjectManager.py, line 267, in _setObject (Object: ApplicationDefaultPermissions) File /root/src/Zope-2.2.2-src/lib/python/AccessControl/Owned.py, line 271, in manage_fixupOwnershipAfterAdd (Object: Traversable) SuperCannotOwn: (see above) Well I Will Be Waiting your Answer thanks For Your Help Sincerly Manuel Alejandro Peña Sànchez ___ 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] help
Andy McKay wrote: BTW: Im not a Unix guru but I dont think having everythin 777 is the most secure way of maintaining your installation... -- Andy McKay, Developer. ActiveState. Hi Andy, actually, if you are talking about permissions, this setting gives anyone in the world read write and execution access to your document(s)/directory(ies). I think you want to set permissions as 755, with owner and group set to nobody (at least for the /opt/zope directory and sub-directories. (allows only owner write access) : ) ciao! greg. ___ 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] help
On Tue, 14 Nov 2000, Gregory Haley wrote: Andy McKay wrote: BTW: Im not a Unix guru but I dont think having everythin 777 is the most secure way of maintaining your installation... -- Andy McKay, Developer. ActiveState. Hi Andy, actually, if you are talking about permissions, this setting gives anyone in the world read write and execution access to your document(s)/directory(ies). I think you want to set permissions as 755, with owner and group set to nobody (at least for the /opt/zope directory and sub-directories. (allows only owner write access) : ) Yes, I know we've wandered somewhat off topic, but hey... just this once.. (o8 Greg, Having all your dtml, html, py, pyc, doc and other files executable just doesn't make sense! In fact, if you make everything 440 except for in /var, where you make it 640, and owned by a "zope" user, this is the safest. Of course, it DOES mean you have to explicitly chmod any file you want to edit...so if you're not THAT paranoid, you could use 640 everywhere... If you put all the files in a zope group, then you can set the permissions 660, so only people in the Zope group can edit the files. ciao! greg. Have a better one, Curtis Maloney. P.S. sorry for rambling... i've just got into work, and not had my first coffee yet.. (o8 ___ 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] help
Hi Andy, actually, if you are talking about permissions, this setting gives anyone in the world read write and execution access to your document(s)/directory(ies). I think you want to set permissions as 755, with owner and group set to nobody (at least for the /opt/zope directory and sub-directories. (allows only owner write access) : ) Thats what I thought ugghhh... ___ 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] Help wanted on Zope ZClasses/DTML please.
I have worked out thanks to Seb's comments that the problem I have with the use of manage_delObjects is (I think) that I am passing in the title or id of the object to be deleted rather than the object itself. Not quite... manage_delObjects takes a string which is the id of the object to be deleted. Your example dtml-call "manage_delObjects('the_id')" was passing a string 'the_id' to the method. I might have interpreted what you were trying to do wrongly, but I believe you actually wanted to pass the _value_ of the_id. I want to put the object into the REQUEST so I can still access it from a different namespace - at the point I want to do the deletion, my target object is out of scope. In fact you just have to put the correct string into the REQUEST and then make sure you have the object you're trying to reference in your current namespace, e.g. by using dtml-with foo_namespacedtml-var "manage_delObjects(the_id)"/dtml-with. If you need more help, post the snippet you're working on again. 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] Help wanted on Zope ZClasses/DTML please.
Thanks for the e-mail Seb. I am afraid I am still having problems here, so I will show my code again, and hopefully you or someone else will be able to help. To recap : I am creating a news page and an interface to edit it using two custom ZClasses, Article and Page. A Page object contains several Articles. The following code is from a script that allows the user to delete an Article from the Page. This method belongs to the Page class, so we are currently in the scope of the Page. This script is supplied with the title of a news article to be deleted, it should then delete the Article from the Page and report back. dtml-var standard_header !-- set this flag to null so I can tell if/when matching article found -- dtml-call "REQUEST.set('id_to_delete','NULL')" !-- retrieve the title of the article to delete -- dtml-let the_match="REQUEST['article_to_delete']" !-- start cycling through Articles looking for a match -- dtml-in objectValues dtml-with sequence-item dtml-with propertysheets dtml-with UAArticleClassPropertySheet !-- now we are looking at the properties of one of the Articles -- dtml-if expr="article_title==the_match" dtml-call "REQUEST.set('id_to_delete',title_or_id)" !-- this is the point where we have located the article to delete. Ideally we should delete it now, but we are still in the scope of the property sheet -- /dtml-if /dtml-with/dtml-with !-- now if we have found a match, we are back in the scope of the objectValues of the Page, so we want to do the deletion. -- dtml-unless expr="REQUEST['id_to_delete']=='NULL'" dtml-let the_id="REQUEST['id_to_delete']" !-- this is the problem line -- dtml-call "manage_delObjects(the_id)" /dtml-let /dtml-unless /dtml-in !-- this last bit just generates HTML to say if deletion done or article not found -- dtml-if expr="REQUEST['id_to_delete']=='NULL'" h2Article not found/h2 PCould not find the article to delete./PPA HREF=editReturn to maintenance page/A/P dtml-else h2Article not deleted/h2 PDeleted article 'dtml-the_match;' (id='dtml-the_id;')./PPA HREF=editReturn to maintenance page/A/P /dtml-if /dtml-let dtml-var standard_footer !-- end of code -- Basically I think I am somehow passing the wrong parameters to manage_delObjects The line dtml-call "manage_delObjects(the_id)" causes an error 'loop over non-sequence' This made me think that the argument has to be a sequence so I tried dtml-call "manage_delObjects('the_id')" but this fails because as you say it looks for an object called the_id and I need to pass in the value of the_id not the name of it. Ideally I want to say dtml-call "manage_delObjects(REQUEST['id_to_delete'])" but again this fails to find the object. Any ideas? Thanks for helping, Alex -Original Message- From: Seb Bacon [mailto:[EMAIL PROTECTED]] Sent: Monday, November 06, 2000 8:50 PM To: Bowyer, Alex; [EMAIL PROTECTED] Subject: RE: [Zope] Help wanted on Zope ZClasses/DTML please. I have worked out thanks to Seb's comments that the problem I have with the use of manage_delObjects is (I think) that I am passing in the title or id of the object to be deleted rather than the object itself. Not quite... manage_delObjects takes a string which is the id of the object to be deleted. Your example dtml-call "manage_delObjects('the_id')" was passing a string 'the_id' to the method. I might have interpreted what you were trying to do wrongly, but I believe you actually wanted to pass the _value_ of the_id. I want to put the object into the REQUEST so I can still access it from a different namespace - at the point I want to do the deletion, my target object is out of scope. In fact you just have to put the correct string into the REQUEST and then make sure you have the object you're trying to reference in your current namespace, e.g. by using dtml-with foo_namespacedtml-var "manage_delObjects(the_id)"/dtml-with. If you need more help, post the snippet you're working on again. 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] Help wanted on Zope ZClasses/DTML please.
Hi, just some quick pointers (I'm in a hurry...) refer to http://zdp.zope.org/projects/zqr/ZopeQR for more details !-- do the deletion - this is the bit that doesn't work -- dtml-call "manage_delObjects('the_id')" What is the correct way to use manage_delObjects? dtml-call "manage_delObjects(the_id)" should work. What you wrote looks for an object with id "the_id". In fact you want the value of the_id, which is evaluated for you when it's in quotes (think of everything in quotes as python). Is there a way to get the name of an object's parent (or its own name for that matter) and use it to construct a URL? dtml-var "PARENTS[0]" gives you the parent 3) When redirecting or linking to a page I have already visited, how can I force a refresh? I tried the JavaScript window.location.reload(true) but I think that is only supported by Netscape. It didn't work in IE5 for me anyway. window.location.reload() works for me... 4) What is the best way to handle security with ZClasses. In my example I want the index_html pages to be public but everything else to require a password. I managed to require a password for a particular instance of the UAPage, but that affects both the index_html and the edit pages. you can attach permissions to specific methods in a ZClass by mapping them to existing permissions in the 'define permissions' management tab. cheers, 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] Help wanted on Zope ZClasses/DTML please.
Instead of ... dtml-call "manage_delObjects('REQUEST['id_to_delete']')" try dtml-call "manage_delObjects('REQUEST.id_to_delete')" Chip Johansen From: "Bowyer, Alex" [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: [Zope] Help wanted on Zope ZClasses/DTML please. Date: Fri, 3 Nov 2000 16:05:49 +1100 Hi, I have only just started developing in Zope over this last week. I like it a lot, but I am having problems finding solutions to some of my more specific problems in the various zope documentations. I am hoping that if I describe my problems, one of you more-experienced Zope users out there will be able to help me. First some background: Basically I have written a news page which allows you to add/edit/delete articles from it. It is similar in some ways to the Zope HowTo "Build a searchable job board". It revolves around two classes: (UA stands for Update Australia, the name of the news page) UAArticle : A single article, to be included on the page. - Properties: article_title,article_author and article_text (self-explanatory) DTML Methods: index_html - renders the data from the three properties into HTML ready for inclusion in the news page edit - a page with a form to allow you to modify the content, submits to "update" update - processes the form results from "edit", updates the properties and redirects UAPage : the page itself, inherits from ObjectManager and has Add UAArticle permission defined. Each instance contains 0 or more UAArticles. -- Properties: issue_date, issue_number, intro_text (self-explanatory) Methods: index_html - renders the page to HTML, both from these properties and by calling the index_html of each subcomponent UAArticle. edit - a set of forms for modifications to edit the above three properties and add a new article, or select an article to edit or delete. update - processes updates to the UAPage properties that have been made on the edit page. edit_article - once an article is selected and the Edit button is clicked, this finds the article, calls the edit method and gives feedback. add_article - a form to create a new article and add it to the UAPage. create_article - processes the data from the add_article form and actually makes the object and adds it. delete_article - once an article is selected and the Delete button is clicked, this finds the article, deletes it and gives feedback. Now to the problems I have got: 1) I cannot get my delete_article method to work. I figured I need to use manage_delObjects, but I can't find a working example to copy from and my code doesn't seem to do anything. The following code gets called by a form with a field called article_to_delete which is the title of the article we want to delete: dtml-var standard_html_header !-- set a flag to NULL, change it if found -- dtml-call "REQUEST.set('id_to_delete','NULL')" !-- get the title of the article to delete -- dtml-let the_match="REQUEST['article_to_delete']" !-- search for the article -- dtml-in objectValues dtml-with sequence-itemdtml-with propertysheetsdtml-with UAArticleClassPropertySheet dtml-if expr="article_title==the_match" dtml-call "REQUEST.set('id_to_delete',title_or_id)" !-- found it, update the flag -- /dtml-if /dtml-with/dtml-with/dtml-with /dtml-in !-- test the flag to see if found -- dtml-if expr="REQUEST['id_to_delete']=='NULL'" !-- not found -- h2Article not found/h2 PCould not find the article to delete./PPA HREF=editReturn to maintenance page/A/P dtml-else !-- found -- dtml-let the_id="REQUEST['id_to_delete']" !-- do the deletion - this is the bit that doesn't work -- dtml-call "manage_delObjects('the_id')" h2Article deleted/h2 PDeleted article 'dtml-the_match;' (id='dtml-the_id;')./PPA HREF=editReturn to maintenance page/A/P /dtml-let /dtml-if /dtml-let dtml-var standard_html_footer This gets an error that the_id does not exist. But I can't put dtml-call "manage_delObjects('REQUEST['id_to_delete']')" because that is quotes within quotes within quotes. I also tried dtml-with the_iddtml-call "manage_delObjects()"/dtml-with but that doesn't seem to do anything. What is the correct way to use manage_delObjects? 2) I need to be able to make a "Back" button on the UAArticle's edit page that will return to the UAPage's edit page. The problem is that if I use A HREF=edit it just goes to the edit page of the object, because our current location is within the UAArticle not the UAPage. Is there a way to get the name of an object's parent (or its own name for that matter) and use it to construct a URL? 3) When redirecting or linking to a page I have already visited, how can I force a refresh? I tried the JavaScript window.location.reload(true) but I think that is only supported by Netscape. It didn't work in IE5 for me anyway. 4) What is the best way to handle security with ZClasses. In my example I want the index_html pages to be public but everything
Re: [Zope] Help wanted on Zope ZClasses/DTML please.
or try: dtml-call "manage_delObjects(REQUEST['id_to_delete'])" - Original Message - From: "chip johansen" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, November 03, 2000 9:01 AM Subject: Re: [Zope] Help wanted on Zope ZClasses/DTML please. Instead of ... dtml-call "manage_delObjects('REQUEST['id_to_delete']')" try dtml-call "manage_delObjects('REQUEST.id_to_delete')" Chip Johansen From: "Bowyer, Alex" [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: [Zope] Help wanted on Zope ZClasses/DTML please. Date: Fri, 3 Nov 2000 16:05:49 +1100 Hi, I have only just started developing in Zope over this last week. I like it a lot, but I am having problems finding solutions to some of my more specific problems in the various zope documentations. I am hoping that if I describe my problems, one of you more-experienced Zope users out there will be able to help me. First some background: Basically I have written a news page which allows you to add/edit/delete articles from it. It is similar in some ways to the Zope HowTo "Build a searchable job board". It revolves around two classes: (UA stands for Update Australia, the name of the news page) UAArticle : A single article, to be included on the page. - Properties: article_title,article_author and article_text (self-explanatory) DTML Methods: index_html - renders the data from the three properties into HTML ready for inclusion in the news page edit - a page with a form to allow you to modify the content, submits to "update" update - processes the form results from "edit", updates the properties and redirects UAPage : the page itself, inherits from ObjectManager and has Add UAArticle permission defined. Each instance contains 0 or more UAArticles. -- Properties: issue_date, issue_number, intro_text (self-explanatory) Methods: index_html - renders the page to HTML, both from these properties and by calling the index_html of each subcomponent UAArticle. edit - a set of forms for modifications to edit the above three properties and add a new article, or select an article to edit or delete. update - processes updates to the UAPage properties that have been made on the edit page. edit_article - once an article is selected and the Edit button is clicked, this finds the article, calls the edit method and gives feedback. add_article - a form to create a new article and add it to the UAPage. create_article - processes the data from the add_article form and actually makes the object and adds it. delete_article - once an article is selected and the Delete button is clicked, this finds the article, deletes it and gives feedback. Now to the problems I have got: 1) I cannot get my delete_article method to work. I figured I need to use manage_delObjects, but I can't find a working example to copy from and my code doesn't seem to do anything. The following code gets called by a form with a field called article_to_delete which is the title of the article we want to delete: dtml-var standard_html_header !-- set a flag to NULL, change it if found -- dtml-call "REQUEST.set('id_to_delete','NULL')" !-- get the title of the article to delete -- dtml-let the_match="REQUEST['article_to_delete']" !-- search for the article -- dtml-in objectValues dtml-with sequence-itemdtml-with propertysheetsdtml-with UAArticleClassPropertySheet dtml-if expr="article_title==the_match" dtml-call "REQUEST.set('id_to_delete',title_or_id)" !-- found it, update the flag -- /dtml-if /dtml-with/dtml-with/dtml-with /dtml-in !-- test the flag to see if found -- dtml-if expr="REQUEST['id_to_delete']=='NULL'" !-- not found -- h2Article not found/h2 PCould not find the article to delete./PPA HREF=editReturn to maintenance page/A/P dtml-else !-- found -- dtml-let the_id="REQUEST['id_to_delete']" !-- do the deletion - this is the bit that doesn't work -- dtml-call "manage_delObjects('the_id')" h2Article deleted/h2 PDeleted article 'dtml-the_match;' (id='dtml-the_id;')./PPA HREF=editReturn to maintenance page/A/P /dtml-let /dtml-if /dtml-let dtml-var standard_html_footer This gets an error that the_id does not exist. But I can't put dtml-call "manage_delObjects('REQUEST['id_to_delete']')" because that is quotes within quotes within quotes. I also tried dtml-with the_iddtml-call "manage_delObjects()"/dtml-with but that doesn't seem to do anything. What is the correct way to use manage_delObjects? 2) I need to be able to make a "Back" button on the UAArticle's edit page that will return to the UAPage's edit page. The problem is that if I use A HREF=edit it just goe
Re: [Zope] Help! Zope Crash
Edward Muller wrote: Sometimes the zope server can be up for a few days, sometimes only a few hours. I am not sure what is causing this or how to go about tracking it down. Is there anything I can do? Any help would be greatly appreciated. Well, this may just be 'any help'. But A couple of months ago the FreePM.org site would do the same thing. It did not seem to be traffic dependent, maintenance ... etc. Finally my host (http://www.michaelchaney.com thank you for supporting opensource) changed out the memory in the machine. He tried in the memory in a different machine it worked fine. But I have had the site go down since. -- Tim Cook -- Office: (901) 884-4126 8am-5pm CST Free Practice Management,Inc. | http://FreePM.org Censorship: The reaction of the ignorant to freedom. ___ 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] Help! Zope Crash
Tim Cook wrote: tried in the memory in a different machine it worked fine. But I have had the site go down since. Should be: I have not had the site go down since. (maybe I'll learn to proof my emails!) -- Tim Cook -- Office: (901) 884-4126 8am-5pm CST Free Practice Management,Inc. | http://FreePM.org Censorship: The reaction of the ignorant to freedom. ___ 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] Help! Zope Crash
Edward Muller wrote: I am running a Zwiki site at http://www.handhelds.org:8080/wiki. This site has become invaluable to our growing handhelds.org community as a place to collect information. But, sadly our zope server keeps dyingNo idea why Sometimes the zope server can be up for a few days, sometimes only a few hours. I am not sure what is causing this or how to go about tracking it down. Is there anything I can do? make sure you start zope with the STUPID_LOG_FILE environment variable set. Then, when your zope dies, look at the tail end of the log file. It should have a line that has an "Aiieee ! 12312 exited with error code: xx". The error code is what you should be looking at- it will tell you what your OS reports the problem as being. error 11 on linux is segfault, which *may* be hardware related. hope this helps, -- -mindlace- Zopatista Community Liason ___ 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] Help Debugging External Methods
the Python debugger "pdb" It's a Python module used to debug Python programs. It can set breakpoints, single step and print expressions. It is activated automatically, when you start "ZPublisher/Test.py" with the "-D" option. Usually, I do not use it this way, however, as it takes too long, before I reach the interesting point. Instead, I use: import pdb; pdb.set_trace() at the point in Python code, where I want to get control. Then I use "Test.py" without "-D". Dieter ___ 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] Help needed with news articles
try kmnetnews from zope.org/Products or you can use dtml document to construct a simple news item. untested code by newbie dtml-in "objectItems(['DTML Document'])" size=4 reverse sort=bobobase_modification_time dtml-var title(and other stuff/properties) /dtml-in /untested the above code should be in a DTML Method -Original Message- From: Taco Scargo [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Sunday, October 22, 2000 5:23 AM Subject: [Zope] Help needed with news articles Unfortunately nobody responded, so I am reposting this question again. I just need a link to an example or explanation. Basically I want to create a page listing the last 4 articles from a Zope folder. The articles need a publish from/to field, title and (dtml) text. I somehow need to be able to find and display the article from another dtml document. I read many FAQs and tried working with zcatalogs, but somehow I am not getting there. It is probably not so difficult. If there is somebody how can help me or give me a link to a clear explanation or example I would be very very grateful. Thanks ! Taco ___ 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] HELP! Permissions problem, ZClass
trying giving anonymous proxy roles on the actual add method. Eric Walstad wrote: Help, pls! I have a ZClass that is functioning beautifully if I am logged in, but the anonymous user keeps getting prompted for a password. The problem occurs when my DTML method trys to create a new instance of the ZClass. I tried giving that DTML method a Proxy of "Manager" but that isn't helping. Any pointers? Thanks, Eric. Here's the traceback: Zope Error Zope has encountered an error while publishing this resource. Unauthorized You are not authorized to access CNewsItem. Traceback (innermost last): File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: buildNews) File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: buildNews) File /usr/local/Zope/lib/python/OFS/DTMLMethod.py, line 172, in __call__ (Object: buildNews) File /usr/local/Zope/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: buildNews) File /usr/local/Zope/lib/python/DocumentTemplate/DT_With.py, line 146, in render (Object: manage_addProduct['NewsItem']) File /usr/local/Zope/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: CNewsItem_add(_.None, _, NoRedir=1)) (Info: _) File string, line 0, in ? File /usr/local/Zope/lib/python/OFS/DTMLMethod.py, line 168, in __call__ (Object: CNewsItem_add) File /usr/local/Zope/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: CNewsItem_add) File /usr/local/Zope/lib/python/DocumentTemplate/DT_With.py, line 133, in render (Object: CNewsItem.createInObjectManager(REQUEST['id'], REQUEST)) File /usr/local/Zope/lib/python/DocumentTemplate/DT_Util.py, line 331, in eval (Object: CNewsItem.createInObjectManager(REQUEST['id'], REQUEST)) (Info: CNewsItem) File /usr/local/Zope/lib/python/OFS/DTMLMethod.py, line 194, in validate (Object: buildNews) File /usr/local/Zope/lib/python/AccessControl/SecurityManager.py, line 139, in validate File /usr/local/Zope/lib/python/AccessControl/ZopeSecurityPolicy.py, line 209, in validate Unauthorized: (see above) ___ 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] Help needed with news articles
Hi Taco, How about something like this: dtml-var standard_html_header dtml-let articleList="[]" dtml-in "objectValues(['DTML Document'])" sort=bobobase_modification_time dtml-call "articleList.append(_['sequence-item'])" /dtml-in dtml-in "articleList[-4:]" reverse dtml-var sequence-item /dtml-in /dtml-let dtml-var standard_html_footer "Taco" == Taco Scargo [EMAIL PROTECTED] writes: Taco Unfortunately nobody responded, so I am reposting this Taco question again. I just need a link to an example or Taco explanation. Taco Basically I want to create a page listing the last 4 Taco articles from a Zope folder. The articles need a publish Taco from/to field, title and (dtml) text. I somehow need to be Taco able to find and display the article from another dtml Taco document. I read many FAQs and tried working with zcatalogs, Taco but somehow I am not getting there. It is probably not so Taco difficult. If there is somebody how can help me or give me a Taco link to a clear explanation or example I would be very very Taco grateful. Thanks ! Taco Taco Taco ___ Zope Taco maillist - [EMAIL PROTECTED] Taco http://lists.zope.org/mailman/listinfo/zope ** No cross Taco posts or HTML encoding! ** (Related lists - Taco http://lists.zope.org/mailman/listinfo/zope-announce Taco 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] Help Debugging External Methods
On Tue, Oct 17, 2000 at 09:05:29PM -0700, Kapil Thangavelu wrote: The Debugger is your friend http://www.zope.org/Members/michel/HowTos/TheDebuggerIsYourFriend That's a useful page -- thanks for the link. It's interesting that the example fooMethod() function has a major flaw, contrary to what the HowTo says: "There's actually nothing wrong with this method to debug". I would have replied directly to the author, 'michel', but his email address does not appear on that HowTo page or any of the pages that I scanned under http://www.zope.org/Members/michel. -- Fred Yankowski [EMAIL PROTECTED] tel: +1.630.879.1312 Principal Consultant www.OntoSys.com fax: +1.630.879.1370 OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA ___ 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] HELP! Permissions problem, ZClass
Take a look at Security View of its ZClass. Give permissions to anonymous users. Marcus Mendes Eric Walstad wrote: Help, pls! I have a ZClass that is functioning beautifully if I am logged in, but the anonymous user keeps getting prompted for a password. The problem occurs when my DTML method trys to create a new instance of the ZClass. I tried giving that DTML method a Proxy of "Manager" but that isn't helping. Any pointers? Thanks, Eric. Here's the traceback: Zope Error Zope has encountered an error while publishing this resource. Unauthorized You are not authorized to access CNewsItem. Traceback (innermost last): File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: buildNews) File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: buildNews) File /usr/local/Zope/lib/python/OFS/DTMLMethod.py, line 172, in __call__ (Object: buildNews) File /usr/local/Zope/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: buildNews) File /usr/local/Zope/lib/python/DocumentTemplate/DT_With.py, line 146, in render (Object: manage_addProduct['NewsItem']) File /usr/local/Zope/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval (Object: CNewsItem_add(_.None, _, NoRedir=1)) (Info: _) File string, line 0, in ? File /usr/local/Zope/lib/python/OFS/DTMLMethod.py, line 168, in __call__ (Object: CNewsItem_add) File /usr/local/Zope/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: CNewsItem_add) File /usr/local/Zope/lib/python/DocumentTemplate/DT_With.py, line 133, in render (Object: CNewsItem.createInObjectManager(REQUEST['id'], REQUEST)) File /usr/local/Zope/lib/python/DocumentTemplate/DT_Util.py, line 331, in eval (Object: CNewsItem.createInObjectManager(REQUEST['id'], REQUEST)) (Info: CNewsItem) File /usr/local/Zope/lib/python/OFS/DTMLMethod.py, line 194, in validate (Object: buildNews) File /usr/local/Zope/lib/python/AccessControl/SecurityManager.py, line 139, in validate File /usr/local/Zope/lib/python/AccessControl/ZopeSecurityPolicy.py, line 209, in validate Unauthorized: (see above) ___ 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] Help Debugging External Methods
I do pretty much the same things myself. I assign sys.stderr = sys.stdout, then I create my own log file object from a module I wrote a few years ago, and then assign something like sys.stderr = self.logObj. That works well for any errors that occur after those assignments have occurred but doesn't do much for anything that happens earlier. I also run the python code outside of Zope to get it all working. It's just a pain when I have to make some minor change in the Zope to External Method logic and it breaks. That's where I start to lose it some in the debugging. Using something like: import sys, traceback, string try: trysomething() except: type, val, tb = sys.exc_info() sys.stderr.write(string.join(traceback.format_exception(type, val, tb), '')) del type, val, tb ...helps, but even with that I seem to get errors that I just can't seem to catch and report properly. I'm not sure what you are referring to with "...the Python debugger "pdb"...". I've never used it. Thanks for your help, Robert J. Roberts LMSI-SDI 509.376.6343 [EMAIL PROTECTED] -Original Message- From: Dieter Maurer [mailto:[EMAIL PROTECTED]] Sent: Saturday, October 14, 2000 1:51 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope] Help Debugging External Methods [EMAIL PROTECTED] writes: What are my options for debugging External Methods in Zope running on Windows NT? I work under Unix. Maybe my technics are not applicable for NT. Usually, I use "print" statements for debugging purposes. Under Unix, I can redirect "stdout" to a file and view the output (be sure to flush stdout after "print"). You can also use "zLog" (may be spelled differently!). This writes log entries into the log file. The advantages: will work under Windows, contains a timestamp. If the external method does not need too many Zope infrastructure, I test it outside of Zope and integrate only, when it works properly. When everything else does not work, I use "Test.py" and the Python debugger "pdb". Dieter ___ 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] Help Debugging External Methods
[EMAIL PROTECTED] writes: What are my options for debugging External Methods in Zope running on Windows NT? I work under Unix. Maybe my technics are not applicable for NT. Usually, I use "print" statements for debugging purposes. Under Unix, I can redirect "stdout" to a file and view the output (be sure to flush stdout after "print"). You can also use "zLog" (may be spelled differently!). This writes log entries into the log file. The advantages: will work under Windows, contains a timestamp. If the external method does not need too many Zope infrastructure, I test it outside of Zope and integrate only, when it works properly. When everything else does not work, I use "Test.py" and the Python debugger "pdb". Dieter ___ 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] help!- version locked up site
[EMAIL PROTECTED] writes: I cannot view my site...the version has locked it up with the following message (I cannot even delete the version- which is not currently open): Error Type: VersionLockError Error Value: ("'\\000\\000\\000\\000\\000\\002\\303\\007'", 'h101Latest') Your problem description is not very clear. Are you completely unable to access your site? Apparently not, as you can try to delete the version. Try to go to your version, use the "save/discard" tab and discard (or save) your version. This should remove the look. If you can no longer access your site, it might help to delete "var/Data.fs.tmp". Be carefull! Make a backup before! I do not know, what will happen. Dieter ___ 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] help!- version locked up site
Thanks, I did figure it out and when I go into save/discard version and discard I was able to get back to normal. On 12 Oct 2000, at 23:27, Dieter Maurer wrote: [EMAIL PROTECTED] writes: I cannot view my site...the version has locked it up with the following message (I cannot even delete the version- which is not currently open): Error Type: VersionLockError Error Value: ("'\\000\\000\\000\\000\\000\\002\\303\\007'", 'h101Latest') Your problem description is not very clear. Are you completely unable to access your site? Apparently not, as you can try to delete the version. Try to go to your version, use the "save/discard" tab and discard (or save) your version. This should remove the look. If you can no longer access your site, it might help to delete "var/Data.fs.tmp". Be carefull! Make a backup before! I do not know, what will happen. Dieter ___ 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] Help with a DTML expression/comparison
"Manuel Amador (Rudd-O) Gerente de desarrollo Alpha Omega Creative Solutions http://www.alomega.com/" wrote: BUT, the comparison between the two, won't work. Even comparing two _.getitems doesn't work. So it's expected that at no point does the selected property appear in my html source. Please help. I'm shooting myself in the foot here. tr tdHonorific:/td td SELECT name="honorific" dtml-in valid_honors dtml-if "honorific==_['sequence-item']" OPTION "dtml-var sequence-item" SELECTEDdtml-var sequence-item/OPTION dtml-else OPTION "dtml-var sequence-item"dtml-var sequence-item/OPTION /dtml-if /dtml-in /SELECT This works for me where valid_honors is a list of honorifics (['Mr.', 'Ms.','Dr.', ...]) HTH, -- Tim Cook -- Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT * It's easy to stop making mistakes. Just stop having ideas. * FreePM Project Coordinator http://www.freepm.org OSHCA Founding Supporter http://www.oshca.org ___ 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] Help with a DTML expression/comparison
Manuel, You'll probably find that your comparing a string 'begin_day' to an integer 'sequence-item'. Try something like: dtml-if expr="_.int(begin_day) == _.int(_.getitem('sequence-item'))" hth Phil - Original Message - From: "Manuel Amador (Rudd-O) Gerente de desarrollo Alpha Omega Creative Solutions http: //www.alomega.com/" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 10, 2000 9:56 PM Subject: [Zope] Help with a DTML expression/comparison Hey to everyone, I'm shooting myself in the foot here with this construct: select name="begin_day" size="1" dtml-in "_.range(1,32,1)" option value="dtml-sequence-item;" dtml-if expr="begin_day == _.getitem('sequence- item')" selected /dtml-if dtml-sequence-item;/option /dtml-in /select Inserting with dtml-var any of begin_day or sequence- item yields at some point the same result, logically. I'm trying to make the form field default to a formerly specified value. BUT, the comparison between the two, won't work. Even comparing two _.getitems doesn't work. So it's expected that at no point does the selected property appear in my html source. Please help. I'm shooting myself in the foot here. Thanks in advance, Manuel -- Universidad Federico Santa Maria - Campus Guayaquil ___ 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] help! dtml-if question
Hi, Anthony how about: dtml-if "_.len(objectValues(['Blurb'])) 0" Your _.has_key() (I think you meant _.hasattr()) statement was looking for something named "Blurb", not a thing of type"Blurb", so of course it failed. The objectValues(['atype']) statement returns a list of the things of the type, so checking for a non-zero length of the list will do what you need. -- Jim Washington Dr. Anthony Monta wrote: Hi, I've tried to find a solution myself but now am stuck. I created a little "Blurb" product for a university department website so that faculty members can announce recent publications on the department's homepage. They create these ZClass instances in their own folders, and a DTML method in the top-level folder grabs and displays them at random. (I want to avoid using ZCatalog for the time being.) What the method does is randomly choose a faculty folder, and then randomly choose a Blurb instance within that folder. Here's the hack I came up with: dtml-with Dept dtml-with Fac dtml-with Sites dtml-with "_.whrandom.choice(objectValues(['Folder']))" dtml-with "_.whrandom.choice(objectValues(['Blurb']))" dtml-var index_html (end tags omitted) The problem is that this method will produce an Index Error when it comes across a folder that doesn't contain an instance of "Blurb" class. So I need to make the selection of a folder conditional on Zope's finding a Blurb in that folder. Here's what I tried after reading up: dtml-with Dept dtml-with Fac dtml-with Sites dtml-with "_.whrandom.choice(objectValues(['Folder']))" dtml-if "_.has_key('Blurb')" dtml-with "_.whrandom.choice(objectValues(['Blurb']))" dtml-var index_html /dtml-with dtml-else Some default Blurb would appear. This method fails. Can someone help? ___ 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] Help - Weird stuff.
Phil Harris wrote: Hi all, Sorry for the subject but I don't really know how to describe this. I have a folder 'hp' which has loads of stuff in it, if I try to copy and paste into it though I get this error: 'The object index_html does not support this operation ' I can't reproduce this in Zope 2.2.2, linux. Can you describe a simple case that has the problem? -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ 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] Help - Weird stuff.
Steve, Thanks for replying. I wish I could! I'll try to follow a chain of events though, maybe that will shed some light. I developed a site in 2.1.6 which was imported to a 2.2.1 installation. I didn't try much of anything on that install before upgrading to 2.2.2. So I'm not sure if the problem was caused by the importation or the upgrade. I eventually got round the problem by moving the site to aother 2.2.2 install manually, i.e. copy and paste the text of the methods etc. No importation involved. All this took place on a pair of NT4 boxes, one workstation(2.1.6) and one server(2.2.1-2.2.2). The problem has now gone away, so for the moment I'm happy to let it be. Thanks again Phil - Original Message - From: "Steve Alexander" [EMAIL PROTECTED] To: "Phil Harris" [EMAIL PROTECTED] Cc: "Zope@Zope. Org" [EMAIL PROTECTED] Sent: Saturday, September 30, 2000 8:53 AM Subject: Re: [Zope] Help - Weird stuff. Phil Harris wrote: Hi all, Sorry for the subject but I don't really know how to describe this. I have a folder 'hp' which has loads of stuff in it, if I try to copy and paste into it though I get this error: 'The object index_html does not support this operation ' I can't reproduce this in Zope 2.2.2, linux. Can you describe a simple case that has the problem? -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ 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] Help with Zope 'pitch'
At 11:35 am +0100 15/9/00, [EMAIL PROTECTED] wrote: I hear Zope learning curves are steep, so I wonder if anyone can suggest how I can persuade Managers that it is worth investing time and effort. To do many things is dead easy. This includes things like database lookups and reuse of web page 'components' (think of them as server-side-includes). The learning curve comes about because of the very different way that Zope works - and this is almost solely down to Object-Orientated principles. For example, in a static web site, you create an index.html page in every folder in your web site. If you have 2000 folders, then you need 2000 index.html files (or index.php3 or whatever). With Zope, you can have *one* index.html file at the top level of your web hierarchy that would do for all your 2000 folders. In folders that are special, say admin folders, you can change the index.html to be something else. You can also lock that file down so people need to authenticate to get into the folder. Suppose your web site is composed something similar to this; admin contacts internal external research contacts internal external undergrad contacts admissions courses year1 ... year5 postgrad contacts admissions courses taught year1 research year1 ... year5 (extend this out as much as you like) You can see there's a lot of duplication there. Using Zope, You can effectively 'create' those 2000 folders by simply writing out a URL, such as /postgrad/courses/taught/year1/action. The 'action' part will collect all the components together and create a composite web page. This is where some of the learning curve kicks in, as what you need to do to use Zope to greatest benefit is to look for commonality and uniqueness amongst all the components you are collecting together. Can anyone say in a few paras what Zope can do and what its benefits might be (lay language appreciated); I've probably gone way over the top there, but essentially you get to create dynamically rich *maintainable* web sites in a very short period of time. These web sites can be broken into logical chunks, that allows for very easy distributed management. eg in 'admin' above, you pass off the management of that 'branch' to someone else. If they then create an internal section of admin, they can also pass off responsibility of that part to someone else. also any anecdotes of how long it took to get to grips with it. I had some people come to the Med School on a Sunday and had them creating pages that were built from components in about 20 minutes. By the end of the afternoon they had several pages made and one or two had pages that were doing a database lookup. Is it worth using it for a Web site that is predominantly static pages (with ambitions for development)? There are some excellent 'products' (think plugins) that can mirror a static web site quite happily. You can then add the dynamic parts as you gain in confidence. I'm specifically thinking of the LocalFS product. Still a Web Novice but working on it - Linda Doyle! not for long we hope... Tone -- Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5116 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 ___ 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] Help: PATH_INFO==object
On Fri, Sep 08, 2000 at 11:32:39AM +0800, Li Dongfeng wrote: I am writing a service for other pages to use as form action. How can I reference the caller object in DTML/python? I can only think of this: First use PARENTS[-1] to get to the root object of the site. Then split the PATH_INFO containing the caller's path, and go down from the root to every subfolder in PATH_INFO and then get to the caller object. But this is not very elegant. Can anyone give better solution to this? PATH_INFO only tells you something about the service object, not about the calling page. If you use this as a FORM action target, it's the browser that makes the call, not Zope. You can, in many cases, determine the browser URL by looking at HTTP_REFERER, but many people and companies use proxies and firewalls to filter this out nowadays; it is considered sensitive information. If this app is targeted at a intranet or other controlled environment, you could dictate the presence of HTTP_REFERER, and rely on that, otherwise you will have to add a reference as a hidden form field generated by the calling object. Once you have a URL of the calling object, you can use the Traversal interface to turn that URL into an object reference. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ 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] Help: PATH_INFO==object
Thanks for the correction. Now I see that PATH_INFO refers to the current page, not the calling page. I think the hidden input field solution is OK for me. What is the *Traversal interface*? Do you mean the PARENTS enviroment? - Original Message - From: "Martijn Pieters" [EMAIL PROTECTED] To: "Li Dongfeng" [EMAIL PROTECTED] Cc: "Zope" [EMAIL PROTECTED] Sent: Friday, September 08, 2000 5:01 PM Subject: Re: [Zope] Help: PATH_INFO==object On Fri, Sep 08, 2000 at 11:32:39AM +0800, Li Dongfeng wrote: I am writing a service for other pages to use as form action. How can I reference the caller object in DTML/python? I can only think of this: First use PARENTS[-1] to get to the root object of the site. Then split the PATH_INFO containing the caller's path, and go down from the root to every subfolder in PATH_INFO and then get to the caller object. But this is not very elegant. Can anyone give better solution to this? PATH_INFO only tells you something about the service object, not about the calling page. If you use this as a FORM action target, it's the browser that makes the call, not Zope. You can, in many cases, determine the browser URL by looking at HTTP_REFERER, but many people and companies use proxies and firewalls to filter this out nowadays; it is considered sensitive information. If this app is targeted at a intranet or other controlled environment, you could dictate the presence of HTTP_REFERER, and rely on that, otherwise you will have to add a reference as a hidden form field generated by the calling object. Once you have a URL of the calling object, you can use the Traversal interface to turn that URL into an object reference. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio - ___ 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] Help with calcualtions in DTML
"Dario Lopez-Kästen" wrote: Hello! I have the following listing of objects in my folder: table tr tdpbName/b/p/td td align="right"pbSize/b/p/td td align="right"pbdate/b/p/td /tr dtml-in expr="doc.objectValues()" tr td pa href="dtml-var absolute_url"dtml-var id/a/p /td td align="right" pdtml-var get_size bytes/p /td td align="right" pdtml-var bobobase_modification_time fmt="%Y-%m-%d %H:%M"/p /td /tr /dtml-in /table you might want to grab a copy of the ZQR which goes through most of the zope's methods and syntax. http://www.zope.org/Members/ZQR get size in kbs assuming its an int dtml-var "get_size/1000" this should do the formatting (tested) dtml-let x="_.str(get_size/1000)" dtml-if "_.len(x)3" dtml-var "'%s %s'%(x[:-3], x[-3:])" dtml-else dtml-var x /dtml-if /dtml-let the time stuff dtml-var "bobobase_modification_time().toZone('GMT+2')" It gives me the name of the object, the size in bytes and the modification time in GMT. there is also a way to set this to be local time(your zope that is) to sleepy to remember or look it up... try searching the mailing lists... although i'm sure someone will chime in. I need to do the following: express the size in kb, format the output with spaces for thousands. I also need the date displayed according to my locale (+2 GMT in Sweden) so if bobobase_modification_time is 10:48, I need to show it as 8:48, and on top of that I also need to take dayligth savings into account. How do I do it? The fmt strings are abviously adjusted to US standards, so us ISO-people need to hack our own format strings :-). I know i could calculate the size in KB myself IF I only knew how to get the get_size attribute into a calculation expression (that goes for bobobase_modification_time as well, however this returns as string. How do I get the date as a date?) you might want to check out some of the howtos on DTML stuff, although generally its easier to do complex calculations in a python method. bobobase_modification_time is a method that returns a date time object, its just formatted as a string on the page when you render it. Any help is appreciated and needed. Thank you. /dario PS: has anyone been thinking of renaming bobobase_modification_time to something shorter and more intuitive, like, say, modification_time? it gets my vote. Cheers Kapil ___ 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] help
Chris McDonough wrote: " pROBLEM(100) zSERVER COMPUTING DEFAULT HOSTNAME" This is a normal message, please ignore it.. Maybe it shouldn't be a 'PROBLEM' then? ;-) cheers, Chris PS: Yes, I know it goes away if you aren't running in Debug mode... ___ 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] help
This is a normal message, please ignore it.. -Original Message- From: duc huynh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 29, 2000 1:26 AM To: [EMAIL PROTECTED] Subject: [Zope] help hi! I am a new user. I just download the new version of zope 2.2.0. After i finish install it on my computer. I ran the "start.bat" in the website folder but i get the error. The error is : " pROBLEM(100) zSERVER COMPUTING DEFAULT HOSTNAME" Would you please tell me what is the problem with that message. Thank you for your time. __ ___ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ 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] Help!! RE:mutilple select forms and ZSQL Method
Erik Lacson wrote: We are trying to insert an values from a multiple select form into an SQL Database. Does anyone know how to handle arguments of type 'list' inside an SQL Method ? You could use dtml-in over the argument or dtml-var "_.string.join(argument),' something between the values in the statement') ... But note, there might be anything inside the variable which would not be properly sql-quotet this way. Can be very securety riscy. Regards Tino Wildenhain ___ 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] Help with demoportal
What version of the PTK are vyou using? Chris Owen Smith wrote: 2000-08-04T09:29:53 ERROR(200) Zope Couldn't install DemoPortal Traceback (innermost last): File /usr/local/dc/zope/lib/python/OFS/Application.py, line 464, in install_products (Object: ApplicationDefaultPermissions) (Info: DemoPortal) File /usr/local/dc/zope/lib/python/App/Product.py, line 425, in initializeProduct (Object: Products.DemoPortal) File /usr/local/dc/zope/lib/python/ZODB/ExportImport.py, line 284, in importFile SystemError: Failed to import class _ZClass_for_DemoPortalBase from module Products.PTKDemo anyone help me with this? Owen ___ 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] Help with demoportal
I installed the ptk snap shot -but Im not sure which version this is.. but I then installed ZopePTK-0.8.0-alpha.tar.gz -but I get the same error on restart Owen Chris Withers wrote: What version of the PTK are you using? Chris Owen Smith wrote: ___ 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] Help: Confera product broken.
Gilles Lavaux wrote: Probably something stupid: under zope2.2.0 I can not install confera 1.2, the product is broken. ImportError: cannot import name query Hi Gilles :-) Confera is an old and unmaintained product that won't work under Zope 2.2 I would suggest Squishdot, which is the newer and more maintained spinnoff of Confera, but that too doesn't work with 2.2 right now :( sorry, 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] Help: Confera product broken.
-Wiadomoæ oryginalna- Od: Gilles Lavaux [EMAIL PROTECTED] Do: [EMAIL PROTECTED] [EMAIL PROTECTED] Data: 1 sierpnia 2000 18:03 Temat: [Zope] Help: Confera product broken. hello, Probably something stupid: under zope2.2.0 I can not install confera 1.2, the product is broken. Error is: [...] File "/var/zope/Zope-2.2.0-src/lib/python/SearchIndex/TextIndex.py", line 217, in ? from Lexicon import Lexicon, query, stop_word_dict ImportError: cannot import name query What is the solution?? This is'nt Confera bug. It is undoudtedly Zope 2.2.0 bug. Currently I am working on a patch witch (maybe) fix this bug. I let you know if it will be finished. -- Adam Karpierz [EMAIL PROTECTED] ___ 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] Help: Confera product broken.
Adam Karpierz wrote: This is'nt Confera bug. It is undoudtedly Zope 2.2.0 bug. Currently I am working on a patch witch (maybe) fix this bug. I let you know if it will be finished. Funny, I had the impression this was due to a change in the way indexing works. It's the reason why I updated Squishdot to use ZCatalog. If this isn't the case, I (and I'm sure many other people) would like to know what the bug is and use the patch when it turns up :-) 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] HELP
Hi On Fri, Jul 28, 2000 at 05:08:59PM +0100, Chris Withers wrote: Norman Khine wrote: I have just installed the Zope Server on my NT and have gone through the tutorial about building the Job_Board. All works OK, but I am at a bit of a loss as to HOW I can make the SEARCH open. So that if I just wanted to see say all the jobs with Programmer in the description. I think you're looking for ZCatalog. There are a few how-to's on zope.org For example can I make a wild-card search ie Pr* Sadly, AFAIK, ZCatalog doesn't support this yet :S Hm, wasn't there some discussion about this on the IRC today and did not itamar say that globbing is possible since 2.2 ? (Actually there's also some globbing related stuff in the Source code, especially the vocabulary settings..) cheers, Christian -- Christian Scholz MrTopf@IRC COM.lounge http://comlounge.net/ communication design [EMAIL PROTECTED] ___ 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] Help Needed for creating : Page 1 2 3 4 Previous:Next
Hi, Peter Marriott wrote: Hi, I would really appreciate it if someone could point me to some example dtml that gives navigation links like the following at the bottom of a list of items. Page 1 2 3 4 5Previous:Next (with the current page highlighted bold) it is ugly, but it works for me ... the following creates links like: [ previous ] 1 2 3 4 5 6 7 8 [ next ] dtml-call "REQUEST.set('i', 1)" dtml-in somelist previous size=10 start=qs a href="dtml-var URLdtml-var sequence-queryqs=dtml-var previous-sequence-start-number"[ previous ]/anbsp;nbsp;nbsp; /dtml-in dtml-in somelist previous size=10 start=qs dtml-in previous-batches mapping a href="dtml-var URLdtml-var sequence-queryqs=dtml-var batch-start-number"dtml-var i/anbsp; dtml-call "REQUEST.set('i',i+1)" /dtml-in /dtml-in dtml-var inbsp; dtml-call "REQUEST.set('i', i+1)" dtml-in somelist next size=10 start=qs dtml-in next-batches mapping a href="dtml-var URLdtml-var sequence-queryqs=dtml-var batch-start-number"dtml-var i/anbsp; dtml-call "REQUEST.set('i',i+1)" /dtml-in /dtml-in dtml-in somelist next size=10 start=qs nbsp;nbsp;nbsp;a href="dtml-var URLdtml-var sequence-queryqs=dtml-var next-sequence-start-number"[ next ]/a /dtml-in ... Holger ___ 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] help
danchik wrote: how can I fix this?? dtml-var SomeVar !-- there is a valid namespace SomeVar and this line prints it out... -- !-- the next line works fine with Number 5, but not if I substitute SomeVar instead of 5 -- dtml-var "Some_Header(style=Some_Style_css(SomeKey=5))" The wrapping makes it very hard to read. I don't believe you need to do this. With these changes: the Some_header dtml file has the following lines- style --! dtml-var "_.getitem(style)" --! /stile the Some_Style_css dtml file has the following lines-- input{ position: relative; font-size: dtml-var SomeKey } You can do this much more simply as long as Some_Style and Some_header are methods, and style and SomeKey are in REQUEST: dtml-var Some_header Then Some_header will have Some_style passed to it in the request, and SomeKey will come from REQUEST too. Hope that helps, -- ethan mindlace fremen Zopatista Community Liason Abnegate I! ___ 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] Help with ZPoPyDA
Le Mon, Jul 10, 2000 at 10:49:27AM -0500, Nitesh Dhanjani à écrit: # Im trying to access a postres database from within zope. I have # ZPoPyDA-0.5.tar.gz installed along with PoPy-1.2. # # The connection string Im using is something like: # user=thierry host=myhost dbname=test port=5432 password=mypassword It's a example. Change with yours attributes. thierry by your user. myhost by your host (or localhost). test by your db name. mypassword by your db password. For create a DB - man createdb For create a user - man createuser Docs at /usr/doc/postgresql-xxx/ -- (°- Sébastien Douche [EMAIL PROTECTED] //\ IDEALX www.IDEALX.com www.IDEALX.org v_/_ Ingénierie Open Source ___ 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] Help with ZPoPyDA
On Mon, 10 Jul 2000, Sebastien Douche wrote: Le Mon, Jul 10, 2000 at 10:49:27AM -0500, Nitesh Dhanjani à écrit: # Im trying to access a postres database from within zope. I have # ZPoPyDA-0.5.tar.gz installed along with PoPy-1.2. # # The connection string Im using is something like: # user=thierry host=myhost dbname=test port=5432 password=mypassword It's a example. Change with yours attributes. thierry by your user. myhost by your host (or localhost). test by your db name. mypassword by your db password. Yes I know its an example, but did not want to post host+user info to the entire mailing list. I cannot seem to connect to the postgres database using psql, and get: Failed to authenticate client as Postgres user 'bob' using unknown authentication type: be_recvauth: unrecognized message type: 131072 so its probably not a problem with ZPoPyDA. If anyone has come across this error or might know of a solution, please let me know. Thanks nitesh. ___ 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] Help with ZPoPyDA
On Mon, Jul 10, 2000 at 01:42:48PM -0500, Nitesh Dhanjani wrote: On Mon, 10 Jul 2000, Sebastien Douche wrote: Le Mon, Jul 10, 2000 at 10:49:27AM -0500, Nitesh Dhanjani à écrit: # Im trying to access a postres database from within zope. I have # ZPoPyDA-0.5.tar.gz installed along with PoPy-1.2. # # The connection string Im using is something like: # user=thierry host=myhost dbname=test port=5432 password=mypassword Yes I know its an example, but did not want to post host+user info to the entire mailing list. I cannot seem to connect to the postgres database using psql, and get: Failed to authenticate client as Postgres user 'bob' using unknown authentication type: be_recvauth: unrecognized message type: 131072 so its probably not a problem with ZPoPyDA. If anyone has come across this error or might know of a solution, please let me know. Could you please post a bit more information: platform postgres is running on: postgres version: are internet domain sockets enabled on postgres: was PoPy compiled locally: are multiple versions of postgres residing on your db host: Jim Thanks nitesh. ___ 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] Help with ZPoPyDA
On Mon, 10 Jul 2000 [EMAIL PROTECTED] wrote: On Mon, Jul 10, 2000 at 01:42:48PM -0500, Nitesh Dhanjani wrote: On Mon, 10 Jul 2000, Sebastien Douche wrote: Le Mon, Jul 10, 2000 at 10:49:27AM -0500, Nitesh Dhanjani à écrit: # Im trying to access a postres database from within zope. I have # ZPoPyDA-0.5.tar.gz installed along with PoPy-1.2. # # The connection string Im using is something like: # user=thierry host=myhost dbname=test port=5432 password=mypassword Yes I know its an example, but did not want to post host+user info to the entire mailing list. I cannot seem to connect to the postgres database using psql, and get: Failed to authenticate client as Postgres user 'bob' using unknown authentication type: be_recvauth: unrecognized message type: 131072 so its probably not a problem with ZPoPyDA. If anyone has come across this error or might know of a solution, please let me know. Could you please post a bit more information: platform postgres is running on: SunOS 5.6 Generic_105181-19 sun4m sparc SUNW,SPARCstation-20 Client (zope and psql) running on Linux 2.2.16 i686 postgres version: The person who installed postgres on the sparc machine isnt around anymore, im still trying to figure this out. The postmaster or postres executable do not have a "-v" or "-V" option that spits out the version. The client side psql is 6.5.3 are internet domain sockets enabled on postgres: I usually startup postgres like this "postmaster ", and was told to start it up with the -i switch. However postmaster doesnt seem to accept that switch: % postmaster -h usage: postmaster [options..] -a authsys do/do not permit use of an authentication system -B nbufsset number of shared buffers -b backend use a specific backend server executable -d [1|2|3] set debugging level -D datadir set data directory -m start up multiplexing backends -n don't reinitialize shared memory after abnormal exit -o option pass 'option' to each backend servers -p port specify port for postmaster to listen on -S silent mode (disassociate from tty) -s send SIGSTOP to all backend servers if one dies was PoPy compiled locally: yes, but this shouldnt matter, all im trying to do now is connect to a postgres database using psql. are multiple versions of postgres residing on your db host: nope thanks! nitesh ___ 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] Help with ZPoPyDA
On Mon, Jul 10, 2000 at 05:39:27PM -0500, Nitesh Dhanjani wrote: On Mon, 10 Jul 2000 [EMAIL PROTECTED] wrote: On Mon, Jul 10, 2000 at 01:42:48PM -0500, Nitesh Dhanjani wrote: On Mon, 10 Jul 2000, Sebastien Douche wrote: Le Mon, Jul 10, 2000 at 10:49:27AM -0500, Nitesh Dhanjani à écrit: # Im trying to access a postres database from within zope. I have # ZPoPyDA-0.5.tar.gz installed along with PoPy-1.2. # # The connection string Im using is something like: # user=thierry host=myhost dbname=test port=5432 password=mypassword Yes I know its an example, but did not want to post host+user info to the entire mailing list. I cannot seem to connect to the postgres database using psql, and get: Failed to authenticate client as Postgres user 'bob' using unknown authentication type: be_recvauth: unrecognized message type: 131072 so its probably not a problem with ZPoPyDA. If anyone has come across this error or might know of a solution, please let me know. Could you please post a bit more information: platform postgres is running on: SunOS 5.6 Generic_105181-19 sun4m sparc SUNW,SPARCstation-20 Client (zope and psql) running on Linux 2.2.16 i686 postgres version: The person who installed postgres on the sparc machine isnt around anymore, im still trying to figure this out. The postmaster or postres executable do not have a "-v" or "-V" option that spits out the version. The client side psql is 6.5.3 Can psql on the linux connect to the postmaster on the sparc? (If I am right about the postmaster supporting only unix domain sockets, it should not.) are internet domain sockets enabled on postgres: I usually startup postgres like this "postmaster ", and was told to start it up with the -i switch. However postmaster doesnt seem to accept that switch: % postmaster -h usage: postmaster [options..] -a authsys do/do not permit use of an authentication system -B nbufsset number of shared buffers -b backend use a specific backend server executable -d [1|2|3] set debugging level -D datadir set data directory -m start up multiplexing backends -n don't reinitialize shared memory after abnormal exit -o option pass 'option' to each backend servers -p port specify port for postmaster to listen on -S silent mode (disassociate from tty) -s send SIGSTOP to all backend servers if one dies OK, you are dead in the water at this point...you can use only Unix domain sockets and PoPy needs internet domain sockets. (Unix domain sockets can only talk when both client and server are on the same machine.) was PoPy compiled locally: yes, but this shouldnt matter, all im trying to do now is connect to a postgres database using psql. It does matter for this reason: libpq changed between the 6.3 series and the 6.5 series. A client compiled against a newer libpq cannot connect to a postmaster compiled against the older libpq. I know that the version distributed by mixadlive.com was compiled with the new libpq. are multiple versions of postgres residing on your db host: nope My best guess: you need to build new postgres on both machines. For locking performance, you certainly want a more recent version of postgres, anyway! The version you have almost certainly does table level locking. You are going to have to rebuild the sparc's copy. And dump and restore may get to be 'interesting'. thanks! nitesh ___ 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] help! zope down on it's knees
I'm curious about the fact that apache can render the page immediately by talking through pcgi/fcgi to ZServer but ZServer can't render the page quickly when you talk to it directy via HTTP. The only reasoning I can see for that is some sort of caching at the browser or in the http server. Have you been able to determine which methods are taking the longest amounts of time? I know you're under pressure to get this solved. I doubt you're going to find a quick solution to this. You may want to take this opportunity to start on the path to 2.2 and ZEO. If you need to solve it fast, get Squid or another caching proxy up in front of it in order to give yourself some breathing room and then start work on 2.2 and ZEO. "Bak @ kedai" wrote: greetings and help! my site is experiencing major slow down. connecting to zope takes more than 5-6 minutes. this happens when i got a lot of users connecting. (apache connection 250). everything works great if i got 100 user connections what i've done -upgrade apache to serve more than 256 users by editing httpd.h -up the zope thread from the default to a greater number (100) -added more RAM total = 4G when i connect from the server console, with lynx localhost:8080 , i got a long wait with HTTP request sent; waiting for response. ( about 5-6 minutes for a 20Kb file) if i render the page and let apache serve it, the request is served immedietly. i think this has to do with zope inability to cope with requests. i'm looking at putting squid in front and see what happens. or is it my setting? this is happening on a production server and is very bad. help and pointers to tune zope is apprecieted very VERY much this is zope 2.1.6, on RH with SMP and 4G RAM meanwhile, i'll go bang my head before i look at this again. thanks and help, please! -- -- http://www.kedai.com.my/kk Am I Evil? ___ 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] Help needed: why is this DTML not working in zope 2 ?
Hello Gilles, I think you've been bitten by a recently solved bug in dtml-try. When 2.2.0b4 comes out, please download it and try it out with your DTML (or if you're in a hurry, download from CVS.) If 2.2.0b4 doesn't solve it, e-mail me right away. Shane Gilles Lavaux wrote: Hello, I am a little bit disappointed not getting any echo from my previous question, so I report it. Maybe my dtml is wrong for zope2, but I would appreciate to have some explanation from more experienced peoples. If I can not find a solution, we will have to keep our zope1 production server, and it will be the end of the Zope story in my company :-( So my question was : I want to display the content of a site starting from a folder called 'Site' with a tree tag. I want also to render immediately inside the tree the documents with an ID=='PUBLIC_Doc'. In Zope 1.x I have a working dtml method like this: !--#var standard_html_header-- !--#tree Site branches_expr="objectValues()" sort=id skip_unauthorized-- b!--#var id--/b !--#if "_['id']=='PUBLIC_Doc'"-- ## !--#try-- !--#var "_[_['id']]"-- !--#except-- !--#var Except_Message-- !--#/try-- ## !--#/if-- !--#/tree-- !--#var standard_html_footer-- Unfortunatly for me , with zope 2.1.6 i get an error when I try to render the 'PUBLIC_Doc' document: . PUBLIC_Doc !# Error type:AttributeError Error Message: Error Message:__call__ Error TB:Traceback (innermost last): File "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Try.py", line 221, in render_try_except result = render_blocks(self.section, md) File "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Util.py", line 335, in eval return eval(code,globals,d) File "", line 0, in ? File "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_Util.py", line 161, in careful_getitem v=mapping[key] File "/usr/share/zope/lib/python/OFS/DTMLMethod.py", line 146, in __call__ r=apply(HTML.__call__, (self, client, REQUEST), kw) File "/usr/lib/python1.5/site-packages/DocumentTemplate/DT_String.py", line 502, in __call__ try: return render_blocks(self._v_blocks, md) AttributeError: __call__ has someone a solution ?? Thanks, Gilles ___ 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] Help needed: why is this DTML not working in zope 2 ?
Shane Hathaway wrote: I think you've been bitten by a recently solved bug in dtml-try. When 2.2.0b4 comes out, please download it and try it out with your DTML (or if you're in a hurry, download from CVS.) If 2.2.0b4 doesn't solve it, e-mail me right away. Oops, looks like you solved it. Well, don't try it with 2.2.0b3 cause it won't work. :-) Shane ___ 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] help a zope newbie
I have seen few site powered by Zope. One thing I had noticed is that almost all of those sites are mostly static pages. I mean I am interested to see how can Zope be used for a portal. like containing many pages having lots of form variables. database connectivity etc. what is the performance then. While it may appear that these sites are "static", they are probably very dynamic. Sites based exclusively on Zope do not serve *any* static content, all content is generated dynamically. See http://www.codecatalog.com for an example of a site which does a lot of forms processing and database lookups. It is based on Zope. ___ 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] Help with Zope/Python Evangelism
http://www.zope.org/Members/BwanaZulia/zope.html My collection of articles and sites also study the case studies on Zope.org as well as Zope Newbies. J From: Joseph Santaniello [EMAIL PROTECTED] Date: Wed, 14 Jun 2000 12:17:13 -0700 (PDT) To: [EMAIL PROTECTED] Subject: [Zope] Help with Zope/Python Evangelism Hello Everyone, I've been using Zope and Python in my own projects for over a year now, and I am convinced well beyond a shodow of a doubt that "Zope Is The Answer" and have used it for several of our internal applications, and use Python almost exclusivly for our scripting needs. Here's the problem: Our main outside vendor (whom all managment besides me are very happy with) has a new agenda for forward development: "Industry Standards" such as Delphi (for backend!) and other things I deem silly. So I need as much information as anyone is willing to share on Zope/Python implementations in as large/corporate a setting as possible. Thanks, Joe PS: I've seen all the listings on the Python and Zope websites, but I need more! -- Joseph Santaniello Chief Technology Officer Westlake Financial Services 4751 Wilshire Blvd. Suite 100 Los Angeles, CA 90010 (323) 692 4129 http://www.westlakefinancial.com ___ 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] Help: Weird KeyError with 2.2.0a1
Pete, This doesn't really fix the underlying problem, but if you'd like to carry on working with Zope you can rename the file zopedir/var/Data.fs and Zope will recreate a new (good) Data.fs for you. hth phil [EMAIL PROTECTED] - Original Message - From: "Pete Kazmier" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 06 June 2000 22:41 Subject: [Zope] Help: Weird KeyError with 2.2.0a1 Hi, I was playing around with 2.2.0a1 and I've stumbled upon a corrupted database I think. I'm new so please bare with me. I was hoping someone could help me recover. Everytime I start Zope, I get the following error: 2000-06-06T21:20:50 ERROR(200) ZODB Couldn't load state for '\000\000\000\000\000\000\000\006' Traceback (innermost last): File /home/zope/lib/python/ZODB/Connection.py, line 421, in setstate File /home/zope/lib/python/ZODB/FileStorage.py, line 584, in load (Object: /home/zope/var/Data.fs) File /home/zope/lib/python/ZODB/FileStorage.py, line 560, in _load (Object: /home/zope/var/Data.fs) KeyError: Traceback (innermost last): File "/home/zope/z2.py", line 547, in ? exec "import "+MODULE in {} File "string", line 1, in ? File "/home/zope/lib/python/Zope/__init__.py", line 144, in ? OFS.Application.initialize(c) File "/home/zope/lib/python/OFS/Application.py", line 308, in initialize app.Control_Panel.initialize_cache() File "/home/zope/lib/python/ZODB/Connection.py", line 421, in setstate p, serial = self._storage.load(oid, self._version) File "/home/zope/lib/python/ZODB/FileStorage.py", line 584, in load try: return self._load(oid, version, self._index, self._file) File "/home/zope/lib/python/ZODB/FileStorage.py", line 560, in _load pos=_index[oid] KeyError: Please tell me that I am not screwed. Right before this problem occurred, I had packed my database, but things were working ok immediately following that, then a few moments later, I kept getting errors, so I stopped the Zope processes and restarted. Could someone please point me in the right direction? I wasn't sure if I was supposed to post this to the dev list since I'm using an alpha, but I'm hoping those people read this too. Thanks, Pete -- Peter Kazmier http://www.kazmier.com PGP Fingerprint 4FE7 8DA3 D0B5 9CAA 69DC 7243 1855 BC2E 4B43 5654 ___ 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] Help needed for a new zope fan!
Try http://localhost:8080/manage -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jilani Khaldi Sent: Monday, June 05, 2000 2:02 PM To: Zope ML Subject: [Zope] Help needed for a new zope fan! Hi, I have just installed Zope on Linux, Windows NT, and Windows 2000 Pro. No problem, it works. I have created a new user, and logged in. I have added a folder (id=home and Title= my home page). I opened the folder "home" and edited some text, I saved the change and "View in New Window"; I saw the result as expected in : http://localhost:8000/home . Ok. I closed my Zope very happy; but when later I tried to edit my home page I find only the text generated by Zope and I can see it only when I call it from the browser (http://localhost:8000/home). How to re-edit a page already saved? Thank you. ps. I have had the same problem following step-by-step the example giver with Zope. -- jk ___ http://space.tin.it/scuola/jkhaldi FreeBSD ~ The Power to Serve ___ 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] Help with simple dtml-if compare
snip yep.. well... this is quite a common question, all up. It comes from people using shorthand, but not relaising it. sometimes i wonder if this feature should be removed. the line: dtml-if "id == 'index_html'" is actually shorthand for: dtml-if expr="id == 'index_html'" which means your expression is handled as a python expression, not a DTML one. In which case, you are comparing a function object (id) with a string object ('index_html'). the simple fix is, of course, to 'call' the function dtml-if "id() == 'index_html'" should do what you're expecting. Um, except that id is not always a method ;-(, hence the _['id'] idiom (see discussion earlier this week) Rik ___ 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] HELP: problems with ZServer Medusa!
does /usr/Zope-2.2.0a1-src/var/z2.pid exist? if not, touch z2.pid and try again. seb. Hi All, I have installed Zope on a Linux server (Slackware 7.0) apparently without problems; but, when I start the server with the command: ./start, I have in continuous this message error: -- INFO(0) ZServer Monitor Server (V.1.6) started on port 8099 Raceback (innermost last): File "/usr/Zope-2.2.0a1-src/z2.py", line 698, in ? pf=open(PID_FILE, 'w') IOError: [Errno 13] Permission denied '/usr/Zope-2.2.0a1-src/var/z2.pid' ___ 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] HELP: problems with ZServer Medusa!
Check the permissions on the var directory. J From: Seb Bacon [EMAIL PROTECTED] Date: Wed, 24 May 2000 19:04:00 +0100 To: [EMAIL PROTECTED] Subject: RE: [Zope] HELP: problems with ZServer Medusa! does /usr/Zope-2.2.0a1-src/var/z2.pid exist? if not, touch z2.pid and try again. seb. Hi All, I have installed Zope on a Linux server (Slackware 7.0) apparently without problems; but, when I start the server with the command: ./start, I have in continuous this message error: -- INFO(0) ZServer Monitor Server (V.1.6) started on port 8099 Raceback (innermost last): File "/usr/Zope-2.2.0a1-src/z2.py", line 698, in ? pf=open(PID_FILE, 'w') IOError: [Errno 13] Permission denied '/usr/Zope-2.2.0a1-src/var/z2.pid' ___ 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 )