From zerkani_user_list@snet.net Sun Mar 2 05:43:08 2003 From: zerkani_user_list@snet.net (zerkani_user_List) Date: Sun, 2 Mar 2003 00:43:08 -0500 Subject: [Zope] newbie -after installation Message-ID: <200302040040.h140eWcY000652@mta3.snet.net> I recently installad zope 2.5.1 on a debian machine and everything went well. I proved tid and passwod to zope duriing the installation. process as it asked. After the installation ,I successfuly accessed the zope through browser, but When I clicked on the "Zope Management Interface" page, and input the same id and passowrd which I provided during the installation, but it did not accept my id and password. I am not sure what went wrong and where to go from here. Can anyone help and point me to the right direction. Thanks in adance ! Zerkani From zerkani_user_list@snet.net Sun Mar 2 06:34:58 2003 From: zerkani_user_list@snet.net (zerkani_user_List) Date: Sun, 2 Mar 2003 01:34:58 -0500 Subject: [Zope] newbie -after installation In-Reply-To: <200302032021.48654.fraser@wehave.net> References: <200302040040.h140eWcY000652@mta3.snet.net> <200302032021.48654.fraser@wehave.net> Message-ID: <200302040159.h141xIcY007863@mta3.snet.net> Thanks Fraser. It worked. Instead of Admin, I used a different id. Thanks again for your help! Zerkani On Monday 03 February 2003 20:21, Fraser Campbell wrote: > zerkani_user_List wrote: > > I recently installad zope 2.5.1 on a debian machine and everything went > > well. I proved tid and passwod to zope duriing the installation. process > > as it asked. > > > > After the installation ,I successfuly accessed the zope through browser, > > but When I clicked on the "Zope Management Interface" page, and input > > the same id and passowrd which I provided during the installation, but it > > did not accept my id and password. I am not sure what went wrong and > > where to go from here. Can anyone help and point me to the right > > direction. > > I was in the same situation myself a few days ago. I'm not sure if the > Deian installer scripts screwed it up or if I just forgot the password. I > am using the unstable Debian distribution and zope package version > 2.5.1-2.7 > > You can reset the password by running this command as root: > > zope-zpasswd -u Admin -p xxxxxx /var/lib/zope/access > > My emergency user was Admin, I suppose the emergency username can be > changed, if so just look at that file to verify the username that you have. > > Hope this helps, > > Fraser From SamirMishra@cbuae.gov.ae Sat Mar 1 04:47:13 2003 From: SamirMishra@cbuae.gov.ae (Samir Mishra) Date: Sat, 1 Mar 2003 08:47:13 +0400 Subject: [Zope] List subfolders within any folder Message-ID: <211AD0070D42D1118C7B00A024FF19AE24C0EA@AUHEXCH> I had a similar problem. The tree does not seem to work if called from a DTML document, but is OK when called from a DTML Method. Try calling the original __DTML Method__ from another __DTML Method__. Dieter Maurer pointed me in the right direction. There are more details on this in the original mail. Also, another recent thread recommends using "ZUtils" for site trees. Samir. -----Original Message----- From: Michael Fox [mailto:Michael@CenturySoftware.com.au] Sent: Friday, February 28, 2003 08:33 To: zope@zope.org Subject: [Zope] List subfolders within any folder Hi *, I'm having problems with a relatively easy task. I have a DTML Method which contains:
  • Which when I "view" on it's own happily lists the folders within my root folder. Yet somehow when I reference this object with another DTML Document, it list nothing?! Any help appreciated. Regards, Michael _______________________________________________ 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 ) From djmitchell@optushome.com.au Sat Mar 1 08:47:10 2003 From: djmitchell@optushome.com.au (David Mitchell) Date: Sat, 1 Mar 2003 19:47:10 +1100 Subject: [Zope] Returning a random image from a folder Message-ID: <200303011947.10260.djmitchell@optushome.com.au> Going mad with this one... I'm trying to write a Python script to return a random image from a specified folder. For example, here's how I may want to call it from a ZPT page: Sat Mar 1 08:57:36 2003 From: Andreas Jung (Andreas Jung) Date: Sat, 01 Mar 2003 09:57:36 +0100 Subject: [Zope] Returning a random image from a folder In-Reply-To: <200303011947.10260.djmitchell@optushome.com.au> References: <200303011947.10260.djmitchell@optushome.com.au> Message-ID: <61733448.1046512656@[192.168.0.2]> Take a look at the restrictedTraverse() method to traverse to an object by its path e.g.=20 context.restrictedTraverse('/path/to/ads/bannerads'). -aj --On Samstag, 1. M=E4rz 2003 19:47 +1100 David Mitchell=20 wrote: > Going mad with this one... > > I'm trying to write a Python script to return a random image from a > specified folder. For example, here's how I may want to call it from a > ZPT page: > > > > My randomImage Python script is as follows (where 'directory' is the > parameter being passed to the script): > > import string > import random > > directory_context =3D string.replace("/", ".", directory) > return directory + "/" + > random.choice(context.directory_context.objectValues('Image')) > > Some of you may recognize this as being almost an exact copy of the > script on p151 of "The Zope Book", with the only difference being that > I'm trying to pass a folder name as a parameter. > > I'm pretty sure I need to do the directory_context step, but I can't get > it to work either with or without it. Where I'm really struggling is in > getting my head around the context stuff. > > Can anyone offer me some assistance? > > Thanks in advance > > Dave Mitchell > > _______________________________________________ > 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 ) --=20 --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From tim@xxvii.net Sat Mar 1 09:00:09 2003 From: tim@xxvii.net (Tim) Date: Sat, 1 Mar 2003 04:00:09 -0500 Subject: [Zope] VideoCapture module fails under Zope on Win32 In-Reply-To: <5.1.1.6.0.20030228090324.02223b00@pop3.spa.norton.antivirus> References: <5.1.1.6.0.20030227121439.021e9ec8@www.dylanreinhardt.com> <5.1.1.6.0.20030227121439.021e9ec8@www.dylanreinhardt.com> <5.1.1.6.0.20030228090324.02223b00@pop3.spa.norton.antivirus> Message-ID: <162114162366.20030301040009@Vex.Net> Dylan wrote on Friday, February 28, 2003, 12:06:00 PM: > It might be a permissions issue. Is Zope running as a service? Nice to get all these suggestions from you and Stefan. Zope was not running as a service (for development i run it manually so i can see any stdout/stderr more easily), but i just tried it as a service with the same results (it doesn't work). This XP box has just one account with full Administrator privileges (yeah, bad, i know). > If that doesn't straighten things out, could you provide a snip of the code > that works at the CLI but doesn't work in your product and any traceback > you're getting? There's not much code to show. But I'll be happy to give a complete report below for anyone willing to spare valuable time to look at it. Trying to isolate the problem, i made things as minimal as possible. The following few lines are a module which runs fine from the CLI, but when in my tiny little minimal product import this module and call the function ... it doesn't work. It's the call to Device() that fails. --- vidtest.py --- from VideoCapture import Device def getdev(): cam = Device(devnum=0) return cam if __name__ == '__main__': print getdev() ---end of vidtest.py--- >From the command line: > "h:\Program Files\ozope\bin\python.exe" vidtest.py Now here is the zope product test method: def test(self): "public" import vidtest return vidtest.getdev() Results from zope: Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Products.ZVideoCapture.ZVideoCapture, line 32, in test Module Products.ZVideoCapture.vidtest, line 4, in getdev Module VideoCapture, line 49, in __init__ Error: Creation of the filter graph failed. -- Tim Middleton | Cain Gang Ltd | Then suddenly, for no apparent reason, the x@veX.net | www.Vex.Net | unpitying orchestra struck up a polka. -D From ddn@vip.cybercity.dk Sat Mar 1 10:06:47 2003 From: ddn@vip.cybercity.dk (Danny Nielsen) Date: Sat, 01 Mar 2003 11:06:47 +0100 Subject: [Zope] objects invisible Message-ID: Hi there. First I have to say that Im very glad that this group exists. Now the problem: Im a zope newbie and have startet making a product solely through Python (leaving the management interface behind!). Inside my product object I want to make a folder containing images. My problem is that when I create folders and images through Python it aint visible in the management interface. How to I make them visible? Secund, can someone explain to me what implicit objects are available so Im able to communicate with Zope (I have had a hard time trying to figure out howto communicate with Zope through a Python product - the docs API aint well documented) regards Danny -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ From SamirMishra@cbuae.gov.ae Sat Mar 1 10:26:53 2003 From: SamirMishra@cbuae.gov.ae (Samir Mishra) Date: Sat, 1 Mar 2003 14:26:53 +0400 Subject: [Zope] Help Needed - Case for Zope Message-ID: <211AD0070D42D1118C7B00A024FF19AE24C0EE@AUHEXCH> Hello all, My manager has requested comments on whether Zope "performs like a dog". I'm doing some digging around at the moment, but, in the meantime, if anyone has any links to recommend, benchmarks, experiences to share, that I can use to counter his 'assertion', it would be much appreciated. Thanks. Regards, Samir. From milos.prudek@tiscali.cz Sat Mar 1 15:07:54 2003 From: milos.prudek@tiscali.cz (Milos Prudek) Date: Sat, 01 Mar 2003 16:07:54 +0100 Subject: [Zope] management_page_charset Message-ID: <3E60CCCA.5040209@tiscali.cz> Hi, What are the acceptable values for management_page_charset ? Where should this property be placed, so that it applies for the whole site ? -- Milos Prudek From mj@zope.com Sat Mar 1 17:32:33 2003 From: mj@zope.com (Martijn Pieters) Date: Sat, 1 Mar 2003 12:32:33 -0500 Subject: [Zope] Help Needed - Case for Zope In-Reply-To: <211AD0070D42D1118C7B00A024FF19AE24C0EE@AUHEXCH> References: <211AD0070D42D1118C7B00A024FF19AE24C0EE@AUHEXCH> Message-ID: <20030301173233.GI22692@zope.com> On Sat, Mar 01, 2003 at 02:26:53PM +0400, Samir Mishra wrote: > My manager has requested comments on whether Zope "performs like a dog". I'm > doing some digging around at the moment, but, in the meantime, if anyone has > any links to recommend, benchmarks, experiences to share, that I can use to > counter his 'assertion', it would be much appreciated. Zope performs like a greyhound running CBSNewYork.com and other VTS properties. It did so even with the recent nightclub fire and oil terminal explosion, which generated huge traffic spikes from concerned New Yorkers. Of course, it is perfectly possibible to make Zope run like a bow-legged terrier on sleeping pills, but I can do the same to a Java application server. It is all a question of knowing what you code and a good caching solution (in the VTS case it's Squid and Apache, with various Zope servers in a ZEO cluster). -- Martijn Pieters | Software Engineer mailto:mj@zope.com | Zope Corporation http://www.zope.com/ | Creators of Zope http://www.zope.org/ --------------------------------------------- From jccooper@jcameroncooper.com Sat Mar 1 18:39:16 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Sat, 01 Mar 2003 12:39:16 -0600 Subject: [Zope] objects invisible References: Message-ID: <3E60FE54.9090000@jcameroncooper.com> > Im a zope newbie and have startet making a product solely through > Python (leaving the management interface behind!). Inside my product > object I want to make a folder containing images. My problem is that > when I create folders and images through Python it aint visible in the > management interface. How to I make them visible? Objects which are merely attributes of an object won't show up in the ZMI. (It would be a neat trick though.) For the ZMI to see it, it has to be done in a 'folderish' manner. When you have some folderish object you want to add an object to, you say folder.manage_addXXX(id, title, ...) where XXX is the name of the product, and the elipsis is the rest of the arguments. Some products use a non-'manage_' naming convention: check the source/api docs/add form. You'll have to anyway to check the arguments. If you are in a folderish object, you would replace the 'folder' above with 'self'. If you want to know more about this machinery, look at _setObject in ObjectManager. To look into a folderish object, you use the object[Items/Values/Ids] methods, which you probably know about already. > Secund, can someone explain to me what implicit objects are available > so Im able to communicate with Zope (I have had a hard time trying to > figure out howto communicate with Zope through a Python product - the > docs API aint well documented) I'm not quite sure what you're looking for here, but maybe you want to take a look at the Globals.py and App/*.py, especially Common.py and Product.py. --jcc From info@conquered.org Sat Mar 1 18:43:28 2003 From: info@conquered.org (Luis Cortes) Date: Sat, 1 Mar 2003 11:43:28 -0700 Subject: [Zope] Simple Persistent Cookie Message-ID: <000001c2e022$741ef150$0eccae18@LUISLAPTOP> How do I create one with Zope, easily? How do I include the expires, domain, etc? Thanks ahead of time, Luis. From jccooper@jcameroncooper.com Sat Mar 1 18:48:45 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Sat, 01 Mar 2003 12:48:45 -0600 Subject: [Zope] Simple Persistent Cookie References: <000001c2e022$741ef150$0eccae18@LUISLAPTOP> Message-ID: <3E61008D.8060709@jcameroncooper.com> > > >How do I create one with Zope, easily? > >How do I include the expires, domain, etc? > > The RESPONSE object has cookie methods. Check the API section of the Zope online help docs. --jcc From jccooper@jcameroncooper.com Sat Mar 1 18:51:23 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Sat, 01 Mar 2003 12:51:23 -0600 Subject: [Zope] Returning a random image from a folder References: <200303011947.10260.djmitchell@optushome.com.au> Message-ID: <3E61012B.9090301@jcameroncooper.com> > > >My randomImage Python script is as follows (where 'directory' is the parameter >being passed to the script): > > import string > import random > > directory_context = string.replace("/", ".", directory) > return directory + "/" + >random.choice(context.directory_context.objectValues('Image')) > > Passing in a string makes this trickier, as I guess you've already realized. What you're doing in context.directory_context.objectValues('Image') is trying to call a string (directory_context) like an ObjectManager. Not going to work. Python lets you get away with a lot, but not that much. As suggested previously, you can turn the string into an object by restrictedTraverse(). In similar situations, involving non-traversable attributes, you might use Python's getattr() built-in. --jcc From luis.machado@mandioca.tzo.com Sat Mar 1 21:17:00 2003 From: luis.machado@mandioca.tzo.com (Luis Machado) Date: 01 Mar 2003 13:17:00 -0800 Subject: [Zope] Add new property to a class Message-ID: <1046553421.29805.6.camel@mandioca1> Having defined a class using python like this one: from OFS import ObjectManager, SimpleItem class Plant(ObjectManager.ObjectManager, SimpleItem.SimpleItem): """A plant""" def __init__(self, name, responsible): "Inits the product with default values" self.name = name self.responsible = responsible self.areas = {} you create a few instances, and later you want to add more properties to the same class, for example: def __init__(self, name, responsible, address): "Inits the product with default values" self.name = name self.responsible = responsible self.areas = {} self.address = address Is there a way to programatically modify the existing instances and add this new property to them. Any help will be appreciated. Luis From news@conquered.org Sat Mar 1 19:38:46 2003 From: news@conquered.org (Luis Cortes) Date: Sat, 1 Mar 2003 12:38:46 -0700 Subject: [Zope] Simple Persistent Cookie In-Reply-To: <3E61008D.8060709@jcameroncooper.com> Message-ID: <000101c2e02a$2d6c0f60$0eccae18@LUISLAPTOP> Yep, this is true, but does anyone have a simple example of usage. I'm too used to: Set-Cookie: NAME=VALUE; expires=DATE; path=PATH; domain=DOMAIN_NAME; secure Do you just repeatly call: setCookie with the different values, like: ??? -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of J Cameron Cooper Sent: Saturday, March 01, 2003 11:49 AM To: zope@zope.org Subject: Re: [Zope] Simple Persistent Cookie > > >How do I create one with Zope, easily? > >How do I include the expires, domain, etc? > > The RESPONSE object has cookie methods. Check the API section of the Zope online help docs. --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 ) From muldrow@mac.com Sat Mar 1 19:46:33 2003 From: muldrow@mac.com (Chris Muldrow) Date: Sat, 1 Mar 2003 14:46:33 -0500 Subject: [Zope] Simple Persistent Cookie In-Reply-To: <000101c2e02a$2d6c0f60$0eccae18@LUISLAPTOP> Message-ID: <81728F00-4C1E-11D7-8300-000393849E6A@mac.com> We've had the most luck cross-browser with setheader calls like so: setCookie wasn't playing nice across some browsers for some reason--i think there are archived message on the list about it. On Saturday, March 1, 2003, at 02:38 PM, Luis Cortes wrote: > Yep, > > this is true, but does anyone have a simple example of usage. I'm > too > used to: > > Set-Cookie: NAME=VALUE; expires=DATE; path=PATH; domain=DOMAIN_NAME; > secure > > Do you just repeatly call: > > setCookie with the different values, like: > > > > > > ??? > > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of J > Cameron Cooper > Sent: Saturday, March 01, 2003 11:49 AM > To: zope@zope.org > Subject: Re: [Zope] Simple Persistent Cookie > > >> >> >> How do I create one with Zope, easily? >> >> How do I include the expires, domain, etc? >> >> > The RESPONSE object has cookie methods. Check the API section of the > Zope online help docs. > > --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 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 ) > From mike@cycletime.com Sat Mar 1 20:36:30 2003 From: mike@cycletime.com (Mike Heath) Date: 01 Mar 2003 13:36:30 -0700 Subject: [Zope] ZODB Conflict errors Message-ID: <1046550993.1356.17.camel@tempest.swamp> We're getting repeated ZODB conflict errors. They seam to only be occurring using frames when we have multiple users accessing the page at the same time. What is causing this? We're not doing any modifications to objects in the Zope database. Thanks, Mike Heath Terrapin Technologies, Inc. From news@conquered.org Sat Mar 1 20:43:14 2003 From: news@conquered.org (Luis Cortes) Date: Sat, 1 Mar 2003 13:43:14 -0700 Subject: [Zope] Simple Persistent Cookie In-Reply-To: <81728F00-4C1E-11D7-8300-000393849E6A@mac.com> Message-ID: <000001c2e033$2f2234c0$0bcdae18@LUISLAPTOP> I thought this would work, does anybody have a clue why it doesn't? -----Original Message----- From: Chris Muldrow [mailto:muldrow@mac.com]=20 Sent: Saturday, March 01, 2003 12:47 PM To: Luis Cortes Cc: Zope Mailing List Subject: Re: [Zope] Simple Persistent Cookie We've had the most luck cross-browser with setheader calls like so: setCookie wasn't playing nice across some browsers for some reason--i =20 think there are archived message on the list about it. On Saturday, March 1, 2003, at 02:38 PM, Luis Cortes wrote: > Yep, > > this is true, but does anyone have a simple example of usage. I'm > too > used to: > > Set-Cookie: NAME=3DVALUE; expires=3DDATE; path=3DPATH; = domain=3DDOMAIN_NAME; > secure > > Do you just repeatly call: > > setCookie with the different values, like: > > > expr=3D"RESPONSE.setCookie('Domain', v3)"> > > ??? > > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of J=20 > Cameron Cooper > Sent: Saturday, March 01, 2003 11:49 AM > To: zope@zope.org > Subject: Re: [Zope] Simple Persistent Cookie > > >> >> >> How do I create one with Zope, easily? >> >> How do I include the expires, domain, etc? >> >> > The RESPONSE object has cookie methods. Check the API section of the=20 > Zope online help docs. > > --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 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 ) > From dieter@handshake.de Sat Mar 1 21:00:29 2003 From: dieter@handshake.de (Dieter Maurer) Date: Sat, 1 Mar 2003 22:00:29 +0100 Subject: [Zope] objects invisible In-Reply-To: References: Message-ID: <15969.8045.740001.924878@gargle.gargle.HOWL> Danny Nielsen wrote at 2003-3-1 11:06 +0100: > ... > Inside my product object I want > to make a folder containing images. My problem is that when I create > folders and images through Python it aint visible in the management > interface. How to I make them visible? You use the methods designed for this purpose. I hope they are documented in the Zope Developers Guide (to be found on "zope.org"). You need the 'ObjectManager' method "_setObject(id,obj)". It puts "obj" into the object manager under "id". That other Zope things work find with "obj", it must have the id "id". > Secund, can someone explain to me what implicit objects are available so Im > able to communicate with Zope (I have had a hard time trying to figure out > howto communicate with Zope through a Python product - the docs API aint > well documented) What? What do you mean with "implicit objects"? I suggest reading the following literature: * the Zope book, 2.6 edition (--> Zope.org) * the Zope Developers Guide (--> Zope.org) * Dieter From dieter@handshake.de Sat Mar 1 20:52:39 2003 From: dieter@handshake.de (Dieter Maurer) Date: Sat, 1 Mar 2003 21:52:39 +0100 Subject: [Zope] Help Needed - Case for Zope In-Reply-To: <211AD0070D42D1118C7B00A024FF19AE24C0EE@AUHEXCH> References: <211AD0070D42D1118C7B00A024FF19AE24C0EE@AUHEXCH> Message-ID: <15969.7575.25826.568191@gargle.gargle.HOWL> Samir Mishra wrote at 2003-3-1 14:26 +0400: > My manager has requested comments on whether Zope "performs like a dog". I'm > doing some digging around at the moment, but, in the meantime, if anyone has > any links to recommend, benchmarks, experiences to share, that I can use to > counter his 'assertion', it would be much appreciated. Zope is about an order of magnitude slower than Apache when serving static content. But, you would not use Zope when all your content were static ;-) Use a cache before Zope (squid) to handle static content well. We have both a Tomcat and a Zope application that do almost the same (in fact, the Zope app was backported from Tomcat). Their speed seems to be comparable (we did not make thourough measurements). Search the mailing list archives for some timings you can expect from Zope. There was recently a post from Joachim Werner with interesting timings (among many others). Dieter From mstein@egrad.com Sat Mar 1 21:58:30 2003 From: mstein@egrad.com (Marc Stein) Date: Sat, 1 Mar 2003 16:58:30 -0500 Subject: [Zope] Really stupid acl_users mistake Message-ID: I am quite new to Zope and have done something VERY stupid. I created an acl_users folder within an existing folder and added myself as a user. I did not however select either Manager or Owner and now cannot access the folder. Is there a way that I can either programmatically delete the user folder or change the permissions to allow access to this folder? I am the only current user on the system. Many thanks in advance. Marc Stein From news@conquered.org Sat Mar 1 23:19:26 2003 From: news@conquered.org (Luis Cortes) Date: Sat, 1 Mar 2003 16:19:26 -0700 Subject: [Zope] Really stupid acl_users mistake In-Reply-To: Message-ID: <000001c2e049$01550a20$0bcdae18@LUISLAPTOP> did you try the superuser account? in Linux it would be: in the var directory create a file called "access" in the access file type the following: superuser:123 restart zope. then login as superuser with password 123. -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of Marc Stein Sent: Saturday, March 01, 2003 2:58 PM To: zope@zope.org Subject: [Zope] Really stupid acl_users mistake I am quite new to Zope and have done something VERY stupid. I created an acl_users folder within an existing folder and added myself = as a user. I did not however select either Manager or Owner and now cannot access the folder. Is there a way that I can either programmatically = delete the user folder or change the permissions to allow access to this = folder? I am the only current user on the system. Many thanks in advance. Marc Stein _______________________________________________ Zope maillist - Zope@zope.org = http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -=20 http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) From zope@zope.org Sun Mar 2 04:46:39 2003 From: zope@zope.org (N. Thomas) Date: Sat, 1 Mar 2003 23:46:39 -0500 Subject: [Zope] dynamically generated TAL not being interpreted Message-ID: <20030302044639.GD11213@cise.ufl.edu> We have a script that generates TAL. The problem is that the content is not being interpeted as TAL by Zope, but rather as raw HTML. A search through the mailing lists archives found a posting from last September where someone was trying to do something similar. According to one of the replies, the HTML is supposed to have the TAL namespace declaration, so I changed my code to produce something like this at the top: But the problem persists. Does anyone know how I can do this? thanks, thomas -- N. Thomas nthomas@cise.ufl.edu Etiamsi occiderit me, in ipso sperabo From vasanthsena@yahoo.com Sun Mar 2 07:31:01 2003 From: vasanthsena@yahoo.com (vasanthsena x) Date: Sat, 1 Mar 2003 23:31:01 -0800 (PST) Subject: [Zope] dynamically generated TAL not being interpreted In-Reply-To: <20030302044639.GD11213@cise.ufl.edu> Message-ID: <20030302073101.84491.qmail@web12101.mail.yahoo.com> thomas since when have u become a zoppie. S. --- "N. Thomas" wrote: > We have a script that generates TAL. The problem is > that the content is > not being interpeted as TAL by Zope, but rather as > raw HTML. > > A search through the mailing lists archives found a > posting from last > September where someone was trying to do something > similar. According to > one of the replies, the HTML is supposed to have the > TAL namespace > declaration, so I changed my code to produce > something like this at the > top: > > xmlns:tal="http://xml.zope.org/namespaces/tal" > > metal:use-macro="here/main_template/macros/master"> > > But the problem persists. > > Does anyone know how I can do this? > > thanks, > thomas > > -- > N. Thomas > nthomas@cise.ufl.edu > Etiamsi occiderit me, in ipso sperabo > > _______________________________________________ > 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 ) __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ From paul.browning@bristol.ac.uk Sun Mar 2 07:58:03 2003 From: paul.browning@bristol.ac.uk (Paul Browning) Date: Sun, 02 Mar 2003 07:58:03 -0000 Subject: [Zope] Help Needed - Case for Zope In-Reply-To: <15969.7575.25826.568191@gargle.gargle.HOWL> References: <15969.7575.25826.568191@gargle.gargle.HOWL> Message-ID: <222409327.1046591883@[192.168.1.2]> --On 01 March 2003 21:52 +0100 Dieter Maurer wrote: > Samir Mishra wrote at 2003-3-1 14:26 +0400: > > My manager has requested comments on whether Zope "performs like a > dog". I'm > doing some digging around at the moment, but, in the > meantime, if anyone has > any links to recommend, benchmarks, > experiences to share, that I can use to > counter his 'assertion', it > would be much appreciated. > One way of getting Zope "run like a bow-legged terrier on sleeping pills" (Pieters, M., pers. comm.) is to use multi-processor Solaris without paying attention to the threading issues (see ). If you're starting from a clean sheet it's probably best to avoid Solaris. Paul -- The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK E-mail: paul.browning@bristol.ac.uk URL: http://www.bris.ac.uk/ From SamirMishra@cbuae.gov.ae Sun Mar 2 09:07:42 2003 From: SamirMishra@cbuae.gov.ae (Samir Mishra) Date: Sun, 2 Mar 2003 13:07:42 +0400 Subject: [Zope] Help Needed - Case for Zope Message-ID: <211AD0070D42D1118C7B00A024FF19AE24C0F3@AUHEXCH> Thanks everyone. Any Project managers out there with something to add with regard to comparison between speed of implementation for Zove vs. other products? Personally, I place maintainability and transitioning skills as my top priority, and elegance of code comes last. Speed (e.g., of the server) is a non-issue because one can always allocate better hardware for this since it's a mere commodity now, intellectual capital is always at a premium. And that's why I like Zope :) But I still have to sell the concept to managers who only hear "Java" & "JSP" from software vendors and so are most familiar with these technologies. Samir. -----Original Message----- From: Paul Browning [mailto:paul.browning@bristol.ac.uk] Sent: Sunday, March 02, 2003 11:58 To: 'zope@zope.org' Cc: Samir Mishra Subject: Re: [Zope] Help Needed - Case for Zope --On 01 March 2003 21:52 +0100 Dieter Maurer wrote: > Samir Mishra wrote at 2003-3-1 14:26 +0400: > > My manager has requested comments on whether Zope "performs like a > dog". I'm > doing some digging around at the moment, but, in the > meantime, if anyone has > any links to recommend, benchmarks, > experiences to share, that I can use to > counter his 'assertion', it > would be much appreciated. > One way of getting Zope "run like a bow-legged terrier on sleeping pills" (Pieters, M., pers. comm.) is to use multi-processor Solaris without paying attention to the threading issues (see ). If you're starting from a clean sheet it's probably best to avoid Solaris. Paul -- The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK E-mail: paul.browning@bristol.ac.uk URL: http://www.bris.ac.uk/ From john_fludder@hotmail.com Sun Mar 2 09:12:53 2003 From: john_fludder@hotmail.com (john fludderdome) Date: Sun, 02 Mar 2003 09:12:53 +0000 Subject: [Zope] I discovered a great site for adults: http://www.HappyHug.com Message-ID: Hi, I was surfing and than I discovered a great site for Aduts: http://www.HappyHug.com This is a new site for adults. They are operating since 9 december 2002. I think they can use some visitors. Go and take a look! John _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From StefanH.Holek Sun Mar 2 11:40:53 2003 From: StefanH.Holek (StefanH.Holek) Date: Sun, 2 Mar 2003 12:40:53 +0100 Subject: [Zope] Really stupid acl_users mistake In-Reply-To: <000001c2e049$01550a20$0bcdae18@LUISLAPTOP> Message-ID: On Sonntag, M=E4r 2, 2003, at 00:19 Europe/Vienna, Luis Cortes wrote: > did you try the superuser account? > > in Linux it would be: > > in the var directory create a file called "access" > in the access file type the following: > > superuser:123 > > restart zope. > > then login as superuser with password 123. s/var directory/instance directory/ This has just been answered the other day. It's all documented in=20 doc/SECURITY.txt. Stefan= From jens@bkinformatik.dk Sun Mar 2 15:12:02 2003 From: jens@bkinformatik.dk (Jens JB. Bjerre) Date: Sun, 2 Mar 2003 16:12:02 +0100 Subject: [Zope] Newbee question Message-ID: <23BF741DC57A074BA3D65FC1222A398DF3A4@server1.bkinformatik.dk> This is a multi-part message in MIME format. ------_=_NextPart_001_01C2E0CE.14218C00 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Hi =20 I would like to add a DTML-Method called showfile, who call's the standard_header, call's the object specified in the url and then call's the footer. It could be: http://localhost/showfile?file=3Dtestfile.html =20 Can anyone please help me? =20 Regards =20 Jens Bjerre ------_=_NextPart_001_01C2E0CE.14218C00 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

    Hi

     

    I would like to add a DTML-Method called = showfile, who call’s the standard_header, call’s the object specified in = the url and then call’s the footer.

    It could be:  http://localhost/= showfile?file=3Dtestfile.html

     

    Can anyone please help me?

     

    Regards

     

    Jens Bjerre

    =00 ------_=_NextPart_001_01C2E0CE.14218C00-- From volker.wend@efgbsh.de Sun Mar 2 15:34:57 2003 From: volker.wend@efgbsh.de (volker.wend@efgbsh.de) Date: Sun, 2 Mar 2003 16:34:57 +0100 Subject: [Zope] Newbie Page Template Question Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C2E0D1.47617070 Content-Type: text/plain He folks, I need a solution to format a title in lowercase all the time. I have an object with a title ID What would be the right way of converting the title to lowercase ? Thanks, Volker ------_=_NextPart_001_01C2E0D1.47617070 Content-Type: text/html Message
    He folks,
     
    I need a solution to format a title in lowercase all the time. I have an object with a title
     
         <a class="navigation" target="main" 
                  tal:attributes="href url"
                  tal:content="r/object/title_or_id">ID</a>
     
     
    What would be the right way of converting the title to lowercase ?
     
    Thanks,
    Volker
    ------_=_NextPart_001_01C2E0D1.47617070-- From m_hoertzsch@yahoo.de Sun Mar 2 15:41:28 2003 From: m_hoertzsch@yahoo.de (Matthias =?iso-8859-1?q?H=F6rtzsch?=) Date: Sun, 2 Mar 2003 16:41:28 +0100 Subject: [Zope] Newbee question In-Reply-To: <23BF741DC57A074BA3D65FC1222A398DF3A4@server1.bkinformatik.dk> References: <23BF741DC57A074BA3D65FC1222A398DF3A4@server1.bkinformatik.dk> Message-ID: <200303021641.28598.m_hoertzsch@yahoo.de> Am Sonntag, 2. M=E4rz 2003 16:12 schrieb Jens JB. Bjerre: > Hi > > > > I would like to add a DTML-Method called showfile, who call's the > standard_header, call's the object specified in the url and then call's > the footer. > > It could be: http://localhost/showfile?file=3Dtestfile.html you could try to use something like this: would also be a good idea to check if the correct url was given to your fil= e =20 variable, otherwise you will get an error message Matthias > Can anyone please help me? > > > > Regards > > > > Jens Bjerre __________________________________________________________________ Gesendet von Yahoo! Mail - http://mail.yahoo.de Bis zu 100 MB Speicher bei http://premiummail.yahoo.de From fmartins@hetnet.nl Sun Mar 2 16:08:28 2003 From: fmartins@hetnet.nl (Fernando Martins) Date: Sun, 2 Mar 2003 17:08:28 +0100 Subject: [Zope] error with setattr Message-ID: Hi, I tried this simple script (adapted from the Python tutorial): __________________ class Record: pass obj=Record() obj.setattr('field1',1) print obj return printed __________________ and got this error Error Type: AttributeError Error Value: Record instance has no attribute 'setattr' Why is it not working? Fernando From Andreas Jung Sun Mar 2 16:25:44 2003 From: Andreas Jung (Andreas Jung) Date: Sun, 02 Mar 2003 17:25:44 +0100 Subject: [Zope] error with setattr In-Reply-To: References: Message-ID: <6131646.1046625944@[192.168.0.2]> setattr(obj, key, value). -aj --On Sonntag, 2. M=E4rz 2003 17:08 +0100 Fernando Martins=20 wrote: > Hi, > > I tried this simple script (adapted from the Python tutorial): > __________________ > class Record: > pass > > obj=3DRecord() > obj.setattr('field1',1) > print obj > return printed > __________________ > > and got this error > > Error Type: AttributeError > Error Value: Record instance has no attribute 'setattr' > > Why is it not working? > > Fernando > > _______________________________________________ > 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 ) --=20 --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From pw_lists@slinkp.com Sun Mar 2 16:27:32 2003 From: pw_lists@slinkp.com (Paul Winkler) Date: Sun, 2 Mar 2003 11:27:32 -0500 Subject: [Zope] Newbie Page Template Question In-Reply-To: References: Message-ID: <20030302162732.GA634@slinkp.com> On Sun, Mar 02, 2003 at 04:34:57PM +0100, volker.wend@efgbsh.de wrote: > He folks, > > I need a solution to format a title in lowercase all the time. I have an > object with a title > > tal:attributes="href url" > tal:content="r/object/title_or_id">ID > > > What would be the right way of converting the title to lowercase ? as with a lot of things in TAL, the answer is that there is no built-in TAL gunk for that so you use python: ID explanation: path expressions like "r/object/title_or_id" are equivalent to python object containment like r.object.title_or_id. but path expressions will automagically call the last item on the path if it's callable, and you have to explicitly do that in python with (). Next, the result of title_or_id is a string, and python strings have lots of useful methods. some_string.lower() returns a lowercased copy of the input string. -- Paul Winkler http://www.slinkp.com From mail@peterbe.com Sun Mar 2 16:41:14 2003 From: mail@peterbe.com (Peter Bengtsson) Date: Sun, 02 Mar 2003 16:41:14 +0000 Subject: [Zope] Storing a password in a python product Message-ID: <5.2.0.9.0.20030302163107.0205b708@mail.grenna.net> What are the security implications of storing a password in a python product as persistent data? I was thinking of something like this: class MyProduct: def __init__(self, hostname, username, password): self.hostname = hostname self.username = username self.password = password But I will also need to be able to use the password in anonymous actions; otherwise I could ask for the password (in some suitable way) each time it's needed. Basically, how do I keep good security with sensitive persistent data in a python product? Peter From fmartins@hetnet.nl Sun Mar 2 16:55:29 2003 From: fmartins@hetnet.nl (Fernando Martins) Date: Sun, 2 Mar 2003 17:55:29 +0100 Subject: [Zope] error with setattr In-Reply-To: <6131646.1046625944@[192.168.0.2]> Message-ID: > Andreas Jung wrote: > setattr(obj, key, value). Ah! it's not a method. Somehow I thought obj meant self... Now, I'm getting the error: Error Type: TypeError Error Value: attribute-less object (assign or del) which is correct in the original version, but after adding a dummy field I still get the error. _____________________ class Record: field0 = 0 obj=Record() setattr(obj, 'field1', 1) print obj return printed ______________________ What silly mistake am I doing now? Thanks, Fernando From fmartins@hetnet.nl Sun Mar 2 17:48:44 2003 From: fmartins@hetnet.nl (Fernando Martins) Date: Sun, 2 Mar 2003 18:48:44 +0100 Subject: [Zope] error with setattr In-Reply-To: Message-ID: > Fernando Martins wrote: > > Andreas Jung wrote: > > setattr(obj, key, value). > > Ah! it's not a method. Somehow I thought obj meant self... > > Now, I'm getting the error: > > Error Type: TypeError > Error Value: attribute-less object (assign or del) > > which is correct in the original version, but after adding a dummy field I > still get the error. > > _____________________ > class Record: > field0 = 0 > > obj=Record() > setattr(obj, 'field1', 1) > print obj > return printed > ______________________ > > What silly mistake am I doing now? > If I write class Record: self.field0 = 0 I get the error (on the 2nd line): Error Type: NameError Error Value: name '_write' is not defined What now? This was supposed to be just a simple test to see if I could (and how) to add attributes to a record variable passed from a html form. Fernando From maik.jablonski@uni-bielefeld.de Sun Mar 2 18:17:50 2003 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Sun, 02 Mar 2003 19:17:50 +0100 Subject: [Zope] Re: error with setattr In-Reply-To: References: Message-ID: Fernando Martins wrote: >>Fernando Martins wrote: >> >>>Andreas Jung wrote: >>>setattr(obj, key, value). >> >>Ah! it's not a method. Somehow I thought obj meant self... >> >>Now, I'm getting the error: >> >>Error Type: TypeError >>Error Value: attribute-less object (assign or del) >> >>which is correct in the original version, but after adding a dummy field I >>still get the error. >> >>_____________________ >>class Record: >> field0 = 0 >> >>obj=Record() >>setattr(obj, 'field1', 1) >>print obj >>return printed >>______________________ >> >>What silly mistake am I doing now? >> > > > If I write > > class Record: > self.field0 = 0 > > I get the error (on the 2nd line): > > Error Type: NameError > Error Value: name '_write' is not defined > > What now? > > This was supposed to be just a simple test to see if I could (and how) to > add attributes to a record variable passed from a html form. Just a guess: Do you use PythonScripts? You can't define classes etc. in PythonScripts. You have to use ExternalMethods or Python-Products... -mj -- Deutsche/German Zope User Group (DZUG) http://www.dzug.org/Members/mjablonski/ From fmartins@hetnet.nl Sun Mar 2 19:49:56 2003 From: fmartins@hetnet.nl (Fernando Martins) Date: Sun, 2 Mar 2003 20:49:56 +0100 Subject: [Zope] Re: error with setattr In-Reply-To: Message-ID: Maik Jablonski wrote: > > This was supposed to be just a simple test to see if I could > (and how) to > > add attributes to a record variable passed from a html form. > > Just a guess: Do you use PythonScripts? You can't define classes etc. in > PythonScripts. You have to use ExternalMethods or Python-Products... > Yes, that's it. Thanks. But it also seems I can't use setattr to add an attribute to a PythonScript parameter (which comes from a form)?? I get the error: Error Type: TypeError Error Value: attribute-less object (assign or del) What type of object is a PythonScript parameter? (or how can I test it for myself without a type function?) Fernando From andrew@logicalprogression.net Sun Mar 2 20:52:59 2003 From: andrew@logicalprogression.net (Andrew Veitch) Date: Sun, 02 Mar 2003 20:52:59 +0000 Subject: [Zope] Adaptable Storage Problem Message-ID: I've got a problem with AdaptableStorage. If I set up a folder with AdaptableStorage I can add a CMF site to it but not a Plone site. I get: Traceback (innermost last): Module ZPublisher.Publish, line 102, in publish Module Zope, line 188, in commit Module ZODB.Transaction, line 222, in commit Module ZODB.Transaction, line 195, in commit Module ZODB.Transaction, line 256, in _commit_objects Module Products.AdaptableStorage.zodb.ASConnection, line 247, in commit Module Products.AdaptableStorage.mapper.ObjectSerializer, line 87, in serialize Module Products.AdaptableStorage.zodb.RemainingState, line 107, in serialize RuntimeError: Unable to pickle the '_catalog' attribute, , of at ('/fs/test2/portal_catalog',). Cannot pickle objects. I don't understand how a portal_catalog won't pickle with AdaptableStorage but will with the ZODB. Thanks! From jccooper@jcameroncooper.com Sun Mar 2 23:07:26 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Sun, 02 Mar 2003 17:07:26 -0600 Subject: [Zope] Really stupid acl_users mistake References: Message-ID: <3E628EAE.5040409@jcameroncooper.com> > > >I created an acl_users folder within an existing folder and added myself as >a user. I did not however select either Manager or Owner and now cannot >access the folder. Is there a way that I can either programmatically delete >the user folder or change the permissions to allow access to this folder? I >am the only current user on the system. > > Make a manager with a different name in a parent folder and go in and fix your problem. --jcc From andy@agmweb.ca Sun Mar 2 23:51:58 2003 From: andy@agmweb.ca (Andy McKay) Date: Sun, 02 Mar 2003 15:51:58 -0800 Subject: [Zope] Adaptable Storage Problem In-Reply-To: References: Message-ID: <3E62991E.9000305@agmweb.ca> > I don't understand how a portal_catalog won't pickle with AdaptableStorage > but will with the ZODB. You'll probably want to be pickling the content, not the all tools, so mount your Members folder, or wherever you have your content. -- Andy McKay From zope@dylanreinhardt.com Mon Mar 3 00:10:28 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Sun, 02 Mar 2003 16:10:28 -0800 Subject: [Zope] Add new property to a class In-Reply-To: <1046553421.29805.6.camel@mandioca1> Message-ID: <5.1.1.6.0.20030302155434.01d8eca0@pop3.spa.norton.antivirus> At 01:17 PM 3/1/2003, Luis Machado wrote: >Is there a way to programatically modify the existing instances and add >this new property to them. Sure. You could create an update method that adds a new value and call that method on all existing instances. You can also accomplish this with class variables. These will get loaded by existing instances and then any work you do on them will override them at the instance level. Ex: class foo: __init__(self): self.var1 = 'foo' # oops! we forgot to assign var2 var2 = 'bar' # this is a class variable, added after some instances have been created def some_method(self): # now we can use var2, since we get it through the class # once we assign it a value, it's an instance variable for this instance self.var2 = 'spam' HTH, Dylan From zope@dylanreinhardt.com Mon Mar 3 00:28:38 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Sun, 02 Mar 2003 16:28:38 -0800 Subject: [Zope] Storing a password in a python product In-Reply-To: <5.2.0.9.0.20030302163107.0205b708@mail.grenna.net> Message-ID: <5.1.1.6.0.20030302161325.01d4bec8@pop3.spa.norton.antivirus> At 08:41 AM 3/2/2003, Peter Bengtsson wrote: >What are the security implications of storing a password in a python >product as persistent data? Well... that depends... mostly on the security auditing done on your custom product. If you display data in response to user requests, your product may be vulnerable to a range of attacks. Among other things, strong input validation should be considered critical if you're storing sensitive data. Another issue your question raises is whether storing the pw in the product means that you're moving away from HTTP authentication. HTTP Basic isn't the tightest thing invented, but it's quite a bit better than sending full passwords over an open wire. Ultimately, every security question must be answered by examining your requirements and analyzing the threat. If a password is compromised, what does the cracker get? Access? Other information? Credit card data? There is no one best security policy... but a good approximation of one is to make do with the least amount of sensitive information possible and to exert the greatest control over that which you do store. Your requirements should guide you as to how critical it is to store this information vs. the greater amount of hardening you need to do to maintain it. HTH, Dylan From zope@dylanreinhardt.com Mon Mar 3 01:07:20 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Sun, 02 Mar 2003 17:07:20 -0800 Subject: [Zope] objects invisible In-Reply-To: Message-ID: <5.1.1.6.0.20030302162914.01d49238@pop3.spa.norton.antivirus> At 02:06 AM 3/1/2003, Danny Nielsen wrote: >Now the problem: >Im a zope newbie and have startet making a product solely through Python Nothing like jumping right in.... :-) >(leaving the management interface behind!). Really? >Inside my product object I want to make a folder containing images. I'm pretty sure you don't. We'll see, though. > My problem is that when I create folders and images through Python it > aint visible in the management interface. How to I make them visible? Make them Zope objects, not parts of your product instance. The data in your product is only displayed if it is somehow referenced or created by your product's interface. >Secund, can someone explain to me what implicit objects are available so >Im able to communicate with Zope Not sure what those would be, to be honest. >the docs API aint well documented Perhaps not, but I don't think that's the essential problem here. Every once in a while, newbies ask how to do something that seems simple and some crusty old timer feels the need to tell them they're going about it all wrong. Well, here goes: it sounds like you're going about this all wrong. Don't worry, though... it's all part of the learning process. First off, products are not a replacement for the Zope Management Interface (ZMI). All you do when you create a product is give yourself the ability to add a new type of object through the ZMI. But just doing that is a very powerful thing. A product should be created when you have a need for something that exhibits a certain set of distinct behaviors that aren't easily created with existing objects. It's possible, for example, that you've come up with a need for folders and images that are just too special to be implemented with boring old built-in folder objects and image objects. Possible, but unlikely. More likely, you've made the assumption that there's a need (or advantage) to build monolithic do-everything objects, one per application or site. You *could* work that way, but you'll be missing a whole lot of the point of Zope and re-implementing stuff that other very smart people have already gone to the trouble of creating, testing, debugging and supporting. What I would recommend is *not* starting by building your own products. That would be a bit like picking up a programming language without bothering with the standard libraries. Out of the box, Zope provides a wide range of flexible and powerful objects that can do a heck of a lot of stuff. It's worth knowing about because it's powerful stuff to use and provides examples of some of the best thinking in Zope. Understanding what these built-ins are and how they work will pay off big time when you get to building your own stuff. No longer will you need to worry about how to create and serve your own folders and images, you'll know how to access and manipulate the built-in ones, which are likely to be well suited for your needs. That will leave you free to focus your development time on building the things that Zope doesn't already give you. This is not to say there's no possible reason to want to build your own folders and images... it gets done all the time. I've done it too. But it's not probably where you want to start and when you get there, you'll learn that you're probably talking about three products, not one. And by then you'll know how to use the 99% of the built-in folder that works great and tweak the 1% you want to work differently. I'd check out the Zope Book (both versions): http://www.zope.org/Documentation/Books/ZopeBook/ Dieter's book: http://www.dieter.handshake.de/pyprojects/zope/index.html#bct_sec_1 And the Zope Dev Guide, when you're feeling up to it: http://www.zope.org/Documentation/Books/ZDG/current/index_html After that, the best way to learn about how to make products is to download a bunch of them and rip into the source code. By the time you're able to figure how CMF works, you'll be a jedi master. That may not have been what you were looking for, but I hope it helps. Dylan From zope@dylanreinhardt.com Mon Mar 3 01:36:03 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Sun, 02 Mar 2003 17:36:03 -0800 Subject: [Zope] VideoCapture module fails under Zope on Win32 In-Reply-To: <162114162366.20030301040009@Vex.Net> References: <5.1.1.6.0.20030228090324.02223b00@pop3.spa.norton.antivirus> <5.1.1.6.0.20030227121439.021e9ec8@www.dylanreinhardt.com> <5.1.1.6.0.20030227121439.021e9ec8@www.dylanreinhardt.com> <5.1.1.6.0.20030228090324.02223b00@pop3.spa.norton.antivirus> Message-ID: <5.1.1.6.0.20030302171824.01d44b90@pop3.spa.norton.antivirus> At 01:00 AM 3/1/2003, Tim wrote: >Traceback (innermost last): > Module ZPublisher.Publish, line 98, in publish > Module ZPublisher.mapply, line 88, in mapply > Module ZPublisher.Publish, line 39, in call_object > Module Products.ZVideoCapture.ZVideoCapture, line 32, in test > Module Products.ZVideoCapture.vidtest, line 4, in getdev > Module VideoCapture, line 49, in __init__ >Error: Creation of the filter graph failed. Ugh. Line 49 calls a method in a pyd file. Tough to know why the filter graph creation failed without seeing it. It may well be the case that the VideoCapture maintainers would have a pretty good idea of what might cause this error. That could push us in the right direction. It might also be possible to get a better traceback. Put line 49 inside a try...except and kick back your own exception. Check out this recipe for some hints how you might get some richer information on what's gone wrong: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52215 I haven't tried any of that in a Zope object, though it works like a charm in other Python stuff. That's about what I can think of at the moment. Dylan From ginger_xy@hotmail.com Mon Mar 3 02:41:26 2003 From: ginger_xy@hotmail.com (=?gb2312?B?PxM=?=) Date: Mon, 03 Mar 2003 02:41:26 +0000 Subject: [Zope] how to use zope Message-ID: Gentlemen/Ladies: First let me introduce myself.I am a Chinese.I just contacted with zope ,so I had many qustions that I could't understand it myself.For my english is poor,I would like you to tell me how to use zope ,using steps,and how to use gnowsys, .Could you response me as quickly as possible,because i will use it soon. Thank you very much! Best Wishes! _________________________________________________________________ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn From ra@burningman.com Mon Mar 3 03:21:19 2003 From: ra@burningman.com (Rob Miller) Date: Sun, 2 Mar 2003 19:21:19 -0800 Subject: [Zope] security changes from 2.5 -> 2.6? Message-ID: <338E0B9E-4D27-11D7-B9F2-003065776F76@burningman.com> hi there, i'm trying to migrate a plone project from zope 2.5.1 to zope 2.6.1. the app relies heavily on database driven local roles information, for which we're using zpatterns and loginmanager. so we've created these custom plone folders called 'teamfolders'. these folders are dataskins, and they override get_local_roles() and get_local_roles_for_userid(), returning the appropriate responses based on the team membership information that is in the database. similarly, in our user class, we've overridden getRolesInContext(). in zope 2.5.1 this all works beautifully. zope recognized the local roles and allows access accordingly. even the 'local_roles' link on the security tab still works, although it doesn't allow you to delete the local roles that originate from the database. when i import my product into 2.6.1, however, things don't work as smoothly. everything looks like it should work... the local roles page still displays the right information. a test page that i've written consistently displays the expected results for here.get_local_roles() and here.get_local_roles_for_userid(), as well as user.getRolesInContext(). but zope doesn't allow the access based on this information. that is, even when 'teammember' is showing up on the user's local roles list, zope isn't allowing the user to perform actions that should be allowed to 'teammember'. has something changed within zope's security implementation? is there a new method that needs to be overridden that i don't know about? does anyone have any other ideas why this might be happening? i've searched on the zope.org site and the mailing lists to no avail... any info anyone can provide would be greatly appreciated! thanks! -r From Andreas Jung Mon Mar 3 05:52:51 2003 From: Andreas Jung (Andreas Jung) Date: Mon, 03 Mar 2003 06:52:51 +0100 Subject: [Zope] how to use zope In-Reply-To: References: Message-ID: <54559061.1046674371@[192.168.0.2]> Read the Zope Book (to be found on www.zope.org). It explains the basics of Zope. -aj --On Montag, 3. M=E4rz 2003 02:41 +0000 "=3D?gb2312?B?PxM=3D?=3D"=20 wrote: > Gentlemen/Ladies: > First let me introduce myself.I am a Chinese.I just contacted with > zope ,so I had many qustions that I could't understand it myself.For my > english is poor,I would like you to tell me how to use zope ,using > steps,and how to use gnowsys, .Could you response me as quickly as > possible,because i will use it soon. Thank you very much! > Best Wishes! > > > > > > _________________________________________________________________ > = =D3=EB=C1=AA=BB=FA=B5=C4=C5=F3=D3=D1=BD=F8=D0=D0=BD=BB=C1=F7=A3=AC=C7=EB=CA=B9= =D3=C3 MSN Messenger: http://messenger.msn.com/cn > > _______________________________________________ > 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 ) --=20 --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From edwardam@interlix.com Mon Mar 3 07:26:44 2003 From: edwardam@interlix.com (Edward Muller) Date: 03 Mar 2003 01:26:44 -0600 Subject: [Zope] Re: File Upload via form (with other form variable) and storing it in a database In-Reply-To: References: <1046419422.4905.120.camel@localhost.localdomain> Message-ID: <1046676404.5004.0.camel@localhost.localdomain> Okay... Saw that But it doesn't tell me how to get the file into a postgres database though. On Fri, 2003-02-28 at 03:36, Maik Jablonski wrote: > Edward Muller wrote: > > How would I go about uploading a file via a form and store it in a > > postgres database using zope/zpt. > > > > I've never do this. I've used zope/zpt/zsql when dealing with forms > > before but never with a input type of "file". > > There's an Example.zexp in the import-folder of Zope 2.6.x. Import it > and have a look at the File-Library-Example. It's all there... > > -mj -- Edward Muller Interlix - President Web Hosting - PC Service & Support Custom Programming - Network Service & Support Phone: 417-862-0573 Cell: 417-844-2435 Fax: 417-862-0572 http://www.interlix.com From maik.jablonski@uni-bielefeld.de Mon Mar 3 08:17:55 2003 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Mon, 03 Mar 2003 09:17:55 +0100 Subject: [Zope] Re: File Upload via form (with other form variable) and storing it in a database In-Reply-To: <1046676404.5004.0.camel@localhost.localdomain> References: <1046419422.4905.120.camel@localhost.localdomain> <1046676404.5004.0.camel@localhost.localdomain> Message-ID: Edward Muller wrote: > Okay... Saw that > > But it doesn't tell me how to get the file into a postgres database > though. Take the content of the file and store it with an ExternalMethod in a BLOB-field... btw: I don't think that Postgres is a good storage for binary-objects... # insertFile.py # from http://www.dzug.org/mailinglisten/zope/archive/2002/2002-11/1037545798840 import psycopg def add_fileobject(self, obj_id, title, file, REQUEST=None): " insert binary file into postgres sql table " # open a database connection o = psycopg.connect("dbname=myDB user=postgres") # create cursor c = o.cursor() c.execute("INSERT INTO TBL_FILES (obj_id, imagetitle, imagedata) VALUES (%(obj_id)i, %(img_title)s, %(data)s)", {'obj_id':obj_id, 'img_title':title, 'data':psycopg.Binary(file.read())} ) # commit on the database connection o.commit() if REQUEST is not None: REQUEST.RESPONSE.redirect('index_html') Cheers, Maik -- Deutsche/German Zope User Group (DZUG) http://www.dzug.org/Members/mjablonski/ From sabaini@inode.at Mon Mar 3 08:36:02 2003 From: sabaini@inode.at (Peter Sabaini) Date: Mon, 03 Mar 2003 09:36:02 +0100 Subject: [Zope] Re: File Upload via form (with other form variable) and storing it in a database In-Reply-To: References: <1046419422.4905.120.camel@localhost.localdomain> <1046676404.5004.0.camel@localhost.localdomain> Message-ID: <3E6313F2.7010309@inode.at> This is a cryptographically signed message in MIME format. --------------ms030608010601080801010801 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Maik Jablonski wrote: > Edward Muller wrote: > >> Okay... Saw that >> But it doesn't tell me how to get the file into a postgres database >> though. > > > Take the content of the file and store it with an ExternalMethod > in a BLOB-field... btw: I don't think that Postgres is a good storage > for binary-objects... [snip] Why so? Do you have negative experience with BLOBs in Postgresql? I did some (very unscientific) tests with some mp3s once, and it seemed to perform quite well. This was with Postgresql 7.2, and about 500Mb of data. - peter. --------------ms030608010601080801010801 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition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c29uYWwgRnJlZW1haWwgUlNBIDIwMDAuOC4zMAIDCVmFMA0GCSqG SIb3DQEBAQUABIIBADQbGqyAW1W65UL2WIeBWJHkz9c1cttL2Fl8AwskUSx2sIMOn/3rPUmX T6XXeGC6iMqMo785v8EA0B/WkLtm/sR0IaHmeTw0ZN/1JaOmd3Cf/VwouxFFLU8i+1p5fymF PaqFP/OTPahePW9+q6NOcUuYNOcc/Zquu/42QWTtgwSnXahInvGoMSFdYB/WcXmHLc2QGtU2 WebztQBbtF1hhr7SekwYWL9uuiSOrU9JNnVc99jkUZqXhdN7Wf8913DqLp3c8guxQfm0kq36 b5DLPo0vITIGXSiLVc6cjoPNp3geewCpHrBl/zpzAm5aT/rYCBG0OM3G+Z7b1UF+QWUWmhgA AAAAAAA= --------------ms030608010601080801010801-- From tim@xxvii.net Mon Mar 3 09:23:23 2003 From: tim@xxvii.net (Tim) Date: Mon, 3 Mar 2003 04:23:23 -0500 Subject: [Zope] VideoCapture module fails under Zope on Win32 In-Reply-To: <5.1.1.6.0.20030302171824.01d44b90@pop3.spa.norton.antivirus> References: <5.1.1.6.0.20030228090324.02223b00@pop3.spa.norton.antivirus> <5.1.1.6.0.20030227121439.021e9ec8@www.dylanreinhardt.com> <5.1.1.6.0.20030227121439.021e9ec8@www.dylanreinhardt.com> <5.1.1.6.0.20030228090324.02223b00@pop3.spa.norton.antivirus> <5.1.1.6.0.20030302171824.01d44b90@pop3.spa.norton.antivirus> Message-ID: <30288422389.20030303042323@Vex.Net> Dylan wrote on Sunday, March 2, 2003, 8:36:03 PM: > Ugh. Line 49 calls a method in a pyd file. Tough to know why the filter > graph creation failed without seeing it. Been there, done that too. (-: The exception is actually coming from the call in the c++ code to open the device. The call does return a code of some sort; but i have no idea what that code is. The module author simply checks for non-true (or non-false, i can't remember), and if it fails, raises that exception... with no further info. > It may well be the case that the VideoCapture maintainers would have > a pretty good idea of what might cause this error. That could push Already tried this before posting to the Zope list. The author, unfortunately, said he had no idea, and had no time to fiddle with the code anymore. Oh well. Honestly i don't have time to be fiddling with my silly webcam these days either. <-: Would have been nice if it "just worked"... or someone had a quick answer. oh well. > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52215 If nothing else, i get this handy snippet out of all this. (-: -- Tim Middleton | Cain Gang Ltd | There are a thousand hacking at the branches x@veX.net | www.Vex.Net | of evil [but who] at the root. --Thoreau (W) From Mark.Grace@imd.ch Mon Mar 3 09:25:11 2003 From: Mark.Grace@imd.ch (Grace, Mark) Date: Mon, 3 Mar 2003 10:25:11 +0100 Subject: [Zope] Pass Arguments to ZSQL Method from Python Script Message-ID: Hi All, Warning, newbie question coming up! I have a form (DTML Document): -----------------------

    Add Employee:

    id:
    first:
    last:
    salary:
    ---------------------- That submits to the following Python Script: ---------------------- ##parameters=emp_id, first, last, salary rec = context.Queries.insertEmployeeQuery(emp_id=emp_id, first=first, last=last, salary=salary) print "-" * 80 print "Employee Added:" print "-" * 80 print """%i %s %s %f """ % (emp_id, first, last, salary) print "-" * 80 print "All Employees:" print "-" * 80 recordset = context.Queries.list_all_employees().dictionaries() rownum = 1 for record in recordset: print "Row %d" % (rownum) rownum = rownum + 1 for key in record.keys(): print key, "=", record[key] print "-" * 80 return printed ---------------------- "insertEmployeeQuery" is a ZSQL method, using a Gadfly DB Connection, that looks like this: ---------------------- Arguments: emp_id, first, last, salary insert into employees (emp_id, first, last, salary) values ( , , , ) ---------------------- The error is: ---------------------- Error Type Missing Input Error Message Missing input variable, emp_id ---------------------- Obviously, the problem lies in passing the arguments to the ZSQL method but I can't seem to find the right syntax. I know I could do this from a DTML Method instead of a Python Script but I am more interested in seeing how DTML and Python work together. Can anyone help me out? Many thanks, Mark From einar.ness.jensen@hf.ntnu.no Mon Mar 3 09:57:21 2003 From: einar.ness.jensen@hf.ntnu.no (Einar =?iso-8859-1?Q?N=E6ss?= Jensen) Date: Mon, 03 Mar 2003 10:57:21 +0100 Subject: [Zope] pictures in NuxDocument and MSWordDocument Message-ID: <5.2.0.9.0.20030303103451.02ef1ec8@pop.hf.ntnu.no> Using zope 2.6.1 and WvWare I'm trying to figure out what is needed to show pictures in NuxDocument=20 when saving a msword-document. Insted of the pictures (jpeg, gif or png) i= =20 get emty references. The product MSWordDocumentFS also fails to display images With MSWordDocument however, The pictures shows ok. Gif's, jpeg's and png's. Have anyone experienced the same, and/or have a solution or tip? Best regards Einar N=E6ss Jensen --=20 Einar N=E6ss Jensen Avdelingsingeni=F8r EDB-HF 735 90750 From mas@semafor.ch Mon Mar 3 10:05:29 2003 From: mas@semafor.ch (Sorin Marti) Date: Mon, 03 Mar 2003 11:05:29 +0100 Subject: [Zope] [URGENT] Compile-Problem Message-ID: <3E6328E9.3050200@semafor.ch> Hi all, I try to compile the zope source. I start with: python w_pcgi.py after a while I get following error.. OSError: [Errno 2] No such file or directory: /usr/local/Zope-2.6.1-src/inst/build_pcgi.pyc' I looked at this directory and build_pcgi.pyc really doesn't exist. But there is a build_pcgi.py... Whats wrong? Thanks in advance Sorin Marti From Nicolas.Romero@adp3i.fr Mon Mar 3 10:14:40 2003 From: Nicolas.Romero@adp3i.fr (Nicolas Romero) Date: 03 Mar 2003 11:14:40 +0100 Subject: [Zope] Session timeout In-Reply-To: <15967.48893.66709.278714@gargle.gargle.HOWL> References: <1046365480.2800.12.camel@Ravel.Corp.ADP3i.fr> <15967.48893.66709.278714@gargle.gargle.HOWL> Message-ID: <1046681708.2392.16.camel@Ravel.Corp.ADP3i.fr> Le ven 28/02/2003 à 20:56, Dieter Maurer a écrit : > Nicolas Romero wrote at 2003-2-27 18:04 +0100: > > ... "ZSESSION_TIMEOUT_MINS=0" is now very small ... > > Is this a bug, or a feature ? And how can I use infinite sessions in > > 2.6.1 ? > > I cannot answer your first question. > > But "ZSESSION_TIMEOUT_MINS=10,000,000" would mean almost "infinite" > for any practical considerations.... Yes, of course, this is what I do. But this is a hack I would prefer to avoid if I could. Thank you for the tip, anyway. > > Dieter -- Nicolas Romero, adp3i From mas@semafor.ch Mon Mar 3 10:19:03 2003 From: mas@semafor.ch (Sorin Marti) Date: Mon, 03 Mar 2003 11:19:03 +0100 Subject: [Zope] Compile Problem Message-ID: <3E632C17.6080603@semafor.ch> Could this be the problem? I've got Python 2.0... The INSTALL.txt says you need Python 2.2... Thanks Sorin Marti From andy@agmweb.ca Mon Mar 3 10:22:33 2003 From: andy@agmweb.ca (Andy McKay) Date: Mon, 03 Mar 2003 02:22:33 -0800 Subject: [Zope] Pass Arguments to ZSQL Method from Python Script In-Reply-To: References: Message-ID: <3E632CE9.8050708@agmweb.ca> > "insertEmployeeQuery" is a ZSQL method, using a Gadfly DB Connection, that > looks like this: > ---------------------- > Arguments: emp_id, first, last, salary Try removing the commas from your argument list: emp_id first last salary -- Andy McKay From Andreas Jung Mon Mar 3 10:22:49 2003 From: Andreas Jung (Andreas Jung) Date: Mon, 03 Mar 2003 11:22:49 +0100 Subject: [Zope] Compile Problem In-Reply-To: <3E632C17.6080603@semafor.ch> References: <3E632C17.6080603@semafor.ch> Message-ID: <70756963.1046690569@[192.168.0.2]> Zope 2.5/2.6 requires Python 2.1.(3)! -aj --On Montag, 3. M=E4rz 2003 11:19 +0100 Sorin Marti wrote: > --=20 --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From Mark.Grace@imd.ch Mon Mar 3 10:28:31 2003 From: Mark.Grace@imd.ch (Grace, Mark) Date: Mon, 3 Mar 2003 11:28:31 +0100 Subject: [Zope] Pass Arguments to ZSQL Method from Python Script Message-ID: Thanks Andy but I did as you say and now it outputs the following error: ---------------------- Error Type Missing Input Error Message Missing input variable, first ??? -----Original Message----- From: Andy McKay [mailto:andy@agmweb.ca] Sent: Monday, March 03, 2003 11:23 AM To: Grace, Mark Cc: 'zope@zope.org' Subject: Re: [Zope] Pass Arguments to ZSQL Method from Python Script > "insertEmployeeQuery" is a ZSQL method, using a Gadfly DB Connection, that > looks like this: > ---------------------- > Arguments: emp_id, first, last, salary Try removing the commas from your argument list: emp_id first last salary -- Andy McKay From mas@semafor.ch Mon Mar 3 10:53:15 2003 From: mas@semafor.ch (Sorin Marti) Date: Mon, 03 Mar 2003 11:53:15 +0100 Subject: [Zope] [again] Compile problem Message-ID: <3E63341B.9060705@semafor.ch> Hi all, Ok. I installed python 2.1.3 and everything seemed to work fine. But now I've got the following error... what does that mean? File "w_pcgi.py", line 39, in ? if __name__=='__main__': main(sys.argv[0]) File "w_pcgi.py", line 37, in main import wo_pcgi; wo_pcgi.main(me) File "/usr/local/Zope-2.6.1-src/wo_pcgi.py", line 33, in main import build_extensions File "/usr/local/Zope-2.6.1-src/inst/build_extensions.py", line 24, in ? do('%s setup.py build_ext -i' % sys.executable) File "/usr/local/Zope-2.6.1-src/inst/do.py", line 32, in do if i and picky: raise SystemError, i SystemError: 256 I found nothing in google... Thanks for your help Sorin Marti From Oliver@tekk.dk Mon Mar 3 10:56:28 2003 From: Oliver@tekk.dk (Oliver Marx) Date: Mon, 03 Mar 2003 11:56:28 +0100 Subject: [Zope] [again] Compile problem In-Reply-To: <3E63341B.9060705@semafor.ch> References: <3E63341B.9060705@semafor.ch> Message-ID: <3E6334DC.8020207@tekk.dk> > File "w_pcgi.py", line 39, in ? > if __name__=='__main__': main(sys.argv[0]) > File "w_pcgi.py", line 37, in main > import wo_pcgi; wo_pcgi.main(me) > File "/usr/local/Zope-2.6.1-src/wo_pcgi.py", line 33, in main > import build_extensions > File "/usr/local/Zope-2.6.1-src/inst/build_extensions.py", line 24, in ? > do('%s setup.py build_ext -i' % sys.executable) > File "/usr/local/Zope-2.6.1-src/inst/do.py", line 32, in do > if i and picky: raise SystemError, i > SystemError: 256 I had the same error when I didn't use GnuTar. \Oliver -- Direktør / Managing Director Oliver Marx TEKK Lyngbyvej 20 DK-2100 København Ø Main: +45 39 15 80 60 Direct: +45 39 15 80 62 http://www.tekk.dk From mas@semafor.ch Mon Mar 3 11:00:27 2003 From: mas@semafor.ch (Sorin Marti) Date: Mon, 03 Mar 2003 12:00:27 +0100 Subject: [Zope] [again] Compile problem References: <3E63341B.9060705@semafor.ch> <3E6334DC.8020207@tekk.dk> Message-ID: <3E6335CB.3030600@semafor.ch> Oliver Marx wrote: > >> File "w_pcgi.py", line 39, in ? >> if __name__=='__main__': main(sys.argv[0]) >> File "w_pcgi.py", line 37, in main >> import wo_pcgi; wo_pcgi.main(me) >> File "/usr/local/Zope-2.6.1-src/wo_pcgi.py", line 33, in main >> import build_extensions >> File "/usr/local/Zope-2.6.1-src/inst/build_extensions.py", line 24, >> in ? >> do('%s setup.py build_ext -i' % sys.executable) >> File "/usr/local/Zope-2.6.1-src/inst/do.py", line 32, in do >> if i and picky: raise SystemError, i >> SystemError: 256 > > > I had the same error when I didn't use GnuTar. But I used GnuTar... Sorin Marti From dario@ita.chalmers.se Mon Mar 3 13:25:06 2003 From: dario@ita.chalmers.se (=?iso-8859-1?Q?Dario_Lopez-K=E4sten?=) Date: Mon, 3 Mar 2003 14:25:06 +0100 Subject: [Zope] Pass Arguments to ZSQL Method from Python Script References: Message-ID: <009001c2e188$4e170ad0$4bdf1081@WALTER> hello, I think Andy meant remove the commas from the ZSQL-method object, e.g. in the edit box of the ZSQL-method it should look like this: Arguments: emp_id first last salary or Arguments: emp_id first last salary in the call to the zsql-method, you have to use commas: results = context.zsql_method_name(emp_id=someval, first=someval2, last=someval3, salary=someval4) or results = context.zsql_method_name(someval, someval2, someval3, someval4) (not 100% sure about this last one, though - caveat empor) HTH, /dario ----- Original Message ----- From: "Grace, Mark" To: "'Andy McKay'" Cc: Sent: Monday, March 03, 2003 11:28 AM Subject: RE: [Zope] Pass Arguments to ZSQL Method from Python Script > Thanks Andy but I did as you say and now it outputs the following error: > ---------------------- > Error Type > Missing Input > > Error Message > Missing input variable, first > > ??? > > -----Original Message----- > From: Andy McKay [mailto:andy@agmweb.ca] > Sent: Monday, March 03, 2003 11:23 AM > To: Grace, Mark > Cc: 'zope@zope.org' > Subject: Re: [Zope] Pass Arguments to ZSQL Method from Python Script > > > > "insertEmployeeQuery" is a ZSQL method, using a Gadfly DB Connection, that > > looks like this: > > ---------------------- > > Arguments: emp_id, first, last, salary > > Try removing the commas from your argument list: > > emp_id first last salary > -- > Andy McKay > > _______________________________________________ > 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 ) > From jens@bkinformatik.dk Mon Mar 3 14:34:16 2003 From: jens@bkinformatik.dk (Jens JB. Bjerre) Date: Mon, 3 Mar 2003 15:34:16 +0100 Subject: [Zope] Properties Message-ID: <23BF741DC57A074BA3D65FC1222A398DC516@server1.bkinformatik.dk> This is a multi-part message in MIME format. ------_=_NextPart_001_01C2E191.F7C55400 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Hi =20 Is there anyway how I can test, if an object (of any kind) has a special property.? =20 Regards =20 Jens ------_=_NextPart_001_01C2E191.F7C55400 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

    Hi

     

    Is there anyway how I can test, if an object = (of any kind) has a special property.?

     

    Regards

     

    Jens

    =00 ------_=_NextPart_001_01C2E191.F7C55400-- From Mark.Grace@imd.ch Mon Mar 3 14:39:46 2003 From: Mark.Grace@imd.ch (Grace, Mark) Date: Mon, 3 Mar 2003 15:39:46 +0100 Subject: [Zope] Pass Arguments to ZSQL Method from Python Script Message-ID: Hi Dario, OK, everything is working wonderfully now, many thanks to you and Andy. = I'll try to challenge you guys a little more next time. Mark -----Original Message----- From: Dario Lopez-K=E4sten [mailto:dario@ita.chalmers.se] Sent: Monday, March 03, 2003 2:25 PM To: zope@zope.org Subject: Re: [Zope] Pass Arguments to ZSQL Method from Python Script hello, I think Andy meant remove the commas from the ZSQL-method object, e.g. = in the edit box of the ZSQL-method it should look like this: Arguments: emp_id first last salary or Arguments: emp_id first last salary in the call to the zsql-method, you have to use commas: results =3D context.zsql_method_name(emp_id=3Dsomeval, = first=3Dsomeval2, last=3Dsomeval3, salary=3Dsomeval4) or results =3D context.zsql_method_name(someval, someval2, someval3, = someval4) (not 100% sure about this last one, though - caveat empor) HTH, /dario ----- Original Message ----- From: "Grace, Mark" To: "'Andy McKay'" Cc: Sent: Monday, March 03, 2003 11:28 AM Subject: RE: [Zope] Pass Arguments to ZSQL Method from Python Script > Thanks Andy but I did as you say and now it outputs the following = error: > ---------------------- > Error Type > Missing Input > > Error Message > Missing input variable, first > > ??? > > -----Original Message----- > From: Andy McKay [mailto:andy@agmweb.ca] > Sent: Monday, March 03, 2003 11:23 AM > To: Grace, Mark > Cc: 'zope@zope.org' > Subject: Re: [Zope] Pass Arguments to ZSQL Method from Python Script > > > > "insertEmployeeQuery" is a ZSQL method, using a Gadfly DB = Connection, that > > looks like this: > > ---------------------- > > Arguments: emp_id, first, last, salary > > Try removing the commas from your argument list: > > emp_id first last salary > -- > Andy McKay > > _______________________________________________ > 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 -=20 http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) From Andreas Jung Mon Mar 3 14:47:41 2003 From: Andreas Jung (Andreas Jung) Date: Mon, 03 Mar 2003 15:47:41 +0100 Subject: [Zope] Properties In-Reply-To: <23BF741DC57A074BA3D65FC1222A398DC516@server1.bkinformatik.dk> References: <23BF741DC57A074BA3D65FC1222A398DC516@server1.bkinformatik.dk> Message-ID: <86648634.1046706461@[192.168.0.2]> hasattr() --On Montag, 3. M=E4rz 2003 15:34 +0100 "Jens JB. Bjerre"=20 wrote: > Hi > > > > Is there anyway how I can test, if an object (of any kind) has a special > property.? > > > > Regards > > > > Jens > --=20 --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From suecole2001@hotmail.com Mon Mar 3 14:49:56 2003 From: suecole2001@hotmail.com (Sue Cole) Date: Mon, 03 Mar 2003 14:49:56 +0000 Subject: [Zope] mailing list Message-ID: please add me to your mailing list, Sincerely, Sue Cole


    Sue
    _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus From suecole2001@hotmail.com Mon Mar 3 14:50:48 2003 From: suecole2001@hotmail.com (Sue Cole) Date: Mon, 03 Mar 2003 14:50:48 +0000 Subject: [Zope] mailing list Message-ID:


    please add  me to your mailing list

    Sincerely,

    Sue Cole
    Sue



    Add photos to your messages with MSN 8. Get 2 months FREE*. From marc@sharedbase.com Mon Mar 3 16:02:08 2003 From: marc@sharedbase.com (Marc Burgauer) Date: Mon, 03 Mar 2003 16:02:08 +0000 Subject: [Zope] Web mail & web chat Message-ID: Hi I am looking for a Zope-based interface to offer web mail and real-time chat for a potential customer who intends to run a public web-based service. The average user will not be highly computer literate. (E.g. We expect many not even to have an e-mail account.) Web Mail -------- The only "serious" product I have found is: http://www.zope.org/Members/maraf/WebMail It requires an IMAP server, currently we're still only doing POP3. Also this product is in French, it seems. - If anybody is using this product, can you share some experiences? + stability + scale (number of users, etc.) + How does it integrate with acl_users? + Willing to share English graphics and templates? - Has anybody experiences with other products? I am considering to offer @Mail, which looks impressive and is OK in price, but it does not tie into Zope at all. (Or has somebody done this?) I mainly worried about the administration effort of keeping usernames and passwords in sync. Web Chat -------- I found this product: http://www.zope.org/Members/jwashin/ZRTChat Looks OK but is labeled as development. - If anybody is using this product, can you share some experiences? + stability + scale (number of users, etc.) - Has anybody experiences with other products? Cheers Marc From Ed.Crewe@bristol.ac.uk Mon Mar 3 16:29:00 2003 From: Ed.Crewe@bristol.ac.uk (Ed Crewe) Date: Mon, 3 Mar 2003 16:29:00 +0000 (GMT) Subject: [Zope] Zope 2.6.1 changed default number format Message-ID: Hi, Rather than do uneccesary work can I just enquire about whether recent numeric handling changes in Zope 2.6.1 are intentional or might they be reversed? Zope 2.6.1 has changed the default dtml number display format from integer to one decimal place floating point. This breaks any sites that use dtml integer display. Was this a deliberate change? If so what is the recommended solution for replacing dtml such as Should all dtml integer rendering be replaced with 0 or is there an economical way of displaying an integer in dtml? Thanks, Ed Crewe __________________________________________________________________ Ed Crewe ( Web Developer - ID Group ) ed.crewe@bris.ac.uk Institute for Learning and Research Technology ILRT University of Bristol Information Services +44 117 9287083 8-10 Berkeley Square, Bristol, BS8 1HH http://www.ilrt.bris.ac.uk From maik.jablonski@uni-bielefeld.de Mon Mar 3 16:33:29 2003 From: maik.jablonski@uni-bielefeld.de (Maik Jablonski) Date: Mon, 03 Mar 2003 17:33:29 +0100 Subject: [Zope] Re: Properties In-Reply-To: <86648634.1046706461@[192.168.0.2]> References: <23BF741DC57A074BA3D65FC1222A398DC516@server1.bkinformatik.dk> <86648634.1046706461@[192.168.0.2]> Message-ID: Andreas Jung wrote: > hasattr() > > --On Montag, 3. März 2003 15:34 +0100 "Jens JB. Bjerre" > wrote: >> >> Is there anyway how I can test, if an object (of any kind) has a special >> property.? Depending on your problem hasProperty() will be better than hasattr(), because hasattr() returns true for acquired properties as well. -mj -- Deutsche/German Zope User Group (DZUG) http://www.dzug.org/Members/mjablonski/ From nicoe@altern.org Mon Mar 3 17:22:20 2003 From: nicoe@altern.org (=?iso-8859-1?Q?Nicolas_=C9vrard?=) Date: Mon, 3 Mar 2003 18:22:20 +0100 Subject: [Zope] Web mail & web chat In-Reply-To: References: Message-ID: <20030303172220.GA22900@smarties.nutellux.ath.cx> * Marc Burgauer [17:02 03/03/03 CET]:=20 > >http://www.zope.org/Members/maraf/WebMail > >It requires an IMAP server, currently we're still only doing POP3. There is a version supporting pop3 here : http://www.zope.org/Members/maraf/POPVersionNews HTH --=20 (=B0> Nicolas =C9vrard / ) Li=E8ge - Belgique ^^ From creiman@kefta.com Mon Mar 3 17:26:08 2003 From: creiman@kefta.com (Charlie Reiman) Date: Mon, 3 Mar 2003 09:26:08 -0800 Subject: [Zope] Simple Persistent Cookie In-Reply-To: <000001c2e033$2f2234c0$0bcdae18@LUISLAPTOP> Message-ID: > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Luis > Cortes > Sent: Saturday, March 01, 2003 12:43 PM > To: Zope Mailing List > Subject: RE: [Zope] Simple Persistent Cookie > > > I thought this would work, does anybody have a clue why it doesn't? > > expr="RESPONSE.setHeader('Set-Cookie','lastVisited=1999/01/01;expi > res=2003/0 > 3/03')"> > This has nothing to do with zope. You aren't following the spec for cookies. Cookies are very picky and you must follow the Netscape spec as closely as you can. In particuar, you don't have spaces after the semicolons and your date format is wrong. You probably should also set a domain and path. From zope@dylanreinhardt.com Mon Mar 3 17:53:28 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Mon, 03 Mar 2003 09:53:28 -0800 Subject: [Zope] VideoCapture module fails under Zope on Win32 In-Reply-To: <30288422389.20030303042323@Vex.Net> References: <5.1.1.6.0.20030302171824.01d44b90@pop3.spa.norton.antivirus> <5.1.1.6.0.20030228090324.02223b00@pop3.spa.norton.antivirus> <5.1.1.6.0.20030227121439.021e9ec8@www.dylanreinhardt.com> <5.1.1.6.0.20030227121439.021e9ec8@www.dylanreinhardt.com> <5.1.1.6.0.20030228090324.02223b00@pop3.spa.norton.antivirus> <5.1.1.6.0.20030302171824.01d44b90@pop3.spa.norton.antivirus> Message-ID: <5.1.1.6.0.20030303094806.01db5558@pop3.spa.norton.antivirus> At 01:23 AM 3/3/2003, Tim wrote: >Dylan wrote on Sunday, March 2, 2003, 8:36:03 PM: > > It may well be the case that the VideoCapture maintainers would have > > a pretty good idea of what might cause this error. That could push > >Already tried this before posting to the Zope list. The author, >unfortunately, said he had no idea, and had no time to fiddle with the >code anymore. Bummer. One other thought... if this works from the command line, what about ditching the product format and moving over to an set of External Methods and ZMI interface methods? It's not as neat and tidy, but it might get the job done. > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52215 > >If nothing else, i get this handy snippet out of all this. (-: Well, at least there's a silver lining *somewhere* in this cloud. :-) Dylan From juan@latinwit.com Mon Mar 3 15:05:11 2003 From: juan@latinwit.com (Juan Emilio Drault) Date: 03 Mar 2003 15:05:11 +0000 Subject: [Zope] How to run periodic processes - How to set Mail Host Message-ID: <1046703918.22905.11.camel@localhost.com> Hello everybody I'm looking for this information. How to run periodic processes inside Zope? I need it to run a process that sends E-mail every hour. Another related question is: How to set a Mail Host if the SMTP server requires authentication? Thanks a lot in advance. Juan E. Drault From sean.upton@uniontrib.com Mon Mar 3 18:45:53 2003 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Mon, 03 Mar 2003 10:45:53 -0800 Subject: [Zope] Help Needed - Case for Zope Message-ID: Forgive the generality of this comment, but I think one of the biggest things going for Zope is that it takes some hard integration problems and makes them simple. - ZEO makes object persistence cluster, and without really needing to do much to your applications (other than have good conflict-handling code in your applications to deal with increased storage write latency for the network, and handling cache invalidation mechanisms). So for the most part, clustered persistent objects allow things like shared sessioning across your cluster to just work. Scaling becomes less of a development issue and more of an integration/sysadmin issue, like it should be. I'll go out on a limb to say that Java is going to make you work harder to not only get close-to-transparent object persistence, but making that scale and cluster will be harder, and certainly you will be tied down to one particular ODB or serialization/storage framework vendor; ZODB is more open and more-or-less a standard for Python folks. ZODB makes transactions easy too. - Have you showed your management some of John Udell's latest InfoWorld columns? ("Shipping the Prototype" and "Refactoring the Enterprise")? http://www.infoworld.com/article/03/02/06/06stratdev_1.html http://www.infoworld.com/article/03/02/13/07stratdev_1.html - The Plone folks have plugged in their 1.0 press release that they support the first "industry standard templating language" (paraphrase) in Zope Page Templates. Since there are implementations of PT/TAL in other languages now, you could argue that for the presentation layer, you get something cleaner and more standardized than the popular (but platform specific) JSP type solution. - Make the case for Python; Zope naturally follows. One ROI factor for the suits could be explained in terms of lower post-project "is done" expenses (and therefore less risk), and that the language will enable your project to be maintained without high-cost in the long term, which decreases (a) the risk of scrapping the project 2 years down the line (because you can adapt easier), and (b) the risk that you will need to spend big $$ on major changes. Python lends itself to the "embrace change as inevitable" school of thought, and gives you something easier to manage changes in the system with. I think Udell's two articles go far to make this plug for "scripting the enterprise." Plug Python's use for Star Wars at ILM, Google, etc. I would also argue that Python makes it easier to write code in terms of your application, rather than make your business fit your technology or spend most of your time writing "bridge" code to make the two connect. See http://www.python-in-business.org/success for case-study type blips as to folks using Python. - Scalability: plug ZODB's storage-agnosticism to your management folks. You can use FileStorage, you can use BerkeleyDB storage, you can use DirectoryStorage (which will scale quite well, has tools for incremental backup and replication, and you can also use standard Unix tools too - works quite well for high-availability clustering), etc. On top of various object storage mechanisms, there is now a great mapping storage in AdaptableStorage, which allows you to write plugins to serialize object data to pretty much any mechanism you could think of (RDB, XML, LDAP, etc). This flexibility (with mostly free, easily available, vendor-agnostic software) is likely to be better and cheaper than what you might find in the Java world, where these things are less standardized, and more vendor-specific. Personally, I think the lower-costs, lower-risk, more flexibility arguments go pretty far. Java, as a popular platform is a low-risk platform, but it does this by moving the risk to the application (forcing you to deal with object persistence or serialization, transactions, sessions, etc, choose competing implementations of 3rd party technology - batteries not included) and making the developer compensate to keep the risk low, but this makes costs high. Zope, like Python has batteries included for a lot of things that are traditionally application-developer's problems, and removes some of the complexity away from having to do it yourself. Java's popularity, on the other hand, encourages choice, but also forces it on you as well, by playing to the hands of multiple vendors for app servers, object database technology, etc. Zope's integrated nature makes it easier to get started quickly without costly vendor or 3rd party technology commitments that may turn out to be a poor match. Python is less popular, but decreases the risks of your project, which ultimately is what really matters much more than the platform. I hope this is somehow helpful. Sean -----Original Message----- From: Samir Mishra [mailto:SamirMishra@cbuae.gov.ae] Sent: Sunday, March 02, 2003 1:08 AM To: 'zope@zope.org' Subject: RE: [Zope] Help Needed - Case for Zope Thanks everyone. Any Project managers out there with something to add with regard to comparison between speed of implementation for Zove vs. other products? Personally, I place maintainability and transitioning skills as my top priority, and elegance of code comes last. Speed (e.g., of the server) is a non-issue because one can always allocate better hardware for this since it's a mere commodity now, intellectual capital is always at a premium. And that's why I like Zope :) But I still have to sell the concept to managers who only hear "Java" & "JSP" from software vendors and so are most familiar with these technologies. Samir. -----Original Message----- From: Paul Browning [mailto:paul.browning@bristol.ac.uk] Sent: Sunday, March 02, 2003 11:58 To: 'zope@zope.org' Cc: Samir Mishra Subject: Re: [Zope] Help Needed - Case for Zope --On 01 March 2003 21:52 +0100 Dieter Maurer wrote: > Samir Mishra wrote at 2003-3-1 14:26 +0400: > > My manager has requested comments on whether Zope "performs like a > dog". I'm > doing some digging around at the moment, but, in the > meantime, if anyone has > any links to recommend, benchmarks, > experiences to share, that I can use to > counter his 'assertion', it > would be much appreciated. > One way of getting Zope "run like a bow-legged terrier on sleeping pills" (Pieters, M., pers. comm.) is to use multi-processor Solaris without paying attention to the threading issues (see ). If you're starting from a clean sheet it's probably best to avoid Solaris. Paul -- The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK E-mail: paul.browning@bristol.ac.uk URL: http://www.bris.ac.uk/ _______________________________________________ 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 ) From elyssab@fremontpublic.org Mon Mar 3 18:53:02 2003 From: elyssab@fremontpublic.org (Back, Elyssa) Date: Mon, 3 Mar 2003 10:53:02 -0800 Subject: [Zope] restoring deleted data Message-ID: <413368CBF863D411BD560050BA8F75390181162F@FPASERVER> Good morning, I am Zope newbie who used the program in December to build a medium-sized site. I installed Zope on my work computer and did all my development there. When I came in last week, I found that my system administrator had completely deleted my version of zope. Everything was gone - the server, the installation program, the supporting software, ect.... I was just wondering if there was a way to recover any of my code or to restore the site, without re-doing everything. If there is documentation about this on one of the zope sites, feel free to point me to it. Thanks so much! Elyssa ************** It is impossible for us simply to serve soup and provide shelter without crying out that homelessness is a gross injustice and an indictment of a society that has so much and yet will not make available to all persons the basic necessities of food and housing. -Ed Loring, The Open Door Community, Atlanta From list@zettai.net Mon Mar 3 18:57:36 2003 From: list@zettai.net (george donnelly) Date: Mon, 03 Mar 2003 13:57:36 -0500 Subject: [Zope] How to run periodic processes - How to set Mail Host In-Reply-To: <1046703918.22905.11.camel@localhost.com> Message-ID: [Juan Emilio Drault wrote (juan@latinwit.com) on 3/3/03 10:05 AM] hi > How to run periodic processes inside Zope? > I need it to run a process that sends E-mail every hour. you can use the XRON product but a better solution would be to use Cron (Unix/Linux). > Another related question is: > > How to set a Mail Host if the SMTP server requires authentication? I believe there is a product in development called ESMTP mail host or something like that. http://www.zope.org/Members/bowerymarc/ESMTPMailHost hth <--> george donnelly - http://zettai.net/ - "We Love Newbies" :) Zope Hosting - Dynamic Website Design - Search Engine Promotion Yahoo, AIM: zettainet - ICQ: 51907738 - e:george@zettai.net From jccooper@jcameroncooper.com Mon Mar 3 19:08:29 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Mon, 03 Mar 2003 13:08:29 -0600 Subject: [Zope] restoring deleted data In-Reply-To: <413368CBF863D411BD560050BA8F75390181162F@FPASERVER> References: <413368CBF863D411BD560050BA8F75390181162F@FPASERVER> Message-ID: <3E63A82D.4090101@jcameroncooper.com> > > >When I came in last week, I found that my system administrator had >completely deleted my version of zope. Everything was gone - the server, >the installation program, the supporting software, ect.... > >I was just wondering if there was a way to recover any of my code or to >restore the site, without re-doing everything. If there is documentation >about this on one of the zope sites, feel free to point me to it. > > Yikes. Well, unless your sysadmin also made a backup, I'm afraid you're out of luck unless: -- the var/Data.fs file is still around. If you set up an INSTANCE_HOME type installation, this is possible, since the data would reside in a different place than the program. Or maybe the var directory survived by chance in a regular install. If you can find it, all you need do is replace the file of the same name in a new install and you'll be up and running (provided your new install has all the necessary products installed.) -- you can figure out how to do some "undeleting" on your operating system. This is usually difficult, but not impossible. If there hasn't been much activity on that computer, it's likely your old data is still around, though inaccessible. Again, the only thing you need be interested in is Data.fs (and any custom products/external methods you may have developed.) If your OS has no good native facilites for this (most don't) there are third-party programs and data-recovery businesses that can get even heavily deleted data back. -- it is mostly a static site and someone managed to archive it. Good possibilities are Google and Internet Archive (archive.org). This doesn't work unless was publically visible. --jcc From jmeile@hotmail.com Mon Mar 3 19:23:21 2003 From: jmeile@hotmail.com (Josef Meile) Date: Mon, 3 Mar 2003 20:23:21 +0100 Subject: [Zope] Re: How to run periodic processes - How to set Mail Host Message-ID: > [Juan Emilio Drault wrote (juan@l...) on 3/3/03 10:05 AM] > > hi > > > How to run periodic processes inside Zope? > > I need it to run a process that sends E-mail every hour. > > you can use the XRON product but a better solution would be to use Cron > (Unix/Linux). I would also recommend you Cron. Once I used XCron and my system crashed everytime without finishing the XCron Method (It wasn't a Xron issue, but it affected the XCron Schedule). When Zope tried to restart, it tried to excecute the XCron Method again, so I got another email. It did it till I opened my email box (I got 500 emails). With Cron and wget this won't happen because unix/linux finish the excecution of the method without caring if it whether crashes or not. Regards, Josef From allison@sumeru.stanford.EDU Mon Mar 3 19:19:04 2003 From: allison@sumeru.stanford.EDU (Dennis Allison) Date: Mon, 3 Mar 2003 11:19:04 -0800 (PST) Subject: [Zope] restoring deleted data In-Reply-To: <413368CBF863D411BD560050BA8F75390181162F@FPASERVER> Message-ID: If everything was deleted, there's not much that can be done. Perhaps you can get the SysAdmin to restore the site from backups. All you really need (assuming you are doing nothing fancy) is Data.fs, the object oriented database that contains all Zope persistent objects. Reinstall Zope and any Products you are using, put Data.fs in the var directory, and you should be in business again. If you used any Python extensions, you'll have to recover them from backups as well. On Mon, 3 Mar 2003, Back, Elyssa wrote: > Good morning, > > I am Zope newbie who used the program in December to build a medium-sized > site. I installed Zope on my work computer and did all my development > there. > > When I came in last week, I found that my system administrator had > completely deleted my version of zope. Everything was gone - the server, > the installation program, the supporting software, ect.... > > I was just wondering if there was a way to recover any of my code or to > restore the site, without re-doing everything. If there is documentation > about this on one of the zope sites, feel free to point me to it. > > Thanks so much! > > Elyssa > > ************** > It is impossible for us simply to serve soup and provide shelter without > crying out that homelessness is a gross injustice and an indictment of a > society that has so much and yet will not make available to all persons the > basic necessities of food and housing. > -Ed Loring, The Open Door Community, Atlanta > > > > _______________________________________________ > 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 ) > From Andreas Jung Mon Mar 3 19:06:14 2003 From: Andreas Jung (Andreas Jung) Date: Mon, 03 Mar 2003 20:06:14 +0100 Subject: [Zope] restoring deleted data In-Reply-To: <413368CBF863D411BD560050BA8F75390181162F@FPASERVER> References: <413368CBF863D411BD560050BA8F75390181162F@FPASERVER> Message-ID: <102158806.1046721974@[192.168.0.2]> First ask your system adminstrator if there is backup or second kick him. On Windows system there is a slight chance to undelete removed data. Google should give you an overview over the existing tools. But this all sounds=20 like you're having bad luck -aj --On Montag, 3. M=E4rz 2003 10:53 -0800 "Back, Elyssa"=20 wrote: > Good morning, > > I am Zope newbie who used the program in December to build a medium-sized > site. I installed Zope on my work computer and did all my development > there. > > When I came in last week, I found that my system administrator had > completely deleted my version of zope. Everything was gone - the server, > the installation program, the supporting software, ect.... > > I was just wondering if there was a way to recover any of my code or to > restore the site, without re-doing everything. If there is documentation > about this on one of the zope sites, feel free to point me to it. > > Thanks so much! > > Elyssa > > ************** > It is impossible for us simply to serve soup and provide shelter without > crying out that homelessness is a gross injustice and an indictment of a > society that has so much and yet will not make available to all persons > the basic necessities of food and housing. > -Ed Loring, The Open Door Community, Atlanta > > > > _______________________________________________ > 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 ) --=20 --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From pw_lists@slinkp.com Mon Mar 3 19:24:32 2003 From: pw_lists@slinkp.com (Paul Winkler) Date: Mon, 3 Mar 2003 14:24:32 -0500 Subject: [Zope] restoring deleted data In-Reply-To: <413368CBF863D411BD560050BA8F75390181162F@FPASERVER> References: <413368CBF863D411BD560050BA8F75390181162F@FPASERVER> Message-ID: <20030303192432.GA1256@slinkp.com> On Mon, Mar 03, 2003 at 10:53:02AM -0800, Back, Elyssa wrote: > When I came in last week, I found that my system administrator had > completely deleted my version of zope. Everything was gone - the server, > the installation program, the supporting software, ect.... > > I was just wondering if there was a way to recover any of my code or to > restore the site, without re-doing everything. If there is documentation > about this on one of the zope sites, feel free to point me to it. Everything you did in the ZOpe management interface would get stored in a file called Data.fs. So, search for that. if it doesn't exist, one would hope that your sysadmin has backups stored somewhere... you'd better ask him. -- Paul Winkler http://www.slinkp.com From baiewola@netscape.net Mon Mar 3 19:33:20 2003 From: baiewola@netscape.net (baiewola@netscape.net) Date: Mon, 03 Mar 2003 14:33:20 -0500 Subject: [Zope] NuxUserGroups and CMF not working Message-ID: <59403C6E.3DD3F8C0.00923364@netscape.net> I installed NuxUserGroups, but the product was broken. The traceback error said "No module named CMFCore.CatalogTool." I presumed that I had to install CMF, so I did. After installation, CMFCore, CMFDefault, and CMFTopic appear in my products list unbroken, but I can't create a CMF Site object (it should be in the pulldown menu, right?). And NuxUserGroups is still broken. The weird thing is that I now have the option of giving local roles to groups -- I just can't create the groups. * For CMF, is it mandatory that Zope be installed using /var/zope as my INSTANCE_HOME and /usr/local/zope/ as my SOFTWARE_HOME? * If that's the problem, what do I need to change about CMF to make it work with my own installation? Many thanks. __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ From sean.upton@uniontrib.com Mon Mar 3 19:42:03 2003 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Mon, 03 Mar 2003 11:42:03 -0800 Subject: [Zope] Re: How to run periodic processes - How to set Mail Ho st Message-ID: I like cron, but not in combination with wget. I have found this (poking methods via http) to be problematic for me in the past with automated tasks, and have mostly switched over my processes to using out-of-process temporary ZEO-enabled Zope.app() instances in python modules executed by cron jobs. More info on my comparitive thoughts wget vs. Zope.app(), and example code: http://article.gmane.org/gmane.comp.web.zope.plone.user/2490 http://mail.zope.org/pipermail/zope/2003-February/131882.html Sean -----Original Message----- From: Josef Meile [mailto:jmeile@hotmail.com] Sent: Monday, March 03, 2003 11:23 AM To: zope@zope.org Subject: [Zope] Re: How to run periodic processes - How to set Mail Host > [Juan Emilio Drault wrote (juan@l...) on 3/3/03 10:05 AM] > > hi > > > How to run periodic processes inside Zope? > > I need it to run a process that sends E-mail every hour. > > you can use the XRON product but a better solution would be to use Cron > (Unix/Linux). I would also recommend you Cron. Once I used XCron and my system crashed everytime without finishing the XCron Method (It wasn't a Xron issue, but it affected the XCron Schedule). When Zope tried to restart, it tried to excecute the XCron Method again, so I got another email. It did it till I opened my email box (I got 500 emails). With Cron and wget this won't happen because unix/linux finish the excecution of the method without caring if it whether crashes or not. Regards, Josef _______________________________________________ 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 ) From jccooper@jcameroncooper.com Mon Mar 3 19:48:17 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Mon, 03 Mar 2003 13:48:17 -0600 Subject: [Zope] restoring deleted data In-Reply-To: <3E63A82D.4090101@jcameroncooper.com> References: <413368CBF863D411BD560050BA8F75390181162F@FPASERVER> <3E63A82D.4090101@jcameroncooper.com> Message-ID: <3E63B181.6040007@jcameroncooper.com> > > >> When I came in last week, I found that my system administrator had >> completely deleted my version of zope. Everything was gone - the >> server, >> the installation program, the supporting software, ect.... >> >> I was just wondering if there was a way to recover any of my code or to >> restore the site, without re-doing everything. If there is >> documentation >> about this on one of the zope sites, feel free to point me to it. > > Yikes. Well, unless your sysadmin also made a backup, I'm afraid > you're out of luck unless: Oh, and also I recommend you skin your sysadmin for wantonly deleting your data. --jcc From list_subscriber@neurobs.com Mon Mar 3 20:30:03 2003 From: list_subscriber@neurobs.com (AM) Date: Mon, 03 Mar 2003 12:30:03 -0800 Subject: [Zope] 3rd party eloctronic payment solutions Message-ID: <3E63BB4B.1040406@neurobs.com> Does anybody have any experience with integrating third party electronic payment solutions with a zope site? If yes which one would you recommend? ANs how hard or easy is it to do it? Thanks AM -- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ================================================================== From jccooper@jcameroncooper.com Mon Mar 3 20:34:23 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Mon, 03 Mar 2003 14:34:23 -0600 Subject: [Zope] Help Needed - Case for Zope In-Reply-To: References: Message-ID: <3E63BC4F.9020207@jcameroncooper.com> There are some numbers here: http://www.zope.org/Members/BwanaZulia/zope_benchmarks/benchmarks.html --jcc From zope@dylanreinhardt.com Mon Mar 3 20:38:18 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Mon, 03 Mar 2003 12:38:18 -0800 Subject: [Zope] restoring deleted data In-Reply-To: <3E63A82D.4090101@jcameroncooper.com> References: <413368CBF863D411BD560050BA8F75390181162F@FPASERVER> <413368CBF863D411BD560050BA8F75390181162F@FPASERVER> Message-ID: <5.1.1.6.0.20030303123008.01da21e0@pop3.spa.norton.antivirus> At 11:08 AM 3/3/2003, J Cameron Cooper wrote: >>When I came in last week, I found that my system administrator had >>completely deleted my version of zope. Everything was gone - the server, >>the installation program, the supporting software, ect.... >> >>I was just wondering if there was a way to recover any of my code or to >>restore the site, without re-doing everything. If there is documentation >>about this on one of the zope sites, feel free to point me to it. >> >Yikes. Well, unless your sysadmin also made a backup, I'm afraid you're >out of luck unless: What everyone else said, plus: If you're running Windoze (not that I have any reason to suspect you are...) I've used R-Studio as a file recovery tool with great results in the past. It supports not only FAT32, but also trickier stuff like NTFS, ext2, RAID and other schemes. It isn't free, but they do have a demo version that will show you the files you'll be able to recover with the commercial version. When I needed it, it was the best $80 I've ever spent. http://www.r-studio.com/ HTH, Dylan From zope@dylanreinhardt.com Mon Mar 3 20:43:30 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Mon, 03 Mar 2003 12:43:30 -0800 Subject: [Zope] 3rd party eloctronic payment solutions In-Reply-To: <3E63BB4B.1040406@neurobs.com> Message-ID: <5.1.1.6.0.20030303123836.01d74ec8@pop3.spa.norton.antivirus> At 12:30 PM 3/3/2003, AM wrote: >Does anybody have any experience with integrating third party electronic >payment solutions with a zope site? >If yes which one would you recommend? >ANs how hard or easy is it to do it? I've integrated with Authorize.Net without much difficulty. There are Python scripts available at SourceForge for several common gateways that were pretty easy to adapt to this purpose: http://sourceforge.net/projects/payment/ The hardest part of the whole thing isn't integration with the gateway, but building a secure client interface, implementing SSL and making a determination about how to store the resulting data securely. HTH, Dylan From dieter@handshake.de Mon Mar 3 19:56:46 2003 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 3 Mar 2003 20:56:46 +0100 Subject: [Zope] dynamically generated TAL not being interpreted In-Reply-To: <20030302044639.GD11213@cise.ufl.edu> References: <20030302044639.GD11213@cise.ufl.edu> Message-ID: <15971.45950.565229.839572@gargle.gargle.HOWL> N. Thomas wrote at 2003-3-1 23:46 -0500: > We have a script that generates TAL. The problem is that the content is > not being interpeted as TAL by Zope, but rather as raw HTML. > > A search through the mailing lists archives found a posting from last > September where someone was trying to do something similar. According to > one of the replies, the HTML is supposed to have the TAL namespace > declaration, so I changed my code to produce something like this at the > top: > > metal:use-macro="here/main_template/macros/master"> > > But the problem persists. > > Does anyone know how I can do this? You cannot return TAL source code and expect it to be rendered. You must make a Page Template object from your TAL source code, wrap it in an appropriate context (--> "__of__") and return it (or call it to let it render). You can do this only in an External Method (or other filesystem based code). Dieter From dieter@handshake.de Mon Mar 3 19:52:42 2003 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 3 Mar 2003 20:52:42 +0100 Subject: [Zope] ZODB Conflict errors In-Reply-To: <1046550993.1356.17.camel@tempest.swamp> References: <1046550993.1356.17.camel@tempest.swamp> Message-ID: <15971.45706.129729.265917@gargle.gargle.HOWL> Mike Heath wrote at 2003-3-1 13:36 -0700: > We're getting repeated ZODB conflict errors. They seam to only be > occurring using frames when we have multiple users accessing the page at > the same time. What is causing this? We're not doing any modifications > to objects in the Zope database. Almost surely, it is the session machinery. If it is, there is not much you can do about this. Try to use session only when really necessary. Howfully, a session access in not necessary in each of your frames. Dieter From dieter@handshake.de Mon Mar 3 19:58:58 2003 From: dieter@handshake.de (Dieter Maurer) Date: Mon, 3 Mar 2003 20:58:58 +0100 Subject: [Zope] Adaptable Storage Problem In-Reply-To: References: Message-ID: <15971.46082.413051.317828@gargle.gargle.HOWL> Andrew Veitch wrote at 2003-3-2 20:52 +0000: > I've got a problem with AdaptableStorage. If I set up a folder with > AdaptableStorage I can add a CMF site to it but not a Plone site. I get: > .... > RuntimeError: Unable to pickle the '_catalog' attribute, at 99526d0>, of at > ('/fs/test2/portal_catalog',). Cannot pickle Acquisition.ImplicitAcquirerWrapper at 40233ca0> objects. > > I don't understand how a portal_catalog won't pickle with AdaptableStorage > but will with the ZODB. This was today explained in "zope-dev@zope.org". Please read its archive. Dieter From sameer_@email.com Mon Mar 3 22:05:08 2003 From: sameer_@email.com (sameer chaudhry) Date: Mon, 03 Mar 2003 17:05:08 -0500 Subject: [Zope] dtml files in dtml files? getting frames to work on a simple Product Message-ID: <20030303220508.28862.qmail@email.com> I am trying to write a simple web based chat server Product. The interface is simple with a frame for entering text, and another frame for viewing the chat so far. My problem is that in a dtml file, I put links to two other dtml files (those being the two frames), and the frames don't show up. How can I make this work? -- _______________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Meet Singles http://corp.mail.com/lavalife From dario@ita.chalmers.se Mon Mar 3 22:21:35 2003 From: dario@ita.chalmers.se (=?iso-8859-1?Q?Dario_Lopez-K=E4sten?=) Date: Mon, 3 Mar 2003 23:21:35 +0100 Subject: [Zope] Zope+Oracle efficieny (was Re: [Zope-DB] ANN: eGenix mxODBC Zope Database Adapter, Version 1.0.0) References: <222114854.1046591589@[192.168.1.2]> Message-ID: <00fe01c2e1d3$40b66700$4bdf1081@WALTER> ----- Original Message ----- From: "Paul Browning" > --On 28 February 2003 18:55 +0100 "M.-A. Lemburg" wrote: > > > > Can someone who has a deeper understanding of this area than > I please contrast (ideally against the mxODBC Zope DA feature list) > things with ZOracleDA/DCOracle2? > > The links from took me eventually to > > and the "Oracle ODBC Performance - Faster than Native" stuff. > > >From birth I've always been told ODBC is sloooowww .... don't go > there. Might mxODBC Zope DA offer advantages to Zope/Oracle sites? > > We've had a tortured history with Zope+Oracle+Solaris (cf. > ) and are about to > side-step this by going Zope+Oracle+Linux. > > But the Oracle bit (i.e. ZOracleDA/DCOracle2) of the equation still > looks dubious from time to time and so hence my questions. > well, I am no expert either but AFAIK Oracle uses SQL*NET for ODBC communications (ODBC sits on top of SQL*NET). Not sure if this is slower or not. I also have the impression that ODBC is slower per se, but perhaps coupled with better connection pooling it makes mxODBC faster? Nad how would mxODBC's pooling differ from Zope's "pooling" of connections by keping them open? I understand from previous mailexchange that the preformance of a heavly DB driven (DB=RDBMS) is in part defined by the amount of ZODB-connections as well as the amount of threads available to the Zope-process. I wonder though if the *sheer number* of active/connected ZOracleDA objects in the ZODB has some relevance to those numbers (ie. more open DA objects means increase threads and/or ZODB connections?). I have not read any specific numbers and I have yet to begin to understand how the amount of ZODB connections has an impact on the usage of ZOracleDA connections/objects. We do have experienced problems when using many connections to different schemas and I know that at least one more person has experienced similar problems (mem leaks, etc). Some of them wnet away as we reduced the amount of DA objects. Also, I would like to know how the kind of connection pooling that mxODBC uses benefits Zope. Does it spawn it's own threads in an external process or how does it work? Would it be possible to increase the performance of DCOracle2 by using similar tchniques? Thanks, /dario From nhavar@hotmail.com Mon Mar 3 22:22:12 2003 From: nhavar@hotmail.com (Michael Havard) Date: Mon, 03 Mar 2003 22:22:12 +0000 Subject: [Zope] Python calling python? Message-ID: Somebody make this simple for me. I have two python scripts (internal not external). I want to call the first script using DTML/ZPT. I have no problem in that regard... BUT... I want to call then use th first script to call the second script. As soon as I try to include that functionality it falls apart. If I try to import I get 'not authorized'. If I try to access it the same way I do ZSQL methods 'context.whatevername()' I get "whatevername" not defined. What am I missing? Is it a security thing? Did I miss some important piece of documentation? _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From Francois@iecholden.com Mon Mar 3 22:22:30 2003 From: Francois@iecholden.com (Meehan, Francois) Date: Mon, 3 Mar 2003 17:22:30 -0500 Subject: [Zope] Installing PIL on binary dist. of Zope 2.6.1 on Linux... Message-ID: <7190BF5EB309D511A15600508BF18D83560EC4@exchange.iecholden.com> Hi all, I need to install PIL on a Zope server, that was installed from a binary distribution. How can I install PIL in the Python version that came with Zope? Francois From zope@dylanreinhardt.com Mon Mar 3 22:45:34 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Mon, 03 Mar 2003 14:45:34 -0800 Subject: [Zope] dtml files in dtml files? getting frames to work on a simple Product In-Reply-To: <20030303220508.28862.qmail@email.com> Message-ID: <5.1.1.6.0.20030303143745.01da33a0@pop3.spa.norton.antivirus> At 02:05 PM 3/3/2003, sameer chaudhry wrote: >I am trying to write a simple web based chat server Product. The >interface is simple with a frame for entering text, and another frame for >viewing the chat so far. My problem is that in a dtml file, I put links >to two other dtml files (those being the two frames), and the frames don't >show up. How can I make this work? There's no reason this shouldn't work if you're setting up frames correctly in HTML. For example, say you had something like this as your index_html: If you have dtml methods called content_method and footer_method at the path specified, it should work fine. If your problem is targeting frames with your links, look into the name="foo" attribute of or the target="foo" attribute of . If that's not what you're doing or there is some fancier intention at work, it's tough to say what's going wrong unless you post your code and/or some details on what problems and/or errors you're seeing. Dylan From pw_lists@slinkp.com Mon Mar 3 22:40:26 2003 From: pw_lists@slinkp.com (Paul Winkler) Date: Mon, 3 Mar 2003 17:40:26 -0500 Subject: [Zope] Python calling python? In-Reply-To: References: Message-ID: <20030303224026.GB1957@slinkp.com> On Mon, Mar 03, 2003 at 10:22:12PM +0000, Michael Havard wrote: > script to call the second script. As soon as I try to include that > functionality it falls apart. If I try to import I get 'not authorized'. they're not modules anyway, so importing them could never work... > If > I try to access it the same way I do ZSQL methods 'context.whatevername()' > I get "whatevername" not defined. that should work. check your spelling, and that script1 can acquire script2. -- Paul Winkler http://www.slinkp.com From David.Bear@asu.edu Mon Mar 3 23:04:20 2003 From: David.Bear@asu.edu (David Bear) Date: Mon, 3 Mar 2003 16:04:20 -0700 Subject: [Zope] plone problem Message-ID: <20030303160420.F6160@asu.edu> just installed plone. I unzip/tarred it and put symlinks in my Products directory to all the CMFPl* folders created by tar. However, there are problems. Here's the traceback printed with zope starts. The error's don't appear critical as zope is still running. I just haven't created in plone objects yet. Any advice? ================================ 2003-03-03T15:41:53 ERROR(200) Zope Could not import Products.ActivePak Traceback (innermost last): File /home/httpd/zoperoot/lib/python/OFS/Application.py, line 541, in import_product File /home/httpd/zoperoot/lib/python/Products/ActivePak/__init__.py, line 2, in ? File /home/httpd/zoperoot/lib/python/Products/CMFPlone/__init__.py, line 3, in ? File /home/httpd/zoperoot/lib/python/Products/CMFPlone/migrations/__init__.py, line 4, in ? File /home/httpd/zoperoot/lib/python/Products/CMFPlone/migrations/rc1_rc2.py, line 4, in ? File /home/httpd/zoperoot/lib/python/Products/CMFPlone/Portal.py, line 14, in ? ImportError: No module named CMFCalendar.Extensions ------ -- David Bear College of Public Programs/ASU Mail Code 0803 From jccooper@jcameroncooper.com Mon Mar 3 23:05:20 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Mon, 03 Mar 2003 17:05:20 -0600 Subject: [Zope] dtml files in dtml files? getting frames to work on a simple Product In-Reply-To: <20030303220508.28862.qmail@email.com> References: <20030303220508.28862.qmail@email.com> Message-ID: <3E63DFB0.2020603@jcameroncooper.com> > > >I am trying to write a simple web based chat server Product. The interface is simple with a frame for entering text, and another frame for viewing the chat so far. My problem is that in a dtml file, I put links to two other dtml files (those being the two frames), and the frames don't show up. How can I make this work? > > Beats me. What you just wrote could mean you're doing any number of things. If you show us your source, maybe someone can spot the error. But since I like shooting in the dark, you should be doing something like this fragment: Remember that the frameset takes a URL, not content. That's what the DTML above gives you (in two different syntaxes) for 'frame1' and 'frame2'. For relative links, I suppose you could also say Notice that here there's no DTML involved. Note: This is all untested. But it should work. Also note: don't use frames if you can get away with it. Frames are bad. --jcc From allison@sumeru.stanford.EDU Mon Mar 3 23:12:00 2003 From: allison@sumeru.stanford.EDU (Dennis Allison) Date: Mon, 3 Mar 2003 15:12:00 -0800 (PST) Subject: [Zope] Python calling python? In-Reply-To: Message-ID: On Mon, 3 Mar 2003, Michael Havard wrote: > Somebody make this simple for me. I have two python scripts (internal not > external). I want to call the first script using DTML/ZPT. I > have no problem in that regard... BUT... I want to call then use th first > script to call the second script. As soon as I try to include that > functionality it falls apart. If I try to import I get 'not authorized'. If > I try to access it the same way I do ZSQL methods 'context.whatevername()' I > get "whatevername" not defined. > > What am I missing? Is it a security thing? Did I miss some important piece > of documentation? You can call another acquirable python script using context.otherscript(arg,...) From allison@sumeru.stanford.EDU Mon Mar 3 23:14:04 2003 From: allison@sumeru.stanford.EDU (Dennis Allison) Date: Mon, 3 Mar 2003 15:14:04 -0800 (PST) Subject: [Zope] Installing PIL on binary dist. of Zope 2.6.1 on Linux... In-Reply-To: <7190BF5EB309D511A15600508BF18D83560EC4@exchange.iecholden.com> Message-ID: On Mon, 3 Mar 2003, Meehan, Francois wrote: > Hi all, > > I need to install PIL on a Zope server, that was installed from a binary > distribution. How can I install PIL in the Python version that came with > Zope? > Follow the instructions that come with the PIL distribution but use the python used by the binary distribution $INSTANCE_HOME/bin/python usually. From jccooper@jcameroncooper.com Mon Mar 3 23:16:26 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Mon, 03 Mar 2003 17:16:26 -0600 Subject: [Zope] Python calling python? In-Reply-To: References: Message-ID: <3E63E24A.1010400@jcameroncooper.com> > If I try to import I get 'not authorized'. Import is not available in Python Scripts. So it's never authorized. > If I try to access it the same way I do ZSQL methods > 'context.whatevername()' I get "whatevername" not defined. That should work if 'whatevername' is in 'context'. Find out what 'context' is and make sure it acquires 'whatevername'. Depending on your organization, 'container' may be better, as it is more explicit. --jcc From sameer_@email.com Mon Mar 3 23:24:00 2003 From: sameer_@email.com (sameer chaudhry) Date: Mon, 03 Mar 2003 18:24:00 -0500 Subject: [Zope] do I need to build a product for this? Message-ID: <20030303232400.21219.qmail@email.com> I have done this using products but I'm wonder if the following is easier done within the Zope machinery. I want to have a python list at a URL say: some_server/list I want to update that list by appending a line of text to it by going to the URL: someserver/list/updatelist I want to see the updated list by going to the URL: someserver/list/viewlist. Is this possible without building a Product which supports the persistence of the list? -- _______________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Meet Singles http://corp.mail.com/lavalife From fearless_froggie@yahoo.com Tue Mar 4 00:23:16 2003 From: fearless_froggie@yahoo.com (Fearless Froggie) Date: Mon, 3 Mar 2003 16:23:16 -0800 (PST) Subject: [Zope] Getting metatype information Message-ID: <20030304002316.2338.qmail@web21408.mail.yahoo.com> Hi, If I have an address such as the following: an_address = context.REQUEST['URL2'] How would I get the metatype of the object "an_address" is pointing to? I have the feeling that it shouldn't be too difficult, but I just can't seem to wrap my head around it! Many thanks, Rita. __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ From zope@dylanreinhardt.com Tue Mar 4 00:30:03 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Mon, 03 Mar 2003 16:30:03 -0800 Subject: [Zope] do I need to build a product for this? In-Reply-To: <20030303232400.21219.qmail@email.com> Message-ID: <5.1.1.6.0.20030303162617.01d26ba8@pop3.spa.norton.antivirus> At 03:24 PM 3/3/2003, sameer chaudhry wrote: >I have done this using products but I'm wonder if the following is easier >done within the Zope machinery. > >I want to have a python list at a URL say: some_server/list > >I want to update that list by appending a line of text to it by going to >the URL: someserver/list/updatelist > >I want to see the updated list by going to the URL: >someserver/list/viewlist. > >Is this possible without building a Product which supports the persistence >of the list? Yep. If all you want to do is maintain a single list, just make that data the property of some object. Then create methods that set/edit/view that information. Only if you're looking to stamp out a large number of objects that maintain separate lists will products be the easier way to go. HTH, Dylan From zope@dylanreinhardt.com Tue Mar 4 00:45:29 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Mon, 03 Mar 2003 16:45:29 -0800 Subject: [Zope] Getting metatype information In-Reply-To: <20030304002316.2338.qmail@web21408.mail.yahoo.com> Message-ID: <5.1.1.6.0.20030303163027.01d26528@pop3.spa.norton.antivirus> At 04:23 PM 3/3/2003, Fearless Froggie wrote: >Hi, > >If I have an address such as the following: > >an_address = context.REQUEST['URL2'] > >How would I get the metatype of the object >"an_address" is pointing to? Assuming that the last object referenced in the URL represents the object in question, you can use the following in a Python Script: my_obj_name = context.REQUEST['URL'][len(context.REQUEST['URL1'])+1:] return context[my_obj_name].meta_type HTH, Dylan From shepnorfleet@comcast.net Tue Mar 4 01:29:19 2003 From: shepnorfleet@comcast.net (Sheppard Norfleet) Date: Mon, 03 Mar 2003 20:29:19 -0500 Subject: [Zope] Zope Installation Problems Message-ID: <001601c2e1ed$7a5402a0$0202a8c0@peanut> This is a multi-part message in MIME format. --Boundary_(ID_1dnBcXE5TE9dkF6O9V/IBQ) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT I am using Rad Hat Linux 7.x. which comes with python 2.2 not the problem. I have Zope that has a python 2.1 one with it. when I try to build w_pcgi.py using the python that comes with zope, I get compile errors when trying to build the exception modules, the last message has a message like "I and PICKY raiseError" There are a ton of warning and a few errors sprinkled in a compiler output (or at least it looks like that). Anyway I have been working at this installation for about a week, I have tried a source install and binary install. No matter which way I go zope fails to build using the 2.1 python that comes with it. Has anyone else had these problems? Trying to run Zope like this: bin/python z2.py -p /usr/local/apache/cgi-bin/zope.pcgi all I get in return is a new bash prompt wiht no warnings. the log files are empty or don't exist. Please help! BTW, don't mean to knock mailing lists but wouldnt forums be a lot easier way to communicate? Just a thought... --Boundary_(ID_1dnBcXE5TE9dkF6O9V/IBQ) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: 7BIT
    I am using Rad Hat Linux 7.x.  which comes with python 2.2 not the problem.  I have Zope that has a python 2.1 one with it.  when I try to build w_pcgi.py using the python that comes with zope, I get compile errors when trying to build the exception modules, the last message has a message like "I and PICKY raiseError" 
     
    There are a ton of warning and a few errors sprinkled in a compiler output (or at least it looks like that).  
     
    Anyway I have been working at this installation for about a week, I have tried a source install and binary install.  No matter which way I go zope fails to build using the 2.1 python that comes with it. 
     
    Has anyone else had these problems?  Trying to run Zope like this:
    bin/python z2.py -p /usr/local/apache/cgi-bin/zope.pcgi
     
    all I get in return is a new bash prompt wiht no warnings.  the log files are empty or don't exist.  Please help!
     
    BTW, don't mean to knock mailing lists but wouldnt forums be a lot easier way to communicate?  Just a thought...
    --Boundary_(ID_1dnBcXE5TE9dkF6O9V/IBQ)-- From chris@d-designz.co.nz Tue Mar 4 01:55:50 2003 From: chris@d-designz.co.nz (Chris Beaven) Date: Tue, 04 Mar 2003 14:55:50 +1300 Subject: [Zope] Zope 2.6.1 changed default number format In-Reply-To: References: Message-ID: <3E6407A6.90105@d-designz.co.nz> I just tried a DTML in 2.6.1 and it looked like everything was working as it should: Returned: 0 3 3.0 Ed Crewe wrote: >Hi, > >Rather than do uneccesary work can I just enquire about >whether recent numeric handling changes in Zope 2.6.1 are intentional or >might they be reversed? > >Zope 2.6.1 has changed the default dtml number display format from >integer to one decimal place floating point. >This breaks any sites that use dtml integer display. > >Was this a deliberate change? If so what is the recommended solution for >replacing dtml such as >Should all dtml integer rendering be replaced with > >fmt="%i">0 > >or is there an economical way of displaying an integer in dtml? > >Thanks, >Ed Crewe > > __________________________________________________________________ > Ed Crewe ( Web Developer - ID Group ) ed.crewe@bris.ac.uk > Institute for Learning and Research Technology ILRT > University of Bristol Information Services +44 117 9287083 > 8-10 Berkeley Square, Bristol, BS8 1HH http://www.ilrt.bris.ac.uk > > >_______________________________________________ >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 ) > > > From tree@basistech.com Tue Mar 4 05:13:39 2003 From: tree@basistech.com (Tom Emerson) Date: Tue, 4 Mar 2003 00:13:39 -0500 Subject: [Zope] Finding owner of an object Message-ID: <15972.13827.263783.814537@magrathea.basistech.com> Greetings, I have a folder of files (think the FileLibrary example), where files may be owned by different people. In a ZPT I would like to limit the set of files that are displayed to those owned by the current user. I can't find a way to get the owner of a given object: what am I missing? For example, I use container.Submissions.objectValues('File') to get the set of files in the Submissions folder. Is there a method I can call on each File object to get its owner? TIA, -tree -- Tom Emerson Basis Technology Corp. Software Architect http://www.basistech.com "Beware the lollipop of mediocrity: lick it once and you suck forever" From ssmith@mustang1965.com Tue Mar 4 06:18:03 2003 From: ssmith@mustang1965.com (Steven Smith) Date: Tue, 04 Mar 2003 01:18:03 -0500 Subject: [Zope] how to test to find image Message-ID: <3E64451B.9020608@mustang1965.com> I'm email this list again since several were nice enough to respond last time. I new and this list is helpful. I'm in Plone and want to display an image at the top of a UI box (like to top of the related or navigation box). However this image needs to change depending on what subfolder/branch I'm at. Normally I have seen the use of the tag "here/myimage.gif". My understanding is the default is to start at the top most directory and work its way through the site until it finds the first occurance of myimage.gif. I would like to reverse this behavior. I need it to start looking in the current location and work upwards until it finds myimage.gif. The reason is that under each of my first level subfolders I have placed a myimage.gif file. Even if I'm maybe four folders down I want to display that myimage.gif from the current branch (which my be three folders up). However if the normal logic of 'here' works it will find the wrong myimage.gif.
    Thanks, Steven From lsh@wo.cz Mon Mar 3 18:08:15 2003 From: lsh@wo.cz (Jaroslav Lukesh) Date: Mon, 3 Mar 2003 18:08:15 -0000 Subject: [Zope] STX - how to add new function Message-ID: Hi all, I want to add into STX two new functions - line break with syntax: paragraph text ;; linebreak text And blockquote tag ,, This is indented paragraph (tag marks should be other) I'm not big pythonist, would someone help me with that, please. Many thanks, J. Lukesh From Andreas Jung Tue Mar 4 07:11:32 2003 From: Andreas Jung (Andreas Jung) Date: Tue, 04 Mar 2003 08:11:32 +0100 Subject: [Zope] STX - how to add new function In-Reply-To: References: Message-ID: <1043400.1046765492@[0.0.0.2]> Checkout lib/python/StructuredText/DocumentClass.py. But I recommend to keep your fingers from the code unless you really know what you are doing. -aj --On Montag, 3. M=E4rz 2003 18:08 +0000 Jaroslav Lukesh =20 wrote: > Hi all, > > I want to add into STX two new functions - > > line break with syntax: > > paragraph text > > ;; linebreak text > > > And blockquote tag > > ,, This is indented paragraph > > (tag marks should be other) > > I'm not big pythonist, would someone help me with that, please. > > Many thanks, > > J. Lukesh > > _______________________________________________ > 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 ) --=20 --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From alet@librelogiciel.com Tue Mar 4 09:22:06 2003 From: alet@librelogiciel.com (Jerome Alet) Date: Tue, 4 Mar 2003 10:22:06 +0100 Subject: [Zope] persistent object with non-persistent attributes Message-ID: <20030304092206.GA1145@mail.librelogiciel.com> Hi, I would like to create a python Zope product which allows me to create persistent objects. but these objects have (as subobjects ?) complex attributes which are themselves instances of a non-Zope related class, and which should not be persistent (think hardware plug&play), because they are recreated every time a method is called on my instance. I think I could do (untested) : myZopePersistentClassInstance.complexAttr = myNonZopeClass() but this will probably, if it works, bloat by ZODB. is there a way to do this without suffering from severe bloat ? thanks in advance PS: I know this may not be very clear... Jerome Alet -- (c) 1928-???? The letters U, S, and A and the U.S.A. flag are the copyrighted property of Disney Enterprises Inc. Any infringment will be punished with the death penalty. Details : http://yro.slashdot.org/article.pl?sid=03/01/15/1528253&tid=123 From tdickenson@geminidataloggers.com Tue Mar 4 09:30:53 2003 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Tue, 4 Mar 2003 09:30:53 +0000 Subject: [Zope] persistent object with non-persistent attributes In-Reply-To: <20030304092206.GA1145@mail.librelogiciel.com> References: <20030304092206.GA1145@mail.librelogiciel.com> Message-ID: <200303040930.53435.tdickenson@geminidataloggers.com> On Tuesday 04 March 2003 9:22 am, Jerome Alet wrote: > Hi, > > I would like to create a python Zope product which allows me > to create persistent objects. > > but these objects have (as subobjects ?) complex attributes which > are themselves instances of a non-Zope related class, and which > should not be persistent (think hardware plug&play), because > they are recreated every time a method is called on my instance. Zope uses (by default) four publishing threads. That means you will get four copies of your objects in memory at any one time (or 8, if you have 2 zeo clients). You also have the possibility of ZODB choosing to deactivate your object, so all attributes are lost from all 4 of those objects. 'hardware plug&play' makes me think this is this what you want... Perhaps storing this special object in a module-level global would be better? > myZopePersistentClassInstance.complexAttr = myNonZopeClass() > > but this will probably, if it works, bloat by ZODB. > > is there a way to do this without suffering from severe bloat ? myZopePersistentClassInstance._v_complexAttr = myNonZopeClass() will exclude that attribute from ZODB processing. -- Toby Dickenson http://www.geminidataloggers.com/people/tdickenson From mas@semafor.ch Tue Mar 4 09:31:42 2003 From: mas@semafor.ch (Sorin Marti) Date: Tue, 04 Mar 2003 10:31:42 +0100 Subject: [Zope] How to select pictures from another folder? Message-ID: <3E64727E.50701@semafor.ch> I've got a dtml-method index. There I want to call a picture, I do it like this: That works fine... But now I want to get a picture which is in another folder. and don't work... how to do that? Thanks Sorin Marti From Ed.Crewe@bristol.ac.uk Tue Mar 4 09:40:24 2003 From: Ed.Crewe@bristol.ac.uk (Ed Crewe) Date: Tue, 4 Mar 2003 09:40:24 +0000 (GMT) Subject: [Zope] Zope 2.6.1 changed default number format In-Reply-To: <3E6407A6.90105@d-designz.co.nz> Message-ID: Hi Chris, Thanks for the response. Appologies this is my mistake. It is not a Zope version issue, it is a DCOracle issue. I have a site that is a front end to an Oracle database so nearly all data is passed via the DCOracle interface. I have just realised that DCOracle2 passes all integers as single decimal place floating points whilst DCOracle1 didn't have this bug. Thus select count(*) from an empty table returns 0.0! Similarily all the primary keys that are passed around between pages have .0 appended. I have realised the solution is to wrap every integer field in TRUNC() in all the sql methods to avoid this bug. Thus select trunc(count(*)) from table works OK. Cheers, Ed __________________________________________________________________ Ed Crewe ( Web Developer - ID Group ) ed.crewe@bris.ac.uk Institute for Learning and Research Technology ILRT University of Bristol Information Services +44 117 9287083 8-10 Berkeley Square, Bristol, BS8 1HH http://www.ilrt.bris.ac.uk On Tue, 4 Mar 2003, Chris Beaven wrote: > I just tried a DTML in 2.6.1 and it looked like everything was working > as it should: > > > > > > > > Returned: > > 0 > 3 > 3.0 > > Ed Crewe wrote: > > >Hi, > > > >Rather than do uneccesary work can I just enquire about > >whether recent numeric handling changes in Zope 2.6.1 are intentional or > >might they be reversed? > > > >Zope 2.6.1 has changed the default dtml number display format from > >integer to one decimal place floating point. > >This breaks any sites that use dtml integer display. > > > >Was this a deliberate change? If so what is the recommended solution for > >replacing dtml such as > >Should all dtml integer rendering be replaced with > > > > >fmt="%i">0 > > > >or is there an economical way of displaying an integer in dtml? > > > >Thanks, > >Ed Crewe > > > > __________________________________________________________________ > > Ed Crewe ( Web Developer - ID Group ) ed.crewe@bris.ac.uk > > Institute for Learning and Research Technology ILRT > > University of Bristol Information Services +44 117 9287083 > > 8-10 Berkeley Square, Bristol, BS8 1HH http://www.ilrt.bris.ac.uk > > > > > >_______________________________________________ > >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 ) > > > > > > > > > From Andreas Jung Tue Mar 4 09:41:46 2003 From: Andreas Jung (Andreas Jung) Date: Tue, 04 Mar 2003 10:41:46 +0100 Subject: [Zope] How to select pictures from another folder? In-Reply-To: <3E64727E.50701@semafor.ch> References: <3E64727E.50701@semafor.ch> Message-ID: <10056560.1046774505@[0.0.0.2]> --On Dienstag, 4. M=E4rz 2003 10:31 +0100 Sorin Marti = wrote: > I've got a dtml-method index. There I want to call a picture, I do it > like this: > > > > That works fine... > > But now I want to get a picture which is in another folder. > > > > and > > > > don't work... > > how to do that? -aj From Ed.Crewe@bristol.ac.uk Tue Mar 4 09:54:34 2003 From: Ed.Crewe@bristol.ac.uk (Ed Crewe) Date: Tue, 4 Mar 2003 09:54:34 +0000 (GMT) Subject: [Zope] Zope 2.6.1 changed default number format In-Reply-To: Message-ID: Hi Again, Sorry I have just realised that the bug occurs after the sql execution so trunc(2.34) may return 2 but it will come back as 2.0 via DCOracle2. Anyone found a fix for this other than explicit type formatting via dtml / external python throughout a site? Cheers, Ed __________________________________________________________________ Ed Crewe ( Web Developer - ID Group ) ed.crewe@bris.ac.uk Institute for Learning and Research Technology ILRT University of Bristol Information Services +44 117 9287083 8-10 Berkeley Square, Bristol, BS8 1HH http://www.ilrt.bris.ac.uk On Tue, 4 Mar 2003, Ed Crewe wrote: > Hi Chris, > > Thanks for the response. Appologies this is my mistake. It is not a Zope > version issue, it is a DCOracle issue. > > I have a site that is a front end to an Oracle database so nearly all > data is passed via the DCOracle interface. I have just realised that > DCOracle2 passes all integers as single decimal place floating points > whilst DCOracle1 didn't have this bug. > > Thus select count(*) from an empty table returns 0.0! > > Similarily all the primary keys that are passed around between pages > have .0 appended. > > I have realised the solution is to wrap every integer field in TRUNC() > in all the sql methods to avoid this bug. > > Thus select trunc(count(*)) from table works OK. > > Cheers, > Ed > > __________________________________________________________________ > Ed Crewe ( Web Developer - ID Group ) ed.crewe@bris.ac.uk > Institute for Learning and Research Technology ILRT > University of Bristol Information Services +44 117 9287083 > 8-10 Berkeley Square, Bristol, BS8 1HH http://www.ilrt.bris.ac.uk > > On Tue, 4 Mar 2003, Chris Beaven wrote: > > > I just tried a DTML in 2.6.1 and it looked like everything was working > > as it should: > > > > > > > > > > > > > > > > Returned: > > > > 0 > > 3 > > 3.0 > > > > Ed Crewe wrote: > > > > >Hi, > > > > > >Rather than do uneccesary work can I just enquire about > > >whether recent numeric handling changes in Zope 2.6.1 are intentional or > > >might they be reversed? > > > > > >Zope 2.6.1 has changed the default dtml number display format from > > >integer to one decimal place floating point. > > >This breaks any sites that use dtml integer display. > > > > > >Was this a deliberate change? If so what is the recommended solution for > > >replacing dtml such as > > >Should all dtml integer rendering be replaced with > > > > > > > >fmt="%i">0 > > > > > >or is there an economical way of displaying an integer in dtml? > > > > > >Thanks, > > >Ed Crewe > > > > > > __________________________________________________________________ > > > Ed Crewe ( Web Developer - ID Group ) ed.crewe@bris.ac.uk > > > Institute for Learning and Research Technology ILRT > > > University of Bristol Information Services +44 117 9287083 > > > 8-10 Berkeley Square, Bristol, BS8 1HH http://www.ilrt.bris.ac.uk > > > > > > > > >_______________________________________________ > > >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 ) > > > > > > > > > > > > > > > > > > From =?ISO-8859-15?B?R2VpciBC5mtob2x0?= Tue Mar 4 10:13:12 2003 From: =?ISO-8859-15?B?R2VpciBC5mtob2x0?= (=?ISO-8859-15?B?R2VpciBC5mtob2x0?=) Date: Tue, 4 Mar 2003 11:13:12 +0100 Subject: [Zope] How to select pictures from another folder? In-Reply-To: <3E64727E.50701@semafor.ch> References: <3E64727E.50701@semafor.ch> Message-ID: <1808033812.20030304111312@elvix.com> SM> I've got a dtml-method index. There I want to call a picture, I do it SM> like this: SM> SM> That works fine... SM> But now I want to get a picture which is in another folder. or : or : :) -- Geir B=E6kholt From alet@librelogiciel.com Tue Mar 4 10:14:56 2003 From: alet@librelogiciel.com (Jerome Alet) Date: Tue, 4 Mar 2003 11:14:56 +0100 Subject: [Zope] persistent object with non-persistent attributes In-Reply-To: <200303040930.53435.tdickenson@geminidataloggers.com> References: <20030304092206.GA1145@mail.librelogiciel.com> <200303040930.53435.tdickenson@geminidataloggers.com> Message-ID: <20030304101456.GA1927@mail.librelogiciel.com> On Tue, Mar 04, 2003 at 09:30:53AM +0000, Toby Dickenson wrote: > On Tuesday 04 March 2003 9:22 am, Jerome Alet wrote: > > Zope uses (by default) four publishing threads. That means you will get four > copies of your objects in memory at any one time (or 8, if you have 2 zeo > clients). You also have the possibility of ZODB choosing to deactivate your > object, so all attributes are lost from all 4 of those objects. > > 'hardware plug&play' makes me think this is this what you want... Perhaps > storing this special object in a module-level global would be better? but I must be sure that only one thread deals with the hardware at a time. > > myZopePersistentClassInstance.complexAttr = myNonZopeClass() > > > > but this will probably, if it works, bloat by ZODB. > > > > is there a way to do this without suffering from severe bloat ? > > myZopePersistentClassInstance._v_complexAttr = myNonZopeClass() > > will exclude that attribute from ZODB processing. This is perfect ! But now how can I be use that no other thread access the hardware at the same time ? (if possible a single device open at Zope start or on-demand would be fine) I actually use a CGI script for this, but I wondered if using Zope instead wouldn't make it more "reactive". Thanks in advance. Jerome Alet From lsh@wo.cz Tue Mar 4 13:15:07 2003 From: lsh@wo.cz (Jaroslav Lukesh) Date: Tue, 4 Mar 2003 13:15:07 -0000 Subject: [Zope] STX - how to add new function Message-ID: Hi Andreas, Thanks for that starting point. But I have no success with any of 3 files (it is need to be modified ClassicStructuredText.py, DocumentClass.py, HTMLClass.py) Does somebody have some modified version of STX sources or some how-to? Many thanks, J. Lukesh ---------- Odesílatel: Andreas Jung Checkout lib/python/StructuredText/DocumentClass.py. But I recommend to keep your fingers from the code unless you really know what you are doing. From =?ISO-8859-1?B?R2VpciBC5mtob2x0?= Tue Mar 4 12:25:59 2003 From: =?ISO-8859-1?B?R2VpciBC5mtob2x0?= (=?ISO-8859-1?B?R2VpciBC5mtob2x0?=) Date: Tue, 4 Mar 2003 13:25:59 +0100 Subject: [Zope] Mounted temporary folder and ZEO ? Message-ID: <19516000868.20030304132559@elvix.com> Hello Zopistas, I am using "Mounted Temporary Folder" in a chat product i am building, and it suddenly struck me that it might not behave transparently in a ZEO-cluster.. Is there any reason for me to worry ? - does it act just like a normal zope folder when it comes to ZEO-clustering? -- Geir B=E6kholt From dieter.fischer@grid-it.ch Tue Mar 4 12:47:10 2003 From: dieter.fischer@grid-it.ch (Dieter Fischer) Date: Tue, 4 Mar 2003 13:47:10 +0100 Subject: [Zope] Zope 2.6.1 changed default number format In-Reply-To: Message-ID: <000101c2e24c$2c2fd7c0$0a00a8c0@dfw> Hello This has to do with your Oracle NLS settings. Be sure that you have correct settings for all users involved, e.g. zope, apache. Check also your zope start and stop scripts. The important NLS variables are: export NLS_NUMERIC_CHARACTERS=".,"; export NLS_LANG=GERMAN_SWITZERLAND.WE8ISO8859P1 Off course your have to set them to your needs. Regards Dieter From sk@medien.fh-wiesbaden.de Tue Mar 4 12:47:02 2003 From: sk@medien.fh-wiesbaden.de (Stefan Kanitz) Date: Tue, 4 Mar 2003 13:47:02 +0100 Subject: [Zope] TTW Product Message-ID: <002901c2e24c$278fc2c0$786848c3@p4gb1> This is a multi-part message in MIME format. ------=_NextPart_000_0026_01C2E254.8947F5C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, i recently tried the ttw product from COM.lounge. It's really nice, but when i add a filetype-field in the Formulator page = and i try it in Plone i get the error message "unpickleable Object". Is this a bug or have i missed an option? Thanks! Stefan Kanitz Wiesbaden University Of Applied Sciences Dept. Of Media Management ------=_NextPart_000_0026_01C2E254.8947F5C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
    Hi all,
    i recently tried the ttw product from=20 COM.lounge.
     
    It's really nice, but when i add a = filetype-field=20 in the Formulator page and i try it in Plone i get the error message=20 "unpickleable Object".
    Is this a bug or have i missed an=20 option?
     
    Thanks!
     
     
    Stefan Kanitz
    Wiesbaden University Of Applied=20 Sciences
    Dept. Of Media Management
     
    ------=_NextPart_000_0026_01C2E254.8947F5C0-- From Andreas Jung Tue Mar 4 13:10:05 2003 From: Andreas Jung (Andreas Jung) Date: Tue, 04 Mar 2003 14:10:05 +0100 Subject: [Zope] TTW Product In-Reply-To: <002901c2e24c$278fc2c0$786848c3@p4gb1> References: <002901c2e24c$278fc2c0$786848c3@p4gb1> Message-ID: <22556554.1046787005@[0.0.0.2]> I suggest to contact the author Christian Scholz directly. -aj --On Dienstag, 4. M=E4rz 2003 13:47 +0100 Stefan Kanitz=20 wrote: > Hi all, > i recently tried the ttw product from COM.lounge. > > It's really nice, but when i add a filetype-field in the Formulator page > and i try it in Plone i get the error message "unpickleable Object". Is > this a bug or have i missed an option? > > Thanks! > > > Stefan Kanitz > Wiesbaden University Of Applied Sciences > Dept. Of Media Management --=20 --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From lmcdonnell@protonenergy.com Tue Mar 4 13:57:40 2003 From: lmcdonnell@protonenergy.com (McDonnell, Larry) Date: Tue, 4 Mar 2003 08:57:40 -0500 Subject: [Zope] Supported Processor for Zope Message-ID: <318685741A5BD31183A4006097BD8DD97AD4B5@PROSERV> Hi, After a couple of Google searches, I cannot find the answer to this question, What processors are support or have worked with Zope? I am in the process of creating some zope services for some customers. In order to keep cost down but at the same time avoid any compatibility issues, I am asking the list this question. Thanks. Larry McDonnell Proton Energy Systems 10 Technology Drive Wallingford, CT 06492 (203) 678-2181 Email:lmcdonnell@protonenergy.com www.protonenergy.com From allison@sumeru.stanford.EDU Tue Mar 4 14:10:07 2003 From: allison@sumeru.stanford.EDU (Dennis Allison) Date: Tue, 4 Mar 2003 06:10:07 -0800 (PST) Subject: [Zope] Supported Processor for Zope In-Reply-To: <318685741A5BD31183A4006097BD8DD97AD4B5@PROSERV> Message-ID: On Tue, 4 Mar 2003, McDonnell, Larry wrote: > > After a couple of Google searches, I cannot find the answer to this > question, What processors are support or have worked with Zope? I am in the > process of creating some zope services for some customers. In order to keep > cost down but at the same time avoid any compatibility issues, I am asking > the list this question. Thanks. > Can you clarify your question? What do you mean by "processors"? Zope requires Python (duh..) and C/C++ for extensions and an operating system that supports sockets with the features required by Zserver. Most folks use Squid or Apache in front of Zope which adds additional constraints. From lmcdonnell@protonenergy.com Tue Mar 4 14:12:55 2003 From: lmcdonnell@protonenergy.com (McDonnell, Larry) Date: Tue, 4 Mar 2003 09:12:55 -0500 Subject: [Zope] Supported Processor for Zope Message-ID: <318685741A5BD31183A4006097BD8DD97AD4CF@PROSERV> Hi, Sorry microprocessors (Intel, AMD, etc) -----Original Message----- From: Dennis Allison [mailto:allison@sumeru.stanford.EDU] Sent: Tuesday, March 04, 2003 9:10 AM To: McDonnell, Larry Cc: 'Zope@Zope. Org' (E-mail) Subject: Re: [Zope] Supported Processor for Zope On Tue, 4 Mar 2003, McDonnell, Larry wrote: > > After a couple of Google searches, I cannot find the answer to this > question, What processors are support or have worked with Zope? I am in the > process of creating some zope services for some customers. In order to keep > cost down but at the same time avoid any compatibility issues, I am asking > the list this question. Thanks. > Can you clarify your question? What do you mean by "processors"? Zope requires Python (duh..) and C/C++ for extensions and an operating system that supports sockets with the features required by Zserver. Most folks use Squid or Apache in front of Zope which adds additional constraints. From michael.healy@engitech.ie Tue Mar 4 14:12:54 2003 From: michael.healy@engitech.ie (=?iso-8859-1?Q?Miche=E1l_Healy?=) Date: Tue, 4 Mar 2003 14:12:54 -0000 Subject: [Zope] Using win32com from external method Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0022_01C2E258.261B06A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by lxgate1.engitech.ie id OAA08213 Hi, I want to use win32com.client in a python script which I wish to access a= s an External Method. When I run the script outside of Zope, it works fine. Then I add a method declaration, and try to add the same script as an extenal method and I get the following error: Error Type: ImportError Error Value: No module named pythoncom The import statements look like this: import pythoncom import win32com.client When I run outside Zope, I don=92t actually need to import pythoncom. I downloaded COMObject-1.0.1-nonbin.tgz and took a look at what I may nee= d to do to get it working (figured that if I could get this to work, my problem would be solved). The following is from the README.txt: =93Probably the easiest way to get the win32 extensions working with Zope= is to use your own Python, rather than the Python that comes with Zope.=94 If this is what I have to do, then how? I=92ve looked for anything on th= is, but it=92s not the easiest thing to search for. If I do this, will I sti= ll be able to access the things I have added in the \Zope\lib\python\Products, such as TinyTable, Calendar and ZGDChart? Thanks for any help, Miche=E1l Miche=E1l Healy Engitech Ltd. 01 6204 516 ------=_NextPart_000_0022_01C2E258.261B06A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

    Hi,

     

    I want to use win32com.client in a = python script which I wish to access as an External Method.  When I run the script outside of Zope, it works = fine.  Then I add a method = declaration, and try to add the same script as an extenal method and I get the following = error:

     

    Error Type: = ImportError
    Error Value: No module named = pythoncom

     

    The import statements look like = this:

     

    import = pythoncom

    import = win32com.client

     

    When I run outside Zope, I = don’t actually need to import pythoncom.

     

     

    I downloaded = COMObject-1.0.1-nonbin.tgz and took a look at what I may need to do to get it working (figured that if = I could get this to work, my problem would be solved). The following is from the README.txt:

     

    “Probably the easiest way to = get the win32 extensions working with Zope is to use your own Python, rather than the = Python that comes with Zope.”

     

    If this is what I have to do, then = how?  I’ve looked for anything = on this, but it’s not the easiest thing to search for.  If I do this, will I still be able to access the things I have = added in the \Zope\lib\python\Products, such as TinyTable, Calendar and = ZGDChart?

     

    Thanks for any = help,

     

    Miche=E1l

     

     

    Miche=E1l Healy

    Engitech Ltd.

    01 6204 516

     

    ------=_NextPart_000_0022_01C2E258.261B06A0-- From Andreas Jung Tue Mar 4 14:21:11 2003 From: Andreas Jung (Andreas Jung) Date: Tue, 04 Mar 2003 15:21:11 +0100 Subject: [Zope] Supported Processor for Zope In-Reply-To: <318685741A5BD31183A4006097BD8DD97AD4B5@PROSERV> References: <318685741A5BD31183A4006097BD8DD97AD4B5@PROSERV> Message-ID: <26821667.1046791271@[0.0.0.2]> Zope is independent of the CPU. It runs on most Unixes, Windows and Mac. -aj --On Dienstag, 4. M=E4rz 2003 08:57 -0500 "McDonnell, Larry"=20 wrote: > > Hi, > > After a couple of Google searches, I cannot find the answer to this > question, What processors are support or have worked with Zope? I am in > the process of creating some zope services for some customers. In order > to keep cost down but at the same time avoid any compatibility issues, I > am asking the list this question. Thanks. > > > Larry McDonnell > > Proton Energy Systems > 10 Technology Drive > Wallingford, CT 06492 > (203) 678-2181 > Email:lmcdonnell@protonenergy.com > www.protonenergy.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 ) --=20 --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From chrism@zope.com Tue Mar 4 14:29:41 2003 From: chrism@zope.com (Chris McDonough) Date: 04 Mar 2003 09:29:41 -0500 Subject: [Zope] Mounted temporary folder and ZEO ? In-Reply-To: <19516000868.20030304132559@elvix.com> References: <19516000868.20030304132559@elvix.com> Message-ID: <1046788181.1417.2.camel@james> No it does not. You need to read the Zope Book 2.6 edition sessioning chapter (e.g. " Instantiating a Transient Object Container") to find out more info. On Tue, 2003-03-04 at 07:25, Geir B=E6kholt wrote: > Hello Zopistas, >=20 > I am using "Mounted Temporary Folder" in a chat product i am building, > and it suddenly struck me that it might not behave transparently in a > ZEO-cluster.. Is there any reason for me to worry ? - does it act just > like a normal zope folder when it comes to ZEO-clustering? >=20 > -- > Geir B=E6kholt >=20 >=20 > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists -=20 > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From allison@sumeru.stanford.EDU Tue Mar 4 14:31:55 2003 From: allison@sumeru.stanford.EDU (Dennis Allison) Date: Tue, 4 Mar 2003 06:31:55 -0800 (PST) Subject: [Zope] Supported Processor for Zope In-Reply-To: <318685741A5BD31183A4006097BD8DD97AD4CF@PROSERV> Message-ID: On Tue, 4 Mar 2003, McDonnell, Larry wrote: > Hi, > > Sorry microprocessors (Intel, AMD, etc) > Zope, for the most part, has no machine dependencies. As long as the needed OS support, Python, and a suitable C/C++ compiler are there, you should have no problem. From pw_lists@slinkp.com Tue Mar 4 14:26:59 2003 From: pw_lists@slinkp.com (Paul Winkler) Date: Tue, 4 Mar 2003 09:26:59 -0500 Subject: [Zope] how to test to find image In-Reply-To: <3E64451B.9020608@mustang1965.com> References: <3E64451B.9020608@mustang1965.com> Message-ID: <20030304142659.GA2554@slinkp.com> On Tue, Mar 04, 2003 at 01:18:03AM -0500, Steven Smith wrote: > the use of the tag "here/myimage.gif". My understanding is the default > is to start at the top most directory and work its way through the site > until it finds the first occurance of myimage.gif. I would like to > reverse this behavior. I need it to start looking in the current > location and work upwards until it finds myimage.gif. either your understanding is wrong, or you're using "upwards" to mean the reverse of what it means to me. A/ - myimage.gif - B/ - C/ - myimage.gif - mypage If mypage is a zpt that contains , then when you view A/C/mypage, the image will be A/C/myimage.gif. > > The reason is that under each of my first level subfolders I have placed > a myimage.gif file. Even if I'm maybe four folders down I want to > display that myimage.gif from the current branch (which my be three > folders up). However if the normal logic of 'here' works it will find > the wrong myimage.gif. have you actually tried it? :) -- Paul Winkler http://www.slinkp.com From lmcdonnell@protonenergy.com Tue Mar 4 14:39:59 2003 From: lmcdonnell@protonenergy.com (McDonnell, Larry) Date: Tue, 4 Mar 2003 09:39:59 -0500 Subject: [Zope] Supported Processor for Zope Message-ID: <318685741A5BD31183A4006097BD8DD97AD50D@PROSERV> Thanks, this is what I thought but its better to throw out the question if you are unsure. -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Dennis Allison Sent: Tuesday, March 04, 2003 9:32 AM To: McDonnell, Larry Cc: 'Zope@Zope. Org' (E-mail) Subject: RE: [Zope] Supported Processor for Zope On Tue, 4 Mar 2003, McDonnell, Larry wrote: > Hi, > > Sorry microprocessors (Intel, AMD, etc) > Zope, for the most part, has no machine dependencies. As long as the needed OS support, Python, and a suitable C/C++ compiler are there, you should have no problem. _______________________________________________ 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 ) From Francois@iecholden.com Tue Mar 4 14:52:38 2003 From: Francois@iecholden.com (Meehan, Francois) Date: Tue, 4 Mar 2003 09:52:38 -0500 Subject: [Zope] RE: Installing PIL on binary dist. of Zope 2.6.1 on Linux... Message-ID: <7190BF5EB309D511A15600508BF18D83560EC6@exchange.iecholden.com> Hi, I have found the document to install PIL on zope at http://www.zope.org/Members/regebro/PIL_zope Followed instructions, worked fine. Did copy file _imaging.so and the PIL directory to my zope/lib/python. When starting zope I get 2003-03-04T09:51:31 ERROR(200) Zope Could not import Products.ZPhotoSlides Traceback (innermost last): File /home/zope-2.6.0/lib/python/OFS/Application.py, line 541, in import_product File /home/zope/lib/python/Products/ZPhotoSlides/__init__.py, line 13, in ? File /home/zope/lib/python/Products/ZPhotoSlides/ZPhotoSlides.py, line 36, in ? (Object: package_home) File /home/zope/lib/python/Products/ZPhotoSlides/photo_edition/image_modif.py, line 9, in ? (Object: os) File /home/zope/lib/python/PIL/ImageFont.py, line 80, in ? File /home/zope/lib/python/PIL/ImageFont.py, line 91, in FreeTypeFont File /home/zope/lib/python/PIL/Image.py, line 37, in __getattr__ ImportError: The _imaging C module is not installed It must be something simple, can't put the finger on it... Thanks in advance, Francois From allison@sumeru.stanford.EDU Tue Mar 4 14:56:35 2003 From: allison@sumeru.stanford.EDU (Dennis Allison) Date: Tue, 4 Mar 2003 06:56:35 -0800 (PST) Subject: [Zope] Extending Zope system code without editing Message-ID: >From time to time I want to do things to the Zope system code, for example, add a new method or override a method in a pre-existing class. Is there a good way to do this within the Zope system structure. I'd like to keep my changes isolated and use the inheritance and namespace mechanisms of Python rather than hard edits. From aaltepet@bethel.edu Tue Mar 4 15:05:33 2003 From: aaltepet@bethel.edu (Andrew Altepeter) Date: 04 Mar 2003 09:05:33 -0600 Subject: [Zope] custom authentication Message-ID: <1046790333.18949.80.camel@aslan.its.bethel.edu> Hi all! I am working on integrating zope into the single sign-on auth. server we have. To do so, I started with the cookie_validate method in exUserFolder, modified it to suit, and placed it in my custom userFolder class. Ok, so it is working great if you to a page that requires authentication. However, I have noticed a few quiry happenings here, and maybe you guys can help me out. Sometimes, if I authenticate through the sso, and try access an object my user object doesn't have access do, I am sent a 401 Unauthorized with a Basic login window. This is not what I want! If the user is logged in, but doesn't have access, I want to return a 'no access' page, and if the user is not logged not, then I want to redirect to the sso. How can I do this? Do I need to 'hack' the HTTPResponse code (methods unauthorized, _unauthorized, and possibly exception to do this)? Any help would be greatly appreciated. Thanks! Andy From pw_lists@slinkp.com Tue Mar 4 15:28:20 2003 From: pw_lists@slinkp.com (Paul Winkler) Date: Tue, 4 Mar 2003 10:28:20 -0500 Subject: [Zope] Extending Zope system code without editing In-Reply-To: References: Message-ID: <20030304152820.GC2554@slinkp.com> On Tue, Mar 04, 2003 at 06:56:35AM -0800, Dennis Allison wrote: > >From time to time I want to do things to the Zope system code, for > example, add a new method or override a method in a pre-existing class. Is > there a good way to do this within the Zope system structure. I'd like to > keep my changes isolated and use the inheritance and namespace mechanisms > of Python rather than hard edits. search zope.org for "Monkey patch" -- Paul Winkler http://www.slinkp.com From list_subscriber@neurobs.com Tue Mar 4 15:58:11 2003 From: list_subscriber@neurobs.com (AM) Date: Tue, 04 Mar 2003 07:58:11 -0800 Subject: [Zope] 3rd party eloctronic payment solutions In-Reply-To: References: Message-ID: <3E64CD13.1020108@neurobs.com> Thanks all. Unfortunately I specifically need credit card transaction=20 handlers, since that is the nature of our customer base. I will report=20 my experiences regarding the vendor I choose to the list in the hopes=20 that it might be useful to someone. AM Marc Burgauer wrote: >If you want to go down the easy route, use PayPal. They have two options= for >either single purchase items or a shopping cart. You add some HTML-form = code >to your catalogue that gets submitted to the PayPal site. > >PayPal takes care of all the payment details (SSL, card verification, et= c.). >It took me 3 hours from reading their documentation to completion to add= a >"Buy now" option to a catalogue built in Zope. > >To activate an account with PayPal, you need to give them your (or your >customers) credit card details. They will take out a small payment (in m= y >case it was =A31.95) and when you get your next statement, there's an ID= with >that payment that you need to submit at the PayPal site to activate your >account. >I accessed my credit card statement on-line and got the ID 2 days after = I >submitted my details. > >They take a small percentage off each transaction. No setup fees. > >Of course, this is not a big-scale solution! ;-) But you didn't say you = need >big and it is REALLY easy! > >The customer I have implemented this for has sold goods worth approx. >=A320'000 in its first pay-enabled month! (February 2003) So I don't thi= nk >people have a problem giving PayPal their credit card details. > >Cheers > >Marc > > > =20 > >>Does anybody have any experience with integrating third party electroni= c >>payment solutions with a zope site? >>If yes which one would you recommend? >>ANs how hard or easy is it to do it? >> >>Thanks >>AM >> =20 >> > > > > =20 > --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Aseem Mohanty =20 Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706=20 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 =09 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=09 "I saw `cout' being shifted "Hello world" times to the left and =20 stopped right there!!" -- Steve Gonedes =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 From zope@dylanreinhardt.com Tue Mar 4 16:04:01 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Tue, 04 Mar 2003 08:04:01 -0800 Subject: [Zope] how to test to find image In-Reply-To: <3E64451B.9020608@mustang1965.com> Message-ID: <5.1.1.6.0.20030304075740.01d27e90@pop3.spa.norton.antivirus> At 10:18 PM 3/3/2003, Steven Smith wrote: >My understanding is the default is to start at the top most directory and >work its way through the site until it finds the first occurance of >myimage.gif. I would like to reverse this behavior. I need it to start >looking in the current location and work upwards until it finds myimage.gif. Well... you're in luck, because the reverse of what you described is how it actually works. This would be a great time to read up on Acquisition, which is a key part of how Zope resolves requests for images and other objects. http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/Acquisition.stx http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html#c37ac15c13 http://www.zope.org/Documentation/Books/ZDG/current/Acquisition.stx HTH, Dylan From zope@dylanreinhardt.com Tue Mar 4 16:19:39 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Tue, 04 Mar 2003 08:19:39 -0800 Subject: [Zope] persistent object with non-persistent attributes In-Reply-To: <20030304092206.GA1145@mail.librelogiciel.com> Message-ID: <5.1.1.6.0.20030304080452.01cf6770@pop3.spa.norton.antivirus> At 01:22 AM 3/4/2003, Jerome Alet wrote: >I would like to create a python Zope product which allows me >to create persistent objects. > >but these objects have (as subobjects ?) complex attributes which >are themselves instances of a non-Zope related class, and which >should not be persistent (think hardware plug&play), because >they are recreated every time a method is called on my instance. Luckily for you, they won't be persisted unless you ask them to be. That's far better than the normal case where you *want* them persisted but they aren't. :-) >I think I could do (untested) : > > myZopePersistentClassInstance.complexAttr = myNonZopeClass() > >but this will probably, if it works, bloat by ZODB. In this case, that isn't what you want. Since you want the instances *not* to persist, don't use any of Zope's persistent subobjects. Let's say you have an instance of your product A, which contains subobjects B and C. You want A.B to persist but A.C to be "volatile" and revert to a particular value. Here goes: ---------------- class my_product(various_base_classes): def __init__(self, **args): self.B = my_module.my_class() C = another_module.another_class() def first_method(self): self.B = self.do_something() self._p_changed = 1 def second_method(self): self.C = self.do_something_else() ---------------- The magic assignment self._p_changed=1 triggers the persistence machinery to update its copy of your instance, recording any changes that have been made to your subobjects. The save happens at the end of the transaction and only needs to be called once per transaction... though more times aren't going to break anything. After a reload or restart, the value of A.C will probably revert to the class value for C... though if you were to change both objects in one transaction, the new value of C will get persisted as an instance variable. This is sort of a trivial example, but if you dig a bit deeper, you can exercise much finer-grained control over the whole thing. HTH, Dylan From zope@dylanreinhardt.com Tue Mar 4 16:24:25 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Tue, 04 Mar 2003 08:24:25 -0800 Subject: [Zope] STX - how to add new function In-Reply-To: Message-ID: <5.1.1.6.0.20030304082240.01d1b0b0@pop3.spa.norton.antivirus> At 05:15 AM 3/4/2003, Jaroslav Lukesh wrote: >But I have no success with any of 3 files (it is need to be modified >ClassicStructuredText.py, DocumentClass.py, HTMLClass.py) Well... what kind of non-success did you encounter? I doubt there's a how-to for modifying these files in exactly the way you want to, but if you put up what you're trying and what's going wrong, you can probably get some help. Dylan From zope@dylanreinhardt.com Tue Mar 4 16:37:08 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Tue, 04 Mar 2003 08:37:08 -0800 Subject: [Zope] Extending Zope system code without editing In-Reply-To: Message-ID: <5.1.1.6.0.20030304082726.01d3c9b0@pop3.spa.norton.antivirus> At 06:56 AM 3/4/2003, Dennis Allison wrote: > >From time to time I want to do things to the Zope system code, for >example, add a new method or override a method in a pre-existing class. Is >there a good way to do this within the Zope system structure. I'd like to >keep my changes isolated and use the inheritance and namespace mechanisms >of Python rather than hard edits. Inheritance is probably your answer here. You can either subclass an existing object or mix your code into an existing object's definition. Say you want to add a method to a Folder. One way is to make a basic product called my_folder, mix in Folder as a base class and then start overriding and extending. Then, in the ZMI you'll have the option of whether to use a standard Zope folder or one of your custom Folders. On the other hand, you could create a Python module called my_folder_changes, create a simple class called my_folder and use it to define the behaviors you want to see. Then add your class to the *front* of the list of base classes inherited by Folder. This won't override anything actually defined in Folder's class definition... you'll need to comment those out to override them with this technique. Is that what you're looking for? HTH, Dylan From allison@sumeru.stanford.EDU Tue Mar 4 16:50:39 2003 From: allison@sumeru.stanford.EDU (Dennis Allison) Date: Tue, 4 Mar 2003 08:50:39 -0800 (PST) Subject: [Zope] Extending Zope system code without editing In-Reply-To: <5.1.1.6.0.20030304082726.01d3c9b0@pop3.spa.norton.antivirus> Message-ID: Not quite... How do I modify a class defined in lib/python/StructuredText or lib/python/ZPublisher or the like with the minimum of fuss and without patching the actual distributed Zope system code... On Tue, 4 Mar 2003, Dylan Reinhardt wrote: > At 06:56 AM 3/4/2003, Dennis Allison wrote: > > >From time to time I want to do things to the Zope system code, for > >example, add a new method or override a method in a pre-existing class. Is > >there a good way to do this within the Zope system structure. I'd like to > >keep my changes isolated and use the inheritance and namespace mechanisms > >of Python rather than hard edits. > > Inheritance is probably your answer here. > > You can either subclass an existing object or mix your code into an > existing object's definition. > > Say you want to add a method to a Folder. > > One way is to make a basic product called my_folder, mix in Folder as a > base class and then start overriding and extending. Then, in the ZMI > you'll have the option of whether to use a standard Zope folder or one of > your custom Folders. > > On the other hand, you could create a Python module called > my_folder_changes, create a simple class called my_folder and use it to > define the behaviors you want to see. Then add your class to the *front* > of the list of base classes inherited by Folder. This won't override > anything actually defined in Folder's class definition... you'll need to > comment those out to override them with this technique. > > Is that what you're looking for? > > HTH, > > Dylan > From nhavar@hotmail.com Tue Mar 4 17:14:35 2003 From: nhavar@hotmail.com (Michael Havard) Date: Tue, 04 Mar 2003 17:14:35 +0000 Subject: [Zope] Customize the ZMI Message-ID: What files can be edited to change the ZMI. Does this have to be done from the file system or can it be done from within the ZMI itself. I want to be able to change some of the styling, logo, label placement, etc. _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From anguiano@codesourcery.com Tue Mar 4 17:29:02 2003 From: anguiano@codesourcery.com (Ricardo Anguiano) Date: 04 Mar 2003 09:29:02 -0800 Subject: [Zope] zope access to external files Message-ID: <86ptp7vy5d.fsf@potter.codesourcery.com> Greetings All, Some stats on my (stale, and soon to be updated) setup: Zope Version (Zope 2.4.1 (binary release, python 2.1, linux2-x86), python 2.1.0, linux2) Python Version 2.1 (#2, Jun 22 2001, 10:20:42) [GCC 2.7.2.3] System Platform linux2 I have a couple of objectives: 1. I want to restrict file access by user. 2. I want to serve objects from zope to accomplish objective #1 above, but I want the objects to be in the filesystem. I want to be able to say, "The contents of directory X are available only to user Y." I looked through the list of products in the "External Access" category and there were a couple of good candidates. The localfs listing was hard to find but it did turn up in a faq somewhere. http://www.zope.org/Members/arielpartners/ExternalFile http://www.zope.org/Members/MacGregor/ExtFile http://sourceforge.net/projects/localfs Questions: Can anyone recommend one of these products over the other? Will they let me do what I describe? Are there products which are a better fit? Is there an easier/better way? My apologies if this has been answered in the mailing list recently. An archives search did not turn up anything. Thanks in advance, -- Ricardo Anguiano http://www.codesourcery.com From Andreas Jung Tue Mar 4 17:32:53 2003 From: Andreas Jung (Andreas Jung) Date: Tue, 04 Mar 2003 18:32:53 +0100 Subject: [Zope] Customize the ZMI In-Reply-To: References: Message-ID: <5818837.1046802773@[192.168.0.2]> checkout the .dtml files of the zope distribution. Are you really sure that you want to customize the ZMI??? Better take a look at CMF/Plone when you need customized templates for content management purposes. -aj --On Dienstag, 4. M=E4rz 2003 17:14 +0000 Michael Havard = =20 wrote: > What files can be edited to change the ZMI. Does this have to be done > from the file system or can it be done from within the ZMI itself. > > I want to be able to change some of the styling, logo, label placement, > etc. > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=3Dfeatures/junkmail > > > _______________________________________________ > 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 ) --=20 --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From pw_lists@slinkp.com Tue Mar 4 18:01:55 2003 From: pw_lists@slinkp.com (Paul Winkler) Date: Tue, 4 Mar 2003 13:01:55 -0500 Subject: [Zope] Extending Zope system code without editing In-Reply-To: References: <5.1.1.6.0.20030304082726.01d3c9b0@pop3.spa.norton.antivirus> Message-ID: <20030304180155.GE2554@slinkp.com> On Tue, Mar 04, 2003 at 08:50:39AM -0800, Dennis Allison wrote: > Not quite... How do I modify a class defined in lib/python/StructuredText > or lib/python/ZPublisher or the like with the minimum of fuss and without > patching the actual distributed Zope system code... i already told you :) -- Paul Winkler http://www.slinkp.com From zope@dylanreinhardt.com Tue Mar 4 18:12:41 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Tue, 04 Mar 2003 10:12:41 -0800 Subject: [Zope] Extending Zope system code without editing In-Reply-To: References: <5.1.1.6.0.20030304082726.01d3c9b0@pop3.spa.norton.antivirus> Message-ID: <5.1.1.6.0.20030304095119.01d04a48@pop3.spa.norton.antivirus> At 08:50 AM 3/4/2003, Dennis Allison wrote: >Not quite... How do I modify a class defined in lib/python/StructuredText >or lib/python/ZPublisher or the like with the minimum of fuss and without >patching the actual distributed Zope system code... If you're looking for a way to change the behavior of an object without making *any* changes to the source code, I'm pretty sure that subclassing is all that's available. It is possible to define objects such that they allow certain methods to be overridden by ZMI objects, but that is special behavior that must be explicitly provided in the product. For my money, inheritance is about as low-impact a mechanism as one can hope to find. Unless I'm not understanding what you're trying to do or what issues this approach raises... in which case, let me know. If the major stopping point here is concern about hosing Zope, there are several things you can do to mitigate the potential harm: 1. Work on a test installation 2. Use comments liberally 3. Use a tool like rcs or cvs to provide version control 4. Refine your technique on a trivial product like Boring There's no better way to learn how Zope really works than to rip into the source. My advice would be to go for it. HTH, Dylan From sean.upton@uniontrib.com Tue Mar 4 18:29:54 2003 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Tue, 04 Mar 2003 10:29:54 -0800 Subject: [Zope] Supported Processor for Zope Message-ID: x86 hardware is usually fastest, compared to other platfoms. YMMV. Best test is likely to run Python's pystone tests on whatever hardware you might be evaluating; any score on new hardware over 20,000 is good. Athlon, p4, and Xeon are likely your best bet. run like this (in Debian GNU/Linux, for example): /usr/bin/python2.1 /usr/lib/python/test/pystone.py Sean -----Original Message----- From: McDonnell, Larry [mailto:lmcdonnell@protonenergy.com] Sent: Tuesday, March 04, 2003 6:40 AM To: Dennis Allison; McDonnell, Larry Cc: 'Zope@Zope. Org' (E-mail) Subject: RE: [Zope] Supported Processor for Zope Thanks, this is what I thought but its better to throw out the question if you are unsure. -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Dennis Allison Sent: Tuesday, March 04, 2003 9:32 AM To: McDonnell, Larry Cc: 'Zope@Zope. Org' (E-mail) Subject: RE: [Zope] Supported Processor for Zope On Tue, 4 Mar 2003, McDonnell, Larry wrote: > Hi, > > Sorry microprocessors (Intel, AMD, etc) > Zope, for the most part, has no machine dependencies. As long as the needed OS support, Python, and a suitable C/C++ compiler are there, you should have no problem. _______________________________________________ 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 ) From Dylan@DylanReinhardt.com Tue Mar 4 18:25:42 2003 From: Dylan@DylanReinhardt.com (Dylan Reinhardt) Date: Tue, 04 Mar 2003 10:25:42 -0800 Subject: [Zope] zope access to external files In-Reply-To: <86ptp7vy5d.fsf@potter.codesourcery.com> Message-ID: <5.1.1.6.0.20030304101321.01d26790@pop3.spa.norton.antivirus> At 09:29 AM 3/4/2003, Ricardo Anguiano wrote: > 1. I want to restrict file access by user. > > 2. I want to serve objects from zope to accomplish objective > #1 above, but I want the objects to be in the filesystem. You can do that with Zope, but reading between the lines a bit, these sound like static files you're serving. If so, I'd recommend putting Apache in front of Zope and letting Apache handle it with a RewriteRule like: RewriteRule ^/files/(.*) /home/httpd/mysite/files/$1 [L] It doesn't get much easier than that. ;-) Zope should (IMO) be used primarily for serving dynamic content. It's fantastic at what is does well, but it just doesn't hold a candle to Apache for serving static content... nor should it. They're two very different tasks. > I want to be able to say, "The contents of directory X are > available only to user Y." This isn't a great idea, for the most part. If you're looking for more than trivial security, I wouldn't volunteer information like that. >http://www.codesourcery.com Cool domain name. :-) Dylan From sean.upton@uniontrib.com Tue Mar 4 18:31:38 2003 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Tue, 04 Mar 2003 10:31:38 -0800 Subject: [Zope] Zope Installation Problems Message-ID: --Boundary_(ID_nssHTsQYkBu+XQ2UWADcUw) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT You might have better luck if you use a source install of Python 2.1.3, and compile the source install of Zope 2.6.1 with the specific python2.1 binary you installed from source (wherever you installed it). Sean -----Original Message----- From: Sheppard Norfleet [mailto:shepnorfleet@comcast.net] Sent: Monday, March 03, 2003 5:29 PM To: zope@zope.org Subject: [Zope] Zope Installation Problems I am using Rad Hat Linux 7.x. which comes with python 2.2 not the problem. I have Zope that has a python 2.1 one with it. when I try to build w_pcgi.py using the python that comes with zope, I get compile errors when trying to build the exception modules, the last message has a message like "I and PICKY raiseError" There are a ton of warning and a few errors sprinkled in a compiler output (or at least it looks like that). Anyway I have been working at this installation for about a week, I have tried a source install and binary install. No matter which way I go zope fails to build using the 2.1 python that comes with it. Has anyone else had these problems? Trying to run Zope like this: bin/python z2.py -p /usr/local/apache/cgi-bin/zope.pcgi all I get in return is a new bash prompt wiht no warnings. the log files are empty or don't exist. Please help! BTW, don't mean to knock mailing lists but wouldnt forums be a lot easier way to communicate? Just a thought... --Boundary_(ID_nssHTsQYkBu+XQ2UWADcUw) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: 7BIT
    You might have better luck if you use a source install of Python 2.1.3, and compile the source install of Zope 2.6.1 with the specific python2.1 binary you installed from source (wherever you installed it).
     
    Sean
    -----Original Message-----
    From: Sheppard Norfleet [mailto:shepnorfleet@comcast.net]
    Sent: Monday, March 03, 2003 5:29 PM
    To: zope@zope.org
    Subject: [Zope] Zope Installation Problems

    I am using Rad Hat Linux 7.x.  which comes with python 2.2 not the problem.  I have Zope that has a python 2.1 one with it.  when I try to build w_pcgi.py using the python that comes with zope, I get compile errors when trying to build the exception modules, the last message has a message like "I and PICKY raiseError" 
     
    There are a ton of warning and a few errors sprinkled in a compiler output (or at least it looks like that).  
     
    Anyway I have been working at this installation for about a week, I have tried a source install and binary install.  No matter which way I go zope fails to build using the 2.1 python that comes with it. 
     
    Has anyone else had these problems?  Trying to run Zope like this:
    bin/python z2.py -p /usr/local/apache/cgi-bin/zope.pcgi
     
    all I get in return is a new bash prompt wiht no warnings.  the log files are empty or don't exist.  Please help!
     
    BTW, don't mean to knock mailing lists but wouldnt forums be a lot easier way to communicate?  Just a thought...
    --Boundary_(ID_nssHTsQYkBu+XQ2UWADcUw)-- From bkc@murkworks.com Tue Mar 4 18:43:59 2003 From: bkc@murkworks.com (Brad Clements) Date: Tue, 04 Mar 2003 13:43:59 -0500 Subject: [Zope] 3rd party eloctronic payment solutions In-Reply-To: <3E64CD13.1020108@neurobs.com> References: Message-ID: <3E64AA85.6090.8F7DD8E4@localhost> On 4 Mar 2003 at 7:58, AM wrote: > Thanks all. Unfortunately I specifically need credit card transaction > handlers, since that is the nature of our customer base. I will report my > experiences regarding the vendor I choose to the list in the hopes that it > might be useful to someone. > http://www.adirondackcraft.com (Currently Zope 2.6, started on 1. something) is using the Cybercash Zope product with Verisign as the processor. Works great! -- Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax http://www.wecanstopspam.org/ AOL-IM: BKClements From sean.upton@uniontrib.com Tue Mar 4 18:50:34 2003 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Tue, 04 Mar 2003 10:50:34 -0800 Subject: [Zope] persistent object with non-persistent attributes Message-ID: Thinking aloud: ...so myNonZopeClass instances need to be a singleton-like thing, with some sort of mutex-ish of lock to prevent other instances from being constructed? I wonder if there is a way to throw an exception on construction of a myNonZopeClass instance if another Zope thread has an instance. Perhaps you could keep an external boolean lock variable in a module-level global accessible to all threads, but it might just be easier to follow Toby's suggestion and just see if you can keep your myNonZopeClass instance object in a module-level global, and just keep a reference to it in a _v_ attribute? I've never tried anything like this, might something like this possibly work? Sean -----Original Message----- From: Jerome Alet [mailto:alet@librelogiciel.com] Sent: Tuesday, March 04, 2003 2:15 AM To: Toby Dickenson Cc: zope@zope.org Subject: Re: [Zope] persistent object with non-persistent attributes On Tue, Mar 04, 2003 at 09:30:53AM +0000, Toby Dickenson wrote: > On Tuesday 04 March 2003 9:22 am, Jerome Alet wrote: > > Zope uses (by default) four publishing threads. That means you will get four > copies of your objects in memory at any one time (or 8, if you have 2 zeo > clients). You also have the possibility of ZODB choosing to deactivate your > object, so all attributes are lost from all 4 of those objects. > > 'hardware plug&play' makes me think this is this what you want... Perhaps > storing this special object in a module-level global would be better? but I must be sure that only one thread deals with the hardware at a time. > > myZopePersistentClassInstance.complexAttr = myNonZopeClass() > > > > but this will probably, if it works, bloat by ZODB. > > > > is there a way to do this without suffering from severe bloat ? > > myZopePersistentClassInstance._v_complexAttr = myNonZopeClass() > > will exclude that attribute from ZODB processing. This is perfect ! But now how can I be use that no other thread access the hardware at the same time ? (if possible a single device open at Zope start or on-demand would be fine) I actually use a CGI script for this, but I wondered if using Zope instead wouldn't make it more "reactive". Thanks in advance. Jerome Alet _______________________________________________ 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 ) From pw_lists@slinkp.com Tue Mar 4 18:18:38 2003 From: pw_lists@slinkp.com (Paul Winkler) Date: Tue, 4 Mar 2003 13:18:38 -0500 Subject: [Zope] zope access to external files In-Reply-To: <86ptp7vy5d.fsf@potter.codesourcery.com> References: <86ptp7vy5d.fsf@potter.codesourcery.com> Message-ID: <20030304181838.GF2554@slinkp.com> On Tue, Mar 04, 2003 at 09:29:02AM -0800, Ricardo Anguiano wrote: > http://www.zope.org/Members/arielpartners/ExternalFile > http://www.zope.org/Members/MacGregor/ExtFile > http://sourceforge.net/projects/localfs > > Questions: > > Can anyone recommend one of these products over the other? they serve different needs... localfs will map a whole directory and all its subdirectories, ExtFile and ExternalFile will only do 1 file per instance. > Will they let me do what I describe? if the users are zope users, sure - just an a LocalFS for each user and restrict access to the owner. on the filesystem, everything must be readable by the user who runs the Zope process. -- Paul Winkler http://www.slinkp.com From anguiano@codesourcery.com Tue Mar 4 18:37:51 2003 From: anguiano@codesourcery.com (Ricardo Anguiano) Date: 04 Mar 2003 10:37:51 -0800 Subject: [Zope] zope access to external files In-Reply-To: <5.1.1.6.0.20030304101321.01d26790@pop3.spa.norton.antivirus> References: <5.1.1.6.0.20030304101321.01d26790@pop3.spa.norton.antivirus> Message-ID: <86bs0rvuyo.fsf@potter.codesourcery.com> Dylan Reinhardt writes: > At 09:29 AM 3/4/2003, Ricardo Anguiano wrote: > > 1. I want to restrict file access by user. > > > > 2. I want to serve objects from zope to accomplish objective > > #1 above, but I want the objects to be in the filesystem. > > You can do that with Zope, but reading between the lines a bit, > these sound like static files you're serving. The files will be updated nightly. The distinction between static files which are updated often and dynamic content has never been clear to me. The files are large so I don't want to stick them into the zope db. > If so, I'd recommend putting Apache in front of Zope and letting > Apache handle it with a RewriteRule like: > > RewriteRule ^/files/(.*) /home/httpd/mysite/files/$1 [L] > > It doesn't get much easier than that. ;-) True, but this option was rejected because there was no authentication. We could do a .htaccess thing, but we are already using zope and it already does users nicely. > Zope should (IMO) be used primarily for serving dynamic content. > It's fantastic at what is does well, but it just doesn't hold a > candle to Apache for serving static content... nor should it. > They're two very different tasks. > > > I want to be able to say, "The contents of directory X are > > available only to user Y." > > This isn't a great idea, for the most part. If you're looking for > more than trivial security, I wouldn't volunteer information like > that. Hmm. I don't understand. Zope provides lots of control over users, roles and content. Are you saying I should ignore that framework and use something else? Zope's access control, users, passwords and SSL meet our needs. The only other thing I can think to do in this case is to issue SSL client certs to verify the user's identity. Users already access the content via https only and have no local access to the machine. > >http://www.codesourcery.com > > Cool domain name. :-) Thanks, I can't take credit for that one. :) [PS: apache+ssl+zope+localfs seems to be doing the job nicely. It took me a few minutes this morning.] -- Ricardo Anguiano http://www.codesourcery.com From anguiano@codesourcery.com Tue Mar 4 18:56:51 2003 From: anguiano@codesourcery.com (Ricardo Anguiano) Date: 04 Mar 2003 10:56:51 -0800 Subject: [Zope] zope access to external files In-Reply-To: <20030304181838.GF2554@slinkp.com> References: <86ptp7vy5d.fsf@potter.codesourcery.com> <20030304181838.GF2554@slinkp.com> Message-ID: <861y1nvu30.fsf@potter.codesourcery.com> Paul Winkler writes: > On Tue, Mar 04, 2003 at 09:29:02AM -0800, Ricardo Anguiano wrote: > > http://www.zope.org/Members/arielpartners/ExternalFile > > http://www.zope.org/Members/MacGregor/ExtFile > > http://sourceforge.net/projects/localfs > > > > Questions: > > > > Can anyone recommend one of these products over the other? > > they serve different needs... > localfs will map a whole directory and all its subdirectories, > ExtFile and ExternalFile will only do 1 file per instance. Ah, good to know. > > > Will they let me do what I describe? > > if the users are zope users, sure - just an a LocalFS for each user > and restrict access to the owner. Yes, the users are zope users. I did exactly what you describe and it works great. > on the filesystem, everything must be readable by the user who runs > the Zope process. Definitely. Thanks, -- Ricardo Anguiano http://www.codesourcery.com From a.peluso@fulltrading.it Tue Mar 4 18:39:52 2003 From: a.peluso@fulltrading.it (catonano) Date: Tue, 4 Mar 2003 19:39:52 +0100 Subject: [Zope] mime types Message-ID: Hello Zopers, I have some .swf files got into my Zope db via ftp and their mime type has been set by Zope to "application/octet-stream" while it should be "application/x-shockwave-flash" I reset them manually bur how can I edit the associations between the file name extensions and the Zope mime types so that Zope automagically sets the correct value? Thanks anyone will help me Catonano From pw_lists@slinkp.com Tue Mar 4 19:05:25 2003 From: pw_lists@slinkp.com (Paul Winkler) Date: Tue, 4 Mar 2003 14:05:25 -0500 Subject: [Zope] persistent object with non-persistent attributes In-Reply-To: References: Message-ID: <20030304190525.GA3495@slinkp.com> On Tue, Mar 04, 2003 at 10:50:34AM -0800, sean.upton@uniontrib.com wrote: > Thinking aloud: ...so myNonZopeClass instances need to be a singleton-like > thing, with some sort of mutex-ish of lock to prevent other instances from > being constructed? singletons seem to be more easily handled by other pythonic approaches, as you go on to say ... > I wonder if there is a way to throw an exception on > construction of a myNonZopeClass instance if another Zope thread has an > instance. Perhaps you could keep an external boolean lock variable in a > module-level global accessible to all threads, but it might just be easier > to follow Toby's suggestion and just see if you can keep your myNonZopeClass > instance object in a module-level global, and just keep a reference to it in > a _v_ attribute? I've never tried anything like this, might something like > this possibly work? I'd think so. Another approach to consider is "Borg" aka "Monostate" aka "all your state are belong to us". http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66531 yet another approach is to use a class instead of a module, e.g. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/113657 None of these address the issues of access control, as Alex Martelli's comments on Borg make clear: """ threading, Alex Martelli, 2001/10/15 Threading issues really have little to do with Highlander vs Borg (or Singleton vs Monostate if you prefer boring names:-). In Python, it's simplest to devote a thread to handling a bunch of resources that need to be serialized (no matter whether they're wrapped into one or more objects of whatever type), with a Queue of requests on which the devoted-thread (Guardian thread) always sleeps working for requests. All access by working threads to the guardian thread and the resources it protects is by posting to the guardian queue a tuple (response-queue, callable, args, kwds) followed by waiting on the response-queue. Why people would want to conflate this important idiom with the equally important and unrelated idiom of state sharing is a mystery to me, as they work just as well together or separately. What's the contrary of "divide and conquer" -- "conflate and suffer"?-) """ hmmm, i can't quite envision how you'd do this "guardian thread" business in a Zope product, or if there's a better equivalent. -- Paul Winkler http://www.slinkp.com From Andreas Jung Tue Mar 4 19:17:56 2003 From: Andreas Jung (Andreas Jung) Date: Tue, 04 Mar 2003 20:17:56 +0100 Subject: [Zope] mime types In-Reply-To: References: Message-ID: <12121830.1046809076@[192.168.0.2]> Checkout lib/python/OFS/content_types.py --On Dienstag, 4. M=E4rz 2003 19:39 +0100 catonano = =20 wrote: > Hello Zopers, > > I have some .swf files got into my Zope db via ftp and their mime type > has been set by Zope to "application/octet-stream" while it should be > "application/x-shockwave-flash" > > I reset them manually bur how can I edit the associations between the > file name extensions and the Zope mime types so that Zope automagically > sets the correct value? > > Thanks anyone will help me > > Catonano > > > _______________________________________________ > 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 ) --=20 --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From pw_lists@slinkp.com Tue Mar 4 19:11:53 2003 From: pw_lists@slinkp.com (Paul Winkler) Date: Tue, 4 Mar 2003 14:11:53 -0500 Subject: [Zope] zope access to external files In-Reply-To: <861y1nvu30.fsf@potter.codesourcery.com> References: <86ptp7vy5d.fsf@potter.codesourcery.com> <20030304181838.GF2554@slinkp.com> <861y1nvu30.fsf@potter.codesourcery.com> Message-ID: <20030304191153.GB3495@slinkp.com> On Tue, Mar 04, 2003 at 10:56:51AM -0800, Ricardo Anguiano wrote: > > if the users are zope users, sure - just an a LocalFS for each user > > and restrict access to the owner. > > Yes, the users are zope users. I did exactly what you describe and it > works great. you might want to double-check your setup to be sure that tricks involving ../ do not let the user access files they should not. -- Paul Winkler http://www.slinkp.com From anguiano@codesourcery.com Tue Mar 4 19:32:13 2003 From: anguiano@codesourcery.com (Ricardo Anguiano) Date: 04 Mar 2003 11:32:13 -0800 Subject: [Zope] zope access to external files In-Reply-To: <20030304191153.GB3495@slinkp.com> References: <86ptp7vy5d.fsf@potter.codesourcery.com> <20030304181838.GF2554@slinkp.com> <861y1nvu30.fsf@potter.codesourcery.com> <20030304191153.GB3495@slinkp.com> Message-ID: <86smu3udvm.fsf@potter.codesourcery.com> Paul Winkler writes: > On Tue, Mar 04, 2003 at 10:56:51AM -0800, Ricardo Anguiano wrote: > > > if the users are zope users, sure - just an a LocalFS for each user > > > and restrict access to the owner. > > > > Yes, the users are zope users. I did exactly what you describe and it > > works great. > > you might want to double-check your setup to be sure that tricks > involving ../ do not let the user access files they should not. It doesn't appear that one user can dot-dot-slash their way into another other user's directory. Even if they guess the path, they are asked for authentication again if they get it right. User1 not being defined in User2/acl_users, and restricting User2/content to owner makes it hard for User1 to access User2's content. Thanks for the reminder though, -- Ricardo Anguiano http://www.codesourcery.com From dieter@handshake.de Tue Mar 4 18:54:36 2003 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 4 Mar 2003 19:54:36 +0100 Subject: [Zope] NuxUserGroups and CMF not working In-Reply-To: <59403C6E.3DD3F8C0.00923364@netscape.net> References: <59403C6E.3DD3F8C0.00923364@netscape.net> Message-ID: <15972.63084.301817.696894@gargle.gargle.HOWL> baiewola@netscape.net wrote at 2003-3-3 14:33 -0500: > I installed NuxUserGroups, but the product was broken. The traceback error said "No module named CMFCore.CatalogTool." > > I presumed that I had to install CMF, so I did. After installation, CMFCore, CMFDefault, and CMFTopic appear in my products list unbroken, but I can't create a CMF Site object (it should be in the pulldown menu, right?). And NuxUserGroups is still broken. > > The weird thing is that I now have the option of giving local roles to groups -- I just can't create the groups. > > * For CMF, is it mandatory that Zope be installed using /var/zope as my INSTANCE_HOME and /usr/local/zope/ as my SOFTWARE_HOME? No. > * If that's the problem, what do I need to change about CMF to make it work with my own installation? Have you activated Zope logging (--> doc/LOGGING.txt) and looked in the log file. You may find valuable hints. When you report problems, please remember to tell the precise problem: Error Type, Error Value and Traceback. Dieter From dieter@handshake.de Tue Mar 4 18:56:57 2003 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 4 Mar 2003 19:56:57 +0100 Subject: [Zope] Getting metatype information In-Reply-To: <20030304002316.2338.qmail@web21408.mail.yahoo.com> References: <20030304002316.2338.qmail@web21408.mail.yahoo.com> Message-ID: <15972.63225.907599.584665@gargle.gargle.HOWL> Fearless Froggie wrote at 2003-3-3 16:23 -0800: > If I have an address such as the following: > > an_address = context.REQUEST['URL2'] > > How would I get the metatype of the object You get the object with "getattr" and then its "meta_type" attribute. "getattr" is an FAQ. Dieter From dieter@handshake.de Tue Mar 4 19:21:18 2003 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 4 Mar 2003 20:21:18 +0100 Subject: [Zope] [Vote] PEP308 voting began Message-ID: <15972.64686.377126.329892@gargle.gargle.HOWL> Attention: cross post PEP308 is concerned with the introduction of a ternary conditional operator (something like an "if cond: val_true else: val_false") into Zope. In my view, such an operator would make TALES expressions easier because we could get rid of the "and/or" hack to represent conditionals and we could forget about the "test" function, which evaluates too eagerly. Please have a look at PEP308 and consider voting. Details in "comp.lang.python.announce". Dieter From dieter@handshake.de Tue Mar 4 18:55:44 2003 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 4 Mar 2003 19:55:44 +0100 Subject: [Zope] plone problem In-Reply-To: <20030303160420.F6160@asu.edu> References: <20030303160420.F6160@asu.edu> Message-ID: <15972.63152.528975.444941@gargle.gargle.HOWL> David Bear wrote at 2003-3-3 16:04 -0700: > ... > Traceback (innermost last): > ... > File /home/httpd/zoperoot/lib/python/Products/CMFPlone/Portal.py, > line 14, in ? > ImportError: No module named CMFCalendar.Extensions Probably a missing "__init__.py" in the "Extensions" directory. It can be empty. Dieter From dieter@handshake.de Tue Mar 4 19:01:56 2003 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 4 Mar 2003 20:01:56 +0100 Subject: [Zope] RE: Installing PIL on binary dist. of Zope 2.6.1 on Linux... In-Reply-To: <7190BF5EB309D511A15600508BF18D83560EC6@exchange.iecholden.com> References: <7190BF5EB309D511A15600508BF18D83560EC6@exchange.iecholden.com> Message-ID: <15972.63524.732991.8341@gargle.gargle.HOWL> Meehan, Francois wrote at 2003-3-4 09:52 -0500: > I have found the document to install PIL on zope at > http://www.zope.org/Members/regebro/PIL_zope > .... > ImportError: The _imaging C module is not installed Almost surely, importing "_imaging" results in an error. Try it in an interactive interpreter. You should get a much better error indication. Dieter From dieter@handshake.de Tue Mar 4 18:58:52 2003 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 4 Mar 2003 19:58:52 +0100 Subject: [Zope] Finding owner of an object In-Reply-To: <15972.13827.263783.814537@magrathea.basistech.com> References: <15972.13827.263783.814537@magrathea.basistech.com> Message-ID: <15972.63340.590911.657332@gargle.gargle.HOWL> Tom Emerson wrote at 2003-3-4 00:13 -0500: > I have a folder of files (think the FileLibrary example), where files > may be owned by different people. In a ZPT I would like to limit the > set of files that are displayed to those owned by the current user. I > can't find a way to get the owner of a given object: what am I > missing? > > For example, I use > > container.Submissions.objectValues('File') > > to get the set of files in the Submissions folder. Is there a method I > can call on each File object to get its owner? You can do it in the management interface (ZMI), right? Then, there is a method and you can find it out yourself by looking at the ZMI source. Dieter From dieter@handshake.de Tue Mar 4 19:03:25 2003 From: dieter@handshake.de (Dieter Maurer) Date: Tue, 4 Mar 2003 20:03:25 +0100 Subject: [Zope] custom authentication In-Reply-To: <1046790333.18949.80.camel@aslan.its.bethel.edu> References: <1046790333.18949.80.camel@aslan.its.bethel.edu> Message-ID: <15972.63613.180789.274699@gargle.gargle.HOWL> Andrew Altepeter wrote at 2003-3-4 09:05 -0600: > I am working on integrating zope into the single sign-on auth. server we > have. To do so, I started with the cookie_validate method in > exUserFolder, modified it to suit, and placed it in my custom userFolder > class. > > Ok, so it is working great if you to a page that requires > authentication. However, I have noticed a few quiry happenings here, > and maybe you guys can help me out. > > Sometimes, if I authenticate through the sso, and try access an object > my user object doesn't have access do, I am sent a 401 Unauthorized with > a Basic login window. This is not what I want! > > If the user is logged in, but doesn't have access, I want to return a > 'no access' page, and if the user is not logged not, then I want to > redirect to the sso. UserFolder's usually ensure this by overriding the "unauthorized" method of the RESPONSE object. Have a look at CookieCrumber (as an example). Dieter From zope@dylanreinhardt.com Tue Mar 4 19:42:36 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Tue, 04 Mar 2003 11:42:36 -0800 Subject: [Zope] zope access to external files In-Reply-To: <86bs0rvuyo.fsf@potter.codesourcery.com> References: <5.1.1.6.0.20030304101321.01d26790@pop3.spa.norton.antivirus> <5.1.1.6.0.20030304101321.01d26790@pop3.spa.norton.antivirus> Message-ID: <5.1.1.6.0.20030304111354.01d01d88@pop3.spa.norton.antivirus> At 10:37 AM 3/4/2003, Ricardo Anguiano wrote: >The files will be updated nightly. The distinction between static >files which are updated often and dynamic content has never been clear >to me. The files are large so I don't want to stick them into the >zope db. To some degree that's an academic question. My $.02 would be that any content that remains static between updates is static, regardless of how often that process occurs. Content should be regarded as dynamic when it changes or works differently depending on state or environment. > > If so, I'd recommend putting Apache in front of Zope and letting > > Apache handle it with a RewriteRule like: > > > > RewriteRule ^/files/(.*) /home/httpd/mysite/files/$1 [L] > > > > It doesn't get much easier than that. ;-) > >True, but this option was rejected because there was no >authentication. We could do a .htaccess thing, but we are already >using zope and it already does users nicely. True enough. It's possible to get Apache to do authorization and pass through authentication to Zope, but I've not tried it. One old reference that may help is here: http://lugwash.washtenaw.cc.mi.us/linux-users/199907/0078.html Obviously, you're probably not using Zope.cgi, but I expect that this can be adapted to VHM pretty easily. But this might not be the *easiest* solution for one-stop TTW management... localfs is probably that solution > > > I want to be able to say, "The contents of directory X are > > > available only to user Y." > > > > This isn't a great idea, for the most part. If you're looking for > > more than trivial security, I wouldn't volunteer information like > > that. > >Hmm. I don't understand. Zope provides lots of control over users, >roles and content. Are you saying I should ignore that framework and >use something else? I'm suggesting that giving unauthorized people clues how to crack your security is a mistake in any environment... Zope included. But maybe I'm just paranoid. :-) Dylan From baiewola@netscape.net Tue Mar 4 19:45:24 2003 From: baiewola@netscape.net (baiewola@netscape.net) Date: Tue, 04 Mar 2003 14:45:24 -0500 Subject: [Zope] zope access to external files Message-ID: <3D226C50.1C7F67FA.00923364@netscape.net> I can personally recommend LocalFS. We do exactly what you want to do, using a combination of LocalFS and local roles. All the LocalFS objects are in one folder. The index to that folder checks if a user has the appropriate local role, and only the appropriate objects are displayed for each individual. If you decide to implement this plan, we're happy to give you a copy of our index and the necessary python scripts. We have hundreds of LocalFS objects, so we spent some time constructing the index so the items appear in tabular format. Ricardo Anguiano wrote: > >Greetings All, > >Some stats on my (stale, and soon to be updated) setup: > > Zope Version > (Zope 2.4.1 (binary release, python 2.1, linux2-x86), python 2.1.0, linux2) > Python Version > 2.1 (#2, Jun 22 2001, 10:20:42) [GCC 2.7.2.3] > System Platform > linux2 > >I have a couple of objectives: > > 1. I want to restrict file access by user. > > 2. I want to serve objects from zope to accomplish objective > #1 above, but I want the objects to be in the filesystem. > > I want to be able to say, "The contents of directory X are > available only to user Y." > >I looked through the list of products in the "External Access" >category and there were a couple of good candidates. The localfs >listing was hard to find but it did turn up in a faq somewhere. > > http://www.zope.org/Members/arielpartners/ExternalFile > http://www.zope.org/Members/MacGregor/ExtFile > http://sourceforge.net/projects/localfs > >Questions: > > Can anyone recommend one of these products over the other? > Will they let me do what I describe? > Are there products which are a better fit? > Is there an easier/better way? > >My apologies if this has been answered in the mailing list recently. >An archives search did not turn up anything. > >Thanks in advance, >-- >Ricardo Anguiano >http://www.codesourcery.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 ) > __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ From a.peluso@fulltrading.it Tue Mar 4 19:50:54 2003 From: a.peluso@fulltrading.it (catonano) Date: Tue, 4 Mar 2003 20:50:54 +0100 Subject: [Zope] Zope license Message-ID: <9C7A0336-4E7A-11D7-A19E-0003935B175E@fulltrading.it> Hello Zopers, for the first time in my life a business asked me for a dinamical web site that can start off a cd rom. I gave them a demo made in Zope and now they ask me about the Zope license. I read the Zope license and I can translate it in Italian for them but I wonder wether ther's something more about the business use of Zope. Please help. This is SO important to me! Thanks so much!! Bye Catonano From baiewola@netscape.net Tue Mar 4 19:57:52 2003 From: baiewola@netscape.net (baiewola@netscape.net) Date: Tue, 04 Mar 2003 14:57:52 -0500 Subject: [Zope] NuxUserGroups and CMF not working Message-ID: <6B3B0F8E.20CE9D60.00923364@netscape.net> There's nothing at all in my logs about CMF, but here's what the log has to say abut NuxUserGroups: ------ 2003-03-04T19:52:42 INFO(0) NuxUserGroups.BasicUserWithGroups Patching BasicUser ------ 2003-03-04T19:52:42 INFO(0) NuxUserGroups.LocalRolesWithGroups Patching RoleManager ------ 2003-03-04T19:52:42 ERROR(200) Zope Could not import Products.NuxUserGroups Traceback (innermost last): File /zopedirectory/lib/python/OFS/Application.py, line 531, in import_product File /zopedirectory/lib/python/Products/NuxUserGroups/__init__.py, line 11, in ? (Object: addUserFolderWithGroups) File /zopedirectory/lib/python/Products/NuxUserGroups/CatalogToolWithGroups.py, line 17, in ? (Object: rolesForPermissionOn) ImportError: No module named CMFCore.CatalogTool I'm afraid this isn't very helpful to me. Does it give you any clues? Dieter Maurer wrote: >baiewola@netscape.net wrote at 2003-3-3 14:33 -0500: > > I installed NuxUserGroups, but the product was broken. The traceback error said "No module named CMFCore.CatalogTool." > > > > I presumed that I had to install CMF, so I did. After installation, CMFCore, CMFDefault, and CMFTopic appear in my products list unbroken, but I can't create a CMF Site object (it should be in the pulldown menu, right?). And NuxUserGroups is still broken. > > > > The weird thing is that I now have the option of giving local roles to groups -- I just can't create the groups. > > > > * For CMF, is it mandatory that Zope be installed using /var/zope as my INSTANCE_HOME and /usr/local/zope/ as my SOFTWARE_HOME? > >No. > > > * If that's the problem, what do I need to change about CMF to make it work with my own installation? > >Have you activated Zope logging (--> doc/LOGGING.txt) and looked in >the log file. You may find valuable hints. > > >When you report problems, please remember to tell the precise >problem: Error Type, Error Value and Traceback. > > > >Dieter > __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ From jccooper@jcameroncooper.com Tue Mar 4 20:06:00 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Tue, 04 Mar 2003 14:06:00 -0600 Subject: [Zope] Zope license In-Reply-To: <9C7A0336-4E7A-11D7-A19E-0003935B175E@fulltrading.it> References: <9C7A0336-4E7A-11D7-A19E-0003935B175E@fulltrading.it> Message-ID: <3E650728.3000102@jcameroncooper.com> > for the first time in my life a business asked me for a dinamical web > site that can start off a cd rom. > > I gave them a demo made in Zope and now they ask me about the Zope > license. > > I read the Zope license and I can translate it in Italian for them but > I wonder wether ther's something more about the business use of Zope. Not quite sure what you're asking, but Zope is in general free for distribution or modification by anybody for any purpose so long as you leave the copyright notice and disclaimer, note any modifications from the ZC source, and basically don't claim to be Zope Co. It's actually one of the more readable licenses (shorter than the preamble to the GPL.) http://www.zope.com/Legal/zpl_2 some history of the ZPL: http://www.zope.org/Resources/License --jcc From Francois@iecholden.com Tue Mar 4 20:04:54 2003 From: Francois@iecholden.com (Meehan, Francois) Date: Tue, 4 Mar 2003 15:04:54 -0500 Subject: [Zope] RE: Installing PIL on binary dist. of Zope 2.6.1 on Li nux... Message-ID: <7190BF5EB309D511A15600508BF18D83560EC9@exchange.iecholden.com> Indeed, By running /home/zope/bin/python, import _imaging gives: ImportError: /home/zope/lib/python2.1/_imaging.so: undefined symbol: PyType_IsSubtype Since I have python 2.2 on my system, and did compiled PIL with that, copying PIL in Zope/lib, the mix of python version might create the problem. How can I compile PIL with the python version that comes with Zope? Francois > -----Original Message----- > From: Dieter Maurer [mailto:dieter@handshake.de] > Sent: March 4, 2003 2:02 PM > To: Meehan, Francois > Cc: 'zope@zope.org' > Subject: Re: [Zope] RE: Installing PIL on binary dist. of > Zope 2.6.1 on > Linux... > > > Meehan, Francois wrote at 2003-3-4 09:52 -0500: > > I have found the document to install PIL on zope at > > http://www.zope.org/Members/regebro/PIL_zope > > .... > > ImportError: The _imaging C module is not installed > > Almost surely, importing "_imaging" results in an error. > > Try it in an interactive interpreter. You should get > a much better error indication. > > > Dieter > From jccooper@jcameroncooper.com Tue Mar 4 20:24:13 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Tue, 04 Mar 2003 14:24:13 -0600 Subject: [Zope] zope access to external files In-Reply-To: <86ptp7vy5d.fsf@potter.codesourcery.com> References: <86ptp7vy5d.fsf@potter.codesourcery.com> Message-ID: <3E650B6D.7080904@jcameroncooper.com> > > > http://www.zope.org/Members/arielpartners/ExternalFile > http://www.zope.org/Members/MacGregor/ExtFile > http://sourceforge.net/projects/localfs > >Questions: > > Can anyone recommend one of these products over the other? > Will they let me do what I describe? > Are there products which are a better fit? > Is there an easier/better way? > > There's one angle I want to cover here that hasn't been done yet. I won't recommend any of these over the other (they've all worked fine for me in various capacities) but I will describe how they are different: ExtFile/ExtImage simply stores its contents on the filesystem. Although you can find out where, you really shouldn't monkey with the repository. This is the product to use if you just want to keep things out of the ZODB and don't care about getting to things on the FS. External File gets its data from a *specific* file on the filesystem. If you want a single file to live in Zope and on your FS, and to be manipulable from both, use this. LocalFS (and yes, it is hard to find on zope.org) makes an entire specific directory visible in Zope as folderish objects and content. If you have a variable number of files to access, or want to publish a whole directory, and don't mind it being in its own folder, use this. I suppose there's room in the list above for an ExtFolder product, which stores some tree of Zope objects on the FS somewhere. But perhaps mounting a Directory Storage does this. Academic anyway. Also, if you ask me, using Zope's security mechanisms is a fine reason to put even mostly-static content under Zope control. There is good reason to let Apache serve static content, however: makes me think about how, say, a StaticApacheFile might work. --jcc From nhavar@hotmail.com Tue Mar 4 20:35:07 2003 From: nhavar@hotmail.com (Michael Havard) Date: Tue, 04 Mar 2003 20:35:07 +0000 Subject: [Zope] Customize the ZMI Message-ID: For the general public we are using CMF. For myself and one or two other developers some work within the ZMI will be required. I would like to be able to make some enhancements for the way that we work and code. Is there any documentation on what dtml files control which part of the ZMI and where those files reside on the filesystem? >From: Andreas Jung >Reply-To: Andreas Jung >To: Michael Havard , zope@zope.org >Subject: Re: [Zope] Customize the ZMI >Date: Tue, 04 Mar 2003 18:32:53 +0100 > >checkout the .dtml files of the zope distribution. Are you really sure >that you want to customize the ZMI??? Better take a look at CMF/Plone >when you need customized templates for content management purposes. > >-aj > >--On Dienstag, 4. März 2003 17:14 +0000 Michael Havard >wrote: > >>What files can be edited to change the ZMI. Does this have to be done >>from the file system or can it be done from within the ZMI itself. >> >>I want to be able to change some of the styling, logo, label placement, >>etc. >> >>_________________________________________________________________ >>The new MSN 8: smart spam protection and 2 months FREE* >>http://join.msn.com/?page=features/junkmail >> >> >>_______________________________________________ >>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 ) > > > > >-- > --------------------------------------------------------------------- > - Andreas Jung http://www.andreas-jung.com - > - EMail: andreas at andreas-jung.com - > - "Life is too short to (re)write parsers" - > --------------------------------------------------------------------- > > > > >_______________________________________________ >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 ) _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From pw_lists@slinkp.com Tue Mar 4 21:03:15 2003 From: pw_lists@slinkp.com (Paul Winkler) Date: Tue, 4 Mar 2003 16:03:15 -0500 Subject: [Zope] zope access to external files In-Reply-To: <3E650B6D.7080904@jcameroncooper.com> References: <86ptp7vy5d.fsf@potter.codesourcery.com> <3E650B6D.7080904@jcameroncooper.com> Message-ID: <20030304210315.GF3495@slinkp.com> On Tue, Mar 04, 2003 at 02:24:13PM -0600, J Cameron Cooper wrote: > I suppose there's room in the list above for an ExtFolder product, which > stores some tree of Zope objects on the FS somewhere. But perhaps > mounting a Directory Storage does this. FYI, it does not. -- Paul Winkler http://www.slinkp.com From jccooper@jcameroncooper.com Tue Mar 4 21:21:17 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Tue, 04 Mar 2003 15:21:17 -0600 Subject: [Zope] Customize the ZMI In-Reply-To: References: Message-ID: <3E6518CD.8070003@jcameroncooper.com> > For the general public we are using CMF. For myself and one or two > other developers some work within the ZMI will be required. I would > like to be able to make some enhancements for the way that we work and > code. Is there any documentation on what dtml files control which part > of the ZMI and where those files reside on the filesystem? It's easy to figure out for yourself: look at the url some page is under, and what type of object it is being called on. The end of the URL is a method of the Zope object (possibly acquired, probably not in the ZMI.) Look in the zope source for that type of object for that method. Many of the built-in products live in lib/python/OFS. That method will probably be an instance of a DTML method or something similar, and that will tell you where the source for that object is (usually under a dtml subdirectory.) Say you want to find the frameset of the ZMI. This is 'manage', as you can see in your browser. This is called on the root, which is a Folder. Find the folder class, which is in lib/python/OFS/Folder.py module. But this has no 'manage' method, so it must be in a super-class. Check ObjectManager, in ObjectManager.py. We find there a 'manage_main' which says it is in 'dml/main' and also a 'manage_index_main', but no 'manage' just yet. At this point, you could guess and take a look at lib/python/OFS/dtml/main.dtml (the suffix is appened before lookup) to see if this is it (it isn't). We'll have to look some more. So where is 'manage'? Perhaps one of the other superclasses of ObjectManager? Take a look through App.Management.Navigation (in lib/python/App/Management.py) and go to the Navigation class. There it is: 'manage' is a DTMLFile in 'dtml/manage', meaning 'lib/python/App/Management/dtml/manage.dtml'. The same class also defines an awful lot of the rest of the ZMI. The shortcut is to find some probably-unique text and do a search of file contents in your zope install. A simple grep -r frameset * will also get you the same file, and a lot faster. But you won't understand why half so well. --jcc From list_subscriber@neurobs.com Tue Mar 4 21:28:52 2003 From: list_subscriber@neurobs.com (AM) Date: Tue, 04 Mar 2003 13:28:52 -0800 Subject: [Zope] 3rd party eloctronic payment solutions In-Reply-To: <3E64AA85.6090.8F7DD8E4@localhost> References: <3E64AA85.6090.8F7DD8E4@localhost> Message-ID: <3E651A94.9060307@neurobs.com> What exactly is the "Cybercash Zope product" A prelim search on zope.org gave me Wampum and zCommerce. But both are in alpha stages. Could you please explain?? TIA AM Brad Clements wrote: >On 4 Mar 2003 at 7:58, AM wrote: > > > >>Thanks all. Unfortunately I specifically need credit card transaction >>handlers, since that is the nature of our customer base. I will report my >>experiences regarding the vendor I choose to the list in the hopes that it >>might be useful to someone. >> >> >> > >http://www.adirondackcraft.com (Currently Zope 2.6, started on 1. something) > >is using the Cybercash Zope product with Verisign as the processor. > >Works great! > > > > -- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ================================================================== From bokonon@rochester.rr.com Tue Mar 4 21:34:01 2003 From: bokonon@rochester.rr.com (Caleb Land) Date: Tue, 4 Mar 2003 16:34:01 -0500 Subject: [Zope] Acquisition of the View permission Message-ID: <20030304213401.GA17059@helga.granfalloon.com> Hello, I am having trouble with folders and the view permission. Say I have a layout like: Users + |--index_html |--caleb + | |--Folder 1 | |--brian + |--Folder 2 Now, let's say that user 'caleb' owns the caleb folder, and user 'brian' owns the brian folder. If I set Folder 1 to be View'ed by owner/manager and without acquisition, shouldn't someone logged in as 'brian' be forbidden to see: /Users/caleb/Folder 1/ even if index_html is able to be View'ed by Anonymous? (because of the context it's being called from) Sincerely, Caleb Land (bokonon@rochester.rr.com) From bkc@murkworks.com Tue Mar 4 21:56:26 2003 From: bkc@murkworks.com (Brad Clements) Date: Tue, 04 Mar 2003 16:56:26 -0500 Subject: [Zope] 3rd party eloctronic payment solutions In-Reply-To: <3E651A94.9060307@neurobs.com> References: <3E64AA85.6090.8F7DD8E4@localhost> Message-ID: <3E64D7A0.3657.902E0C73@localhost> On 4 Mar 2003 at 13:28, AM wrote: > What exactly is the "Cybercash Zope product" > > A prelim search on zope.org gave me Wampum and zCommerce. But both are in > alpha stages. Could you please explain?? Sorry, I mean Wampum. We are using Wampum.. .It's old, but works fine. We've been using it for 2+ years > ================================================================== > "I saw `cout' being shifted "Hello world" times to the left and > stopped right there!!" -- Steve Gonedes > ================================================================== Heh.. -- Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax http://www.wecanstopspam.org/ AOL-IM: BKClements From aaltepet@bethel.edu Tue Mar 4 21:57:08 2003 From: aaltepet@bethel.edu (Andrew Altepeter) Date: 04 Mar 2003 15:57:08 -0600 Subject: [Zope] custom authentication In-Reply-To: <15972.63613.180789.274699@gargle.gargle.HOWL> References: <1046790333.18949.80.camel@aslan.its.bethel.edu> <15972.63613.180789.274699@gargle.gargle.HOWL> Message-ID: <1046815028.18949.108.camel@aslan.its.bethel.edu> On Tue, 2003-03-04 at 13:03, Dieter Maurer wrote: > Andrew Altepeter wrote at 2003-3-4 09:05 -0600: > > I am working on integrating zope into the single sign-on auth. server we > > have. To do so, I started with the cookie_validate method in > > exUserFolder, modified it to suit, and placed it in my custom userFolder > > class. > > > > Ok, so it is working great if you to a page that requires > > authentication. However, I have noticed a few quiry happenings here, > > and maybe you guys can help me out. > > > > Sometimes, if I authenticate through the sso, and try access an object > > my user object doesn't have access do, I am sent a 401 Unauthorized with > > a Basic login window. This is not what I want! > > > > If the user is logged in, but doesn't have access, I want to return a > > 'no access' page, and if the user is not logged not, then I want to > > redirect to the sso. > > UserFolder's usually ensure this by overriding the > "unauthorized" method of the RESPONSE object. > > Have a look at CookieCrumber (as an example). Ok, I see. It seems that exUserFolder is an incomplete product then, since it does not override the unauthorized method. As such, it cannot prevent Basic auth's from slipping through unannounced...? __________ Looking in CookieCrumbler.py, I see that the __call__ method replaces the response.unauth methods. But when I try to do that, I get a complaint from zope: File "/usr/local/Zope/lib/python/ZPublisher/HTTPResponse.py", line 662, in exception self._unauthorized() TypeError: unbound Python method must be called with PortalUserFolder 1st argument ---------- To replace the unauth methods, I do the following: In Products/PortalUserFolder/__init__.py, I do the following: from ZPublisher.HTTPResponse import HTTPResponse from PortalUserFolder import PortalUserFolder #patch the HTTPResponse object's unauth code HTTPResponse.old__unauthorized = HTTPResponse._unauthorized HTTPResponse._unauthorized = PortalUserFolder._unauthorized HTTPResponse.old_unauthorized = HTTPResponse.unauthorized HTTPResponse.unauthorized = PortalUserFolder.unauthorized Well, this doesn't seem to work. What am I doing wrong? Thanks for all the help, Andy > > > Dieter From jwsacksteder@ramprecision.com Tue Mar 4 22:08:51 2003 From: jwsacksteder@ramprecision.com (jwsacksteder@ramprecision.com) Date: Tue, 4 Mar 2003 17:08:51 -0500 Subject: [Zope] python variables rendered by dtml Message-ID: <71650A6F73F1D411BE8000805F65E3CB3B310C@SRV-03> This is going to sound convoluted, but trust me, it's this way on purpose. I have a python script that gets a result back from an unparameterized zsql query like this- foo = container.get_stuff_sql() I then make some alterations to 'foo' in my script which I will leave out for clarity. I then want to render 'foo' from a dtml method with a dtml-in clause. What is to best way to pass 'foo' into the dtml method? (I'm having internet problems and I can't get to Zope labs right now, or I'd look it up myself.) From creiman@kefta.com Tue Mar 4 22:29:50 2003 From: creiman@kefta.com (Charlie Reiman) Date: Tue, 4 Mar 2003 14:29:50 -0800 Subject: [Zope] python variables rendered by dtml In-Reply-To: <71650A6F73F1D411BE8000805F65E3CB3B310C@SRV-03> Message-ID: > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of > jwsacksteder@ramprecision.com > Sent: Tuesday, March 04, 2003 2:09 PM > To: zope@zope.org > Subject: [Zope] python variables rendered by dtml > > > This is going to sound convoluted, but trust me, it's this way on purpose. > > I have a python script that gets a result back from an > unparameterized zsql > query like this- > > foo = container.get_stuff_sql() > > I then make some alterations to 'foo' in my script which I will leave out > for clarity. > > I then want to render 'foo' from a dtml method with a dtml-in clause. What > is to best way to pass 'foo' into the dtml method? > > (I'm having internet problems and I can't get to Zope labs right > now, or I'd > look it up myself.) Have you tried: return foo It doesn't need to be named. Call your python script via the dtml-in, return foo, and all will be well. I do it all the time. From fluxent@yahoo.com Tue Mar 4 22:35:10 2003 From: fluxent@yahoo.com (Bill Seitz) Date: Tue, 4 Mar 2003 14:35:10 -0800 (PST) Subject: [Zope] zope crashes on first hit Message-ID: <20030304223510.63646.qmail@web14105.mail.yahoo.com> All the sudden my zope (v2.5.1 running on Win98) is crashing while processing its first hit. This seems true regardless of the URL requests (manage, manage_main, index_html), though it's possible I'm getting 1 hit sometimes before it dies. I think this has been triggered by an ugly crash requiring a hard reboot of my machine. I've rebooted multiple times since then... Here's what I see in the DOS window: 2003-03-04T18:50:21 ERROR(200) ZServer uncaptured python exception, closing channel (exceptions.IOError:[Errno 9] Bad file descriptor [D:\Zope\WebSeitz\ZServer\medusa\asyncore.py|poll|107] [D:\Zope\WebSeitz\ZServer\medusa\asyncore.py|handle_write_event|398] [D:\Zope\WebSeitz\ZServer\medusa\asynchat.py|handle_write|146] [D:\Zope\WebSeitz\ZServer\medusa\asynchat.py|initiate_send|208] [D:\Zope\WebSeitz\ZServer\medusa\asynchat.py|refill_buffer|195] [D:\Zope\WebSeitz\ZServer\Producers.py|more|36] [D:\Zope\WebSeitz\ZServer\medusa\http_server.py|log|289] [D:\Zope\WebSeitz\ZServer\medusa\logger.py|log|247] [D:\Zope\WebSeitz\ZServer\medusa\logger.py|log|77] [D:\Zope\WebSeitz\ZServer\medusa\logger.py|write|53] [D:\Zope\WebSeitz\ZServer\medusa\logger.py|maybe_flush|65]) Traceback (most recent call last): File "D:\Zope\WebSeitz\z2.py", line 774, in ? asyncore.loop() File "D:\Zope\WebSeitz\ZServer\medusa\asyncore.py",line 200, in loop poll_fun (timeout, map) File "D:\Zope\WebSeitz\ZServer\medusa\asyncore.py", line 111, in poll obj.handle_error() File "D:\Zope\WebSeitz\ZServer\medusa\http_server.py", line 437, in handle_err or asynchat.async_chat.handle_error (self) File "D:\Zope\WebSeitz\ZServer\medusa\asyncore.py", line 421, in handle_error self.close() File "D:\Zope\WebSeitz\ZServer\HTTPServer.py", line 293, in close p.more() # free up resources held by producer File "D:\Zope\WebSeitz\ZServer\Producers.py", line 36, in more getattr(self.logger, self.method)(self.bytes) File "D:\Zope\WebSeitz\ZServer\medusa\http_server.py", line 289, in log ' - %s [%s] "%s" %d %d "%s" "%s"\n' % ( File "D:\Zope\WebSeitz\ZServer\medusa\logger.py", line 247, in log self.logger.log ('%s%s' % (ip, message)) File "D:\Zope\WebSeitz\ZServer\medusa\logger.py", line 77, in log self.write (message) File "D:\Zope\WebSeitz\ZServer\medusa\logger.py", line 53, in write self.maybe_flush() File "D:\Zope\WebSeitz\ZServer\medusa\logger.py", line 65, in maybe_flush self.file.flush() IOError: [Errno 9] Bad file descriptor __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ From bokonon@rochester.rr.com Tue Mar 4 22:39:12 2003 From: bokonon@rochester.rr.com (Caleb Land) Date: Tue, 4 Mar 2003 17:39:12 -0500 Subject: [Zope] Acquisition of the View permission In-Reply-To: <20030304213401.GA17059@helga.granfalloon.com> References: <20030304213401.GA17059@helga.granfalloon.com> Message-ID: <20030304223912.GB17059@helga.granfalloon.com> On Tue, Mar 04, 2003 at 04:34:01PM -0500, Caleb Land wrote: > Hello, > > I am having trouble with folders and the view permission. Say I have a layout > like: > > Users + > |--index_html > |--caleb + > | |--Folder 1 > | > |--brian + > |--Folder 2 > > Now, let's say that user 'caleb' owns the caleb folder, and user 'brian' owns > the brian folder. If I set Folder 1 to be View'ed by owner/manager and without > acquisition, shouldn't someone logged in as 'brian' be forbidden to see: > > /Users/caleb/Folder 1/ > > even if index_html is able to be View'ed by Anonymous? (because of the context > it's being called from) I just re-read the Zope Book chapter on security, and I think I know what's wrong. The index_html ZPT is executing with the permissions of the ZPT itself, right? If that's the case, then what would be a good way to achieve my original goal? (restricting access to an acquired source based on context (in this case index_html)) Sincerely, Caleb Land (bokonon@rochester.rr.com) From zope@dylanreinhardt.com Tue Mar 4 22:41:42 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Tue, 04 Mar 2003 14:41:42 -0800 Subject: [Zope] python variables rendered by dtml In-Reply-To: <71650A6F73F1D411BE8000805F65E3CB3B310C@SRV-03> Message-ID: <5.1.1.6.0.20030304144007.01d3aec8@pop3.spa.norton.antivirus> At 02:08 PM 3/4/2003, jwsacksteder@ramprecision.com wrote: >I then want to render 'foo' from a dtml method with a dtml-in clause. What >is to best way to pass 'foo' into the dtml method? Where python_script returns foo. Dylan From alet@librelogiciel.com Tue Mar 4 22:31:48 2003 From: alet@librelogiciel.com (Jerome Alet) Date: Tue, 4 Mar 2003 23:31:48 +0100 Subject: [Zope] persistent object with non-persistent attributes In-Reply-To: References: Message-ID: <20030304223148.GB10142@mail.librelogiciel.com> On Tue, Mar 04, 2003 at 10:50:34AM -0800, sean.upton@uniontrib.com wrote: > instance. Perhaps you could keep an external boolean lock variable in a > module-level global accessible to all threads, but it might just be easier > to follow Toby's suggestion and just see if you can keep your myNonZopeClass > instance object in a module-level global, and just keep a reference to it in > a _v_ attribute? I've never tried anything like this, might something like > this possibly work? OK, I'll try to write something like this. The alternative is to open and close the device (serial ports in fact) every time, and rely on the system to disallow multiple opens at the same time (untested) Thanks to all. Jerome Alet From zope@dylanreinhardt.com Tue Mar 4 23:03:59 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Tue, 04 Mar 2003 15:03:59 -0800 Subject: [Zope] Acquisition of the View permission In-Reply-To: <20030304223912.GB17059@helga.granfalloon.com> References: <20030304213401.GA17059@helga.granfalloon.com> <20030304213401.GA17059@helga.granfalloon.com> Message-ID: <5.1.1.6.0.20030304150136.01d0ade8@pop3.spa.norton.antivirus> At 02:39 PM 3/4/2003, Caleb Land wrote: >If that's the case, then what would be a good way to achieve my original goal? >(restricting access to an acquired source based on context (in this case >index_html)) If you want objects to acquire security settings from their container, use the Acquire Permission Settings option in the object's Security tab. More often than not, this is a good default practice, as it means any changes to container settings propagate to their member objects. HTH, Dylan From fmartins@hetnet.nl Tue Mar 4 23:12:08 2003 From: fmartins@hetnet.nl (Fernando Martins) Date: Wed, 5 Mar 2003 00:12:08 +0100 Subject: [Zope] assignment to form records Message-ID: I've a script who gets two parameters from a form: Code (int), Fields (record). In the script, I can assign to Code, say: Code = 1 but if I try, say: Fields.a_field = 1 I get the error: > Error Type: TypeError > Error Value: attribute-less object (assign or del) Do I need some special syntax for that or is it simply not possible (and why)? Regards, Fernando From zope@dylanreinhardt.com Tue Mar 4 23:39:48 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Tue, 04 Mar 2003 15:39:48 -0800 Subject: [Zope] assignment to form records In-Reply-To: Message-ID: <5.1.1.6.0.20030304153559.01d52e78@pop3.spa.norton.antivirus> At 03:12 PM 3/4/2003, Fernando Martins wrote: >I've a script who gets two parameters from a form: Code (int), Fields >(record). Record? Haven't heard of *that* data type... >Fields.a_field = 1 > >I get the error: > > > Error Type: TypeError > > Error Value: attribute-less object (assign or del) That's because whatever it is you're passing in for the value of Fields doesn't have the attribute you're attempting to assign to. If Fields is a mapping (like REQUEST.form), you may want: Fields['a_field'] = 1 If that's not it, could you provide a bit more info on what's getting passed in for Fields? HTH, Dylan From allison@sumeru.stanford.EDU Tue Mar 4 23:42:18 2003 From: allison@sumeru.stanford.EDU (Dennis Allison) Date: Tue, 4 Mar 2003 15:42:18 -0800 (PST) Subject: [Zope] RE: Installing PIL on binary dist. of Zope 2.6.1 on Li nux... In-Reply-To: <7190BF5EB309D511A15600508BF18D83560EC9@exchange.iecholden.com> Message-ID: On Tue, 4 Mar 2003, Meehan, Francois wrote: > > Since I have python 2.2 on my system, and did compiled PIL with that, > copying PIL in Zope/lib, the mix of python version might create the problem. >B > How can I compile PIL with the python version that comes with Zope? > Follow the same procedure you used to install PIL under python2.2. When it comes to run setup, use the python that zope uses, usually lib/bin/python. From andy@agmweb.ca Tue Mar 4 23:49:33 2003 From: andy@agmweb.ca (Andy McKay) Date: Tue, 04 Mar 2003 15:49:33 -0800 Subject: [Zope] assignment to form records In-Reply-To: <5.1.1.6.0.20030304153559.01d52e78@pop3.spa.norton.antivirus> References: <5.1.1.6.0.20030304153559.01d52e78@pop3.spa.norton.antivirus> Message-ID: <3E653B8D.5070203@agmweb.ca> >> > Error Type: TypeError >> > Error Value: attribute-less object (assign or del) > > > That's because whatever it is you're passing in for the value of Fields > doesn't have the attribute you're attempting to assign to. It has that attribute but as part of Script (Python) security you cannot assign to it. eg: try this Script (Python) script.title = 'Foo' Not sure that it really provides more security than annoyance, but the idea is you have to call a function or use an API for that object. Cheers -- Andy McKay From fmartins@hetnet.nl Tue Mar 4 23:54:27 2003 From: fmartins@hetnet.nl (Fernando Martins) Date: Wed, 5 Mar 2003 00:54:27 +0100 Subject: [Zope] assignment to form records In-Reply-To: <5.1.1.6.0.20030304153559.01d52e78@pop3.spa.norton.antivirus> Message-ID: Thanks for replying, From: Dylan Reinhardt > Fernando Martins wrote: > >I've a script who gets two parameters from a form: Code (int), Fields > >(record). > > Record? Haven't heard of *that* data type... > Well, I don't know if it is really a data type. In the zope book it's called parameter conversion, you know, to convert string values from the form to some other Python data type. I was assuming 'record' would convert to some (unknown?) class. > >Fields.a_field = 1 > > > >I get the error: > > > > > Error Type: TypeError > > > Error Value: attribute-less object (assign or del) > > That's because whatever it is you're passing in for the value of Fields > doesn't have the attribute you're attempting to assign to. > This works ok (in a right-hand side expression): print Fields.a_field > If Fields is a mapping (like REQUEST.form), you may want: > > Fields['a_field'] = 1 > > If that's not it, could you provide a bit more info on what's getting > passed in for Fields? > Sure, in the form I've stuff like: etc... I can _use_ expressions like Fields.Title in the Python script but I can't modify it. Cheers, Fernando From Francois@iecholden.com Tue Mar 4 23:54:49 2003 From: Francois@iecholden.com (Meehan, Francois) Date: Tue, 4 Mar 2003 18:54:49 -0500 Subject: [Zope] RE: Installing PIL on binary dist. of Zope 2.6.1 on Li nux... Message-ID: <7190BF5EB309D511A15600508BF18D83560ECD@exchange.iecholden.com> Hi, Finally got it to work, well almost... I had to use python 2.1 to compile PIL, also, Zphotoslides, the zope product that started it all, requires PIL 1.1.3. Now the product appears, I created a zphoto slide folder. After I had put some pictures in it, if I make changes to a photo, these will appear in preview, but when clicking on modify, get message: Nothing has to be done. But that is another story... PIL is working. It's a long an winding road, all this to have some pictures of my new dog on the net :-) Thanks all, Francois > -----Original Message----- > From: Dennis Allison [mailto:allison@sumeru.stanford.EDU] > Sent: March 4, 2003 6:42 PM > To: Meehan, Francois > Cc: 'Dieter Maurer'; 'zope@zope.org' > Subject: RE: [Zope] RE: Installing PIL on binary dist. of > Zope 2.6.1 on > Li nux... > > > > On Tue, 4 Mar 2003, Meehan, Francois wrote: > > > > Since I have python 2.2 on my system, and did compiled PIL > with that, > > copying PIL in Zope/lib, the mix of python version might > create the problem. > >B > > How can I compile PIL with the python version that comes with Zope? > > > > Follow the same procedure you used to install PIL under > python2.2. When > it comes to run setup, use the python that zope uses, usually > lib/bin/python. > > > From pw_lists@slinkp.com Wed Mar 5 00:08:11 2003 From: pw_lists@slinkp.com (Paul Winkler) Date: Tue, 4 Mar 2003 19:08:11 -0500 Subject: [Zope] assignment to form records In-Reply-To: <5.1.1.6.0.20030304153559.01d52e78@pop3.spa.norton.antivirus> References: <5.1.1.6.0.20030304153559.01d52e78@pop3.spa.norton.antivirus> Message-ID: <20030305000811.GH3495@slinkp.com> On Tue, Mar 04, 2003 at 03:39:48PM -0800, Dylan Reinhardt wrote: > At 03:12 PM 3/4/2003, Fernando Martins wrote: > >I've a script who gets two parameters from a form: Code (int), Fields > >(record). > > Record? Haven't heard of *that* data type... search for it in the "advanced scripting" chapter of the online zope book. > >Fields.a_field = 1 > > > >I get the error: > > > >> Error Type: TypeError > >> Error Value: attribute-less object (assign or del) > > That's because whatever it is you're passing in for the value of Fields > doesn't have the attribute you're attempting to assign to. no, then he'd get an AttributeError. but you're right that Fields is probably not what was expected, because the record class defined in HTTPRequest.py will let you assign any attribute. What's in the actual form where it gets a value for Fields? -- Paul Winkler http://www.slinkp.com From briansullivan@coursesbywire.com Wed Mar 5 00:18:55 2003 From: briansullivan@coursesbywire.com (Brian Sullivan) Date: Tue, 4 Mar 2003 19:18:55 -0500 Subject: [Zope] Windows Server 2003 Message-ID: <003101c2e2ac$cf61ca60$6401a8c0@Brian> Has anybody tried Zope on Windows Server 2003. >From what I can tell it installs ok -- and appears to be running but attempts to access it via webbrowser ( locally ) fail. Is there something obvious I might be missing? From jccooper@jcameroncooper.com Wed Mar 5 00:25:44 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Tue, 04 Mar 2003 18:25:44 -0600 Subject: [Zope] Windows Server 2003 In-Reply-To: <003101c2e2ac$cf61ca60$6401a8c0@Brian> References: <003101c2e2ac$cf61ca60$6401a8c0@Brian> Message-ID: <3E654408.50409@jcameroncooper.com> > > >Is there something obvious I might be missing? > > At the risk of being too obvious: you are going to http://localhost:8080 right? If so, perhaps your OS is doing some sort of firewalling? --jcc From danielle.d-avout@wanadoo.fr Wed Mar 5 00:45:01 2003 From: danielle.d-avout@wanadoo.fr (danielle.d-avout) Date: Wed, 5 Mar 2003 01:45:01 +0100 Subject: [Zope] VERSIONLOCKERROR Message-ID: <02a701c2e2b0$7612f2f0$0100a8c0@AHAH> I'm locked, I can't change anything I modified in a "experimental" version and of course I was not very cautious in my experimentations.. Traceback (innermost last): Module ZPublisher.Publish, line 102, in publish Module Zope.App.startup, line 200, in commit Module ZODB.Transaction, line 235, in commit Module ZODB.Transaction, line 349, in _commit_objects Module ZODB.Connection, line 391, in commit - __traceback_info__: (('OFS.Folder', 'Folder'), '\x00\x00\x00\x00\x00\x00\x11\x87', '') Module ZODB.FileStorage, line 726, in store VersionLockError: ("'\\x00\\x00\\x00\\x00\\x00\\x00\\x11\\x87'", '/danielle/philosophie_africaine/version_exp') with the help of google, I could find a recipe May be you could open the database and try this:> > >>> db = ZODB.DB(fs)> >>> db.abortVersion('content_cntrl')> >>> get_transaction().commit()> >>> db.close()but it's a little bit indigestible for a newbie.. what will happen if change my full.py to take the newest from the cvs? is it safe? thanks From pw_lists@slinkp.com Wed Mar 5 00:56:07 2003 From: pw_lists@slinkp.com (Paul Winkler) Date: Tue, 4 Mar 2003 19:56:07 -0500 Subject: [Zope] assignment to form records In-Reply-To: <3E653B8D.5070203@agmweb.ca> References: <5.1.1.6.0.20030304153559.01d52e78@pop3.spa.norton.antivirus> <3E653B8D.5070203@agmweb.ca> Message-ID: <20030305005607.GI3495@slinkp.com> On Tue, Mar 04, 2003 at 03:49:33PM -0800, Andy McKay wrote: > It has that attribute but as part of Script (Python) security you cannot > assign to it. eg: try this Script (Python) ahhh ok. so it really is a record. question is, why do you need to modify it in the script anyway? just do foo = Fields.afield and do whatever w/ foo. -- Paul Winkler http://www.slinkp.com From zope@dylanreinhardt.com Wed Mar 5 01:35:56 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Tue, 04 Mar 2003 17:35:56 -0800 Subject: [Zope] assignment to form records In-Reply-To: <20030305000811.GH3495@slinkp.com> References: <5.1.1.6.0.20030304153559.01d52e78@pop3.spa.norton.antivirus> <5.1.1.6.0.20030304153559.01d52e78@pop3.spa.norton.antivirus> Message-ID: <5.1.1.6.0.20030304173335.01cfb100@pop3.spa.norton.antivirus> At 04:08 PM 3/4/2003, Paul Winkler wrote: >On Tue, Mar 04, 2003 at 03:39:48PM -0800, Dylan Reinhardt wrote: > > At 03:12 PM 3/4/2003, Fernando Martins wrote: > > >I've a script who gets two parameters from a form: Code (int), Fields > > >(record). > > > > Record? Haven't heard of *that* data type... > >search for it in the "advanced scripting" chapter of the online >zope book. Aha... still learning something new every day it would seem. :-) Thanks, Dylan From jwsacksteder@ramprecision.com Wed Mar 5 02:09:03 2003 From: jwsacksteder@ramprecision.com (jwsacksteder@ramprecision.com) Date: Tue, 4 Mar 2003 21:09:03 -0500 Subject: [Zope] python variables rendered by dtml Message-ID: <71650A6F73F1D411BE8000805F65E3CB3B3120@SRV-03> >It doesn't need to be named. Call your python script via the dtml-in, return >foo, and all will be well. I do it all the time. But what I want to do is the opposite: to call the dtml-method from the python script with the list as an argument. From SamirMishra@cbuae.gov.ae Wed Mar 5 04:12:06 2003 From: SamirMishra@cbuae.gov.ae (Samir Mishra) Date: Wed, 5 Mar 2003 08:12:06 +0400 Subject: [Zope] Help Needed - Case for Zope Message-ID: <211AD0070D42D1118C7B00A024FF19AE24C0F4@AUHEXCH> I saw these earlier. These seem to be the only numbers, or 'real' numbers available. But they're OLD! ZServer has improved between Zope 2.1 (which is when I last used it) and now. I think showing Zope to be faster than Tomcat, as the numbers indicate, will be difficult to support, especially since I don't believe it myself. Thanks all the same. Samir. -----Original Message----- From: J Cameron Cooper [mailto:jccooper@jcameroncooper.com] Sent: Tuesday, March 04, 2003 00:34 To: 'zope@zope.org' Subject: Re: [Zope] Help Needed - Case for Zope There are some numbers here: http://www.zope.org/Members/BwanaZulia/zope_benchmarks/benchmarks.html --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 ) From nthomas@cise.ufl.edu Wed Mar 5 04:18:34 2003 From: nthomas@cise.ufl.edu (N. Thomas) Date: Tue, 4 Mar 2003 23:18:34 -0500 Subject: [Zope] dynamically generated TAL not being interpreted In-Reply-To: <15971.45950.565229.839572@gargle.gargle.HOWL> References: <20030302044639.GD11213@cise.ufl.edu> <15971.45950.565229.839572@gargle.gargle.HOWL> Message-ID: <20030305041834.GG4452@cise.ufl.edu> * Dieter Maurer [2003-03-03 20:56:46 +0100]: > N. Thomas wrote at 2003-3-1 23:46 -0500: > > We have a script that generates TAL. The problem is that the content > > is not being interpeted as TAL by Zope, but rather as raw HTML. > > You must make a Page Template object from your TAL source code, wrap > it in an appropriate context (--> "__of__") and return it (or call it > to let it render). > > You can do this only in an External Method (or other filesystem based > code). Well, this was a start in the right direction. But after wading through the archives, the nearest solution I can cruft together is an external method like this: from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate def talgen(): zptstr = \ """ If properlu rendered, this sentence should contain no tags. """ zptid = 'foobar' z = ZopePageTemplate(id=zptid, text=zptstr, content_type="text/html") return z But this returns an error, probably because I'm stabbing in the dark. Also, I have no idea where exactly to stick the "__of__" method. (I did look at the relevant sections in http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html though.) My questions: Where is the API for Products.PageTemplates.ZopePageTemplate documented? In Products.PageTemplates, should I use PageTemplate, or PageTemplateFile, or ZopePageTemplate? In the code above, I see that ZopePageTemplate requires that an id be passed in, does that mean that I have to create a temporary ZPT object in the Zope filesystem, return that, and somehow make sure it is destroyed afterwards? I only passed in 'foobar' because it was required. Also, if anyone could point me to a fragment of code that does something similar it would be much appreciated. thomas -- N. Thomas nthomas@cise.ufl.edu Etiamsi occiderit me, in ipso sperabo From jccooper@jcameroncooper.com Wed Mar 5 05:53:51 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Tue, 04 Mar 2003 23:53:51 -0600 Subject: [Zope] Re: Windows Server 2003 References: Message-ID: <3E6590EF.5040802@jcameroncooper.com> > > >>>Is there something obvious I might be missing? >>> >>> >>At the risk of being too obvious: you are going to >> >>http://localhost:8080 >> >>right? >> >> >Yes -- I am reasonably Zope competent, run an XP and Win2000 Zope -- >as far as I can tell I attempting access correctly. > > Forgive me my assumptions: all too often I find myself telling people how they have to be online to access their email. "Oh. Really?" >>If so, perhaps your OS is doing some sort of firewalling? >> >Perhaps -- nothing obvious that I can see though -- I just installed >this software to assess how Zope runs on it -- not very well so far >but I will keep digging. > I would suggest trying the FTP or WebDAV ports to see if you get anything there, and also perhaps changing the HTTP port to 80. That's terribly unlikely to be blocked. I'm assuming you can see that the Python processes are running: if so, perhaps you can try the scripting-Zope-by-ZEO method to see if anything actually is happening. And do you get anything by way of log activity or console output ? (assuming this Windows Server thingy has a console...) --jcc From jccooper@jcameroncooper.com Wed Mar 5 06:14:14 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Wed, 05 Mar 2003 00:14:14 -0600 Subject: [Zope] Help Needed - Case for Zope References: <211AD0070D42D1118C7B00A024FF19AE24C0F4@AUHEXCH> Message-ID: <3E6595B6.4020200@jcameroncooper.com> > > >I saw these earlier. These seem to be the only numbers, or 'real' numbers >available. But they're OLD! ZServer has improved between Zope 2.1 (which is >when I last used it) and now. I think showing Zope to be faster than Tomcat, >as the numbers indicate, will be difficult to support, especially since I >don't believe it myself. > > I don't know what's not to believe. A servlet engine has at least as much to do as Zope, if not more. Although benchmarks are a very small part of the story as far as I'm concerned, there is a need for such numbers. I think I'll try to find time Thursday to do some tests with the usual suspects (at least so far as my work is concerned): Zope, Apache, Tomcat, Jetty, and maybe a little JBoss. The results will certainly be published. --jcc From jccooper@jcameroncooper.com Wed Mar 5 06:49:20 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Wed, 05 Mar 2003 00:49:20 -0600 Subject: [Zope] python variables rendered by dtml References: <71650A6F73F1D411BE8000805F65E3CB3B3120@SRV-03> Message-ID: <3E659DF0.3010600@jcameroncooper.com> > > >>It doesn't need to be named. Call your python script via the dtml-in, >> >> >return > > >>foo, and all will be well. I do it all the time. >> >> > >But what I want to do is the opposite: > >to call the dtml-method from the python script with the list as an argument. > > In order to render the content in the script? I'll trust that you really need to do this and stow the alternatives: you have a list-like result set you got from foo = container.someSql() you have a DTMLMethod 'renderSql' that says ... In your PythonScript you can just do return context.renderSql(someResultList=foo) to render it with foo in the namespace as someResultList. But that'll leave everything else out of the namespace, so you really want to do return context.renderSql(client=context, someResultList=foo) if you want to aquire anything from your surroundings (which you almost always want to do.) Canonically, or if you want to use you REQUEST namespace or manipulate your RESPONSE in your DTML method, you can say request = container.REQUEST response = request.RESPONSE return context.renderSQL(client=context, REQUEST=request, RESPONSE=response, someResultList=foo) --jcc (not canonical) From andy@agmweb.ca Wed Mar 5 07:04:47 2003 From: andy@agmweb.ca (Andy McKay) Date: Tue, 04 Mar 2003 23:04:47 -0800 Subject: [Zope] zope access to external files In-Reply-To: <3E650B6D.7080904@jcameroncooper.com> References: <86ptp7vy5d.fsf@potter.codesourcery.com> <3E650B6D.7080904@jcameroncooper.com> Message-ID: <3E65A18F.7090703@agmweb.ca> > There is good > reason to let Apache serve static content, however: makes me think about > how, say, a StaticApacheFile might work. I have to at this point mention FSCacheManager which takes an object from Zope and writes it out as a static file so in future hits it will be served as a static file from Apache. Not really the same thing and doesn't help the poster, but I think worth mentioning in a static file overview ;) -- Andy McKay From zope@stylusinc.net Wed Mar 5 07:17:02 2003 From: zope@stylusinc.net (Zope@Stylus) Date: Wed, 5 Mar 2003 12:47:02 +0530 Subject: [Zope] Result set error Message-ID: <012f01c2e2e7$53acee00$1c0aa8c0@stylusinc.com> Hi all I am using Zope-2.5.1 on a Mandrake Linux machine .My RDBMS is PostgreSQL. I have written a simple python script which calls a zsql method whicg returns a ResultSet which has 5000 Records. Now I am readig from the ResultSet and writing the values to an array (tuple) . But of the 5000 records I am being able to get only 1000 Records in the Pytho script .The 4000 other records dont seem to be coming . Here is my code. userlist = [] list_users = context.oms_old.john.db.zsqll_omslogs() print len(list_users.tuples()) #----> the answer I get is 1000. for x in list_users: userlist = userlist + [[str(x[0]) , x[1], str(x[2]) ,str(x[3])]] #return userlist return printed So now I am getting a tuple with just 1000 * 4 array Where I should be getting a 5000 * 4 array .. The zsql method -->context.oms_old.john.db.zsqll_omslogs() --- is as follows select * from omslogs And select count(*) from omslogs returns 5000.But the answer for len(list_users.tuples()) is 1000. Also I am geeting only the 1000 Records in the table where I am displaying the records. Could you please guide me here and point out where I may have gone wrong.Thanks for all help in advance Thanks and Best Regards John Kunchandy --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.459 / Virus Database: 258 - Release Date: 2/25/2003 From zope@stylusinc.net Wed Mar 5 07:17:05 2003 From: zope@stylusinc.net (Zope@Stylus) Date: Wed, 5 Mar 2003 12:47:05 +0530 Subject: [Zope] DateTime Error-Recurring Message-ID: <013001c2e2e7$548d8a00$1c0aa8c0@stylusinc.com> Hi all There is one issue I would like to clarify.The date time module is throwing an erro everytime I open the ZMI. I have a zsql mehtod ...> select DateTime(ldate) from tbluser Now as long as the ZMI is not opened there is no issue with the performance.But at any point of time if I open the ZMI for doing some editing then I get the following error. Zope Error Zope has encountered an error while publishing this resource. Error Type: Invalid Date-Time String Error Value: 2002-10-24 12:01:35+05 -------------------------------------------------------------------------- Troubleshooting Suggestions a.. The URL may be incorrect. b.. The parameters passed to this resource may be incorrect. c.. 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 /Users/zope/Zope-2.5.1/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /Users/zope/Zope-2.5.1/Products/Localizer/__init__.py, line 65, in new_publish File /Users/zope/Zope-2.5.1/lib/python/ZPublisher/Publish.py, line 114, in publish File /Users/zope/Zope-2.5.1/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: john) File /Users/zope/Zope-2.5.1/lib/python/ZPublisher/Publish.py, line 98, in publish File /Users/zope/Zope-2.5.1/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: get_omslogs) File /Users/zope/Zope-2.5.1/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: get_omslogs) File /Users/zope/Zope-2.5.1/lib/python/Shared/DC/Scripts/Bindings.py, line 252, in __call__ (Object: get_omslogs) File /Users/zope/Zope-2.5.1/lib/python/Shared/DC/Scripts/Bindings.py, line 283, in _bindAndExec (Object: get_omslogs) File /Users/zope/Zope-2.5.1/lib/python/Products/PythonScripts/PythonScript.py, line 302, in _exec (Object: get_omslogs) (Info: ({'script': , 'context': , 'container': , 'traverse_subpath': []}, ('dd',), {}, None)) File Script (Python), line 12, in get_omslogs File /Users/zope/Zope-2.5.1/lib/python/Shared/DC/ZRDB/DA.py, line 421, in __call__ (Object: zsqll_omslogs) File /Users/zope/Zope-2.5.1/lib/python/Products/ZPsycopgDA/db.py, line 205, in query File /Users/zope/Zope-2.5.1/lib/python/Products/ZPsycopgDA/DA.py, line 120, in cast_DateTime File /Users/zope/Zope-2.5.1/lib/python/DateTime/DateTime.py, line 651, in __init__ File /Users/zope/Zope-2.5.1/lib/python/DateTime/DateTime.py, line 1022, in _parse Invalid Date-Time String: (see above) Thus erro only happens when the ZMI is opened.Now the solution for overcoming this is still not clear .I open the detials of the Psycopg connection and then click on the Save changes button without making any changes.And it seems to do the trick.But again when someone opens the ZMI on their machine and I am already working n have chnaged it but stil the same error gets thrown up. Is this problem being faced only by me or others as well.The way I am resolvin this issue is very non logical.Could you please guide me here and point out where I may have gone wrong.Thanks for all help in advance Thanks and Best Regards John Kunchandy --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.459 / Virus Database: 258 - Release Date: 2/25/2003 From Andreas Jung Wed Mar 26 07:24:34 2003 From: Andreas Jung (Andreas Jung) Date: Wed, 26 Mar 2003 08:24:34 +0100 Subject: [Zope] DateTime Error-Recurring In-Reply-To: <013001c2e2e7$548d8a00$1c0aa8c0@stylusinc.com> References: <013001c2e2e7$548d8a00$1c0aa8c0@stylusinc.com> Message-ID: <1826496.1048667074@[0.0.0.2]> --On Mittwoch, 5. M=E4rz 2003 12:47 +0530 "Zope@Stylus" = =20 wrote: > Hi all > > There is one issue I would like to clarify.The date time module is > throwing an erro everytime I open the ZMI. > I have a zsql mehtod ...> select DateTime(ldate) from tbluser > Now as long as the ZMI is not opened there is no issue with the > performance.But at any point of time if I open the ZMI for doing some > editing then I get the following error. > > Zope Error > Zope has encountered an error while publishing this resource. > > Error Type: Invalid Date-Time String > Error Value: I don't know about the underlying problem but "2002-10-24 12:01:35+05" is not a valid date format that can be passed to the DateTime constructor. Check out the DateTime API for details. -aj From deboer@wisdom.nl Wed Mar 5 09:30:13 2003 From: deboer@wisdom.nl (Chris de Boer) Date: Wed, 5 Mar 2003 10:30:13 +0100 Subject: [Zope] Newbie question about installing modules Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0013_01C2E302.34C5C050 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi there, I've just installed Zope and Plone and I'm trying to install additional modules (like the VisualEditor module). It has to be copied to the lib/Python/Products directory. When restarting the zope server, it generates an error. I couldn't find any documentation about how to install the module (other than: "install in the normal way"). I suppose I have to run some kind of script to install the module properly. Any help will be appreciated !!!!!!! Chris. ------=_NextPart_000_0013_01C2E302.34C5C050 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
    Hi=20 there,
     
    I've = just installed=20 Zope and Plone and I'm trying to install additional modules (like the=20 VisualEditor module).
    It has = to be copied=20 to the lib/Python/Products directory. When restarting the zope server, = it=20 generates an error.
     
    I = couldn't find any=20 documentation about how to install the module (other than: "install in = the=20 normal way").
    I = suppose I have to=20 run some kind of script to install the module = properly.
     
    Any = help will be=20 appreciated !!!!!!!
     
    Chris.
    ------=_NextPart_000_0013_01C2E302.34C5C050-- From j_melt@yahoo.com Wed Mar 5 09:53:19 2003 From: j_melt@yahoo.com (Yannis Lionis) Date: Wed, 5 Mar 2003 01:53:19 -0800 (PST) Subject: [Zope] Users and passwords Message-ID: <20030305095319.93601.qmail@web13406.mail.yahoo.com> --0-1480349947-1046857999=:92893 Content-Type: text/plain; charset=us-ascii Hi everyone. I have a problem with creating and accessing a new user. If I create a new user in the acl_users folder (login name: guest, password: guest) and then logout and try to login as guest, the password is not recognised. I took a look around the mailing list archives and discovered that others have been having the same problem, but I found no solution that works for me. But what _really_ worries me, is that when I add the new user and then try to edit its details, the password is (or looks) 8 characters long no matter what password I had entered! Is this normal behaviour? Can anybody help me on this? Thanks! Yannis --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more --0-1480349947-1046857999=:92893 Content-Type: text/html; charset=us-ascii

    Hi everyone.

    I have a problem with creating and accessing a new user. If I create a new user in the acl_users folder (login name: guest, password: guest) and then logout and try to login as guest, the password is not recognised. I took a look around the mailing list archives and discovered that others have been having the same problem, but I found no solution that works for me. But what _really_ worries me, is that when I add the new user and then try to edit its details, the password is (or looks) 8 characters long no matter what password I had entered! Is this normal behaviour? Can anybody help me on this?

    Thanks!

    Yannis



    Do you Yahoo!?
    Yahoo! Tax Center - forms, calculators, tips, and more --0-1480349947-1046857999=:92893-- From lsh@wo.cz Wed Mar 5 09:59:14 2003 From: lsh@wo.cz (Jaroslav Lukesh) Date: Wed, 5 Mar 2003 09:59:14 -0000 Subject: [Zope] STX - how to add new function Message-ID: <3E5C6A8200142772@stateless1.tiscali.cz> (added by postmaster@mail.tiscali.cz) Toto je vícedílná zpráva formátu MIME. ------=_NextPart_000_01C2E2FD.E0834DE0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: Quoted-Printable : Odes=EDlatel: Dylan Reinhardt : >But I have no success with any of 3 files (it is need to be modified : >ClassicStructuredText.py, DocumentClass.py, HTMLClass.py) :=20 : Well... what kind of non-success did you encounter? I doubt there's a=20 : how-to for modifying these files in exactly the way you want to, but if you=20 : put up what you're trying and what's going wrong, you can probably get some=20 : help. Thanks for a promise and sorry for long mail. In attachment I send my changes, here are errors, filenames and added/modified lines only in STX_changes.stx. I know that would be better to write new .py scripts, like Document/HTMLWithImages.py, but I dont know exactly how, I am not a big programmer. Many thanks, J. Lukesh ------=_NextPart_000_01C2E2FD.E0834DE0 Content-Type: application/octet-stream; name="mod.tgz" Content-Description: mod.tgz (TGZ soubor) Content-Disposition: attachment; filename="mod.tgz" Content-Transfer-Encoding: Base64 H4sICPLGZT4CAG1vZC50YXIA7D1rc9u2sv2smf4HXHsyFBNalRQ7btQqHdd2Ws1xbI+t9PRU0tWh JNjiMUWyBGXHvbn3t9/dBR/gSw9HeU2tNLFMAruLxT6BBcp93/WHd1YwHbq+dW05pj20ZuY1F99s 7FOv11/s7rKi5/jZa77Y/6a+/+J54/nu88ZeE543mvUm/PzmE3zmIjB9xr75m37+cD3OjlEIvq3Q 96kpGHfG7twJuM8nzHQYx9fsbmrZnHnzkW2JqeVcs2BqCeZz4c79Ma99W/m2QnBY997jLXZqzngI Vz7+zbTn8NyB50w7csfzGXeCQ9sUQmMAyHEDNuFXlsMnCAr/7Gz4gzC7vgsj4GLqugEO4nJ+DbIe WK4j6LU6JjYz79mIs8C/p/G68OYKmOLAKxMIdvg7SwQwCuaO/sPH8MNnt6ZvmYBglXHWGCLk7O3F SYTKAs77PsCK3nmmD4BgKgR8FQImBMgIiqhMdT1IXgdTM8j08LltccFcJ+obTziOM5pxhPMahjRz fQ4kBybM/wTQXLn+zESOMXP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4Z O8uVPjSXLtg6jPq9oT6b8CNYpc34U1U8OHp7tn905Nm2q1Ucd1pNrGjjWWYOieWQdn7ZeMbLTcdz aP+zonnwqGqHJI28m8bof8lOPToSEeQRAYfpRECvk8CY0PUm8dHZcV2r1a2ofQZKyqhGYn0HBFr2 Elu2e9XYy7QNp7uXLSuWh5jbmMTNOPHAig3yQkV7uzj57e3SDWTa7uBPWnIogxKdR4Nb/c3zOJOQ kuySGOgpoULyhVb3mFmMYoP08psCTlQqIR4qoLI7O2u37bMzHJRnZ3ZLjM417NH653f3839yBKOe AKwBAA== ------=_NextPart_000_01C2E2FD.E0834DE0-- From j_melt@yahoo.com Wed Mar 5 10:29:06 2003 From: j_melt@yahoo.com (Yannis Lionis) Date: Wed, 5 Mar 2003 02:29:06 -0800 (PST) Subject: [Zope] Users and passwords In-Reply-To: <20030305095319.93601.qmail@web13406.mail.yahoo.com> Message-ID: <20030305102906.17281.qmail@web13401.mail.yahoo.com> --0-1861187825-1046860146=:16669 Content-Type: text/plain; charset=us-ascii Ok, false alarm... I read here and there that you need to logout AND close down the browser, but it only just occured to me to try closing down ALL instances of my browser. Then I was able to login as the new user. Thanks anyway! Yannis wrote: Hi everyone. I have a problem with creating and accessing a new user. If I create a new user in the acl_users folder (login name: guest, password: guest) and then logout and try to login as guest, the password is not recognised. I took a look around the mailing list archives and discovered that others have been having the same problem, but I found no solution that works for me. But what _really_ worries me, is that when I add the new user and then try to edit its details, the password is (or looks) 8 characters long no matter what password I had entered! Is this normal behaviour? Can anybody help me on this? Thanks! Yannis --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more --0-1861187825-1046860146=:16669 Content-Type: text/html; charset=us-ascii

    Ok, false alarm... I read here and there that you need to logout AND close down the browser, but it only just occured to me to try closing down ALL instances of my browser. Then I was able to login as the new user.

    Thanks anyway! 

     Yannis wrote:

    Hi everyone.

    I have a problem with creating and accessing a new user. If I create a new user in the acl_users folder (login name: guest, password: guest) and then logout and try to login as guest, the password is not recognised. I took a look around the mailing list archives and discovered that others have been having the same problem, but I found no solution that works for me. But what _really_ worries me, is that when I add the new user and then try to edit its details, the password is (or looks) 8 characters long no matter what password I had entered! Is this normal behaviour? Can anybody help me on this?

    Thanks!

    Yannis



    Do you Yahoo!?
    Yahoo! Tax Center - forms, calculators, tips, and more



    Do you Yahoo!?
    Yahoo! Tax Center - forms, calculators, tips, and more --0-1861187825-1046860146=:16669-- From SamirMishra@cbuae.gov.ae Wed Mar 5 10:34:24 2003 From: SamirMishra@cbuae.gov.ae (Samir Mishra) Date: Wed, 5 Mar 2003 14:34:24 +0400 Subject: [Zope] Adding content to document types Message-ID: <211AD0070D42D1118C7B00A024FF19AE24C0F9@AUHEXCH> Hello all, I'm adding documents & scripts to a folder using - context.manage_addDTMLMethod("index_html", "Index") #document name & title etc. These documents are created with default body content. My question is - how do I access/add to/replace the content that is inserted into the documents by default? For example, I'd like to insert dynamically generated code into Python scripts, or into the DTML document using properties defined within the folder. TIA. Samir. From richard.ettema@yoursolutions.com Wed Mar 5 11:47:36 2003 From: richard.ettema@yoursolutions.com (Richard Ettema) Date: Wed, 5 Mar 2003 11:47:36 -0000 Subject: [Zope] sending a post request to a secure site (paypal) from a python script/external method Message-ID: I'm trying to work out how to setup a python script and external method to post form data to a paypal https url. I basically want the user to click a button to pay for their selection which calls the python script, their order info is saved for our records, and then the external script passes onto paypal's secure server. Is this possible? The closest I have got this to work is the palpay page displayed with images missing, but not on a secure connection. I assume the images are missing because the url in the address bar is that of the python script, not the paypal url. Should I be doing something different than a read() in the ext. method? I have looked thru the examples in the urllib.py and urllib2.py but could not work out where I am going wrong, or if it is possible. I have seen comments about python must be built/installed with ssl support for secure connections to https urls, how do I work out if python was built/installed with this? Running: system: freebsd Zope: 2.5.1 python: 2.1.3 The python script: payBill ######### req = context.REQUEST form_dict = {} order_ref = context.recordOrder() form_dict['cmd'] = '_xclick' form_dict['business'] = 'test@test' form_dict['item_name'] = 'Services' form_dict['item_number'] = '%s' % order_ref form_dict['amount'] = '%.2f' % float(req['gdttl']) form_dict['return'] = '%s/services_thankyou' % req['URL'] form_dict['cancel_return'] = '%s/services_thanks' % req['URL1'] form_dict['no_note'] = 1 form_dict['currency_code'] = req['currency_code'] #send info to external method url_req = context.payBillExt( 'https://www.paypal.com/cgi-bin/webscr', form_dict ) return url_req ########## The External Method: payBillExt ######### import urllib2 import urllib def urlRequestCreation(self, url, data): """url""" url_data = urllib.urlencode( data ) url_req = urllib2.urlopen(url, url_data) return url_req.read() ######### Thanks for any pointers in the right direction. Richard --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.456 / Virus Database: 256 - Release Date: 18/02/2003 From mirsoft@gmx.net Wed Mar 5 12:26:45 2003 From: mirsoft@gmx.net (Lubos Culen) Date: Wed, 05 Mar 2003 13:26:45 +0100 Subject: [Zope] How to change default method for calling object from the web? Message-ID: Hello! I have a problem: Let's assume I have object 'obj' and its method 'view' . So, calling the object 'obj' from web URL (e.g. 'www.mysite.com/path/obj' ) will display content of 'obj'. Calling 'www.mysite.com/path/obj/view' will call method 'view' of the object 'obj'. Now I want that the method 'view' should be DEFAULT method for the object 'obj', so calling 'www.mysite.com/path/obj' should automatically call the method 'view' of object 'obj'. Is it possible to do in Zope and how? -- Regards, Mirsoft From roel@planetinterior.com Wed Mar 5 12:34:02 2003 From: roel@planetinterior.com (Roel Van den Bergh) Date: Wed, 5 Mar 2003 13:34:02 +0100 Subject: [Zope] system down - how to prevent? In-Reply-To: <20030304233902.31892.47323.Mailman@mail.python.org> Message-ID: Hi all. We have been working with Zope for over a year now and we like it. It has been a long time since I had to call upon you people to help me out. Yesterday, our production server went down the hard way. While someone was editing some objects in the ZMI everything crashed. Not only Zope, but the entire machine. We are running redhat 7.3, apache and Zope 2.5.1 + CMF 1.3 on a Dell PowerApp 120 dual PIII 1Ghz, 1 GB ram, Raid 5 so we thought we would be rather save having also backed up Data.fs by our hosting provider. After the crash the server would not start up again, indicating 'memory failure'. After several retries nothing works anymore. The machine is still under warranty so there is no real problem either. Now comes the funny part. There doesn't seem to exist any backup of the Data.fs. Checking our systemlogs prior tho the incident revealed this: Feb 14 02:54:08 piwebserver Retrospect[27997]: FSGetNodeInfo: lstat failed on "/home/zope/2-5-1/var/Data.fs", error 75 Feb 14 02:54:08 piwebserver Retrospect[27997]: FSGetNodeInfo: lstat failed on "/home/zope/2-5-1/var/Data.fs.old", error 75 Feb 14 02:54:12 piwebserver Retrospect[27995]: connTcpConnection: invalid code found: 111 Now they tell us their backup program can connect to our server, but the Data.fs file cannot be backed up because it is locked / in use. Our firewall is open to the backup program $IPT -A tcp_inbound -p TCP -s 111.111.111.111 --destination-port 497 -j ACCEPT How come? We can manually create a copy of the file. Has anyone had these problems and how did you solve them. Secondly we are investigating how to prevent downtime of the production server in the future. I had a quick peek at ZEO but I'm a bit lost there. What is the minimum setup for a production site to be kept alive (not necesaraly with the same specs) As far as I can tell you need at least three machines to keep your site alive: a 'load- balancer', a 'client' and a 'server'. Could this be narrowed down to two machines? And what if the actual 'ZEO server' goes down? TIA, WKR, Roel From jens@zope.com Wed Mar 5 12:40:07 2003 From: jens@zope.com (Jens Vagelpohl) Date: Wed, 5 Mar 2003 07:40:07 -0500 Subject: [Zope] Result set error In-Reply-To: <012f01c2e2e7$53acee00$1c0aa8c0@stylusinc.com> Message-ID: <98E22274-4F07-11D7-9D25-0003939EFEBC@zope.com> ZSQL methods have a setting for the maximum number of results returned. go to that ZSQL method and change the setting, which defaults to 1000 jens On Wednesday, Mar 5, 2003, at 02:17 US/Eastern, Zope@Stylus wrote: > Hi all > > I am using Zope-2.5.1 on a Mandrake Linux machine .My RDBMS is > PostgreSQL. > I have written a simple python script which calls a zsql method whicg > returns a ResultSet which has 5000 Records. > Now I am readig from the ResultSet and writing the values to an array > (tuple) . > But of the 5000 records I am being able to get only 1000 Records in the > Pytho script .The 4000 other records dont seem to be coming . From jens@zope.com Wed Mar 5 12:43:01 2003 From: jens@zope.com (Jens Vagelpohl) Date: Wed, 5 Mar 2003 07:43:01 -0500 Subject: [Zope] Newbie question about installing modules In-Reply-To: Message-ID: <0074F469-4F08-11D7-9D25-0003939EFEBC@zope.com> how is anyone supposed to help you if you don't tell us about the error=20= you see (including full traceback, please) and other relevant data such=20= as zope version, OS, python version, etc. ? jens On Wednesday, Mar 5, 2003, at 04:30 US/Eastern, Chris de Boer wrote: > Hi there, > =A0 > I've just installed Zope and Plone and I'm trying to install=20 > additional modules (like the VisualEditor module). > It has to be copied to the lib/Python/Products directory. When=20 > restarting the zope server, it generates an error. > =A0 > I couldn't find any documentation about how to install the module=20 > (other than: "install in the normal way"). > I suppose I have to run some kind of script to install the module=20 > properly. > =A0 > Any help will be appreciated !!!!!!! > =A0 > Chris. From tdickenson@geminidataloggers.com Wed Mar 5 12:48:39 2003 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Wed, 5 Mar 2003 12:48:39 +0000 Subject: [Zope] system down - how to prevent? In-Reply-To: References: Message-ID: <200303051248.39825.tdickenson@geminidataloggers.com> On Wednesday 05 March 2003 12:34 pm, Roel Van den Bergh wrote: > Feb 14 02:54:08 piwebserver Retrospect[27997]: FSGetNodeInfo: lstat failed > on "/home/zope/2-5-1/var/Data.fs", error 75 errno 75 is EOVERFLOW, which I think is probably related to 2G file limits in the backup software. > a 'load- balancer', a 'client' and a 'server'. Could this be narrowed down > to two machines? Or down to one machine. You dont have to put ZEO server and application servers on seperate boxes. > And what if the actual 'ZEO server' goes down? Today it is a single point of failure, so make sure that one box is well engineered. Keeping a cold standby ZEO server isnt hard, if you dont mind a disaster losing a few recent transactions, and causing maybe an hour of downtime while you swap the boxes. There are several options for maintaining this replica.... Is that what you had in mind? -- Toby Dickenson http://www.geminidataloggers.com/people/tdickenson From roel@planetinterior.com Wed Mar 5 13:21:52 2003 From: roel@planetinterior.com (Roel Van den Bergh) Date: Wed, 5 Mar 2003 14:21:52 +0100 Subject: [Zope] system down - how to prevent? In-Reply-To: <200303051248.39825.tdickenson@geminidataloggers.com> Message-ID: > -----Original Message----- > From: Toby Dickenson [mailto:tdickenson@geminidataloggers.com] > Sent: Wednesday, March 05, 2003 1:49 PM > To: roel@planetinterior.com; zope@zope.org > Subject: Re: [Zope] system down - how to prevent? > > > On Wednesday 05 March 2003 12:34 pm, Roel Van den Bergh wrote: > > > Feb 14 02:54:08 piwebserver Retrospect[27997]: FSGetNodeInfo: > lstat failed > > on "/home/zope/2-5-1/var/Data.fs", error 75 > > errno 75 is EOVERFLOW, which I think is probably related to 2G > file limits in > the backup software. Yes our Data.fs is about 4GB but shouldn't a backup program like retrospect be able to handle such files? > > a 'load- balancer', a 'client' and a 'server'. Could this be > narrowed down > > to two machines? > > Or down to one machine. You dont have to put ZEO server and application > servers on seperate boxes. This does not help in case of hardware failure > > And what if the actual 'ZEO server' goes down? > > Today it is a single point of failure, so make sure that one box is well > engineered. > > Keeping a cold standby ZEO server isnt hard, if you dont mind a disaster > losing a few recent transactions, and causing maybe an hour of > downtime while > you swap the boxes. There are several options for maintaining this > replica.... Is that what you had in mind? > What do you mean by 'cold', how can you maintain an exact copy of the Data.fs on another machine if that system isn't turned on and connected to the original server. Our hardware is located 30 km from here in a secured place. And yes, swapping boxes is an option I had in mind. Like bying two equal high-end servers with hot-swappable disks and in emergencies moving the disks from one machine to the other. But my boss hasn't got the money :-( > -- > Toby Dickenson > http://www.geminidataloggers.com/people/tdickenson > From jens@zope.com Wed Mar 5 13:32:45 2003 From: jens@zope.com (Jens Vagelpohl) Date: Wed, 5 Mar 2003 08:32:45 -0500 Subject: Fwd: [Zope] Newbie question about installing modules Message-ID: please keep this on the list. the message you wanted to attach is not there. jens Begin forwarded message: > From: "Chris de Boer" > Date: Wed Mar 5, 2003 08:07:13 US/Eastern > To: "Jens Vagelpohl" > Subject: RE: [Zope] Newbie question about installing modules > > Jens, > > Ok, you're right (I told you I was a newbie :-) ) > I've attached the errormessage as a gif. > I'm using: > Windows2000 > Zope 2.5.1 > Plone > > After starting the zope server, the attached message is shown. The=20 > server > does start up and I can access both zope and plone. > However, I can't seem to find the Visual Editor functionality=20 > (although I'm > not quite sure where to look :-) > > Hope this helps. > > Chris/ > > -----Original Message----- > From: Jens Vagelpohl [mailto:jens@zope.com] > Sent: Wednesday, March 05, 2003 1:43 PM > To: Chris de Boer > Cc: zope@zope.org > Subject: Re: [Zope] Newbie question about installing modules > > > how is anyone supposed to help you if you don't tell us about the = error > you see (including full traceback, please) and other relevant data = such > as zope version, OS, python version, etc. ? > > jens > > > On Wednesday, Mar 5, 2003, at 04:30 US/Eastern, Chris de Boer wrote: > >> Hi there, >> =A0 >> I've just installed Zope and Plone and I'm trying to install >> additional modules (like the VisualEditor module). >> It has to be copied to the lib/Python/Products directory. When >> restarting the zope server, it generates an error. >> =A0 >> I couldn't find any documentation about how to install the module >> (other than: "install in the normal way"). >> I suppose I have to run some kind of script to install the module >> properly. >> =A0 >> Any help will be appreciated !!!!!!! >> =A0 >> Chris. > From pw_lists@slinkp.com Wed Mar 5 13:47:50 2003 From: pw_lists@slinkp.com (Paul Winkler) Date: Wed, 5 Mar 2003 08:47:50 -0500 Subject: [Zope] Help Needed - Case for Zope In-Reply-To: <3E6595B6.4020200@jcameroncooper.com> References: <211AD0070D42D1118C7B00A024FF19AE24C0F4@AUHEXCH> <3E6595B6.4020200@jcameroncooper.com> Message-ID: <20030305134750.GA5143@slinkp.com> On Wed, Mar 05, 2003 at 12:14:14AM -0600, J Cameron Cooper wrote: > Although benchmarks are a very small part of the story as far as I'm > concerned, there is a need for such numbers. I think I'll try to find > time Thursday to do some tests with the usual suspects (at least so far > as my work is concerned): Zope, Apache, Tomcat, Jetty, and maybe a > little JBoss. > > The results will certainly be published. yay! one request: please don't do anything that skeptics can point to and say e.g. "but zope wasn't serving as much data". there were a number of comparisons on the BwanaZulia page where zope had a slight advantage in terms of bytes delivered. It may seem trivial, but marketing zope vs. java-app-server-X is an uphill battle, so every little bit matters. -- Paul Winkler http://www.slinkp.com From tdickenson@geminidataloggers.com Wed Mar 5 13:53:42 2003 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Wed, 5 Mar 2003 13:53:42 +0000 Subject: [Zope] system down - how to prevent? In-Reply-To: References: Message-ID: <200303051353.42077.tdickenson@geminidataloggers.com> On Wednesday 05 March 2003 1:21 pm, Roel Van den Bergh wrote: > Like bying two equal high-end servers with hot-swappable disks and in > emergencies moving the disks from one machine to the other. But my boss > hasn't got the money :-( If you want redundancy then you will need two copies of your hardware. The secondary system can be lower spec (in reliability, but not capacity), because you will only be using it while the main system is down. If you dont have easy physical access to the machines then Im not sure hot swap disks are a great advantage. An online replication scheme would allow you to switch remotely. There are scripts to do this for FileStorage (I/O intensive, and hairy) and DirectoryStorage (still in beta release), and Zope Corp have a commercial product. -- Toby Dickenson http://www.geminidataloggers.com/people/tdickenson From jens@zope.com Wed Mar 5 14:00:22 2003 From: jens@zope.com (Jens Vagelpohl) Date: Wed, 5 Mar 2003 09:00:22 -0500 Subject: [Zope] Help Needed - Case for Zope In-Reply-To: <20030305134750.GA5143@slinkp.com> Message-ID: IMHO it is much more useful to have a more complete set of data, even if it shows shortcomings, than to have a "redacted" set that leaves out some not-so-good areas. marketing is good, but we are not micro$haft, after all. i don't think we have to stoop to that level of "being economical with the truth". jens On Wednesday, Mar 5, 2003, at 08:47 US/Eastern, Paul Winkler wrote: > On Wed, Mar 05, 2003 at 12:14:14AM -0600, J Cameron Cooper wrote: >> Although benchmarks are a very small part of the story as far as I'm >> concerned, there is a need for such numbers. I think I'll try to find >> time Thursday to do some tests with the usual suspects (at least so >> far >> as my work is concerned): Zope, Apache, Tomcat, Jetty, and maybe a >> little JBoss. >> >> The results will certainly be published. > > yay! > one request: please don't do anything that skeptics can point > to and say e.g. "but zope wasn't serving as much data". > there were a number of comparisons on the BwanaZulia page > where zope had a slight advantage in terms of bytes delivered. > It may seem trivial, but marketing zope vs. java-app-server-X > is an uphill battle, so every little bit matters. > > -- > > Paul Winkler From thierry.florac@onf.fr Wed Mar 5 14:31:57 2003 From: thierry.florac@onf.fr (Thierry FLORAC) Date: Wed, 5 Mar 2003 15:31:57 +0100 Subject: [Zope] How to change default method for calling object from the web? In-Reply-To: References: Message-ID: <200303051531.57928.thierry.florac@onf.fr> On Wednesday 05 March 2003 13:26, Lubos Culen wrote: > Hello! > > I have a problem: > > Let's assume I have object 'obj' and its method 'view' . So, calling the > object 'obj' from web URL (e.g. 'www.mysite.com/path/obj' ) will display > content of 'obj'. Calling 'www.mysite.com/path/obj/view' will call method > 'view' of the object 'obj'. > > Now I want that the method 'view' should be DEFAULT method for the object > 'obj', so calling 'www.mysite.com/path/obj' should automatically call the > method 'view' of object 'obj'. Is it possible to do in Zope and how? Just call your method 'index_html' instead of 'view'. Thierry -- Linux every day, keeps Dr Watson away... http://gpc.sourceforge.net -- http://www.ulthar.net From stefan@epy.co.at Wed Mar 5 14:39:06 2003 From: stefan@epy.co.at (Stefan H. Holek) Date: Wed, 05 Mar 2003 15:39:06 +0100 Subject: [Zope] How to change default method for calling object from the web? In-Reply-To: References: Message-ID: <4254450750.1046878746@[172.16.8.4]> In the class of 'obj' define the method def __browser_default__(self, REQUEST): return self, ('view',) HTH, Stefan --On Mittwoch, 05. M=E4rz 2003 13:26 +0100 Lubos Culen =20 wrote: > Hello! > > I have a problem: > > Let's assume I have object 'obj' and its method 'view' . So, calling the > object 'obj' from web URL (e.g. 'www.mysite.com/path/obj' ) will display > content of 'obj'. Calling 'www.mysite.com/path/obj/view' will call method > 'view' of the object 'obj'. > > Now I want that the method 'view' should be DEFAULT method for the object > 'obj', so calling 'www.mysite.com/path/obj' should automatically call the > method 'view' of object 'obj'. Is it possible to do in Zope and how? > > -- > Regards, Mirsoft > > _______________________________________________ > 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 ) -- Those who write software only for pay should go hurt some other field. /Erik Naggum/ From mas@semafor.ch Wed Mar 5 14:42:44 2003 From: mas@semafor.ch (Sorin Marti) Date: Wed, 05 Mar 2003 15:42:44 +0100 Subject: [Zope] Where does Zope store files... Message-ID: <3E660CE4.4050103@semafor.ch> Hi all, I don't get that... Where does Zope store all the files? Is ist possible to say Zope where it should keep my files? Where is the database stored? Can I connect to the Zope database with a mysql-client? Thanks for every answer! Sorin Marti From pw_lists@slinkp.com Wed Mar 5 15:09:55 2003 From: pw_lists@slinkp.com (Paul Winkler) Date: Wed, 5 Mar 2003 10:09:55 -0500 Subject: [Zope] Where does Zope store files... In-Reply-To: <3E660CE4.4050103@semafor.ch> References: <3E660CE4.4050103@semafor.ch> Message-ID: <20030305150955.GA5753@slinkp.com> On Wed, Mar 05, 2003 at 03:42:44PM +0100, Sorin Marti wrote: > Hi all, > > I don't get that... > Where does Zope store all the files? This is a frequently asked question, but I don't know of an actual FAQ to point you to :( By default zope puts all your data in var/Data.fs in your zope installation directory. this location varies depending on how you installed zope. It's an object database, the objects in zope are not files. > Is ist possible to say Zope where it should keep my files? > Where is the database stored? see above. > Can I connect to the Zope database with a mysql-client? no. it's an object database, not a relational database. -- Paul Winkler http://www.slinkp.com From jwsacksteder@ramprecision.com Wed Mar 5 16:06:20 2003 From: jwsacksteder@ramprecision.com (jwsacksteder@ramprecision.com) Date: Wed, 5 Mar 2003 11:06:20 -0500 Subject: [Zope] VHM, siteroot, et. al. Message-ID: <71650A6F73F1D411BE8000805F65E3CB3B3122@SRV-03> If I run three sites at- www.mydomain.com intranet.mydomain.com extranet.mydomain.com And I map them to the following locations in my Zope using either VHM or siteroot- /www /intranet /extranet Will I still be able to accquire objects in the root container? For example, a shared database connection? From muldrow@mac.com Wed Mar 5 16:12:40 2003 From: muldrow@mac.com (Chris Muldrow) Date: Wed, 05 Mar 2003 11:12:40 -0500 Subject: [Zope] VHM, siteroot, et. al. In-Reply-To: <71650A6F73F1D411BE8000805F65E3CB3B3122@SRV-03> Message-ID: On 3/5/03 11:06 AM, "jwsacksteder@ramprecision.com" wrote: > If I run three sites at- > > www.mydomain.com > intranet.mydomain.com > extranet.mydomain.com > > And I map them to the following locations in my Zope using either VHM or > siteroot- > > /www > /intranet > /extranet > > Will I still be able to accquire objects in the root container? For example, > a shared database connection? > > _______________________________________________ > 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 ) > Yep. You can acquire all the way up and use dtml-with to grab things in one of the other sites. We use this to put news stories from one organization onto the site of another--they're VHM'd. From fluxent@yahoo.com Wed Mar 5 16:07:22 2003 From: fluxent@yahoo.com (Bill Seitz) Date: Wed, 5 Mar 2003 08:07:22 -0800 (PST) Subject: [Zope] zope crashes on first hit In-Reply-To: <3E652FF8.5080505@reidmcmahon.com> Message-ID: <20030305160722.87912.qmail@web14101.mail.yahoo.com> Well, there's certainly space for them. How can I test whether the process can create/write them, without being able to do any through-the-web management? I just hit/crashed the zope process. Now here's the list of files modified in the last 14 days: data.fs Mar3 13MB Z2.pid Mar4 1k data.fs.tmp Mar5 0k data.fs.lock Mar5 1k Strangely, z2.log (480kb) says last mod Jan7. But if I look at its contents in a text editor, I see at the end: * hits from Feb5 * then 292 NULL bytes * then 40 lines of DTML (starts and stops in the middle of lines, not clean) from a page that I was working which was broken and never got around to fixing Should I delete any of these files and start again? --- Steve McMahon wrote: > Check your log files. Can the zope process create > and write them? Have > you space available for them? Zope is dying as it > tries to flush the log. > > Bill Seitz wrote: > > All the sudden my zope (v2.5.1 running on Win98) > is > > crashing while processing its first hit. This > seems > > true regardless of the URL requests (manage, > > manage_main, index_html), though it's possible I'm > > getting 1 hit sometimes before it dies. > > __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ From m_hoertzsch@yahoo.de Wed Mar 5 16:19:22 2003 From: m_hoertzsch@yahoo.de (Matthias =?utf-8?q?H=C3=B6rtzsch?=) Date: Wed, 5 Mar 2003 17:19:22 +0100 Subject: [Zope] Adding content to document types In-Reply-To: <211AD0070D42D1118C7B00A024FF19AE24C0F9@AUHEXCH> References: <211AD0070D42D1118C7B00A024FF19AE24C0F9@AUHEXCH> Message-ID: <200303051719.22841.m_hoertzsch@yahoo.de> Am Mittwoch, 5. M=C3=A4rz 2003 11:34 schrieb Samir Mishra: > Hello all, > > I'm adding documents & scripts to a folder using - > context.manage_addDTMLMethod("index_html", "Index") #document name & > title > etc. > > These documents are created with default body content. > > My question is - how do I access/add to/replace the content that is > inserted into the documents by default? For example, I'd like to insert > dynamically generated code into Python scripts, or into the DTML document > using properties defined within the folder. Have a look into the API Docs, there are methods you can use to replace the= =20 content. =46or DTML methods / documents -> manage_edit(data, title) for Python scripts -> ZPythonScript_edit(params, body) hth Matthias > > TIA. > > Samir. > > _______________________________________________ > 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 ) __________________________________________________________________ Gesendet von Yahoo! Mail - http://mail.yahoo.de Bis zu 100 MB Speicher bei http://premiummail.yahoo.de From jens@zope.com Wed Mar 5 16:19:13 2003 From: jens@zope.com (Jens Vagelpohl) Date: Wed, 5 Mar 2003 11:19:13 -0500 Subject: [Zope] VHM, siteroot, et. al. In-Reply-To: <71650A6F73F1D411BE8000805F65E3CB3B3122@SRV-03> Message-ID: <34325E28-4F26-11D7-ADC5-0003939EFEBC@zope.com> yes i think just trying that out would have taken you less time than it took you to write this email. jens On Wednesday, Mar 5, 2003, at 11:06 US/Eastern, jwsacksteder@ramprecision.com wrote: > If I run three sites at- > > www.mydomain.com > intranet.mydomain.com > extranet.mydomain.com > > And I map them to the following locations in my Zope using either VHM > or > siteroot- > > /www > /intranet > /extranet > > Will I still be able to accquire objects in the root container? For > example, > a shared database connection? > > _______________________________________________ > 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 ) From mirsoft@gmx.net Wed Mar 5 16:23:34 2003 From: mirsoft@gmx.net (Lubos Culen) Date: Wed, 05 Mar 2003 17:23:34 +0100 Subject: [Zope] Including proper object from subfolders Message-ID: Hello! Yet one problem (resulted from my low knowledge of Zope): Let's assume we have following files in following directory structure (for example on www.site.com server): site/index_html (DTML document) site/content (DTML document, plain HTML) site/standard_html_header (DTML document) site/subdirectory1/content (DTML document, plain HTML) site/subdirectory2/content (DTML document, plain HTML) site/subdirectoryN/content (DTML document, plain HTML) 'index_html' file has for example this content: In 'standard_html_header' is some site header (not important for us), and 'content' in each folder is some static HTML content. Now I'd like to achieve this: when user accesses the 'http://www.site.com/site/subdirectory1/' , he will get displayed the common header and the content of 'site/subdirectory1/content' file. If he accesses 'http://www.site.com/site/subdirectory2/' , he will get displayed the common header and the content of 'site/subdirectory2/content' file etc. If he accesses site root 'http://www.site.com/site/', he will get displayed header and content in 'site/content'. This would work without problem, if the 'site/content' file would be moved to some subdirectory 'e.g. site/index/content' - but I would like to leave this file in the perent folder and get the content from subfolders only by enhancing index_html for some function - and this function I don't know. So, the index_html should look somehow like this: - simply said, I need something which I can replace ##get_folder_where_the_request_came_from## with, to make it work :). Is there some object or function, which will return the object of folder of current site request to help with this? Thanks a lot for any answer! -- Regards, Mirsoft From paul@slinkp.com Wed Mar 5 16:38:45 2003 From: paul@slinkp.com (Paul Winkler) Date: Wed, 5 Mar 2003 11:38:45 -0500 Subject: [Zope] Where does Zope store files... In-Reply-To: <3E661F7B.7020705@semafor.ch> References: <3E660CE4.4050103@semafor.ch> <20030305150955.GA5753@slinkp.com> <3E661F7B.7020705@semafor.ch> Message-ID: <20030305163845.GB5753@slinkp.com> please keep the replies on the mailing list... On Wed, Mar 05, 2003 at 05:02:03PM +0100, Sorin Marti wrote: > That means for a backup I only have to backup this file? > When for example my system crashes and my harddisk too (that happended > this morning :-( ), I only have to setup a new Zope environment and > replace the new Data.fs with the new one? Yes, exactly. Good idea to back it up every so often - you don't have to shut down zope to do so, just do something like cp Data.fs /somewhere/Data.fs.backup.some_date -- Paul Winkler http://www.slinkp.com From muldrow@mac.com Wed Mar 5 16:56:43 2003 From: muldrow@mac.com (Chris Muldrow) Date: Wed, 05 Mar 2003 11:56:43 -0500 Subject: [Zope] Where does Zope store files... In-Reply-To: <20030305163845.GB5753@slinkp.com> Message-ID: Here's a backup procedure on Zope.org: http://www.zope.org/Members/jrush/howto_rsync_zope From ed@greengraphics.net Thu Mar 6 01:12:00 2003 From: ed@greengraphics.net (Ed Colmar) Date: Wed, 5 Mar 2003 17:12:00 -0800 (PST) Subject: [Zope] sending form data offsite Message-ID: Hi fellow zope hackers! I'm building a site for someone who wants to have the entire site within zope, to connect to dbs, etc... But they use a service that requires them to post form data to a master server. Is there an easy way (in dtml or python) to do this without seeing the data transfer or ending up at th other server's pages? So far I've considered making an external method that uses lynx and dumps the return data. Is this the best way? Thanks for the help! -ed- -- Green Graphics ::: Print and Web Design ::: 510.923.0000 From tdickenson@geminidataloggers.com Wed Mar 5 17:18:38 2003 From: tdickenson@geminidataloggers.com (Toby Dickenson) Date: Wed, 5 Mar 2003 17:18:38 +0000 Subject: [Zope] Where does Zope store files... In-Reply-To: References: Message-ID: <200303051718.38442.tdickenson@geminidataloggers.com> On Wednesday 05 March 2003 4:56 pm, Chris Muldrow wrote: > Here's a backup procedure on Zope.org: > > http://www.zope.org/Members/jrush/howto_rsync_zope That process is very dangerous. Your backup can be trashed if something goes wrong mid-rsync, or soon after the rsync. Also, rsync sometimes aborts if the file is changed while it is processing it, with insufficient guarantees about the state of the file it leaves behind. I recommend: http://mail.zope.org/pipermail/zodb-dev/2002-October/003418.html -- Toby Dickenson http://www.geminidataloggers.com/people/tdickenson From felix@chaptereight.com Wed Mar 5 17:06:10 2003 From: felix@chaptereight.com (Felix Ulrich-Oltean) Date: 05 Mar 2003 17:06:10 +0000 Subject: [Zope] squirting variable definitions into macros using fill-slot Message-ID: I have a macro like this:
    a
    b
    I will be using it several times from the same template. I want to be able to pass in values for chosen_thing and the_name, but I can't think how. If I define a slot, e.g. for the
    , the stuff in fill-slot will replace all the stuff in the macro. Alternatively, I could use fill-slot and a 'global' definition, but then I wouldn't be able to use it more than once. Am I just being dumb here? It must be possible to pass in dynamic information using fill-slot. Thanks for any advice, Felix. From zope@dylanreinhardt.com Wed Mar 5 17:54:27 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Wed, 05 Mar 2003 09:54:27 -0800 Subject: [Zope] Help Needed - Case for Zope In-Reply-To: <3E6595B6.4020200@jcameroncooper.com> References: <211AD0070D42D1118C7B00A024FF19AE24C0F4@AUHEXCH> Message-ID: <5.1.1.6.0.20030305093712.01d86958@pop3.spa.norton.antivirus> At 10:14 PM 3/4/2003, J Cameron Cooper wrote: >>I think showing Zope to be faster than Tomcat, >>as the numbers indicate, will be difficult to support, especially since I >>don't believe it myself. > >Although benchmarks are a very small part of the story as far as I'm >concerned, there is a need for such numbers. Indeed. Zope is a decent enough performer in benchmark testing and we should know where it stands. But the real case for Zope is not its speed as a server, but its speed as a development platform. You can increase performance speed easily enough... get faster hardware, a bigger pipe, more caching, a reverse proxy, do load balancing. It doesn't take a heck of a lot to build a world-class service *around* Zope. Where Zope shines is in time to market and ease of maintenance. It's going to be tough to give a precise benchmark on how much faster it is to build something in Zope than it is in J2EE or Jboss. But it is appreciably faster, perhaps by an order of magnitude. Developer time and support resources just aren't things most shops can come up with as easily as cash for hardware. The learning curve is shorter too. If you're a moderately experienced developer, you can pick up 90% of Python in a day or two. I've never heard that said about Java... at least not with a straight face. :-) Perhaps the best way to make a case for Zope is to prototype something. Give yourself a little time to do some reading up front, but then just rip into something. In many ways Zope is a gotta-see-it-to-believe-it proposition. Lots of platforms claim to make things easy... but the proof is in doing something nontrivial. In the time it takes to evaluate Zope and measure it against other platforms you could almost be done with a rough prototype of your system. HTH, Dylan From scott.pierce@sonopress.com Wed Mar 5 18:53:24 2003 From: scott.pierce@sonopress.com (Scott Pierce) Date: 05 Mar 2003 13:53:24 -0500 Subject: [Zope] DCOracle2 and processes Message-ID: <1046890404.24920.206.camel@goose.sonopress.com> This might be a database connection/zope thing or specifically a DCOracle2 thing but here goes. When creating a product I generally create a 'SQL' directory and programatically within the product initialization add zsqlmethods to the directory. Then within the product I will reference the SQL directory with a getattr. Early on I was doing this where ever necessary vs. putting it in the __init__ and referencing it from the class. Doing the former causes an Oracle connection for each time it is referenced. So if I have a method within a class called by a DMTL page that does something like: sqlF = getattr(self, 'SQL') then sqlf.runazsqlmethod() A process is created with an Oracle connection each time the page is hit. I have moved these into the __init__ like so: self.sqlF = getattr(self, 'SQL') then: self.sqlF.runazsqlmethod() w/out this problem and that makes sense. However, I would still like to get some idea why the connections get created just referencing it the way I previously had it. Any insights? -- Scott Pierce Sonopress LLC From evan@4-am.com Wed Mar 5 19:21:21 2003 From: evan@4-am.com (Evan Simpson) Date: Wed, 05 Mar 2003 13:21:21 -0600 Subject: [Zope] Re: squirting variable definitions into macros using fill-slot In-Reply-To: References: Message-ID: <3E664E31.9030700@4-am.com> Felix Ulrich-Oltean wrote: > I have a macro ... > I will be using it several times from the same template. I want to be > able to pass in values for chosen_thing and the_name, but I can't > think how. You can do this as follows:
    a
    b
    If you wanted to look in 'request' and 'here' if the template doesn't supply the value, put the
    back inside the macro definition, but change the defines to 'the_name | request/the_name | here/the_name'. Cheers, Evan @ 4-am From jccooper@jcameroncooper.com Wed Mar 5 19:31:20 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Wed, 05 Mar 2003 13:31:20 -0600 Subject: [Zope] Adding content to document types In-Reply-To: <211AD0070D42D1118C7B00A024FF19AE24C0F9@AUHEXCH> References: <211AD0070D42D1118C7B00A024FF19AE24C0F9@AUHEXCH> Message-ID: <3E665088.50106@jcameroncooper.com> > > >I'm adding documents & scripts to a folder using - > context.manage_addDTMLMethod("index_html", "Index") #document name & >title >etc. > >These documents are created with default body content. > >My question is - how do I access/add to/replace the content that is inserted >into the documents by default? For example, I'd like to insert dynamically >generated code into Python scripts, or into the DTML document using >properties defined within the folder. > > The manage_addXXX methods generally have a parameter that you can set for content (although this is not always shown in the generated API docs.) For DTMLMethods, for instance, you can see in the source (lib/python/OFS/DTMLMethod.py) a function definition def addDTMLMethod(self, id, title='', file='', REQUEST=None, submit=None): """Add a DTML Method object with the contents of file. If 'file' is empty, default document text is used. """ which is used as 'manage_addDTMLMethod()' (this is defined in some __init__.py). So if you say data = "I am the new content. Woo hoo." context.manage_addDTMLMethod("index_html", "Index", data) # document name & title you will create an index_html titled "Index" with the content "I am the new content. Woo hoo." --jcc From dieter@handshake.de Wed Mar 5 19:10:10 2003 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 5 Mar 2003 20:10:10 +0100 Subject: [Zope] NuxUserGroups and CMF not working In-Reply-To: <6B3B0F8E.20CE9D60.00923364@netscape.net> References: <6B3B0F8E.20CE9D60.00923364@netscape.net> Message-ID: <15974.19346.304158.694148@gargle.gargle.HOWL> baiewola@netscape.net wrote at 2003-3-4 14:57 -0500: > ... > There's nothing at all in my logs about CMF, but here's what the log has to say abut NuxUserGroups: > File /zopedirectory/lib/python/Products/NuxUserGroups/CatalogToolWithGroups.py, line 17, in ? > (Object: rolesForPermissionOn) > ImportError: No module named CMFCore.CatalogTool Can you check what code you find in line 17 of "CatalogToolWithGroups.py". It should read somehow like "Products.CMFCore.CatalogTool". Dieter From dieter@handshake.de Wed Mar 5 19:52:01 2003 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 5 Mar 2003 20:52:01 +0100 Subject: [Zope] Including proper object from subfolders In-Reply-To: References: Message-ID: <15974.21857.670039.254864@gargle.gargle.HOWL> Lubos Culen wrote at 2003-3-5 17:23 +0100: > .... > Let's assume we have following files in following directory structure (for > example on www.site.com server): > > site/index_html (DTML document) > site/content (DTML document, plain HTML) > site/standard_html_header (DTML document) > site/subdirectory1/content (DTML document, plain HTML) > site/subdirectory2/content (DTML document, plain HTML) > site/subdirectoryN/content (DTML document, plain HTML) > > 'index_html' file has for example this content: > > > > In 'standard_html_header' is some site header (not important for us), and > 'content' in each folder is some static HTML content. > > Now I'd like to achieve this: when user accesses the > 'http://www.site.com/site/subdirectory1/' , he will get displayed the > common header and the content of 'site/subdirectory1/content' file. This is what happens by default, *if* "index_html" is a DTML Method. Dieter From dieter@handshake.de Wed Mar 5 19:43:38 2003 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 5 Mar 2003 20:43:38 +0100 Subject: [Zope] sending a post request to a secure site (paypal) from a python script/external method In-Reply-To: References: Message-ID: <15974.21354.545867.545769@gargle.gargle.HOWL> Richard Ettema wrote at 2003-3-5 11:47 -0000: > .... > I have looked thru the examples in the urllib.py and urllib2.py but could > not work out where I am going wrong, or if it is possible. It is possible. > I have seen comments about python must be built/installed with ssl support > for secure connections to https urls, how do I work out if python was > built/installed with this? I do not know but I would find out by looking at the HTTPS support in "httplib", i.e. look at its source. Dieter From dieter@handshake.de Wed Mar 5 19:16:43 2003 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 5 Mar 2003 20:16:43 +0100 Subject: [Zope] Customize the ZMI In-Reply-To: References: Message-ID: <15974.19739.128166.385225@gargle.gargle.HOWL> Michael Havard wrote at 2003-3-4 17:14 +0000: > What files can be edited to change the ZMI. Does this have to be done from > the file system or can it be done from within the ZMI itself. > > I want to be able to change some of the styling, logo, label placement, etc. They live in "dtml" subdirectories for the various Zope packages, e.g. "OFS/dtml" (for the primary site building object types", "App/dtml" for application management, "AccessControl/dtml" for security related pages.... Currently, you must customize at the file system level. But you can design your templates differently.... Dieter From dieter@handshake.de Wed Mar 5 19:44:20 2003 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 5 Mar 2003 20:44:20 +0100 Subject: [Zope] How to change default method for calling object from the web? In-Reply-To: <200303051531.57928.thierry.florac@onf.fr> References: <200303051531.57928.thierry.florac@onf.fr> Message-ID: <15974.21396.26188.309794@gargle.gargle.HOWL> Thierry FLORAC wrote at 2003-3-5 15:31 +0100: > On Wednesday 05 March 2003 13:26, Lubos Culen wrote: > ... > Just call your method 'index_html' instead of 'view'. Or let it acquire "index_html" which calls "view". Dieter From dieter@handshake.de Wed Mar 5 19:19:19 2003 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 5 Mar 2003 20:19:19 +0100 Subject: [Zope] custom authentication In-Reply-To: <1046815028.18949.108.camel@aslan.its.bethel.edu> References: <1046790333.18949.80.camel@aslan.its.bethel.edu> <15972.63613.180789.274699@gargle.gargle.HOWL> <1046815028.18949.108.camel@aslan.its.bethel.edu> Message-ID: <15974.19895.467898.594802@gargle.gargle.HOWL> Andrew Altepeter wrote at 2003-3-4 15:57 -0600: > ... > > Have a look at CookieCrumber (as an example). > > Ok, I see. It seems that exUserFolder is an incomplete product then, > since it does not override the unauthorized method. As such, it cannot > prevent Basic auth's from slipping through unannounced...? > __________ > Looking in CookieCrumbler.py, I see that the __call__ method replaces > the response.unauth methods. But when I try to do that, I get a > complaint from zope: > File "/usr/local/Zope/lib/python/ZPublisher/HTTPResponse.py", line > 662, in exception > self._unauthorized() > TypeError: unbound Python method must be called with PortalUserFolder > 1st argument > ---------- > .... > HTTPResponse.unauthorized = PortalUserFolder.unauthorized You have set it to a class method (more precisely, an "unbound method instance"). To help prevent trivial programming errors, they check that an object of the correct type is passed in. You get the underlying function through the "im_func" pseudo attribute. Thus, you use HTTPResponse.unauthorized = PortalUserFolder.unauthorized.im_func Dieter From dieter@handshake.de Wed Mar 5 19:37:48 2003 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 5 Mar 2003 20:37:48 +0100 Subject: [Zope] dynamically generated TAL not being interpreted In-Reply-To: <20030305041834.GG4452@cise.ufl.edu> References: <20030302044639.GD11213@cise.ufl.edu> <15971.45950.565229.839572@gargle.gargle.HOWL> <20030305041834.GG4452@cise.ufl.edu> Message-ID: <15974.21004.769416.572350@gargle.gargle.HOWL> N. Thomas wrote at 2003-3-4 23:18 -0500: > * Dieter Maurer [2003-03-03 20:56:46 +0100]: > > N. Thomas wrote at 2003-3-1 23:46 -0500: > > > We have a script that generates TAL. The problem is that the content > > > is not being interpeted as TAL by Zope, but rather as raw HTML. > > > > You must make a Page Template object from your TAL source code, wrap > > it in an appropriate context (--> "__of__") and return it (or call it > > to let it render). > > > > You can do this only in an External Method (or other filesystem based > > code). > > Well, this was a start in the right direction. But after wading through > the archives, the nearest solution I can cruft together is an external > method like this: > > from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate > > def talgen(): > > zptstr = \ > """ > > > If properlu rendered, > this sentence should contain no tags. > > > """ > > zptid = 'foobar' > z = ZopePageTemplate(id=zptid, text=zptstr, content_type="text/html") > return z > > But this returns an error, probably because I'm stabbing in the dark. Because, you did not do the "__of__" magic... And, please remember, read error messages (Error Type, Error Values *AND* traceback) carefully and report them, if you do not understand them. > Also, I have no idea where exactly to stick the "__of__" method. (I did > look at the relevant sections in > http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html though.) Hm, you did not find the "__of__" mentioned in the "Name lookup section"? You use "return z.__of__(self)" > My questions: > > Where is the API for Products.PageTemplates.ZopePageTemplate > documented? I am not sure, probably in the embedded online help. *BUT* you need nothing than the constructor (you already used) and the "__call__" method (that is trivial). > In Products.PageTemplates, should I use PageTemplate, or > PageTemplateFile, or ZopePageTemplate? As it is not a file in the file system, you do not use "PageTemplateFile" ;-) Almost surely, "ZopePageTemplate" is right. "PageTemplate" might work, too. > In the code above, I see that ZopePageTemplate requires that an id > be passed in, does that mean that I have to create a temporary ZPT > object in the Zope filesystem, return that, and somehow make sure it > is destroyed afterwards? I only passed in 'foobar' because it was > required. No, unless you use special operations (e.g. "template/absolute_url") what you probably do not do. > Also, if anyone could point me to a fragment of code that does something > similar it would be much appreciated. You are very near :-) I trust you that you will write a HowTo about dynamic generation of TAL code, once you solved your problem ;-) Dieter From dieter@handshake.de Wed Mar 5 19:23:44 2003 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 5 Mar 2003 20:23:44 +0100 Subject: [Zope] zope crashes on first hit In-Reply-To: <20030304223510.63646.qmail@web14105.mail.yahoo.com> References: <20030304223510.63646.qmail@web14105.mail.yahoo.com> Message-ID: <15974.20160.299650.872648@gargle.gargle.HOWL> Bill Seitz wrote at 2003-3-4 14:35 -0800: > All the sudden my zope (v2.5.1 running on Win98) is > crashing while processing its first hit. This seems > true regardless of the URL requests (manage, > manage_main, index_html), though it's possible I'm > getting 1 hit sometimes before it dies. > .... > 2003-03-04T18:50:21 ERROR(200) ZServer uncaptured > python exception, closing channel > 127.0.0.1:1247 at 0x1d59b2c channel#: 0 requests:> > (exceptions.IOError:[Errno 9] Bad file descriptor It looks as if your socket library ("winsock") would no longer work correctly. Maybe, you can check this. > [D:\Zope\WebSeitz\ZServer\medusa\asyncore.py|poll|107] > [D:\Zope\WebSeitz\ZServer\medusa\asyncore.py|handle_write_event|398] > [D:\Zope\WebSeitz\ZServer\medusa\asynchat.py|handle_write|146] > [D:\Zope\WebSeitz\ZServer\medusa\asynchat.py|initiate_send|208] > [D:\Zope\WebSeitz\ZServer\medusa\asynchat.py|refill_buffer|195] > [D:\Zope\WebSeitz\ZServer\Producers.py|more|36] > [D:\Zope\WebSeitz\ZServer\medusa\http_server.py|log|289] > [D:\Zope\WebSeitz\ZServer\medusa\logger.py|log|247] > [D:\Zope\WebSeitz\ZServer\medusa\logger.py|log|77] > [D:\Zope\WebSeitz\ZServer\medusa\logger.py|write|53] > [D:\Zope\WebSeitz\ZServer\medusa\logger.py|maybe_flush|65]) It wants to write some message to the log file and cannot. Check, why. Maybe, the file is corrupted or can not be written at for other reasons. Dieter From dieter@handshake.de Wed Mar 5 19:26:34 2003 From: dieter@handshake.de (Dieter Maurer) Date: Wed, 5 Mar 2003 20:26:34 +0100 Subject: [Zope] Acquisition of the View permission In-Reply-To: <20030304223912.GB17059@helga.granfalloon.com> References: <20030304213401.GA17059@helga.granfalloon.com> <20030304223912.GB17059@helga.granfalloon.com> Message-ID: <15974.20330.460370.820064@gargle.gargle.HOWL> Caleb Land wrote at 2003-3-4 17:39 -0500: > ... > If that's the case, then what would be a good way to achieve my original goal? > (restricting access to an acquired source based on context (in this case > index_html)) ???? You told us that "index_html" must be viewable (you did not tell us why). If this is the case, you can protect the objects "index_html" accesses doing its work and thus get context sensitive protection. You would probably control the "Access contents information" for this purpose. Dieter From fluxent@yahoo.com Wed Mar 5 22:15:12 2003 From: fluxent@yahoo.com (Bill Seitz) Date: Wed, 5 Mar 2003 14:15:12 -0800 (PST) Subject: [Zope] zope crashes on first hit In-Reply-To: <15974.20160.299650.872648@gargle.gargle.HOWL> Message-ID: <20030305221512.80246.qmail@web14106.mail.yahoo.com> I moved z2.log, z2.pid, data.fs.tmp, and data.fs.lock to a subfolder, then started up again. Now things work fine. Except I seem to have lost all changes since 4 months ago. Ugh. Any ideas? --- Dieter Maurer wrote: > Bill Seitz wrote at 2003-3-4 14:35 -0800: > > All the sudden my zope (v2.5.1 running on Win98) > is > > crashing while processing its first hit. This > seems > > true regardless of the URL requests (manage, > > manage_main, index_html), though it's possible > I'm > > getting 1 hit sometimes before it dies. > > .... > > 2003-03-04T18:50:21 ERROR(200) ZServer uncaptured > > python exception, closing channel > > > 127.0.0.1:1247 at 0x1d59b2c channel#: 0 > requests:> > > (exceptions.IOError:[Errno 9] Bad file descriptor > > It looks as if your socket library ("winsock") would > no longer > work correctly. Maybe, you can check this. > > > __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ From list_subscriber@neurobs.com Wed Mar 5 22:46:02 2003 From: list_subscriber@neurobs.com (AM) Date: Wed, 05 Mar 2003 14:46:02 -0800 Subject: [Zope] sending form data offsite In-Reply-To: References: Message-ID: <3E667E2A.9070202@neurobs.com> Unless the other server returns to a page on your site, the only thing you can probably do is to use and external method that uses something like wget/lynx to post the data and get somthing back to be parsed by the method. hth AM Ed Colmar wrote: >Hi fellow zope hackers! > >I'm building a site for someone who wants to have the entire site within >zope, to connect to dbs, etc... But they use a service that requires them >to post form data to a master server. > >Is there an easy way (in dtml or python) to do this without seeing the >data transfer or ending up at th other server's pages? > >So far I've considered making an external method that uses lynx and dumps >the return data. Is this the best way? > >Thanks for the help! > >-ed- > > > -- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ================================================================== From ed@greengraphics.net Thu Mar 6 07:08:45 2003 From: ed@greengraphics.net (Ed Colmar) Date: Wed, 5 Mar 2003 23:08:45 -0800 (PST) Subject: [Zope] sending form data offsite In-Reply-To: <3E667E2A.9070202@neurobs.com> Message-ID: Hi AM and zope cru! Here is the quick external method I built to do this... If anyone is familiar with urllib and can tell me if I need to do something different I'd appreciate it! def formsender(self, completeurl): """ This method is used to transparently send form data to an external server completeurl is the entire url including form field values.""" import urllib result = urllib.URLopener().open(completeurl) urllib.URLopener().close() On Wed, 5 Mar 2003, AM wrote: > Unless the other server returns to a page on your site, the only thing > you can probably do is to use and external method that uses something > like wget/lynx to post the data and get somthing back to be parsed by > the method. > > hth > AM > > Ed Colmar wrote: > > >Hi fellow zope hackers! > > > >I'm building a site for someone who wants to have the entire site within > >zope, to connect to dbs, etc... But they use a service that requires them > >to post form data to a master server. > > > >Is there an easy way (in dtml or python) to do this without seeing the > >data transfer or ending up at th other server's pages? > > > >So far I've considered making an external method that uses lynx and dumps > >the return data. Is this the best way? > > > >Thanks for the help! > > > >-ed- > > > > > > > > > -- Green Graphics ::: Print and Web Design ::: 510.923.0000 From mehmety@carramar.auslin.com.au Thu Mar 6 11:09:04 2003 From: mehmety@carramar.auslin.com.au (Mehmet Yousouf) Date: Thu, 06 Mar 2003 11:09:04 +0000 Subject: [Zope] Html2pdf problems Message-ID: <20030306.UHQ.29109800@carramar.auslin.com.au> Hello all, I'm trying to generate a page to print and felt the best way is to conver= t it to pdf format. The information is on a database (mysql) and when I use in the page, it renders the dtml page ok and by putting /html2pdf at the end of = the url, it creates the pdf file. However, if the dtml-in command is passed a variable (), the dtml form renders fine but= the pdf file will not be generated by it. I have tried sorting after the dtml-in command but the same story, even d= oing a while zope renders it, will not get convert= ed to pdf..... if I save the file and use hmtldoc -f nameid.pdf nameid.html --w= ebpage, it works. Any suggestions how I can resolve this problem? Regards, Mehmet From fmartins@hetnet.nl Thu Mar 6 00:32:28 2003 From: fmartins@hetnet.nl (Fernando Martins) Date: Thu, 6 Mar 2003 01:32:28 +0100 Subject: [Zope] assignment to form records In-Reply-To: <3E653B8D.5070203@agmweb.ca> Message-ID: Andy McKay wrote: > It has that attribute but as part of Script (Python) security you cannot > assign to it. eg: try this Script (Python) > > script.title = 'Foo' > > Not sure that it really provides more security than annoyance, but the > idea is you have to call a function or use an API for that object. > Thanks for explaining. I suspected it but it didn't seem consistent with the fact that I could modify a literal attribute passed to a PythonScript. I had some hope to just be missing the right syntax to do it. But is there any function to work with the record object?? I don't even know what's its class. Can I add my own functions? Regards, Fernando From fmartins@hetnet.nl Thu Mar 6 00:32:29 2003 From: fmartins@hetnet.nl (Fernando Martins) Date: Thu, 6 Mar 2003 01:32:29 +0100 Subject: [Zope] assignment to form records In-Reply-To: <20030305005607.GI3495@slinkp.com> Message-ID: Paul Winkler wrote: > > question is, why do you need to modify it in the script anyway? > just do foo = Fields.afield and do whatever w/ foo. > I've two forms who pass a similar record to their scripts. Each script does its own processing, "normalising" the record. The record is then passed to another script which does common processing and final storage in a table. Of course, I can pass each field individually to the final script but with a lot of fields it gets ugly. I also can't create classes in a PythonScript, so it's quite limited. Regards, Fernando From mail@peterbe.com Thu Mar 6 00:28:13 2003 From: mail@peterbe.com (Peter Bengtsson) Date: Thu, 06 Mar 2003 00:28:13 +0000 Subject: [Zope] Validating a Date In-Reply-To: <1046419263.4905.116.camel@localhost.localdomain> Message-ID: <5.2.0.9.0.20030306002413.020e12a0@mail.grenna.net> At 02:01 2003-02-28 -0600, Edward Muller wrote: >Does anyone know of a good module/product/hack that I can feed a date to >and it will let me know if it's valid or not? > >It should check leap years ... end days of the month and the like... try: ok_date = context.ZopeTime('2003/13/13') print "Yes, date OK" except: print "No, not OK" return printed >Thanks in advance... :-) >-- >Edward Muller > >Interlix - President > >Web Hosting - PC Service & Support >Custom Programming - Network Service & Support > >Phone: 417-862-0573 > Cell: 417-844-2435 > Fax: 417-862-0572 > >http://www.interlix.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 ) From list_subscriber@neurobs.com Thu Mar 6 00:34:00 2003 From: list_subscriber@neurobs.com (AM) Date: Wed, 05 Mar 2003 16:34:00 -0800 Subject: [Zope] sending form data offsite In-Reply-To: References: Message-ID: <3E669778.5040304@neurobs.com> Ed Colmar wrote: >Hi AM and zope cru! > >Here is the quick external method I built to do this... > >If anyone is familiar with urllib and can tell me if I need to do >something different I'd appreciate it! > >def formsender(self, completeurl): > """ This method is used to transparently send form data to an external > server > > completeurl is the entire url including form field values.""" > import urllib > result = urllib.URLopener().open(completeurl) > urllib.URLopener().close() > > > I suppose this should work. I generally just use fd = urllib.urlopen() fd.close() In both cases you can send the form data as another set of arguments to the open method. So does it do what you want?? AM -- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ================================================================== From muldrow@mac.com Thu Mar 6 01:04:15 2003 From: muldrow@mac.com (Chris Muldrow) Date: Wed, 5 Mar 2003 20:04:15 -0500 Subject: [Zope] sending form data offsite In-Reply-To: Message-ID: <8CB0787D-4F6F-11D7-A7D1-000393849E6A@mac.com> Just a warning about urllib and Zope from previous experience. If you're not sure of the reliability of the server that will be receiving your urllib requests, be cautious. We used urllib to hit another server and experienced really bad hanging and timeout problems. The external methods would start hanging and eventually slow Zope to a crawl or a stop. There's a timeoutsocket module for Python that lets you set a timeout on a request that's probably worth using even if you do trust the other server not to time out on you--you never know what network factors will work against you! It's at http://www.timo-tasi.org/python/timeoutsocket.py -- Chris On Thursday, March 6, 2003, at 02:08 AM, Ed Colmar wrote: > > Hi AM and zope cru! > > Here is the quick external method I built to do this... > > If anyone is familiar with urllib and can tell me if I need to do > something different I'd appreciate it! > > def formsender(self, completeurl): > """ This method is used to transparently send form data to an > external > server > > completeurl is the entire url including form field values.""" > import urllib > result = urllib.URLopener().open(completeurl) > urllib.URLopener().close() > > > > On Wed, 5 Mar 2003, AM wrote: > >> Unless the other server returns to a page on your site, the only thing >> you can probably do is to use and external method that uses something >> like wget/lynx to post the data and get somthing back to be parsed by >> the method. >> >> hth >> AM >> >> Ed Colmar wrote: >> >>> Hi fellow zope hackers! >>> >>> I'm building a site for someone who wants to have the entire site >>> within >>> zope, to connect to dbs, etc... But they use a service that >>> requires them >>> to post form data to a master server. >>> >>> Is there an easy way (in dtml or python) to do this without seeing >>> the >>> data transfer or ending up at th other server's pages? >>> >>> So far I've considered making an external method that uses lynx and >>> dumps >>> the return data. Is this the best way? >>> >>> Thanks for the help! >>> >>> -ed- >>> >>> >>> >> >> >> > > -- > Green Graphics ::: Print and Web Design ::: 510.923.0000 > > > _______________________________________________ > 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 ) > From fearless_froggie@yahoo.com Thu Mar 6 01:12:49 2003 From: fearless_froggie@yahoo.com (Fearless Froggie) Date: Wed, 5 Mar 2003 17:12:49 -0800 (PST) Subject: [Zope] context of a for loop Message-ID: <20030306011249.52852.qmail@web21408.mail.yahoo.com> Hi, When you are going through a for loop, are you in the context of that for loop variable? Can you drop out of that for loop context and into the context of the script? Example: If I loop through a list of id's with a for loop and do something to each of these objects, I get a "You are not allowed to access editMetadata in this context". Here's the code (here I'm just changing the title of each of my items in my list 'id' to 'bob'): for item in id: item_object = getattr(context, item) item_object.editMetadata(title='bob') But if I do these changes directly, it works fine: item_object = getattr(context, id[0]) item_object.editMetadata(title='bob') So I'm guessing that the for loops puts me into another context. How do I get into the context of the object I want to edit? I've tried "context.item_object.editMetadata(title='bob')" and "container.item_object.editMetadata(title='bob')", but they didn't work either. My script in all these cases is my custom skins directory. Many thanks for any ideas on this. (And thank you once again for all the great ideas I've received for my past emails :) Rita. __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ From myzope@gmx.net Thu Mar 6 01:48:18 2003 From: myzope@gmx.net (Oliver Bleutgen) Date: Thu, 06 Mar 2003 02:48:18 +0100 Subject: [Zope] Validating a Date In-Reply-To: <5.2.0.9.0.20030306002413.020e12a0@mail.grenna.net> References: <5.2.0.9.0.20030306002413.020e12a0@mail.grenna.net> Message-ID: <3E66A8E2.9010108@gmx.net> Peter Bengtsson wrote: > At 02:01 2003-02-28 -0600, Edward Muller wrote: > >> Does anyone know of a good module/product/hack that I can feed a date to >> and it will let me know if it's valid or not? >> >> It should check leap years ... end days of the month and the like... > > > try: > ok_date = context.ZopeTime('2003/13/13') > print "Yes, date OK" > except: > print "No, not OK" > > return printed Nope, ZopeTime(DateTime) is very (too) liberal in what it accepts for this purpose: context.ZopeTime('2002/30/3') returns "2002/03/30" cheers, oliver From snesbitt@cobaltgroup.com Thu Mar 6 01:44:20 2003 From: snesbitt@cobaltgroup.com (Nesbitt, Steve) Date: Wed, 5 Mar 2003 17:44:20 -0800 Subject: [Zope] Zope vs Twiki - Can someone provide a comparison Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C2E381.E81AEC00 Content-Type: text/plain; charset="iso-8859-1" All: I'm expecting a showdown between those who want to standardize on Twiki and me, who doesn't mind Twiki, but doesn't want to move away from Zope/Plone. Can anyone provide a quick overview between the two systems. In particular: 1) What problem space do the two systems address? Are they the same space or different space? 2) Where does Twiki shine in comparison to Zope (with Plone) 3) What things are hard to do in Twiki that are easy to do in Zope and vice versa? I need a compelling argument for not converting my existing site to Twiki. Any help would be appreciated! Thanks! -steve Steve Nesbitt Configuration Manager The Cobalt Group, Inc. 2200 First Avenue South Seattle, WA 98134 snesbitt@cobaltgroup.com www.cobaltgroup.com If it's automotive and it's Internet, it's Cobalt. ------_=_NextPart_001_01C2E381.E81AEC00 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Zope vs Twiki - Can someone provide a comparison

    All:

    I'm expecting a showdown between those who want to = standardize on Twiki and me, who doesn't mind Twiki,  but doesn't = want to move away from Zope/Plone.

    Can anyone provide a quick overview between the two = systems. In particular:
    1) What problem space do the two systems address? = Are they the same space or different space?
    2) Where does Twiki shine in comparison to Zope = (with Plone)
    3) What things are hard to do in Twiki that are easy = to do in Zope and vice versa?

    I need a compelling argument for not converting my = existing site to Twiki. Any help would be appreciated!

    Thanks!

    -steve

    Steve Nesbitt
    Configuration Manager
    The Cobalt Group, Inc.
    2200 First Avenue South
    Seattle, WA 98134
    snesbitt@cobaltgroup.com
    www.cobaltgroup.com
    If it's automotive and it's Internet, it's Cobalt. =

    ------_=_NextPart_001_01C2E381.E81AEC00-- From gcw-python@rezidew.net Thu Mar 6 03:38:58 2003 From: gcw-python@rezidew.net (G. Clifford Williams) Date: Wed, 5 Mar 2003 21:38:58 -0600 Subject: [Zope] ZPT newbie Q Message-ID: <200303052138.58030.gcw-python@rezidew.net> I'm just starting to work with ZPT (as of today), the first question I have is; Is there a way to keep "template/title" from being displayed in the list that is generated by the tal:repeate directive? I'd like to generate a list of links that does not include the index_html page. My second question is: Is there any way to sort the list that's generated? --The code that I have-- Title Title
    • ITEM
    thanks in advance From rlfisher@sprynet.com Thu Mar 6 04:00:35 2003 From: rlfisher@sprynet.com (Roger Fisher) Date: Wed, 5 Mar 2003 20:00:35 -0800 Subject: [Zope] Proxies for Z SQL Methods Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0006_01C2E351.E2F41BA0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit I have a Z SQL method that wants to use document_src. Unlike a DTML Method, there is no "proxy" tab for me to set the Manager permission. As a workaround, I execute the document_src in the calling DTML method and pass the result as a parameter to the Z SQL method.... but I wonder if there is a more elegant solution? ------=_NextPart_000_0006_01C2E351.E2F41BA0 Content-Type: application/ms-tnef; name="winmail.dat" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="winmail.dat" eJ8+IiMEAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEGgAMADgAAANMHAwAFABQAAAAAAAMA+QAB A5AGAFQFAAAiAAAACwACAAEAAAALACMAAAAAAAMAJgAAAAAACwApAAAAAAADADYAAAAAAB4AcAAB AAAAGgAAAFByb3hpZXMgZm9yIFogU1FMIE1ldGhvZHMAAAACAXEAAQAAABYAAAABwuOU8LLJdITs TzAR161uAOApdPdJAAACAR0MAQAAABoAAABTTVRQOlJMRklTSEVSQFNQUllORVQuQ09NAAAACwAB DgAAAABAAAYOAOCs25TjwgECAQoOAQAAABgAAAAAAAAARx0xS9Av1BGtbQCQAAE++MKAAAALAB8O AQAAAAIBCRABAAAAcQEAAG0BAAC5AQAATFpGdZ9Zz6ADAAoAcmNwZzEyNRYyAPgLYG4OEDAzM08B 9wKkA+MCAGNoCsBzoGV0MCBWBJBkAHAqYQKAfQqBdgiQd2vpC4BkNAxgYwBQCwMLtQggSSAQ8HZl IGFEIFoGAFFMIAeAdKpoBHAgFQBhBUB3AHBCdAQgdG8gdREgIDBkb2N1B4ACMF9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lckBzcHJ5bmV0LmNvbT4AAwAGEBCtg7QDAAcQ+QAAAAMAEBAAAAAAAwAREAAA AAAeAAgQAQAAAGUAAABJSEFWRUFaU1FMTUVUSE9EVEhBVFdBTlRTVE9VU0VET0NVTUVOVFNSQ1VO TElLRUFEVE1MTUVUSE9ELFRIRVJFSVNOTyJQUk9YWSJUQUJGT1JNRVRPU0VUVEhFTUFOQUdFUlBF AAAAAP8f ------=_NextPart_000_0006_01C2E351.E2F41BA0-- From kedai@kedai.com.my Thu Mar 6 04:15:55 2003 From: kedai@kedai.com.my (Bakhtiar A Hamid) Date: Thu, 6 Mar 2003 12:15:55 +0800 Subject: [Zope] sending form data offsite In-Reply-To: References: Message-ID: <200303061215.55283.kedai@kedai.com.my> On Thursday 06 March 2003 09:12, Ed Colmar wrote: > Hi fellow zope hackers! > > I'm building a site for someone who wants to have the entire site withi= n > zope, to connect to dbs, etc... But they use a service that requires t= hem > to post form data to a master server. > > Is there an easy way (in dtml or python) to do this without seeing the > data transfer or ending up at th other server's pages? > > So far I've considered making an external method that uses lynx and dum= ps > the return data. Is this the best way? > have a look at KebasData http://www.zope.org/Members/kedai/KebasData KebasData grabs data from any accessable url, and you can define ways to = parse=20 the data returned. you can use either GET or POST method. i also make use of timeoutsocket.py, to help limit the "hang" if there's = any=20 trouble with the other site. note that the timeout affects all of zope .= =2E=20 so, take care when setting the timeout. (the default is 15s) i know get method works great, but has done little test with post method if you'd like to give it a shot, and report success/failure? hth > Thanks for the help! > > -ed- From mehmety@auslin.com.au Thu Mar 6 05:26:01 2003 From: mehmety@auslin.com.au (Mehmet Yousouf) Date: Thu, 06 Mar 2003 16:26:01 +1100 Subject: [Zope] Html2pdf problems In-Reply-To: <20030306.UHQ.29109800@carramar.auslin.com.au> References: <20030306.UHQ.29109800@carramar.auslin.com.au> Message-ID: <3E66DBE9.3000005@carramar.auslin.com.au> I've found a "solution" to the problem - I created another table in mysql and passed the variable to it using dtml-call, then used it as a filter in my select statement, it works, but if anyone has a more elegant way, I am only too happy to learn. Regards, Mehmet Mehmet Yousouf wrote: >Hello all, > >I'm trying to generate a page to print and felt the best way is to convert it to pdf >format. >The information is on a database (mysql) and when I use in the >page, it renders the dtml page ok and by putting /html2pdf at the end of the url, it >creates the pdf file. >However, if the dtml-in command is passed a variable ("printinfo(nameid="SESSION['nameid']">), the dtml form renders fine but the pdf file >will not be generated by it. > >I have tried sorting after the dtml-in command but the same story, even doing a > while zope renders it, will not get converted to >pdf..... if I save the file and use hmtldoc -f nameid.pdf nameid.html --webpage, it >works. > >Any suggestions how I can resolve this problem? > > > > From Andreas Jung Thu Mar 27 05:48:19 2003 From: Andreas Jung (Andreas Jung) Date: Thu, 27 Mar 2003 06:48:19 +0100 Subject: [Zope] Validating a Date In-Reply-To: <3E66A8E2.9010108@gmx.net> References: <5.2.0.9.0.20030306002413.020e12a0@mail.grenna.net> <3E66A8E2.9010108@gmx.net> Message-ID: <35198723.1048747699@[192.168.0.3]> If you have a fixed date format, you can split into day,month and year and pass these as dedicated arguments to the DateTime constructor. See the DateTime API for details. -aj --On Donnerstag, 6. M=E4rz 2003 02:48 +0100 Oliver Bleutgen = =20 wrote: > Peter Bengtsson wrote: >> At 02:01 2003-02-28 -0600, Edward Muller wrote: >> >>> Does anyone know of a good module/product/hack that I can feed a date = to >>> and it will let me know if it's valid or not? >>> >>> It should check leap years ... end days of the month and the like... >> >> >> try: >> ok_date =3D context.ZopeTime('2003/13/13') >> print "Yes, date OK" >> except: >> print "No, not OK" >> >> return printed > > Nope, ZopeTime(DateTime) is very (too) liberal in what it accepts for > this purpose: > > context.ZopeTime('2002/30/3') > > returns "2002/03/30" > > cheers, > oliver > > > > > > _______________________________________________ > 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 ) --=20 --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From zerkani_user_list@snet.net Thu Mar 6 01:13:10 2003 From: zerkani_user_list@snet.net (Zerkani_user_list) Date: Wed, 5 Mar 2003 20:13:10 -0500 Subject: [Zope] Newbie: DTML redirect questions Message-ID: <200303060615.h266Fqdg021903@mta3.snet.net> I have taken the following line from a python script example and I need to do the same thing in DTML. context.REQUEST.RESPONSE.redirect(destination + "?Name=" + parameter) I was wondering how can I do this in DTML? Thanks From kedai@kedai.com.my Thu Mar 6 06:16:23 2003 From: kedai@kedai.com.my (Bakhtiar A Hamid) Date: Thu, 6 Mar 2003 14:16:23 +0800 Subject: [Zope] Newbie: DTML redirect questions In-Reply-To: <200303060615.h266Fqdg021903@mta3.snet.net> References: <200303060615.h266Fqdg021903@mta3.snet.net> Message-ID: <200303061416.23525.kedai@kedai.com.my> On Thursday 06 March 2003 09:13, Zerkani_user_list wrote: > I have taken the following line from a python script example and I need= to > do the same thing in DTML. > > context.REQUEST.RESPONSE.redirect(destination + > =09"?Name=3D" + parameter) > =2E. ? > > I was wondering how can I do this in DTML? > > Thanks > > > _______________________________________________ > 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 ) From tim@xxvii.net Thu Mar 6 07:47:06 2003 From: tim@xxvii.net (Tim) Date: Thu, 6 Mar 2003 02:47:06 -0500 Subject: [Zope] ZPT newbie Q In-Reply-To: <200303052138.58030.gcw-python@rezidew.net> References: <200303052138.58030.gcw-python@rezidew.net> Message-ID: <48541845262.20030306024706@Vex.Net> G. wrote on Wednesday, March 5, 2003, 10:38:58 PM: > I'd like to generate a list of links that does not include the index_html > page. Notice the tal:condition="python:item.getId()<>'index_html'" below. Also notice the general use of object/title_or_id instead of just object/title. > My second question is: Is there any way to sort the list that's generated? Sort is a bit awkward inside page templates. The sort part of this code is basically ripped from the API reference in the Zope Book. It does an insensitive sort on the title, then date. Title
    • ITEM
    If you're wanting to do anything very complicated with lists, i'd just write a python script to generate the list the way you want it, then loop over that. -- Tim Middleton | Cain Gang Ltd | "Who is Ungit?" said he, still holding x@veX.net | www.Vex.Net | my hands. --C.S.Lewis (TWHF) 1 From =?Windows-1250?B?SmFrdWIgV2mcbmlvd3NraQ==?= Thu Mar 6 10:30:07 2003 From: =?Windows-1250?B?SmFrdWIgV2mcbmlvd3NraQ==?= (Jakub Wisniowski) Date: Thu, 6 Mar 2003 11:30:07 +0100 Subject: [Zope] Read conflicts Message-ID: <7371170296.20030306113007@euro.coig.pl> Hi all I've got some pages in my Zope application that display results of SQL query (results returned by Z-SQL Method) and check for existence of some data in SESSION object. There is nothing more on the pages but one thing - pages are refreshed every 30 seconds. I also have some users (really not many) that constantly monitor these pages. The last thing I've got is some error messages. The error message that displays on page looks like: An error was encountered while publishing this resource. ZODB.POSException.ConflictError Sorry, a site error occurred. Traceback (innermost last): ° Module ZPublisher.Publish, line 150, in publish_module ° Module ZPublisher.Publish, line 127, in publish ° Module ZPublisher.Publish, line 127, in publish ° Module ZPublisher.Publish, line 127, in publish ° Module ZPublisher.Publish, line 122, in publish ° Module Zope.App.startup, line 142, in zpublisher_exception_hook ° Module ZPublisher.Publish, line 102, in publish ° Module Zope.App.startup, line 200, in commit ° Module ZODB.Transaction, line 235, in commit ° Module ZODB.Transaction, line 349, in _commit_objects ° Module ZODB.Connection, line 391, in commit ° __traceback_info__: (('BTrees.OOBTree', 'OOBTree'), '\x00\x00\x00\x00\x00\x00\x01\xcd', '') ° Module Products.TemporaryFolder.TemporaryStorage, line 134, in store ConflictError: database conflict error (oid 00000000000001cd, serial was 034b62206010624c, now 034b621e679953b3) This error usually disappears after refreshing the page (but confuses the users). Some of error messages that are logged in my "stupid" log: 2003-03-06T09:50:36 INFO(0) ZODB conflict error at /ctt/cmp/info/yesterday/midday/index_html (138 conflicts since startup at 2003-03-05T16:20:08) ------ 2003-03-06T09:52:29 INFO(0) ZODB conflict error at /ctt/firm/props (139 conflicts since startup at 2003-03-05T16:20:08) ------ 2003-03-06T09:52:39 INFO(0) ZODB conflict error at /ctt/firm/props (140 conflicts since startup at 2003-03-05T16:20:08) ------ 2003-03-06T09:52:49 INFO(0) ZODB conflict error at /ctt/firm/index_html (141 conflicts since startup at 2003-03-05T16:20:08) ------ 2003-03-06T09:53:08 INFO(0) ZODB conflict error at /ctt/cmp/info/yesterday/index_html (142 conflicts since startup at 2003-03-05T16:20:08) I have searched mailing lists, but I didn't find the answer for the question - what's going on? and what interests me most: what to do with this? I've found some sugestions that such errors called read conflicts may be caused by using the session. Is that true? Why the session? I don't think that I can stop using session object. Any more suggestions? Any solutions? There must be any simple solution - my app has only few users! Thanks -- Jakub Wisniowski From thierry.florac@onf.fr Thu Mar 6 10:40:21 2003 From: thierry.florac@onf.fr (Thierry FLORAC) Date: Thu, 6 Mar 2003 11:40:21 +0100 Subject: [Zope] Read conflicts In-Reply-To: <7371170296.20030306113007@euro.coig.pl> References: <7371170296.20030306113007@euro.coig.pl> Message-ID: <200303061140.21981.thierry.florac@onf.fr> On Thursday 06 March 2003 11:30, Jakub Wisniowski wrote: > Hi all > > I've got some pages in my Zope application that display results > of SQL query (results returned by Z-SQL Method) and check for > existence of some data in SESSION object. There is nothing more on the > pages but one thing - pages are refreshed every 30 seconds. I also have > some users (really not many) that constantly monitor these pages. The last > thing I've got is some error messages. > The error message that displays on page looks like: > > An error was encountered while publishing this resource. > ZODB.POSException.ConflictError > Sorry, a site error occurred. > Traceback (innermost last): > =B0 Module ZPublisher.Publish, line 150, in publish_module > =B0 Module ZPublisher.Publish, line 127, in publish > =B0 Module ZPublisher.Publish, line 127, in publish > =B0 Module ZPublisher.Publish, line 127, in publish > =B0 Module ZPublisher.Publish, line 122, in publish > =B0 Module Zope.App.startup, line 142, in zpublisher_exception_hook > =B0 Module ZPublisher.Publish, line 102, in publish > =B0 Module Zope.App.startup, line 200, in commit > =B0 Module ZODB.Transaction, line 235, in commit > =B0 Module ZODB.Transaction, line 349, in _commit_objects > =B0 Module ZODB.Connection, line 391, in commit > =B0 __traceback_info__: (('BTrees.OOBTree', 'OOBTree'), > '\x00\x00\x00\x00\x00\x00\x01\xcd', '') =B0 Module > Products.TemporaryFolder.TemporaryStorage, line 134, in store > ConflictError: database conflict error (oid 00000000000001cd, serial was > 034b62206010624c, now 034b621e679953b3) > > This error usually disappears after refreshing the page (but > confuses the users). Some of error messages that are logged in my > "stupid" log: > > 2003-03-06T09:50:36 INFO(0) ZODB conflict error at > /ctt/cmp/info/yesterday/midday/index_html (138 conflicts since startup at > 2003-03-05T16:20:08) ------ > 2003-03-06T09:52:29 INFO(0) ZODB conflict error at /ctt/firm/props (139 > conflicts since startup at 2003-03-05T16:20:08) ------ > 2003-03-06T09:52:39 INFO(0) ZODB conflict error at /ctt/firm/props (140 > conflicts since startup at 2003-03-05T16:20:08) ------ > 2003-03-06T09:52:49 INFO(0) ZODB conflict error at /ctt/firm/index_html > (141 conflicts since startup at 2003-03-05T16:20:08) ------ > 2003-03-06T09:53:08 INFO(0) ZODB conflict error at > /ctt/cmp/info/yesterday/index_html (142 conflicts since startup at > 2003-03-05T16:20:08) > > I have searched mailing lists, but I didn't find the answer for the > question - what's going on? and what interests me most: what to do > with this? I've found some sugestions that such errors called read > conflicts may be caused by > using the session. Is that true? Why the session? I don't think that I > can stop using session object. > Any more suggestions? Any solutions? There must be any simple > solution - my app has only few users! I already had same kind of problem while "storing" Zope persistent objects= =20 into SESSION. Problem disappeared when switching SESSION informations to simple Python=20 objects (strings, lists,...). Thierry =2D-=20 Linux every day, keeps Dr Watson away... http://gpc.sourceforge.net -- http://www.ulthar.net From leemann@netcloud.ch Thu Mar 6 10:58:23 2003 From: leemann@netcloud.ch (Stefan Leemann) Date: Thu, 6 Mar 2003 11:58:23 +0100 Subject: [Zope] index_html Message-ID: <30DD45D78A55004C8B543CD7B65C91452D2A19@ncwts003.ncg.ch> Hi, I grooved up my index_html in the root of zope. Are there any chances to correct this? I can't connect to the manage interface or to any plone = sites any more. Can I edit index_html on some way direct on the linux command line? Thanks for feedback. Best regards, Stefan From Jakub Wisniowski Thu Mar 6 11:03:31 2003 From: Jakub Wisniowski (Jakub Wisniowski) Date: Thu, 6 Mar 2003 12:03:31 +0100 Subject: Re[2]: [Zope] Read conflicts In-Reply-To: <200303061140.21981.thierry.florac@onf.fr> References: <7371170296.20030306113007@euro.coig.pl> <200303061140.21981.thierry.florac@onf.fr> Message-ID: <16673174406.20030306120331@euro.coig.pl> Thursday, March 6, 2003, 11:40:21 AM, you wrote: TF> I already had same kind of problem while "storing" Zope persistent objects TF> into SESSION. TF> Problem disappeared when switching SESSION informations to simple Python TF> objects (strings, lists,...). TF> Thierry Thanks for reply. My SESSION holds only Python dictionary with logged user's data. Is it checked on every page to let me know if the user has been logged in. Maybe I should switch from a dictionary to a list? Sounds rather strange... One more info - my Zope's version is 2.6.1. -- Jakub Wisniowski From michael.healy@engitech.ie Thu Mar 6 11:30:27 2003 From: michael.healy@engitech.ie (=?iso-8859-1?Q?Miche=E1l_Healy?=) Date: Thu, 6 Mar 2003 11:30:27 -0000 Subject: [Zope] Can I choose my python installation? Message-ID: Hi, If I have python installed on my PC, can I use that installation instead = of that installed with Zope? The reason is that I am having trouble install= ing the win32 library for python on the Zope python instance. It fails to lo= ad pywise32.dll(?). I'm using a Win98 machine. TIA, Miche=E1l Miche=E1l Healy Engitech Ltd. 01 6204 516 From stephan.herschel@proceryon.at Thu Mar 6 12:09:56 2003 From: stephan.herschel@proceryon.at (Stephan Herschel) Date: Thu, 06 Mar 2003 13:09:56 +0100 Subject: [Zope] Count User Logins Message-ID: <3E673A94.7030109@proceryon.at> Hi Everyone, I've got a Zope application where users have to authenticate themselves to be able to view certain pages. Now I want to count the logins per zope-user (disregarding the actual user-request identified by their ip-addresses). Can this be done? -- Stephan From jens@zope.com Thu Mar 6 12:39:09 2003 From: jens@zope.com (Jens Vagelpohl) Date: Thu, 6 Mar 2003 07:39:09 -0500 Subject: [Zope] index_html In-Reply-To: <30DD45D78A55004C8B543CD7B65C91452D2A19@ncwts003.ncg.ch> Message-ID: try going to http:///index_html/manage_main jens On Thursday, Mar 6, 2003, at 05:58 US/Eastern, Stefan Leemann wrote: > Hi, > > I grooved up my index_html in the root of zope. Are there any chances > to > correct this? I can't connect to the manage interface or to any plone > sites > any more. > > Can I edit index_html on some way direct on the linux command line? > > Thanks for feedback. > > Best regards, > Stefan From j_melt@yahoo.com Thu Mar 6 12:45:55 2003 From: j_melt@yahoo.com (Yannis Lionis) Date: Thu, 6 Mar 2003 04:45:55 -0800 (PST) Subject: [Zope] Problem with Linux installation Message-ID: <20030306124555.71528.qmail@web13408.mail.yahoo.com> --0-1181345480-1046954755=:71292 Content-Type: text/plain; charset=us-ascii Hi everybody. I'm attempting to install Zope 2.6.1 on Mandrake Linux version 9. I read the documentation and followed the instructions: unziped the files, run ./install, wrote down the login and password, set the sticky bit of /var and changed the owner of var to root (since I was installing as root), and used the ./zpasswd.py script to change the password to something more convenient, leaving the login name to 'admin'. Trouble starts here: The SETUPUID.TXT document file says I need to set the UID either in the ./z2.py, or in the ./start command line. I cannot do either! I tried the first option and typed: ./z2py -u admin What I got was the help list and at the bottom the following error messages: ./z2py: line 239: syntaxerror near unexpected token ' 0,' ./z2py: line 239: ' sys.path.insert(0,'%s/lib/python'%swhome)' So I thought I'd try the second option. I typed: ./start.py -u admin The process seemed to go fine (opened datanbase, mounted database, etc.) but a few seconds later I got a message: ERROR(200) z2 Can't find UID admin After experimenting a bit, I noticed that when I run ./start it deletes the 'inituser' file at some point during opening and mounting the database (as it appears anyway). So a few seconds later it looks for admin and finds nothing. Am I doing something wrong here? I have successfully done the whole thing in Windows 2000 (which of course is a different story, but still) and I can't find anything in the documentation that I'm doing wrong. I downloaded the zip file again and did the whole thing from the beginning and it made no difference, so it is not a corrupted file or anything like that. Can anyone help me on this? Thanks! Yannis P.S: And sorry for the huge email, I just thought that nobody can really help unless they have some details... --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more --0-1181345480-1046954755=:71292 Content-Type: text/html; charset=us-ascii

    Hi everybody.

    I'm attempting to install Zope 2.6.1 on Mandrake Linux version 9. I read the documentation and followed the instructions: unziped the files, run ./install, wrote down the login and password, set the sticky bit of /var and changed the owner of var to root (since I was installing as root), and used the ./zpasswd.py script to change the password to something more convenient, leaving the login name to 'admin'. Trouble starts here: The SETUPUID.TXT document file says I need to set the UID either in the ./z2.py, or in the ./start command line. I cannot do either! I tried the first option and typed:

    ./z2py -u admin

    What I got was the help list and at the bottom the following error messages:

    ./z2py: line 239: syntaxerror near unexpected token ' 0,'

    ./z2py: line 239: '      sys.path.insert(0,'%s/lib/python'%swhome)'

    So I thought I'd try the second option. I typed:

    ./start.py -u admin

    The process seemed to go fine (opened datanbase, mounted database, etc.) but a few seconds later I got a message:

    ERROR(200) z2 Can't find UID admin

    After experimenting a bit, I noticed that when I run ./start it deletes the 'inituser' file at some point during opening and mounting the database (as it appears anyway). So a few seconds later it looks for admin and finds nothing.

    Am I doing something wrong here? I have successfully done the whole thing in Windows 2000 (which of course is a different story, but still) and I can't find anything in the documentation that I'm doing wrong. I downloaded the zip file again and did the whole thing from the beginning and it made no difference, so it is not a corrupted file or anything like that. Can anyone help me on this? Thanks!

    Yannis

    P.S: And sorry for the huge email, I just thought that nobody can really help unless they have some details...



    Do you Yahoo!?
    Yahoo! Tax Center - forms, calculators, tips, and more --0-1181345480-1046954755=:71292-- From jh@comunit.de Thu Mar 6 12:33:32 2003 From: jh@comunit.de (Janko Hauser) Date: Thu, 6 Mar 2003 13:33:32 +0100 Subject: [Zope] Html2pdf problems In-Reply-To: <20030306.UHQ.29109800@carramar.auslin.com.au> References: <20030306.UHQ.29109800@carramar.auslin.com.au> Message-ID: <20030306133332.682672d7.jh@comunit.de> On Thu, 06 Mar 2003 11:09:04 +0000 "Mehmet Yousouf" wrote: > I have tried sorting after the dtml-in command but the same story, > even doing a while zope renders it, > will not get converted to pdf..... if I save the file and use > hmtldoc -f nameid.pdf nameid.html --webpage, it works. > The problem here is, that htmldoc makes its own request to the named page. This request doesn't know anything about your session, as it can not hanlde cookies or authentication. The solution you tried will break, if someone else will print the page. HTH, __Janko From jan.maska@systinet.com Thu Mar 6 12:53:44 2003 From: jan.maska@systinet.com (=?iso-8859-2?Q?Jan_Ma=B9ka?=) Date: Thu, 6 Mar 2003 13:53:44 +0100 Subject: [Zope] Calling DTML document from a string/query Message-ID: Hi all, Though it may seem as a stupid question, it's rather important (at least for me).. How to create a DTML document pointer () from a string? Let's see this example: www.mydomain.com/somepath/index?read=20030220 What I need is that the index at somepath opens another document called '20030220' and prints it's contents, like in this case: ==index== ===end=== only I want to be able to define this dynamically based on the user queries. If you can give any hints, it would really be helpful. -Mac =============================== Jan Maska, web developer Systinet, Prague(CZ) jan.maska@systinet.com tel.:(+420)608453492 visit http://www.systinet.com =============================== From lmcdonnell@protonenergy.com Thu Mar 6 13:09:51 2003 From: lmcdonnell@protonenergy.com (McDonnell, Larry) Date: Thu, 6 Mar 2003 08:09:51 -0500 Subject: [Zope] Calling DTML document from a string/query Message-ID: <318685741A5BD31183A4006097BD8DD97AD9A6@PROSERV> Hi, This is how I was able to point the variable to the form - " target=3D"_blank"> =20 hth Larry -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Jan = Ma=B9ka Sent: Thursday, March 06, 2003 7:54 AM To: Zope mailing list Subject: [Zope] Calling DTML document from a string/query Hi all, Though it may seem as a stupid question, it's rather important (at = least for me).. How to create a DTML document pointer () = from a string? Let's see this example: www.mydomain.com/somepath/index?read=3D20030220 What I need is that the index at somepath opens another document called '20030220' and prints it's contents, like in this case: =3D=3Dindex=3D=3D =3D=3D=3Dend=3D=3D=3D only I want to be able to define this dynamically based on the user = queries. If you can give any hints, it would really be helpful. -Mac =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D Jan Maska, web developer Systinet, Prague(CZ) jan.maska@systinet.com tel.:(+420)608453492 visit http://www.systinet.com =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -=20 http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) From andy@bigorangelovebus.net Thu Mar 6 13:21:06 2003 From: andy@bigorangelovebus.net (andy) Date: Thu, 06 Mar 2003 13:21:06 +0000 Subject: [Zope] odbc da for zope on linux Message-ID: <3E674B42.7030706@bigorangelovebus.net> Hi, Am I right in syaing that there is no such DA for zope running on linux? I can find the DA for the win platform, but can't find an equivalent for Linux..... I need to access information in an Access copied on a Linux server (where zope will also be running). All the clients connected to the server are Win98, so can't run Zope as a service anywhere else. Not sure if there's a problem with accessing data from this db if it's on the Linux server - if there is then I'll just point the DB request to one of the network machines. But first I need to get an adapter that works, and so far I can't see one. Andy From mas@semafor.ch Thu Mar 6 13:29:40 2003 From: mas@semafor.ch (Sorin Marti) Date: Thu, 06 Mar 2003 14:29:40 +0100 Subject: [Zope] Lines with different colors Message-ID: <3E674D44.6030706@semafor.ch> Hi all, I am experimenting around with zope and I want to do following thing: I call values from the database and give them out. Now I want each second line in a different color. How do I do that? Thanks in advance Sorin From d.chirila@bucarest.finsiel.ro Thu Mar 6 13:38:37 2003 From: d.chirila@bucarest.finsiel.ro (Dragos Chirila) Date: Thu, 6 Mar 2003 15:38:37 +0200 Subject: [Zope] Lines with different colors References: <3E674D44.6030706@semafor.ch> Message-ID: <001501c2e3e5$b10a3f90$2f01a8c0@dchirila> HI go to 'Help' from your Zope console and search for 'dtml-in' there is the following example : Creating alternate colored table cells: bgcolor="#EEEEEE" bgcolor="#FFFFFF"
    rgds > Hi all, > > I am experimenting around with zope and I want to do following thing: > > I call values from the database and give them out. > Now I want each second line in a different color. > > How do I do that? > > Thanks in advance > > Sorin > > > _______________________________________________ > 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 ) > From maxm@mxm.dk Thu Mar 6 13:39:15 2003 From: maxm@mxm.dk (Max M) Date: Thu, 06 Mar 2003 14:39:15 +0100 Subject: [Zope] Lines with different colors In-Reply-To: <3E674D44.6030706@semafor.ch> References: <3E674D44.6030706@semafor.ch> Message-ID: <3E674F83.6010607@mxm.dk> Sorin Marti wrote: > I am experimenting around with zope and I want to do following thing: > > I call values from the database and give them out. > Now I want each second line in a different color. > > How do I do that? You need to be more precise. Are you using dtml or zpt? dtml: zpt: regards Max M From j_melt@yahoo.com Thu Mar 6 13:39:28 2003 From: j_melt@yahoo.com (Yannis Lionis) Date: Thu, 6 Mar 2003 05:39:28 -0800 (PST) Subject: [Zope] Lines with different colors In-Reply-To: <3E674D44.6030706@semafor.ch> Message-ID: <20030306133928.51398.qmail@web13402.mail.yahoo.com> --0-2113615433-1046957968=:50277 Content-Type: text/plain; charset=us-ascii Here's a way: Add a counter variable in your loop (if there isn't one already there). For every value you get from the database, increase the counter by one. While printing the value, if the counter is even, print blue, if it is odd, print yellow. You can check if the number is even or odd by dividing by 2 and checking if the remainder is 1 or 0. You can also use different colors than blue and yellow. ;-) Hope this helps! Yannis Sorin Marti wrote:Hi all, I am experimenting around with zope and I want to do following thing: I call values from the database and give them out. Now I want each second line in a different color. How do I do that? Thanks in advance Sorin _______________________________________________ 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 ) --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more --0-2113615433-1046957968=:50277 Content-Type: text/html; charset=us-ascii

    Here's a way:

    Add a counter variable in your loop (if there isn't one already there). For every value you get from the database, increase the counter by one. While printing the value, if the counter is even, print blue, if it is odd, print yellow. You can check if the number is even or odd by dividing by 2 and checking if the remainder is 1 or 0. You can also use different colors than blue and yellow. ;-)

    Hope this helps!

    Yannis

     Sorin Marti <mas@semafor.ch> wrote:

    Hi all,

    I am experimenting around with zope and I want to do following thing:

    I call values from the database and give them out.
    Now I want each second line in a different color.

    How do I do that?

    Thanks in advance

    Sorin


    _______________________________________________
    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 )



    Do you Yahoo!?
    Yahoo! Tax Center - forms, calculators, tips, and more --0-2113615433-1046957968=:50277-- From gcw-python@rezidew.net Thu Mar 6 13:47:39 2003 From: gcw-python@rezidew.net (G. Clifford Williams) Date: Thu, 6 Mar 2003 07:47:39 -0600 Subject: [Zope] ZPT newbie Q In-Reply-To: <48541845262.20030306024706@Vex.Net> References: <200303052138.58030.gcw-python@rezidew.net> <48541845262.20030306024706@Vex.Net> Message-ID: <200303060747.39492.gcw-python@rezidew.net> hrmm looks like my enthusiasm for ZPT has hit a lull. Thanks for the help, It's greatly appreciated. On Thursday 06 March 2003 01:47 am, you wrote: > G. wrote on Wednesday, March 5, 2003, 10:38:58 PM: > > I'd like to generate a list of links that does not include the index_html > > page. > > Notice the tal:condition="python:item.getId()<>'index_html'" below. > Also notice the general use of object/title_or_id instead of just > object/title. > > > My second question is: Is there any way to sort the list that's > > generated? > > Sort is a bit awkward inside page templates. The sort part of this > code is basically ripped from the API reference in the Zope Book. > It does an insensitive sort on the title, then date. > > Title >
      tal:define="objects here/objectValues; > sort_on python:(('title', 'nocase', 'asc'), > ('bobobase_modification_time', 'cmp', > 'desc')); sorted_objects python:sequence.sort(objects, sort_on)">
    • tal:repeat="item sorted_objects"> > tal:condition="python:item.getId()<>'index_html'" > tal:replace="i">ITEM >
    • >
    > > If you're wanting to do anything very complicated with lists, i'd just > write a python script to generate the list the way you want it, then > loop over that. From seila@gmx.de Thu Mar 6 13:49:22 2003 From: seila@gmx.de (seila@gmx.de) Date: Thu, 6 Mar 2003 14:49:22 +0100 (MET) Subject: [Zope] Newbie: Sessions in Zope 2.6.1? Message-ID: <18239.1046958562@www27.gmx.net> hi all, i have a question concerning the session-management in zope 2.6.1: in which circumstances /exactly/ would i have to create my own session data manager/browser id manager/temporary folder etc? i'm developping my site in a subfolder (and serve it with apache, vhm etc.) and now i don't know if i have to create a new session data manager etc. in my (sub)folder (the zope-book 2.6 doesn't help much in that point). any help appreciated. regards, seila -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! From chrism@zope.com Thu Mar 6 14:35:55 2003 From: chrism@zope.com (Chris McDonough) Date: 06 Mar 2003 09:35:55 -0500 Subject: [Zope] Newbie: Sessions in Zope 2.6.1? In-Reply-To: <18239.1046958562@www27.gmx.net> References: <18239.1046958562@www27.gmx.net> Message-ID: <1046961355.1418.0.camel@james> You needn't create anything, you can use the sessioning machinery out of the box... On Thu, 2003-03-06 at 08:49, seila@gmx.de wrote: > hi all,=20 > =20 > i have a question concerning the session-management in zope 2.6.1:=20 > in which circumstances /exactly/ would i have to create my own session=20 > data manager/browser id manager/temporary folder etc?=20 > i'm developping my site in a subfolder (and serve it with apache, vhm=20 > etc.) and now i don't know if i have to create a new session data manager= =20 > etc. in my (sub)folder (the zope-book 2.6 doesn't help much in that=20 > point).=20 > =20 > any help appreciated.=20 > =20 > regards,=20 > seila=20 > =20 > =20 >=20 > --=20 > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > Bitte l=E4cheln! Fotogalerie online mit GMX ohne eigene Homepage! >=20 >=20 > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists -=20 > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) From pw_lists@slinkp.com Thu Mar 6 14:41:40 2003 From: pw_lists@slinkp.com (Paul Winkler) Date: Thu, 6 Mar 2003 09:41:40 -0500 Subject: [Zope] Can I choose my python installation? In-Reply-To: References: Message-ID: <20030306144140.GA7048@slinkp.com> On Thu, Mar 06, 2003 at 11:30:27AM -0000, Miche?l Healy wrote: > Hi, > > If I have python installed on my PC, can I use that installation instead of > that installed with Zope? sure, i do it all the time on linux. sorry i don't know the setup for doing this on windows. Be sure to use the recommended version of python. For zope 2.5 - 2.6.1, that's python 2.1.3 ONLY. -- Paul Winkler http://www.slinkp.com From mirsoft@systinet.com Thu Mar 6 14:49:06 2003 From: mirsoft@systinet.com (Lubos Culen) Date: Thu, 06 Mar 2003 15:49:06 +0100 Subject: [Zope] How to convert string to object? Message-ID: Hi! Maybe this is more Python question, but because I'm using it with Zope, I'm posting it here. Let's suppose I have DTML Method called e.g. 'index_html' . It has one input parameter 'obj' which contains name of existing file object inside the directory tree. For example, the index_html file would be called as: www.mysite.com/path/index_html?obj=path.to.object.file Then in folder www.mysite.com/path/path/to/object/file in this example would be the DTML document I'd like to be displayed. I have to make proper code in the index_html file do do this. I tried do following in index_html: But this echoes only plain text ('path.to.object.file') and not the object's content. I need to find some way how to convert this string to object, so Zope (or Python) can understand it as an object and display its content. Is there some way? Thanks a lot for any answer! -- Regards, Mirsoft From michael.healy@engitech.ie Thu Mar 6 14:57:31 2003 From: michael.healy@engitech.ie (=?iso-8859-1?Q?Miche=E1l_Healy?=) Date: Thu, 6 Mar 2003 14:57:31 -0000 Subject: [Zope] Can I choose my python installation? In-Reply-To: <20030306144140.GA7048@slinkp.com> Message-ID: Hi Paul, What's the procedure for doing this on Linux? I have a few Zope installations here, on Linux, WinNT and '98, so it would be useful for an= y. Thanks, Miche=E1l -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Paul Winkler Sent: 06 March 2003 14:42 To: Zope@Zope.Org Subject: Re: [Zope] Can I choose my python installation? On Thu, Mar 06, 2003 at 11:30:27AM -0000, Miche?l Healy wrote: > Hi, > > If I have python installed on my PC, can I use that installation instea= d of > that installed with Zope? sure, i do it all the time on linux. sorry i don't know the setup for doing this on windows. Be sure to use the recommended version of python. For zope 2.5 - 2.6.1, that's python 2.1.3 ONLY. -- Paul Winkler http://www.slinkp.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 ) From pw_lists@slinkp.com Thu Mar 6 15:18:40 2003 From: pw_lists@slinkp.com (Paul Winkler) Date: Thu, 6 Mar 2003 10:18:40 -0500 Subject: [Zope] Can I choose my python installation? In-Reply-To: References: <20030306144140.GA7048@slinkp.com> Message-ID: <20030306151840.GC7048@slinkp.com> On Thu, Mar 06, 2003 at 02:57:31PM -0000, Miche?l Healy wrote: > Hi Paul, > > What's the procedure for doing this on Linux? just get the zope source tarball instead of the binary distro. have python 2.1.3 installed. make sure you know how to run it (it might be just "python", or "python2" or "python2.1" depending on your system and what other versions of python might be installed.) then run that command to build zope, e.g. cd /where/you/untarred/zope python2.1 wo_pcgi.py then edit the start script to be sure it uses the right version of python on the last line e.g.: exec /usr/bin/python2.1 $cwd/z2.py -D "$@" ... editing the z2.py options to taste of course. -- Paul Winkler http://www.slinkp.com From pollej@uleth.ca Thu Mar 6 16:40:32 2003 From: pollej@uleth.ca (Edward Pollard) Date: Thu, 06 Mar 2003 09:40:32 -0700 Subject: [Zope] Invalid Page Template? Message-ID: <3E677A00.A1D6D08D@uleth.ca> Is there an easy way to tell if a Page Template is valid/invalid? (Meaning the same check that gets done to see if the red exclaimation mark should show up in the ZMI) Ed From wade@lightlink.com Thu Mar 6 17:40:34 2003 From: wade@lightlink.com (Wade Leftwich) Date: Thu, 06 Mar 2003 12:40:34 -0500 Subject: [Zope] odbc da for zope on linux Message-ID: <3E678812.6080006@lightlink.com> >Date: Thu, 06 Mar 2003 13:21:06 +0000 >From: andy >Subject: odbc da for zope on linux >Hi, >Am I right in syaing that there is no such DA for zope running on linux? >I can find the DA for the win platform, but can't find an equivalent for >Linux..... I need to access information in an Access copied on a Linux >server (where zope will also be running). All the clients connected to >the server are Win98, so can't run Zope as a service anywhere else. Not >sure if there's a problem with accessing data from this db if it's on >the Linux server - if there is then I'll just point the DB request to >one of the network machines. But first I need to get an adapter that >works, and so far I can't see one. Your Access mdb file is on your Linux box? I don't think you can open it there. You'll need to put it on a Windows box, then talk to it via ODBC over the network. Marc-Andre Lemburg's new and excellent mxODBC Zope Adapter will do the job. It's a bargain at $95 per Zope server. I'm using it on Windows, but have tested his mxODBC module on Linux, and it works. mxODBC enables Python to talk to the ODBC driver manager on your Linux box. There are a couple of free ODBC driver mgrs available for Linux. Then for getting your Linux box to talk to the Access box, there are one or two free projects as well as commercial products (http://easysoft.com/). If you don't need to keep the db in Access for other reasons, now would be an excellent time to take a good look at PostgreSql. You can probably get more answers on the Zope-db list. Wade Leftwich Ithaca, NY From sean.upton@uniontrib.com Thu Mar 6 17:50:44 2003 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Thu, 06 Mar 2003 09:50:44 -0800 Subject: [Zope] Can I choose my python installation? Message-ID: Your platform makes this hard, as Zope has modules written in C that = need to be compiled against the specific version of Python you are using. Ho= wever, if you are using Python 2.1.3 in both cases, it may work without a recompile. Usually in this case, the worst thing that could happen i= s a warning that the Python C Module API versions mismatch. Even if this does work, I'm not sure what the mechanics of doing this= on Windows are (I suppose this may be difficult and tedious, and require= you to know what you are doing). If you have Visual C++, you might just want to compile Zope from sour= ce against the Python version you installed. Sean -----Original Message----- =46rom: Miche=E1l Healy [mailto:michael.healy@engitech.ie] Sent: Thursday, March 06, 2003 3:30 AM To: Zope@Zope.Org Subject: [Zope] Can I choose my python installation? Hi, If I have python installed on my PC, can I use that installation inst= ead of that installed with Zope? The reason is that I am having trouble ins= talling the win32 library for python on the Zope python instance. It fails t= o load pywise32.dll(?). I'm using a Win98 machine. TIA, Miche=E1l Miche=E1l Healy Engitech Ltd. 01 6204 516 _______________________________________________ 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 ) From list_subscriber@neurobs.com Thu Mar 6 17:45:51 2003 From: list_subscriber@neurobs.com (AM) Date: Thu, 06 Mar 2003 09:45:51 -0800 Subject: [Zope] Some VHM questions Message-ID: <3E67894F.1000905@neurobs.com> I have a zope site running behind apache 2.0. The zope istnace has a VHM in there that maps to a domain. I had a few questions about the VHM workings. In my site the primary structure is as such: / /nbs_online/ ( maps to nbs.neuro-bs.com ) /nbs_online/information /nbs_online/secure ( maps to secure.neuro-bs.com ) /test (doesnt map to anything ) The required rewrite rules are in the httpd.conf and ssl.conf The problem is I can access /test or for that matter any other URL outside nbs_online via the url nbs.neuro-bs.com/test or whatever the folder name is. The rewrite rules are given below. My question is why?? Secondly the rewrite rules in my virtualhost nbs.neuro-bs.com (httpd.conf) RewriteRule ^/secure/(.*) https://secure.neuro-bs.com/$1 [R] RewriteRule ^/(.*) http://192.168.10.172:8080/VirtualHostBase/http/nbs.neuro-bs.com:80/nbs_online/VirtualHostRoot/$1 [L,P] and the rewrite rules in my ssl.conf for virtualhost (secure.neuro-bs.com) RewriteRule ^/(.*) http://192.168.10.172:8080/VirtualHostBase/https/secure.neuro-bs.com:443/nbs_online/secure/VirtualHostRoot/$1 [L,P] However is you look at the folder structure above, can anybody explain why I can access the folder information via: https://secure.neuro-bs.com/information which should be mapping to https://nbs.neuro-bs.com/secure/information and thus raising a 404?? TIA AM -- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ================================================================== From Andreas Jung Thu Mar 6 17:48:40 2003 From: Andreas Jung (Andreas Jung) Date: Thu, 06 Mar 2003 18:48:40 +0100 Subject: [Zope] Invalid Page Template? In-Reply-To: <3E677A00.A1D6D08D@uleth.ca> References: <3E677A00.A1D6D08D@uleth.ca> Message-ID: <8049925.1046976520@[192.168.0.3]> My favourite is to run tidy against page templates using the -xml option. I mapped it to a function so I can check the template from within my editor (vim of course). -aj --On Donnerstag, 6. M=E4rz 2003 09:40 -0700 Edward Pollard = =20 wrote: > Is there an easy way to tell if a Page Template is valid/invalid? > (Meaning the same check that gets done to see if the red exclaimation > mark should show up in the ZMI) > > Ed > > > _______________________________________________ > 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 ) --=20 --------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - --------------------------------------------------------------------- From pollej@uleth.ca Thu Mar 6 17:52:07 2003 From: pollej@uleth.ca (Edward Pollard) Date: Thu, 06 Mar 2003 10:52:07 -0700 Subject: [Zope] Invalid Page Template? References: <3E677A00.A1D6D08D@uleth.ca> <8049925.1046976520@[192.168.0.3]> Message-ID: <3E678AC7.67C91D4F@uleth.ca> Very nice. However I seek to add an indication of invalid template to a web portal that allows creation and editing the page. You know, reinventing the wheel and all...just wondering how to build this spoke :-) Ed Andreas Jung wrote: > My favourite is to run tidy against page templates using the -xml option. > I mapped it to a function so I can check the template from within my editor > (vim of course). > > -aj > > --On Donnerstag, 6. März 2003 09:40 -0700 Edward Pollard > wrote: > > > Is there an easy way to tell if a Page Template is valid/invalid? > > (Meaning the same check that gets done to see if the red exclaimation > > mark should show up in the ZMI) > > > > Ed > > > > > > _______________________________________________ > > 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 ) > > -- > --------------------------------------------------------------------- > - Andreas Jung http://www.andreas-jung.com - > - EMail: andreas at andreas-jung.com - > - "Life is too short to (re)write parsers" - > --------------------------------------------------------------------- > > _______________________________________________ > 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 ) From creiman@kefta.com Thu Mar 6 18:14:17 2003 From: creiman@kefta.com (Charlie Reiman) Date: Thu, 6 Mar 2003 10:14:17 -0800 Subject: [Zope] Invalid Page Template? In-Reply-To: <3E678AC7.67C91D4F@uleth.ca> Message-ID: > -----Original Message----- > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of > Edward Pollard > Sent: Thursday, March 06, 2003 9:52 AM > To: Andreas Jung > Cc: zope@zope.org > Subject: Re: [Zope] Invalid Page Template? > > > Very nice. > > However I seek to add an indication of invalid template to a web > portal that > allows creation and editing the page. > > You know, reinventing the wheel and all...just wondering how to build this > spoke :-) > > Ed Typically I just reload the page after saving it. Any errors are in a comment at the top. It would be pretty easy to automate this... in emacs, of course. Since I'm not sure what context you're talking about, I can't be more helpful. From evan@4-am.com Thu Mar 6 18:18:33 2003 From: evan@4-am.com (Evan Simpson) Date: Thu, 06 Mar 2003 12:18:33 -0600 Subject: [Zope] Re: Invalid Page Template? In-Reply-To: <3E677A00.A1D6D08D@uleth.ca> References: <3E677A00.A1D6D08D@uleth.ca> Message-ID: <3E6790F9.9010803@4-am.com> Edward Pollard wrote: > Is there an easy way to tell if a Page Template is valid/invalid? > (Meaning the same check that gets done to see if the red exclaimation > mark should show up in the ZMI) Do you mean *exactly* the same check (i.e. calling a method on the ZPT after writing to it)? In that case you want pt_errors() and pt_warnings(), which return None or a sequence of strings describing the error or warning. Cheers, Evan @ 4-am From pollej@uleth.ca Thu Mar 6 18:19:02 2003 From: pollej@uleth.ca (Edward Pollard) Date: Thu, 06 Mar 2003 11:19:02 -0700 Subject: [Zope] Invalid Page Template? References: Message-ID: <3E679116.618F347@uleth.ca> Charlie Reiman wrote: > Typically I just reload the page after saving it. Any errors are in a > comment at the top. It would be pretty easy to automate this... in emacs, of > course. Since I'm not sure what context you're talking about, I can't be > more helpful. I think I mentioned above that its a web portal. Picture the ZMI with 2% of the functionality. So I want to indicated on the directory index screen that a page is unwell. Ed From mlong@datalong.com Thu Mar 6 18:18:44 2003 From: mlong@datalong.com (Michael Long) Date: Thu, 06 Mar 2003 13:18:44 -0500 Subject: [Zope] External Editor Message-ID: I have installed the External Editor client on windows XP Pro and configured it to use gvim. First let me say that this is a great product. I am having a problem whenever I close a file after editing it. I get an error message saying that "External editor lost connection to editor process." The only thing I have been able to find is this is from the External editor site: *If the editor launches, but the helper app complains that it lost its connection to the editor process, this is because your editor detached from the parent process (the helper app). Configure the editor such that it does not do this. Unfortunately, many MDI applications do this and cannot be configured otherwise. Look for a solution to this in a later version of external editor. Does anyone have any hints on how to "configure the editor"? Thanks, Mike From josef.meile@imes.mavt.ethz.ch Thu Mar 6 18:43:18 2003 From: josef.meile@imes.mavt.ethz.ch (Josef Meile) Date: Thu, 6 Mar 2003 19:43:18 +0100 Subject: [Zope] Re: How to convert string to object? Message-ID: <001a01c2e410$417f32e0$db278481@eco8> This is a multi-part message in MIME format. ------=_NextPart_000_0017_01C2E418.A321E210 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > I tried do following in index_html: >=20 > >=20 > But this echoes only plain text ('path.to.object.file') and not the=20 > object's content. I need to find some way how to convert this string = to=20 > object, so Zope (or Python) can understand it as an object and display = its=20 > content. Is there some way? You could try: Regards, Josef ------=_NextPart_000_0017_01C2E418.A321E210 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
    > I tried do following in = index_html:
    >=20
    > <dtml-var obj>
    >
    > But this echoes only = plain text=20 ('path.to.object.file') and not the
    > object's content. I need to = find=20 some way how to convert this string to
    > object, so Zope (or = Python) can=20 understand it as an object and display its
    > content. Is there = some=20 way?
    You could try:
     
    <dtml-var=20 "REQUEST.resolve_url(obj)">
     
    Regards,
    Josef
    ------=_NextPart_000_0017_01C2E418.A321E210-- From evan@4-am.com Thu Mar 6 18:37:38 2003 From: evan@4-am.com (Evan Simpson) Date: Thu, 06 Mar 2003 12:37:38 -0600 Subject: [Zope] Re: Some VHM questions In-Reply-To: <3E67894F.1000905@neurobs.com> References: <3E67894F.1000905@neurobs.com> Message-ID: <3E679572.9070903@4-am.com> AM wrote: > I have a zope site running behind apache 2.0. The zope istnace has a VHM > in there that maps to a domain. I had a few questions about the VHM > workings. > > The problem is I can access /test or for that matter any other URL > outside nbs_online via the url nbs.neuro-bs.com/test This isn't (directly) a VHM issue. What you're seeing is Zope acquisition, a powerful feature that can have surprising effects. Fundamentally, acquisition means that when you ask the object at '/nbs_online' for the name 'test', Zope searches for 'test' in '/nbs_online' and then in '/', where it finds it. In general, if 'a' contains 'b' contains 'c', and you ask for '/a/b/c/d', Zope will search for 'd' in 'c', then 'b', then 'a', then the root. I advise reading about acquisition in the Zope Book at www.zope.org. Cheers, Evan @ 4-am From josef.meile@imes.mavt.ethz.ch Thu Mar 6 19:03:07 2003 From: josef.meile@imes.mavt.ethz.ch (Josef Meile) Date: Thu, 6 Mar 2003 20:03:07 +0100 Subject: [Zope] Re: How to convert string to object? Message-ID: <002001c2e413$0642d530$db278481@eco8> --- In zope@yahoogroups.com, "Josef Meile" wrote: > > I tried do following in index_html: > > > > > > > > But this echoes only plain text ('path.to.object.file') and not the > > object's content. I need to find some way how to convert this string to > > object, so Zope (or Python) can understand it as an object and display its > > content. Is there some way? > You could try: > > Opss, I saw your path is separated with dots '.', so I guess you will have to convert them to slashes '/'. I think you will also need to add 'http://www.mysite.com/' before your path From list_subscriber@neurobs.com Thu Mar 6 19:05:48 2003 From: list_subscriber@neurobs.com (AM) Date: Thu, 06 Mar 2003 11:05:48 -0800 Subject: [Zope] Re: Some VHM questions In-Reply-To: <3E679572.9070903@4-am.com> References: <3E67894F.1000905@neurobs.com> <3E679572.9070903@4-am.com> Message-ID: <3E679C0C.5050603@neurobs.com> I did read it and do understand it. I guess I mis-understood the functionality of VHM in presupposing that it would restrict that kind of upward acquisition. Is there a way to pratially eclipse acquisition... :) Thanks. AM Evan Simpson wrote: > AM wrote: > >> I have a zope site running behind apache 2.0. The zope istnace has a >> VHM in there that maps to a domain. I had a few questions about the >> VHM workings. >> >> The problem is I can access /test or for that matter any other URL >> outside nbs_online via the url nbs.neuro-bs.com/test > > > This isn't (directly) a VHM issue. What you're seeing is Zope > acquisition, a powerful feature that can have surprising effects. > > Fundamentally, acquisition means that when you ask the object at > '/nbs_online' for the name 'test', Zope searches for 'test' in > '/nbs_online' and then in '/', where it finds it. In general, if 'a' > contains 'b' contains 'c', and you ask for '/a/b/c/d', Zope will > search for 'd' in 'c', then 'b', then 'a', then the root. > > I advise reading about acquisition in the Zope Book at www.zope.org. > > Cheers, > > Evan @ 4-am > > > _______________________________________________ > 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 ) > > -- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ================================================================== From baiewola@netscape.net Thu Mar 6 19:44:26 2003 From: baiewola@netscape.net (baiewola@netscape.net) Date: Thu, 06 Mar 2003 14:44:26 -0500 Subject: SOLVED: [Zope] NuxUserGroups and CMF not working Message-ID: <4E150577.4B57A795.00923364@netscape.net> The CMF product folders were not being found. I moved them, and everything works now. Dieter Maurer wrote: >baiewola@netscape.net wrote at 2003-3-4 14:57 -0500: > > ... > > There's nothing at all in my logs about CMF, but here's what the log has to say abut NuxUserGroups: > > File /zopedirectory/lib/python/Products/NuxUserGroups/CatalogToolWithGroups.py, line 17, in ? > > (Object: rolesForPermissionOn) > > ImportError: No module named CMFCore.CatalogTool > >Can you check what code you find in line 17 of "CatalogToolWithGroups.py". >It should read somehow like "Products.CMFCore.CatalogTool". > > >Dieter > __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ From tim@xxvii.net Thu Mar 6 19:52:21 2003 From: tim@xxvii.net (Tim) Date: Thu, 6 Mar 2003 14:52:21 -0500 Subject: [Zope] External Editor In-Reply-To: References: Message-ID: <69585360563.20030306145221@Vex.Net> Michael wrote on Thursday, March 6, 2003, 1:18:44 PM: > Does anyone have any hints on how to "configure the editor"? I'm using ExternalEditor with gvim on XP Pro, as you are. I did no special configuration (that I can recall) beyond the simple: editor = h:\vim\gvim.exe in the ZopeEdit.ini Works great. I don't experience any "connection lost" problems. So this message is not much help, except to say i don't think that snippet you quoted from the ZopeEditor site applies here. -- Tim Middleton | Cain Gang Ltd | A man is rich in proportion to the number of x@veX.net | www.Vex.Net | things which he can afford to let alone. HDT From maxm@mxm.dk Thu Mar 6 19:57:20 2003 From: maxm@mxm.dk (Max M) Date: Thu, 06 Mar 2003 20:57:20 +0100 Subject: [Zope] How to convert string to object? In-Reply-To: References: Message-ID: <3E67A820.3090208@mxm.dk> Lubos Culen wrote: > Let's suppose I have DTML Method called e.g. 'index_html' . It has one > input parameter 'obj' which contains name of existing file object > inside the directory tree. For example, the index_html file would be > called as: > > www.mysite.com/path/index_html?obj=path.to.object.file > > Then in folder www.mysite.com/path/path/to/object/file in this example > would be the DTML document I'd like to be displayed. I have to make > proper code in the index_html file do do this. I think you need to clarify why you want to do it. Because normally you wold just let zope do the path traversal for you. It certainly is doable, but you need a really good reason to roll your own version of something that Zope allready does. Most likely there is another way to acheive what you want to do. It seems like you are thinking as a sql database programmer. You don't have to do that in Zope. regards Max M From baiewola@netscape.net Thu Mar 6 19:58:51 2003 From: baiewola@netscape.net (baiewola@netscape.net) Date: Thu, 06 Mar 2003 14:58:51 -0500 Subject: [Zope] NuxUserGroups: workaround, anyone? Message-ID: <6D50509D.07993DFA.00923364@netscape.net> My zope site is already created, and I did not create it with the idea that I would be implementing user groups. Therefore, I already have an acl_users folder at the top level of my site. All of my users are defined in that folder, and all access throughout the site is inherited, except for a few local roles assigned here and there. Now that I want to use NuxUserGroups, I have a problem: I cannot create groups at the top level. Since I already have an acl_users folder, I get an error when I try to create a "User Folder with Groups" at the root level. So I can't simply move all my existing users into a different type of user folder that supports groups. And when I create a "User Folder with Groups"at any other level, of course my users from my root level acl_users folder are not recognized so they cannot be added to groups. So if I want to add groups at any level, I have to re-create all my users. Does anyone have a workaround to this? Or am I overlooking a product that will let me do what I want (add groups to an existing site at the root level)? __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ From ruger@acsnv.com Thu Mar 6 20:08:59 2003 From: ruger@acsnv.com (D. Rick Anderson) Date: 06 Mar 2003 12:08:59 -0800 Subject: [Zope] XML Message-ID: <1046981340.10423.2.camel@dad.andersonville.com> What is the best way to parse XML with Zope? I've been digging all over the site, and the docs there keep talking about adding an XML Document, but that option doesn't exist on my Zope server (2.6.0 on RH 8.0) and I can't find anything indicating that there needs to be a product installed. Simply put, I want to be able to grab an XML document with webclient() and be able to parse the contents of the XML using DTML. TIA Rick From dieter@handshake.de Thu Mar 6 19:49:10 2003 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 6 Mar 2003 20:49:10 +0100 Subject: [Zope] index_html In-Reply-To: <30DD45D78A55004C8B543CD7B65C91452D2A19@ncwts003.ncg.ch> References: <30DD45D78A55004C8B543CD7B65C91452D2A19@ncwts003.ncg.ch> Message-ID: <15975.42550.445585.402672@gargle.gargle.HOWL> Stefan Leemann wrote at 2003-3-6 11:58 +0100: > I grooved up my index_html in the root of zope. Are there any chances to > correct this? I can't connect to the manage interface or to any plone sites > any more. Usually, "index_html" is not required to access "manage". Maybe, more things are bad. What goes wrong when you visit: "http://server:8080/manage"? We need ErrorType, ErrorValue and traceback, in order to help you. Dieter From dieter@handshake.de Thu Mar 6 19:34:37 2003 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 6 Mar 2003 20:34:37 +0100 Subject: [Zope] assignment to form records In-Reply-To: References: <3E653B8D.5070203@agmweb.ca> Message-ID: <15975.41677.133196.296485@gargle.gargle.HOWL> Fernando Martins wrote at 2003-3-6 01:32 +0100: > ... > But is there any function to work with the record object?? You can access its attributes... > I don't even know > what's its class. It is defined in "ZPublisher.HTTPRequest" and its name in "record". > Can I add my own functions? Sure, when you change the code... Dieter From dieter@handshake.de Thu Mar 6 19:38:39 2003 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 6 Mar 2003 20:38:39 +0100 Subject: [Zope] Proxies for Z SQL Methods In-Reply-To: References: Message-ID: <15975.41919.25359.198026@gargle.gargle.HOWL> Roger Fisher wrote at 2003-3-5 20:00 -0800: > I have a Z SQL method that wants to use document_src. Unlike a DTML Method, > there is no "proxy" tab for me to set the Manager permission. As a > workaround, I execute the document_src in the calling DTML method and pass > the result as a parameter to the Z SQL method.... but I wonder if there is a > more elegant solution? I do not think so. Dieter PS: You may try to avoid the "application/ms-tnef" attachment. From dieter@handshake.de Thu Mar 6 19:36:24 2003 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 6 Mar 2003 20:36:24 +0100 Subject: [Zope] assignment to form records In-Reply-To: References: <20030305005607.GI3495@slinkp.com> Message-ID: <15975.41784.601433.327070@gargle.gargle.HOWL> Fernando Martins wrote at 2003-3-6 01:32 +0100: > I've two forms who pass a similar record to their scripts. Each script does > its own processing, "normalising" the record. The record is then passed to > another script which does common processing and final storage in a table. You can pass dictionaries instead of records. An alternative: "Products.PythonScripts.standard" defines the record factory "Object" (maybe different case, check the source). It returns a writable "record". Dieter From dieter@handshake.de Thu Mar 6 18:48:25 2003 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 6 Mar 2003 19:48:25 +0100 Subject: [Zope] zope crashes on first hit In-Reply-To: <20030305221512.80246.qmail@web14106.mail.yahoo.com> References: <15974.20160.299650.872648@gargle.gargle.HOWL> <20030305221512.80246.qmail@web14106.mail.yahoo.com> Message-ID: <15975.38905.174603.503342@gargle.gargle.HOWL> Bill Seitz wrote at 2003-3-5 14:15 -0800: > I moved z2.log, z2.pid, data.fs.tmp, and data.fs.lock > to a subfolder, then started up again. > > Now things work fine. > > Except I seem to have lost all changes since 4 months > ago. Almost unbelievable... "Data.fs" has the structure of a transactional log file, i.e. each modification results in a transactional record to be appended to "Data.fs". This is very robust unless something truncates the file (or packs it). You made regular backups of your "Data.fs"? You should have; if not, start doing it now! You can use "fsdump.py" to analyse the content of your Data.fs. Attention, the output may be huge. You are interested in the most recent transactions: what is their time? Dieter From dieter@handshake.de Thu Mar 6 19:52:21 2003 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 6 Mar 2003 20:52:21 +0100 Subject: Re[2]: [Zope] Read conflicts In-Reply-To: <16673174406.20030306120331@euro.coig.pl> References: <7371170296.20030306113007@euro.coig.pl> <200303061140.21981.thierry.florac@onf.fr> <16673174406.20030306120331@euro.coig.pl> Message-ID: <15975.42741.882785.330767@gargle.gargle.HOWL> Jakub Wisniowski wrote at 2003-3-6 12:03 +0100: > Thanks for reply. > My SESSION holds only Python dictionary with logged user's data. Is it > checked on every page to let me know if the user has been logged in. > Maybe I should switch from a dictionary to a list? Sounds rather strange... > One more info - my Zope's version is 2.6.1. This is not your problem.... You can stick with dictionaries. When you use objects that are itself persistent, then you can reduce the conflict probability, however, the conflict probably happens already on the main session object (updating its "last accessed time"). If this were true, then "application level conflict resolution" (Howto on Zope.org) might help. Dieter From dieter@handshake.de Thu Mar 6 20:03:19 2003 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 6 Mar 2003 21:03:19 +0100 Subject: [Zope] Calling DTML document from a string/query In-Reply-To: References: Message-ID: <15975.43399.459005.451713@gargle.gargle.HOWL> Jan Ma=1B-B=B9ka wrote at 2003-3-6 13:53 +0100:=1B-A > Though it may seem as a stupid question, it's rather important (at lea= st for > me).. > How to create a DTML document pointer () f= rom a > string? > Let's see this example: > www.mydomain.com/somepath/index?read=3D20030220 >=20 > What I need is that the index at somepath opens another document calle= d > '20030220' and prints it's contents, like in this case: > =3D=3Dindex=3D=3D > > > > =3D=3D=3Dend=3D=3D=3D > only I want to be able to define this dynamically based on the user qu= eries. >=20 > If you can give any hints, it would really be helpful. Please read You are interested in "computed variable access", especially "_[expression]" and "_.getitem(expression)". Dieter From dieter@handshake.de Thu Mar 6 19:47:24 2003 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 6 Mar 2003 20:47:24 +0100 Subject: [Zope] Read conflicts In-Reply-To: <7371170296.20030306113007@euro.coig.pl> References: <7371170296.20030306113007@euro.coig.pl> Message-ID: <15975.42444.257132.91892@gargle.gargle.HOWL> Jakub Wisniowski wrote at 2003-3-6 11:30 +0100: > .... > An error was encountered while publishing this resource. > ZODB.POSException.ConflictError > .... > =B0 __traceback_info__: (('BTrees.OOBTree', 'OOBTree'), '\x00\x0= 0\x00\x00\x00\x00\x01\xcd', '') > =B0 Module Products.TemporaryFolder.TemporaryStorage, line 134, = in store > ConflictError: database conflict error (oid 00000000000001cd, serial w= as 034b62206010624c, now 034b621e679953b3) =20 A search over the mailing list archives (for "ConflictError") will show hundreds of messages related to your problem.... Probably, several requests try to modify the same session related object = at the same time. Due to peculiarities of the session implementation, a read access to a session causes writing as well. Reduce the amount of session access to the cases when you really need it. Especially, try not to access the session in all frames of a frameset... Occasional conflicts are unavoidable and should not harm (as requests are automatically retried). > This error usually disappears after refreshing the page (but > confuses the users). That's strnage. The user should get such a page only when conflicts happen with very high frequency (the request is retried 2 or 3 times before it fails). Dieter From dieter@handshake.de Thu Mar 6 20:02:21 2003 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 6 Mar 2003 21:02:21 +0100 Subject: [Zope] Count User Logins In-Reply-To: <3E673A94.7030109@proceryon.at> References: <3E673A94.7030109@proceryon.at> Message-ID: <15975.43341.229389.21665@gargle.gargle.HOWL> Stephan Herschel wrote at 2003-3-6 13:09 +0100: > I've got a Zope application where users have to authenticate themselves > to be able to view certain pages. Now I want to count the logins per > zope-user (disregarding the actual user-request identified by their > ip-addresses). Can this be done? Yes, and, of course, there all lots of options: * use a relational database table, indexed by user id (maybe ip-address) to count logins * use a file per user on the file system to count logins * use a small persistent object per user to count logins. Note that each login will write this object to the ZODB. Therefore, you place it either on a non-undoable storage or ensure, it is really small. Dieter From dieter@handshake.de Thu Mar 6 19:37:24 2003 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 6 Mar 2003 20:37:24 +0100 Subject: [Zope] context of a for loop In-Reply-To: <20030306011249.52852.qmail@web21408.mail.yahoo.com> References: <20030306011249.52852.qmail@web21408.mail.yahoo.com> Message-ID: <15975.41844.190579.167491@gargle.gargle.HOWL> Fearless Froggie wrote at 2003-3-5 17:12 -0800: > ... > If I loop through a list of id's with a for loop and > do something to each of these objects, I get a "You > are not allowed to access editMetadata in this > context". Here's the code (here I'm just changing the > title of each of my items in my list 'id' to 'bob'): > > for item in id: > item_object = getattr(context, item) > item_object.editMetadata(title='bob') > > But if I do these changes directly, it works fine: > > item_object = getattr(context, id[0]) > item_object.editMetadata(title='bob') This means, the not the "0" th element has a problem but some later one.... It has nothing to do with "for loop context". Dieter From mlong@datalong.com Thu Mar 6 20:20:22 2003 From: mlong@datalong.com (Michael Long) Date: Thu, 06 Mar 2003 15:20:22 -0500 Subject: [Zope] External Editor Message-ID: Thanks for the reply. I am baffled because I have the same setup. If I use notepad.exe instead of gvim.exe I also get the same message. It must be a configuration issue specific to my machine. Does anyone else have any ideas? Cheers, Mike > Michael wrote on Thursday, March 6, 2003, 1:18:44 PM: > > Does anyone have any hints on how to "configure the editor"? > > I'm using ExternalEditor with gvim on XP Pro, as you are. I did no > special configuration (that I can recall) beyond the simple: > > editor = h:\vim\gvim.exe > > in the ZopeEdit.ini > > Works great. I don't experience any "connection lost" problems. So > this message is not much help, except to say i don't think that > snippet you quoted from the ZopeEditor site applies here. > > -- > Tim Middleton | Cain Gang Ltd | A man is rich in proportion to the number of > x@veX.net | www.Vex.Net | things which he can afford to let alone. HDT > > > _______________________________________________ > 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 ) > > From bzhang@hawaii.edu Thu Mar 6 20:33:42 2003 From: bzhang@hawaii.edu (Bin Zhang) Date: Thu, 06 Mar 2003 10:33:42 -1000 Subject: [Zope] BalkTalk unable to generate PDF Message-ID: <3E67B0A6.6000200@hawaii.edu> I installed Zope 2.61, PIL 1.1.3 and reportlab on a RedHat Linux server. I was able to generate a PDF if the BackTalk book doesn't have any images in it. Otherwise Zope will give me this in error log: Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Products.BackTalk.BackTalk, line 325, in manage_makePDF Module Products.BackTalk.BackTalk, line 362, in makePDF Module Products.BackTalk.PDFClass, line 288, in __call__ Module Products.BackTalk.PDFClass, line 239, in dispatch Module Products.BackTalk.PDFClass, line 309, in document Module Products.BackTalk.PDFClass, line 403, in bullet Module Products.BackTalk.PDFClass, line 346, in paragraph Module Products.BackTalk.PDFClass, line 431, in image Module Products.BackTalk.Retrievers, line 44, in __call__ AttributeError: height Can someone tell me what could be the cause? Bin From evan@4-am.com Thu Mar 6 20:39:47 2003 From: evan@4-am.com (Evan Simpson) Date: Thu, 06 Mar 2003 14:39:47 -0600 Subject: [Zope] Re: assignment to form records In-Reply-To: References: Message-ID: <3E67B213.4090608@4-am.com> Fernando Martins wrote: > I've a script who gets two parameters from a form: Code (int), Fields > (record). ... > Fields.a_field = 1 > > I get the error I routinely patch Zope so that 'record' instances and the SQL Record subclasses that it generates are writable: (in $ZOPE/lib/python/ZPublisher/HTTPRequest.py) class record: # Allow access to record methods and values from DTML __allow_access_to_unprotected_subobjects__=1 _guarded_writes = 1 (in $ZOPE/lib/python/Shared/DC/ZRDB/Result.py) class r(Record, Implicit, brains, zbrains): 'Result record class' _guarded_writes = 1 I see no reason why 'record' objects shouldn't be mutable like this, but I've never discussed it with anyone. Cheers, Evan @ 4-am From sean.upton@uniontrib.com Thu Mar 6 20:49:02 2003 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Thu, 06 Mar 2003 12:49:02 -0800 Subject: [Zope] XML Message-ID: Download and use ParsedXML product (v. 1.3+), which created persistent DOM documents; use standard DOM API to access, traverse, read, and write data from these documents. This will require that you have the PyXML package installed for the version of python you are using to run Zope in your linux distro (http://pyxml.sf.net). Note: PyXML is used to provide the pyexpat parser interface to the expat parser, included. You might also be able to parse your document without storing it in Zope without even using ParsedXML (it sounds like this is what you want to do?). If this is what you are looking to do, use the PyDOM dom implementation that comes with PyXML, and write a parsing script in a Python module; then write an external method that uses that module. This should be pretty easy. Get a copy of the book Python & XML by Jones and Drake (O'Reilly, 2002). Also, there is a Parsed-XML-Dev mailing list and a zope-xml list, both on zope.org. Sean -----Original Message----- From: D. Rick Anderson [mailto:ruger@acsnv.com] Sent: Thursday, March 06, 2003 12:09 PM To: zope@zope.org Subject: [Zope] XML What is the best way to parse XML with Zope? I've been digging all over the site, and the docs there keep talking about adding an XML Document, but that option doesn't exist on my Zope server (2.6.0 on RH 8.0) and I can't find anything indicating that there needs to be a product installed. Simply put, I want to be able to grab an XML document with webclient() and be able to parse the contents of the XML using DTML. TIA Rick _______________________________________________ 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 ) From dieter@handshake.de Thu Mar 6 19:57:30 2003 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 6 Mar 2003 20:57:30 +0100 Subject: [Zope] Can I choose my python installation? In-Reply-To: References: Message-ID: <15975.43050.210518.784124@gargle.gargle.HOWL> Miche=E1l Healy wrote at 2003-3-6 11:30 -0000: > If I have python installed on my PC, can I use that installation inste= ad of > that installed with Zope? The reason is that I am having trouble inst= alling > the win32 library for python on the Zope python instance. It fails to= load > pywise32.dll(?). I'm using a Win98 machine. You can, provided the Python version is compatible with Zope. For Zope 2.6.1, you need either Python 2.1.3 or Python 2.2.2. Then you just install the Zope source distribution and do your_python w_pcgi.py or your_python wo_pcgi.py This requires a C development system. If you do not have one: Install the Zope binary distribution (your Python and that used for building the binary distribution must be the same version, i.e. 2.1.3). Remove the Python library "lib/python/python2.1" and the Python binary (probably "bin/python") from your Zope distribution. Edit "start.bat" to use your Python. Dieter From sean.upton@uniontrib.com Thu Mar 6 20:52:18 2003 From: sean.upton@uniontrib.com (sean.upton@uniontrib.com) Date: Thu, 06 Mar 2003 12:52:18 -0800 Subject: [Zope] External Editor Message-ID: ExternalEditor has problems with editors that detach from their parent process. I think the only way around this is to have an editor-specific plugin to deal with this. I think there is one for Word, but not for notepad. Try MSWord or gvim instead, or consider figuring out how to make a plugin work for the editor of your choice. I haven't done this, but I think there is info you can either google for or search list archives. Good Luck, Sean -----Original Message----- From: Michael Long [mailto:mlong@datalong.com] Sent: Thursday, March 06, 2003 12:20 PM To: Tim; Michael Long; Zope Subject: Re: [Zope] External Editor Thanks for the reply. I am baffled because I have the same setup. If I use notepad.exe instead of gvim.exe I also get the same message. It must be a configuration issue specific to my machine. Does anyone else have any ideas? Cheers, Mike > Michael wrote on Thursday, March 6, 2003, 1:18:44 PM: > > Does anyone have any hints on how to "configure the editor"? > > I'm using ExternalEditor with gvim on XP Pro, as you are. I did no > special configuration (that I can recall) beyond the simple: > > editor = h:\vim\gvim.exe > > in the ZopeEdit.ini > > Works great. I don't experience any "connection lost" problems. So > this message is not much help, except to say i don't think that > snippet you quoted from the ZopeEditor site applies here. > > -- > Tim Middleton | Cain Gang Ltd | A man is rich in proportion to the number of > x@veX.net | www.Vex.Net | things which he can afford to let alone. HDT > > > _______________________________________________ > 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 ) From michael@nichestaffing.com Thu Mar 6 20:56:13 2003 From: michael@nichestaffing.com (Michael Lewis) Date: 06 Mar 2003 13:56:13 -0700 Subject: [Zope] Latest stable version / combination Message-ID: <1046984173.2322.393.camel@localhost.localdomain> I'm using Zope 2.44, Python 2.13 and Apache 1.3.22 as recommended by Dieter, and everything is working fine. I would like to upgrade Zope to be able to use ZCTextIndex to enable exact phrase searching and was wondering what versions of each to get. Michael -- Michael Lewis NicheStaffing.com From dieter@handshake.de Thu Mar 6 21:08:21 2003 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 6 Mar 2003 22:08:21 +0100 Subject: [Zope] odbc da for zope on linux In-Reply-To: <3E674B42.7030706@bigorangelovebus.net> References: <3E674B42.7030706@bigorangelovebus.net> Message-ID: <15975.47301.467208.60164@gargle.gargle.HOWL> andy wrote at 2003-3-6 13:21 +0000: > Am I right in syaing that there is no such DA for zope running on linux? Please search for ZmxODBCDA. It is not free (in the sense of costless) and it requires an external ODBC driver (which, too, is not free). Dieter From dieter@handshake.de Thu Mar 6 21:09:00 2003 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 6 Mar 2003 22:09:00 +0100 Subject: [Zope] How to convert string to object? In-Reply-To: References: Message-ID: <15975.47340.628290.98307@gargle.gargle.HOWL> Lubos Culen wrote at 2003-3-6 15:49 +0100: > Let's suppose I have DTML Method called e.g. 'index_html' . It has one > input parameter 'obj' which contains name of existing file object inside > the directory tree. For example, the index_html file would be called as: > > www.mysite.com/path/index_html?obj=path.to.object.file Search for "restrictedTraverse"... Dieter From ruger@acsnv.com Thu Mar 6 21:17:15 2003 From: ruger@acsnv.com (D. Rick Anderson) Date: 06 Mar 2003 13:17:15 -0800 Subject: [Zope] XML In-Reply-To: References: Message-ID: <1046985435.11039.2.camel@dad.andersonville.com> Whoa .. ok. I was under the impression that Zope had built-in support for XML. If that's the case then I'll just send the data in CSV format. We have too many servers that will be pulling these reports and I want to keep the installed products down to a minimum. Thanks for your help! Rick On Thu, 2003-03-06 at 12:49, sean.upton@uniontrib.com wrote: > Download and use ParsedXML product (v. 1.3+), which created persistent DOM > documents; use standard DOM API to access, traverse, read, and write data > from these documents. This will require that you have the PyXML package > installed for the version of python you are using to run Zope in your linux > distro (http://pyxml.sf.net). Note: PyXML is used to provide the pyexpat > parser interface to the expat parser, included. > > You might also be able to parse your document without storing it in Zope > without even using ParsedXML (it sounds like this is what you want to do?). > If this is what you are looking to do, use the PyDOM dom implementation that > comes with PyXML, and write a parsing script in a Python module; then write > an external method that uses that module. This should be pretty easy. > > Get a copy of the book Python & XML by Jones and Drake (O'Reilly, 2002). > Also, there is a Parsed-XML-Dev mailing list and a zope-xml list, both on > zope.org. > > Sean > > -----Original Message----- > From: D. Rick Anderson [mailto:ruger@acsnv.com] > Sent: Thursday, March 06, 2003 12:09 PM > To: zope@zope.org > Subject: [Zope] XML > > > What is the best way to parse XML with Zope? I've been digging all over > the site, and the docs there keep talking about adding an XML Document, > but that option doesn't exist on my Zope server (2.6.0 on RH 8.0) and I > can't find anything indicating that there needs to be a product > installed. > > Simply put, I want to be able to grab an XML document with webclient() > and be able to parse the contents of the XML using DTML. > > TIA > > Rick > > > > > _______________________________________________ > 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 ) From ruger@acsnv.com Thu Mar 6 21:22:32 2003 From: ruger@acsnv.com (D. Rick Anderson) Date: 06 Mar 2003 13:22:32 -0800 Subject: [Zope] odbc da for zope on linux In-Reply-To: <15975.47301.467208.60164@gargle.gargle.HOWL> References: <3E674B42.7030706@bigorangelovebus.net> <15975.47301.467208.60164@gargle.gargle.HOWL> Message-ID: <1046985752.11039.8.camel@dad.andersonville.com> We're using the 60-day trial of mxODBC (http://www.egenix.com/files/python/mxODBC-Zope-DA.html) with iODBC (http://www.iodbc.org/) which is free, and it's working great. I think it costs $95.00 per Zope instance which is nominal. Rick On Thu, 2003-03-06 at 13:08, Dieter Maurer wrote: > andy wrote at 2003-3-6 13:21 +0000: > > Am I right in syaing that there is no such DA for zope running on linux? > > Please search for ZmxODBCDA. It is not free (in the sense of costless) > and it requires an external ODBC driver (which, too, is not free). > > > 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 ) From jj@nttmcl.com Thu Mar 6 21:53:46 2003 From: jj@nttmcl.com (Shannon -jj Behrens) Date: Thu, 6 Mar 2003 13:53:46 -0800 Subject: [Zope] TransientObjectContainer.keys() Message-ID: <20030306215346.GA23349@alicia.nttmcl.com> Hi, I'm using Zope as an application server for some weird, non-Web-related stuff. TransientObjectContainer really matches my needs for a particular problem (the dict-like interface and the auto-delete feature are quite useful), but TransientObjectContainer has no keys() method. I can see why this is the case considering sessions, but it's something that I absolutely need for my application. I assume my options are: o Hack Zope and submit a patch. o Hack Zope and don't submit a patch, because it won't be accepted. o Figure out some (really inconvenient) way to store a list of keys in the TransientObjectContainer. o Don't use TransientObjectContainer, just use normal Zope objects. Use a cron job to implement auto-delete. I welcome your advice. Best Regards, -jj -- Hacker is to software engineer as Climbing Mt. Everest is to building a Denny's there. From mehmety@auslin.com.au Thu Mar 6 22:06:04 2003 From: mehmety@auslin.com.au (Mehmet Yousouf) Date: Fri, 07 Mar 2003 09:06:04 +1100 Subject: [Zope] Html2pdf problems In-Reply-To: <20030306133332.682672d7.jh@comunit.de> References: <20030306.UHQ.29109800@carramar.auslin.com.au> <20030306133332.682672d7.jh@comunit.de> Message-ID: <3E67C64C.5060108@carramar.auslin.com.au> Thanks for the input, I am not happy with the "fix" but it will have to do till I get a better solution - only 5 computers will be using the program at a time (a manufacturing package for our bedlinen company) initially, each with a particular task so initially it should work, I will try putting in some checking to block anyone else printing the same information. This information can also only get printed once via this route. Regards, Mehmet Janko Hauser wrote: >On Thu, 06 Mar 2003 11:09:04 +0000 >"Mehmet Yousouf" wrote: > > > > >>I have tried sorting after the dtml-in command but the same story, >>even doing a while zope renders it, >>will not get converted to pdf..... if I save the file and use >>hmtldoc -f nameid.pdf nameid.html --webpage, it works. >> >> >> > >The problem here is, that htmldoc makes its own request to the named >page. This request doesn't know anything about your session, as it can >not hanlde cookies or authentication. > >The solution you tried will break, if someone else will print the >page. > > > From paul.browning@bristol.ac.uk Thu Mar 6 22:11:52 2003 From: paul.browning@bristol.ac.uk (Paul Browning) Date: Thu, 06 Mar 2003 22:11:52 -0000 Subject: [Zope] External Editor In-Reply-To: References: Message-ID: <17008096.1046988712@[192.168.1.2]> --On 06 March 2003 12:52 -0800 sean.upton@uniontrib.com wrote: > ExternalEditor has problems with editors that detach from their parent > process. I think the only way around this is to have an editor-specific > plugin to deal with this. I think there is one for Word, but not for > notepad. Really? I would dearly love to solve the "Word can only open one file at a time with External Editor" limitation. I searched on Google but to no avail. If anyone can provide a pointer I'd be most grateful. Paul > Try MSWord or gvim instead, or consider figuring out how to > make a plugin work for the editor of your choice. I haven't done this, > but I think there is info you can either google for or search list > archives. > > Good Luck, > Sean > > -----Original Message----- > From: Michael Long [mailto:mlong@datalong.com] > Sent: Thursday, March 06, 2003 12:20 PM > To: Tim; Michael Long; Zope > Subject: Re: [Zope] External Editor > > > Thanks for the reply. I am baffled because I have the same setup. If I > use notepad.exe instead of gvim.exe I also get the same message. It must > be a configuration issue specific to my machine. Does anyone else have > any ideas? > > Cheers, > Mike > >> Michael wrote on Thursday, March 6, 2003, 1:18:44 PM: >> > Does anyone have any hints on how to "configure the editor"? >> >> I'm using ExternalEditor with gvim on XP Pro, as you are. I did no >> special configuration (that I can recall) beyond the simple: >> >> editor = h:\vim\gvim.exe >> >> in the ZopeEdit.ini >> >> Works great. I don't experience any "connection lost" problems. So >> this message is not much help, except to say i don't think that >> snippet you quoted from the ZopeEditor site applies here. >> >> -- >> Tim Middleton | Cain Gang Ltd | A man is rich in proportion to the > number of >> x@veX.net | www.Vex.Net | things which he can afford to let > alone. HDT >> >> >> _______________________________________________ >> 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 ) > > _______________________________________________ > 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 ) > -- The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK E-mail: paul.browning@bristol.ac.uk URL: http://www.bris.ac.uk/ From pw_lists@slinkp.com Thu Mar 6 22:11:02 2003 From: pw_lists@slinkp.com (Paul Winkler) Date: Thu, 6 Mar 2003 17:11:02 -0500 Subject: [Zope] TransientObjectContainer.keys() In-Reply-To: <20030306215346.GA23349@alicia.nttmcl.com> References: <20030306215346.GA23349@alicia.nttmcl.com> Message-ID: <20030306221102.GB9402@slinkp.com> On Thu, Mar 06, 2003 at 01:53:46PM -0800, Shannon -jj Behrens wrote: > application. I assume my options are: > > o Hack Zope and submit a patch. > o Hack Zope and don't submit a patch, because it won't be accepted. > o Figure out some (really inconvenient) way to store a list of keys in the > TransientObjectContainer. > o Don't use TransientObjectContainer, just use normal Zope objects. Use a cron > job to implement auto-delete. You forgot: o Build your own product that inherits from TransientObjectContainer. -- Paul Winkler http://www.slinkp.com From andy@agmweb.ca Thu Mar 6 22:20:10 2003 From: andy@agmweb.ca (Andy McKay) Date: Thu, 06 Mar 2003 14:20:10 -0800 Subject: [Zope] Can I choose my python installation? In-Reply-To: References: Message-ID: <3E67C99A.4030700@agmweb.ca> > If I have python installed on my PC, can I use that installation instead of > that installed with Zope? The reason is that I am having trouble installing > the win32 library for python on the Zope python instance. It fails to load > pywise32.dll(?). I'm using a Win98 machine. I've never heard of pywise32.dll, what is that? Anyway install the python version you want (eg from Python.org or from ActiveState) and edit start.bat (or the registry settings if its a service and replace the bit that says "python" with your python). Its easy and you don't need to build anything unless you want to. -- Andy McKay From pollej@uleth.ca Thu Mar 6 22:30:01 2003 From: pollej@uleth.ca (Edward Pollard) Date: Thu, 06 Mar 2003 15:30:01 -0700 Subject: [Zope] Get Access to Object from its record in the ZCatalog Message-ID: <3E67CBE9.7D44068C@uleth.ca> I'm pulling my hair out here. I'm sure the answer is simple. How can I get to properties of an object from its ZCatalog entry? I'm iterating through results, and want to do something special if the result is a record for a PDF file. I know how to check the file to see if its a PDF, but ZCatalog does not keep track of all the file contents. I know there is a way to resolve the record ID into the actual object, but I forget how and cannot find a reference to it. Thanks, Edward ---- For clarity, here is some of my code. I am looking for what to use instead of ?? zIndex_Catalog is my Catalog. zIndexFileItem is my CatalogAware wrapper ZClass for File. searchresults = list(context.zIndex_Catalog.searchResults(blah blah search params blah blah)) searchresults.sort( lambda x, y: cmp(x.title, y.title)) for result in searchresults: if ((??.meta_type == 'File') or (??.meta_type == 'zIndexFileItem')): if (??.getContentType == "application/pdf"): PDF Specific Code Here From andy@agmweb.ca Thu Mar 6 22:34:13 2003 From: andy@agmweb.ca (Andy McKay) Date: Thu, 06 Mar 2003 14:34:13 -0800 Subject: [Zope] TransientObjectContainer.keys() In-Reply-To: <20030306221102.GB9402@slinkp.com> References: <20030306215346.GA23349@alicia.nttmcl.com> <20030306221102.GB9402@slinkp.com> Message-ID: <3E67CCE5.1020000@agmweb.ca> Paul Winkler wrote: > On Thu, Mar 06, 2003 at 01:53:46PM -0800, Shannon -jj Behrens wrote: > >>application. I assume my options are: >> >>o Hack Zope and submit a patch. >>o Hack Zope and don't submit a patch, because it won't be accepted. >>o Figure out some (really inconvenient) way to store a list of keys in the >> TransientObjectContainer. >>o Don't use TransientObjectContainer, just use normal Zope objects. Use a cron >> job to implement auto-delete. > > > You forgot: > > o Build your own product that inherits from TransientObjectContainer. And: o Monkey Patch your local Zope in the case it doesnt get accepted -- Andy McKay From mlong@datalong.com Thu Mar 6 22:33:44 2003 From: mlong@datalong.com (Michael Long) Date: Thu, 06 Mar 2003 17:33:44 -0500 Subject: [Zope] External Editor (Solved) Message-ID: The problem is created by setting the "save_interval" greater than 4. After changing the setting the error message went away. Mike > ExternalEditor has problems with editors that detach from their parent > process. I think the only way around this is to have an editor-specific > plugin to deal with this. I think there is one for Word, but not for > notepad. Try MSWord or gvim instead, or consider figuring out how to make a > plugin work for the editor of your choice. I haven't done this, but I think > there is info you can either google for or search list archives. > > Good Luck, > Sean > > -----Original Message----- > From: Michael Long [mailto:mlong@datalong.com] > Sent: Thursday, March 06, 2003 12:20 PM > To: Tim; Michael Long; Zope > Subject: Re: [Zope] External Editor > > > Thanks for the reply. I am baffled because I have the same setup. If I > use notepad.exe instead of gvim.exe I also get the same message. It must > be a configuration issue specific to my machine. Does anyone else have > any ideas? > > Cheers, > Mike > > > Michael wrote on Thursday, March 6, 2003, 1:18:44 PM: > > > Does anyone have any hints on how to "configure the editor"? > > > > I'm using ExternalEditor with gvim on XP Pro, as you are. I did no > > special configuration (that I can recall) beyond the simple: > > > > editor = h:\vim\gvim.exe > > > > in the ZopeEdit.ini > > > > Works great. I don't experience any "connection lost" problems. So > > this message is not much help, except to say i don't think that > > snippet you quoted from the ZopeEditor site applies here. > > > > -- > > Tim Middleton | Cain Gang Ltd | A man is rich in proportion to the > number of > > x@veX.net | www.Vex.Net | things which he can afford to let > alone. HDT > > > > > > _______________________________________________ > > 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 ) > > _______________________________________________ > 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 ) > > From jj@nttmcl.com Thu Mar 6 22:38:49 2003 From: jj@nttmcl.com (Shannon -jj Behrens) Date: Thu, 6 Mar 2003 14:38:49 -0800 Subject: [Zope] TransientObjectContainer.keys() Message-ID: <20030306223849.GC23349@alicia.nttmcl.com> On Thu, Mar 06, 2003 at 05:11:02PM -0500, Paul Winkler wrote: > On Thu, Mar 06, 2003 at 01:53:46PM -0800, Shannon -jj Behrens wrote: > > application. I assume my options are: > > > > o Hack Zope and submit a patch. > > o Hack Zope and don't submit a patch, because it won't be accepted. > > o Figure out some (really inconvenient) way to store a list of keys in the > > TransientObjectContainer. > > o Don't use TransientObjectContainer, just use normal Zope objects. Use a cron > > job to implement auto-delete. > > You forgot: > > o Build your own product that inherits from TransientObjectContainer. Thank you for your comment! Since Transience is an external product, I'd have to extend it externally. Hmm, I wish that was documented in "The Zope Book" :-/ It's also be somewhat "challenging" to implement a keys method--the only thing I can think of is to extend the notify on add or delete methods to do housekeeping on the keys before actually doing the user defined functions for notify on add or delete. Sounds like a lot of work in comparison to just adding an already existing keys method to the API. I really don't want to have to manage a patch unless it's added to Zope :-/ Best Regards, -jj -- Hacker is to software engineer as Climbing Mt. Everest is to building a Denny's there. From jj@nttmcl.com Thu Mar 6 22:43:19 2003 From: jj@nttmcl.com (Shannon -jj Behrens) Date: Thu, 6 Mar 2003 14:43:19 -0800 Subject: [Zope] Get Access to Object from its record in the ZCatalog In-Reply-To: <3E67CBE9.7D44068C@uleth.ca> References: <3E67CBE9.7D44068C@uleth.ca> Message-ID: <20030306224319.GA24105@alicia.nttmcl.com> Well, I'm new to this list, but I had a similar problem. I just stuck the meta_type, etc. in the catalog using additional Metadata. Afterally, the attributes you're referring to are small. Best Regards, -jj On Thu, Mar 06, 2003 at 03:30:01PM -0700, Edward Pollard wrote: > I'm pulling my hair out here. I'm sure the answer is simple. > > How can I get to properties of an object from its ZCatalog entry? > > I'm iterating through results, and want to do something special if the > result is a record for a PDF file. I know how to check the file to see > if its a PDF, but ZCatalog does not keep track of all the file contents. > I know there is a way to resolve the record ID into the actual object, > but I forget how and cannot find a reference to it. > > Thanks, > > Edward > > ---- > For clarity, here is some of my code. I am looking for what to use > instead of ?? > zIndex_Catalog is my Catalog. zIndexFileItem is my CatalogAware wrapper > ZClass for File. > > searchresults = list(context.zIndex_Catalog.searchResults(blah blah > search params blah blah)) > searchresults.sort( lambda x, y: cmp(x.title, y.title)) > for result in searchresults: > if ((??.meta_type == 'File') or (??.meta_type == 'zIndexFileItem')): > if (??.getContentType == "application/pdf"): > PDF Specific Code Here > > > > _______________________________________________ > 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 ) -- Hacker is to software engineer as Climbing Mt. Everest is to building a Denny's there. From jccooper@jcameroncooper.com Thu Mar 6 22:49:08 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Thu, 06 Mar 2003 16:49:08 -0600 Subject: [Zope] index_html In-Reply-To: <30DD45D78A55004C8B543CD7B65C91452D2A19@ncwts003.ncg.ch> References: <30DD45D78A55004C8B543CD7B65C91452D2A19@ncwts003.ncg.ch> Message-ID: <3E67D064.1080104@jcameroncooper.com> > > >I grooved up my index_html in the root of zope. Are there any chances to >correct this? I can't connect to the manage interface or to any plone sites >any more. > >Can I edit index_html on some way direct on the linux command line? > > Other suggestions aside, you can get and put arbitrary files in Zope via FTP. That's pretty close to command-line. --jcc From andy@agmweb.ca Thu Mar 6 22:53:12 2003 From: andy@agmweb.ca (Andy McKay) Date: Thu, 06 Mar 2003 14:53:12 -0800 Subject: [Zope] Can I choose my python installation? In-Reply-To: References: Message-ID: <3E67D158.6000309@agmweb.ca> > BUT I can't import modules from my Python and my Zope Control Panel > still shows INSTANCE_HOME and SOFTWARE_HOME like this: > > (Zope 2.6.1 (source release, python 2.1, linux2), python 2.1.3, > darwin5) > Python Version > 2.1.3 (#1, Feb 26 2003, 08:56:59) [GCC 2.95.2 19991024 (release)] > System Platform darwin5 > SOFTWARE_HOME /Applications/Zope-2.6.1-src/lib/python > ZOPE_HOME /Applications/Zope-2.6.1-src > INSTANCE_HOME /Applications/Zope-2.6.1-src > CLIENT_HOME /Applications/Zope-2.6.1-src/var > > Am I just missing something here? You can define INSTANCE and SOFTWARE_HOMES in the start up script. See the section in the Zope Book. Please see the Zope book, http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/InstallingZope.stx, "Environment Variables that Effect Zope at Runtime" And please keep this on the list, oher people may have the same question. -- Andy McKay From fmartins@hetnet.nl Thu Mar 6 23:04:18 2003 From: fmartins@hetnet.nl (Fernando Martins) Date: Fri, 7 Mar 2003 00:04:18 +0100 Subject: [Zope] assignment to form records In-Reply-To: <15975.41784.601433.327070@gargle.gargle.HOWL> Message-ID: From: Dieter Maurer > Fernando Martins wrote at 2003-3-6 01:32 +0100: > > I've two forms who pass a similar record to their scripts. > Each script does > > its own processing, "normalising" the record. The record is > then passed to > > another script which does common processing and final storage > in a table. > > You can pass dictionaries instead of records. > Yes, but I just needed to modify a maximum of two fields and in a set of 12. It would result in ugly and inefficient code. hmm, unless there's some way to automatically convert an object to a dictionary? (like a list comprehension or dict()) For the record, the obvious solution is to take these two away from this particular record, but a general solution would be better. > An alternative: > > "Products.PythonScripts.standard" defines the record > factory "Object" (maybe different case, check the source). > > It returns a writable "record". I tried this script: import Products.PythonScripts.standard ObjFields = Products.PythonScripts.standard.Object() ObjFields = Fields ObjFields.a_field = 10 and I got the same error: > Error Type: TypeError > Error Value: attribute-less object (assign or del) Can you spot what's wrong? Thanks, Fernando From jccooper@jcameroncooper.com Thu Mar 6 23:07:17 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Thu, 06 Mar 2003 17:07:17 -0600 Subject: [Zope] Problem with Linux installation In-Reply-To: <20030306124555.71528.qmail@web13408.mail.yahoo.com> References: <20030306124555.71528.qmail@web13408.mail.yahoo.com> Message-ID: <3E67D4A5.5040502@jcameroncooper.com> > > > So I thought I'd try the second option. I typed: > > ./start.py -u admin > > The process seemed to go fine (opened datanbase, mounted database, > etc.) but a few seconds later I got a message: > > ERROR(200) z2 Can't find UID admin > > After experimenting a bit, I noticed that when I run ./start it > deletes the 'inituser' file at some point during opening and mounting > the database (as it appears anyway). So a few seconds later it looks > for admin and finds nothing. > > Am I doing something wrong here? I have successfully done the whole > thing in Windows 2000 (which of course is a different story, but > still) and I can't find anything in the documentation that I'm doing > wrong. I downloaded the zip file again and did the whole thing from > the beginning and it made no difference, so it is not a corrupted file > or anything like that. Can anyone help me on this? Thanks! > Is 'admin' a system user (as opposed to a Zope user)? It needs to be: the user you specify is the one Zope will run as after startup (Zope should not run as root, though it may need to start as root to listen on privileged ports.) You should create a user for Zope to run as (I call mine 'zope') and specify that on the command line. I can't say what's going wrong with your z2.py invokation, but you should probably run it with 'start' anyway. --jcc From jccooper@jcameroncooper.com Thu Mar 6 23:14:36 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Thu, 06 Mar 2003 17:14:36 -0600 Subject: [Zope] Get Access to Object from its record in the ZCatalog In-Reply-To: <3E67CBE9.7D44068C@uleth.ca> References: <3E67CBE9.7D44068C@uleth.ca> Message-ID: <3E67D65C.5040500@jcameroncooper.com> > > >I'm pulling my hair out here. I'm sure the answer is simple. > >How can I get to properties of an object from its ZCatalog entry? > >I'm iterating through results, and want to do something special if the >result is a record for a PDF file. I know how to check the file to see >if its a PDF, but ZCatalog does not keep track of all the file contents. >I know there is a way to resolve the record ID into the actual object, >but I forget how and cannot find a reference to it. > > Maybe this will help: http://www.zope.org/Members/jccooper/zcatalogAndPT I'm sure you can translate from ZPT to Python. --jcc From jccooper@jcameroncooper.com Thu Mar 6 23:47:29 2003 From: jccooper@jcameroncooper.com (J Cameron Cooper) Date: Thu, 06 Mar 2003 17:47:29 -0600 Subject: [Zope] Re: [Zope-dev] Stupid dtml-if comparision In-Reply-To: <000501c2e427$f7422580$65ebe680@WSLIS235101> References: <000501c2e427$f7422580$65ebe680@WSLIS235101> Message-ID: <3E67DE11.9000300@jcameroncooper.com> > > >I'm trying to compare two number, or at least I think they're numbers. > >If I do: > > > > Equal block > >I and J print out the same, but do not compare to be equal since "Equal >block" string doesn't print. > > Whenever I try this when they're the same type it works. It they're not the same type it'll never work. Unfortunately the type() built-in isn't available in DTML or Python scripts (if you go to an ExternalMethod you should be able to use it.) What you can try is this: str(i)==str(j) to compare the string representations or, if you're dealing with a certain type of number, int(i)==int(j) float(i)==float(j) In DTML, you have to call these from the namespace '_' (underscore) as so: _.str(i)==_.str(j) --jcc From chris@d-designz.co.nz Fri Mar 7 00:22:32 2003 From: chris@d-designz.co.nz (Chris Beaven) Date: Fri, 07 Mar 2003 13:22:32 +1300 Subject: [Zope] Re: [Zope-dev] Stupid dtml-if comparision In-Reply-To: <3E67DE11.9000300@jcameroncooper.com> References: <3E67DE11.9000300@jcameroncooper.com> Message-ID: <3E67E648.2070301@d-designz.co.nz> > > >... Unfortunately the type() >built-in isn't available in DTML or Python scripts (if you go to an >ExternalMethod you should be able to use it.) > You can, however, use same_type(var1, var2). See http://www.zopelabs.com/cookbook/995873707 From ruger@acsnv.com Fri Mar 7 00:17:00 2003 From: ruger@acsnv.com (D. Rick Anderson) Date: 06 Mar 2003 16:17:00 -0800 Subject: [Zope] Easy one ... Message-ID: <1046996220.11982.2.camel@dad.andersonville.com> Ok .. this should be really easy but it's driving me nuts. How to I set an attribute on a variable when it's being rendered inside of a function? Here's what I mean: References: <20030306215346.GA23349@alicia.nttmcl.com> Message-ID: <1046997652.1442.13.camel@james> TransientObjectContainer does have a keys method. At least in Zope 2.6 and the Zope trunk it does... On Thu, 2003-03-06 at 16:53, Shannon -jj Behrens wrote: > Hi, > > I'm using Zope as an application server for some weird, non-Web-related stuff. > TransientObjectContainer really matches my needs for a particular problem > (the dict-like interface and the auto-delete feature are quite useful), but > TransientObjectContainer has no keys() method. I can see why this is the case > considering sessions, but it's something that I absolutely need for my > application. I assume my options are: > > o Hack Zope and submit a patch. > o Hack Zope and don't submit a patch, because it won't be accepted. > o Figure out some (really inconvenient) way to store a list of keys in the > TransientObjectContainer. > o Don't use TransientObjectContainer, just use normal Zope objects. Use a cron > job to implement auto-delete. > > I welcome your advice. > > Best Regards, > -jj > > -- > Hacker is to software engineer as > Climbing Mt. Everest is to building a Denny's there. > > _______________________________________________ > 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 ) From jj@nttmcl.com Fri Mar 7 01:02:10 2003 From: jj@nttmcl.com (Shannon -jj Behrens) Date: Thu, 6 Mar 2003 17:02:10 -0800 Subject: [Zope] TransientObjectContainer.keys() In-Reply-To: <1046997652.1442.13.camel@james> References: <20030306215346.GA23349@alicia.nttmcl.com> <1046997652.1442.13.camel@james> Message-ID: <20030307010210.GA25773@alicia.nttmcl.com> Chris, Thank you for your reply! I'm using 2.6. According to the API docs, TransientObject has a keys method, but TransientObjectContainer doesn't. Looking at TransienceInterfaces.py confirms that TransientObject implements DictionaryLike whereas TransientObjectContainer doesn't. Am I confused? Best Regards, -jj On Thu, Mar 06, 2003 at 07:40:51PM -0500, Chris McDonough wrote: > TransientObjectContainer does have a keys method. At least in Zope 2.6 > and the Zope trunk it does... > > On Thu, 2003-03-06 at 16:53, Shannon -jj Behrens wrote: > > Hi, > > > > I'm using Zope as an application server for some weird, non-Web-related stuff. > > TransientObjectContainer really matches my needs for a particular problem > > (the dict-like interface and the auto-delete feature are quite useful), but > > TransientObjectContainer has no keys() method. I can see why this is the case > > considering sessions, but it's something that I absolutely need for my > > application. I assume my options are: > > > > o Hack Zope and submit a patch. > > o Hack Zope and don't submit a patch, because it won't be accepted. > > o Figure out some (really inconvenient) way to store a list of keys in the > > TransientObjectContainer. > > o Don't use TransientObjectContainer, just use normal Zope objects. Use a cron > > job to implement auto-delete. > > > > I welcome your advice. > > > > Best Regards, > > -jj > > > > -- > > Hacker is to software engineer as > > Climbing Mt. Everest is to building a Denny's there. > > > > _______________________________________________ > > 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 ) > -- Hacker is to software engineer as Climbing Mt. Everest is to building a Denny's there. From fmartins@hetnet.nl Fri Mar 7 00:26:39 2003 From: fmartins@hetnet.nl (Fernando Martins) Date: Fri, 7 Mar 2003 01:26:39 +0100 Subject: [Zope] Re: assignment to form records In-Reply-To: <3E67B213.4090608@4-am.com> Message-ID: Ah! Here it is ;-) If this patch doesn't go into CVS, I'm willing to submit it to zope labs for you, if you don't mind. Albeit Dieter Maurer's solution is non-intrusive to Zope (after I get it to work) this one makes it transparent for the (script) user ;-) Cheers, Fernando Evan Simpson wrote: > Fernando Martins wrote: > > I've a script who gets two parameters from a form: Code (int), Fields > > (record). > ... > > Fields.a_field = 1 > > > > I get the error > > I routinely patch Zope so that 'record' instances and the SQL Record > subclasses that it generates are writable: > > (in $ZOPE/lib/python/ZPublisher/HTTPRequest.py) > class record: > # Allow access to record methods and values from DTML > __allow_access_to_unprotected_subobjects__=1 > _guarded_writes = 1 > > (in $ZOPE/lib/python/Shared/DC/ZRDB/Result.py) > class r(Record, Implicit, brains, zbrains): > 'Result record class' > _guarded_writes = 1 > > I see no reason why 'record' objects shouldn't be mutable like this, but > I've never discussed it with anyone. > > Cheers, > > Evan @ 4-am > > > > _______________________________________________ > 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 ) From ed@leafe.com Fri Mar 7 01:41:22 2003 From: ed@leafe.com (Ed Leafe) Date: Thu, 6 Mar 2003 20:41:22 -0500 Subject: [Zope] XML In-Reply-To: <1046985435.11039.2.camel@dad.andersonville.com> Message-ID: On Thursday, March 6, 2003, at 04:17 PM, D. Rick Anderson wrote: > Whoa .. ok. I was under the impression that Zope had built-in support > for XML. If that's the case then I'll just send the data in CSV format. > We have too many servers that will be pulling these reports and I want > to keep the installed products down to a minimum. I wrote an XML parser in Python that I've been using with good results. It has public methods for locating nodes by tag, retrieving content by tag, printing a tree of the DOM structure, and getting child/parent/sibling nodes of any node. Since I'm mostly using it to handle SOAP web services, there is also a simple way of getting the name of the method invoked by the SOAP call. Copy it to your Extensions folder; then it's just a matter of creating an External Method to get the DOM object. From there, the code is pretty simple. Here's an example: lcXML = context.REQUEST['BODY'] loXML = context.xmlDOM(lcXML) lcMethod = loXML.getSOAPMethodName() lcLastName = loXML.contentByTag("lastname") ...etc. You can download xmlDOM.py from my website: http://leafe.com/dls?dlSection=other Please let me know if you have any problems or questions. ___/ / __/ / ____/ Ed Leafe http://leafe.com/ http://opentech.leafe.com From chris@d-designz.co.nz Fri Mar 7 02:22:59 2003 From: chris@d-designz.co.nz (Chris Beaven) Date: Fri, 07 Mar 2003 15:22:59 +1300 Subject: [Zope] ZPT newbie Q In-Reply-To: <200303052138.58030.gcw-python@rezidew.net> References: <200303052138.58030.gcw-python@rezidew.net> Message-ID: <3E680283.3020704@d-designz.co.nz> Title Title
    • ITEM
    You could also use item/title_or_id if you wanted to display the id if the object has no title... G. Clifford Williams wrote: >I'm just starting to work with ZPT (as of today), the first question I >have >is; Is there a way to keep "template/title" from being displayed in the >list >that is generated by the tal:repeate directive? > >I'd like to generate a list of links that does not include the >index_html >page. > >My second question is: Is there any way to sort the list that's >generated? > >--The code that I have-- > > Title > > > Title >
      >
    • > ITEM >
    • >
    > >thanks in advance > > >_______________________________________________ >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 ) > > > > From rmpconsult2@mydestiny.net Fri Mar 7 02:19:23 2003 From: rmpconsult2@mydestiny.net (John Paul) Date: Fri, 7 Mar 2003 10:19:23 +0800 Subject: [Zope] How to avoid recursive links and make it absolute??? Message-ID: Hi below is my code that renders a link when a document is created. My question is: How can i avoid recursive links and make it absolute url's? Thanks..... From claird@phaseit.net Fri Mar 7 02:24:51 2003 From: claird@phaseit.net (Cameron Laird) Date: Thu, 06 Mar 2003 21:24:51 -0500 Subject: [Zope] standard_error_message frustrations Message-ID: Let me get this straight: to work as desired, a standard_error_message must be a DTML Method, correct, but not a Python Script? Standard_error_message isn't powerful enough to quiet Zope about what it knows, right? That is, even if standard_error_message contains, for example, some minimally short text, clients will still see the initial "Site Error ..." and trailing "Troubleshooting suggestions ..."? There's no way to eliminate those? I'm surprised I don't find more in the archives about standard_error_message. I conclude either: 1. other developers don't find exception-handling as important as I regard it; or 2. I don't understand how to search the archives properly; or 3. both. From zope@dylanreinhardt.com Fri Mar 7 02:37:07 2003 From: zope@dylanreinhardt.com (Dylan Reinhardt) Date: Thu, 06 Mar 2003 18:37:07 -0800 Subject: [Zope] standard_error_message frustrations In-Reply-To: Message-ID: <5.1.1.6.0.20030306183052.01dc62c0@pop3.spa.norton.antivirus> At 06:24 PM 3/6/2003, Cameron Laird wrote: >That is, even if standard_error_message contains, >for example, some minimally short text, clients will still see the >initial "Site Error ..." and trailing "Troubleshooting suggestions ..."? >There's no way to eliminate those? > >I'm surprised I don't find more in the archives about standard_error_message. >I conclude either: >1. other developers don't find exception-handling > as important as I regard it; or >2. I don't understand how to search the archives > properly; or >3. both. Or: 4. You didn't realize it some of this is dependent on something other than standard_error_message, namely debug mode. Remove the -D argument from your start script. Also check out: http://www.zope.org/Members/JohnC/StandardErrorMessage HTH Dylan From jamie@audible.transient.net Fri Mar 7 02:38:16 2003 From: jamie@audible.transient.net (Jamie Heilman) Date: Thu, 6 Mar 2003 18:38:16 -0800 Subject: [Zope] standard_error_message frustrations In-Reply-To: References: Message-ID: <20030307023815.GL17822@audible.transient.net> > 2. I don't understand how to search the archives properly; http://marc.theaimsgroup.com/?l=zope&w=2&r=1&s=standard_error_message&q=b http://www.zope.org/Members/JohnC/StandardErrorMessage -- Jamie Heilman http://audible.transient.net/~jamie/ "I was in love once -- a Sinclair ZX-81. People said, "No, Holly, she's not for you." She was cheap, she was stupid and she wouldn't load -- well, not for me, anyway." -Holly From edwardam@interlix.com Fri Mar 7 04:55:41 2003 From: edwardam@interlix.com (Edward Muller) Date: 06 Mar 2003 22:55:41 -0600 Subject: [Zope] Validating a Date In-Reply-To: <1046419263.4905.116.camel@localhost.localdomain> References: <1046419263.4905.116.camel@localhost.localdomain> Message-ID: <1047012941.4949.21.camel@localhost.localdomain> Thanks for the suggestions. Since I have split d/m/y fields on the form using DateTime is a good solution. On Fri, 2003-02-28 at 02:01, Edward Muller wrote: > Does anyone know of a good module/product/hack that I can feed a date to > and it will let me know if it's valid or not? > > It should check leap years ... end days of the month and the like... > > Thanks in advance... :-) -- Edward Muller Interlix - President Web Hosting - PC Service & Support Custom Programming - Network Service & Support Phone: 417-862-0573 Cell: 417-844-2435 Fax: 417-862-0572 http://www.interlix.com From edwardam@interlix.com Fri Mar 7 05:05:18 2003 From: edwardam@interlix.com (Edward Muller) Date: 06 Mar 2003 23:05:18 -0600 Subject: [Zope] assignment to form records In-Reply-To: References: Message-ID: <1047013518.4948.23.camel@localhost.localdomain> With all this discussion on :record flags and :list flags can someone point me to a good reference on the different :flags and how to use them. Or just explain it! :-) On Tue, 2003-03-04 at 17:12, Fernando Martins wrote: > I've a script who gets two parameters from a form: Code (int), Fields > (record). > > In the script, I can assign to Code, say: > > Code = 1 > > but if I try, say: > > Fields.a_field = 1 > > I get the error: > > > Error Type: TypeError > > Error Value: attribute-less object (assign or del) > > Do I need some special syntax for that or is it simply not possible (and > why)? > > Regards, > Fernando > > > _______________________________________________ > 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 ) -- Edward Muller Interlix - President Web Hosting - PC Service & Support Custom Programming - Network Service & Support Phone: 417-862-0573 Cell: 417-844-2435 Fax: 417-862-0572 http://www.interlix.com From edwardam@interlix.com Fri Mar 7 05:16:31 2003 From: edwardam@interlix.com (Edward Muller) Date: 06 Mar 2003 23:16:31 -0600 Subject: [Zope] sending a post request to a secure site (paypal) from a python script/external method In-Reply-To: References: Message-ID: <1047014191.4949.28.camel@localhost.localdomain> I do credit card authorization from zope via m2crypto It's as simple as .... from M2Crypto import m2urllib encodedParams = urllib.urlencode(params) url = m2urllib.FancyURLopener() u = url.open('https://place.you.are.posting.to',encodedParams) data = u.read() This is in an external method. Hope this helps with your paypal question... On Wed, 2003-03-05 at 05:47, Richard Ettema wrote: > I'm trying to work out how to setup a python script and external method to > post form data to a paypal https url. > I basically want the user to click a button to pay for their selection which > calls the python script, their order info is saved for our records, and then > the external script passes onto paypal's secure server. Is this possible? > > The closest I have got this to work is the palpay page displayed with images > missing, but not on a secure connection. I assume the images are missing > because the url in the address bar is that of the python script, not the > paypal url. Should I be doing something different than a read() in the ext. > method? > > I have looked thru the examples in the urllib.py and urllib2.py but could > not work out where I am going wrong, or if it is possible. > I have seen comments about python must be built/installed with ssl support > for secure connections to https urls, how do I work out if python was > built/installed with this? > > Running: > system: freebsd > Zope: 2.5.1 > python: 2.1.3 > > The python script: payBill > > ######### > req = context.REQUEST > form_dict = {} > > order_ref = context.recordOrder() > > form_dict['cmd'] = '_xclick' > form_dict['business'] = 'test@test' > form_dict['item_name'] = 'Services' > form_dict['item_number'] = '%s' % order_ref > form_dict['amount'] = '%.2f' % float(req['gdttl']) > form_dict['return'] = '%s/services_thankyou' % req['URL'] > form_dict['cancel_return'] = '%s/services_thanks' % req['URL1'] > form_dict['no_note'] = 1 > form_dict['currency_code'] = req['currency_code'] > > #send info to external method > url_req = context.payBillExt( 'https://www.paypal.com/cgi-bin/webscr', > form_dict ) > > return url_req > ########## > > The External Method: payBillExt > > ######### > import urllib2 > import urllib > > def urlRequestCreation(self, url, data): > """url""" > > url_data = urllib.urlencode( data ) > url_req = urllib2.urlopen(url, url_data) > > return url_req.read() > ######### > > Thanks for any pointers in the right direction. > > Richard > > > > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.456 / Virus Database: 256 - Release Date: 18/02/2003 > > > _______________________________________________ > 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 ) -- Edward Muller Interlix - President Web Hosting - PC Service & Support Custom Programming - Network Service & Support Phone: 417-862-0573 Cell: 417-844-2435 Fax: 417-862-0572 http://www.interlix.com From robeert@redcor.ch Fri Mar 7 05:20:02 2003 From: robeert@redcor.ch (robert rottermann) Date: Fri, 7 Mar 2003 06:20:02 +0100 Subject: [Zope] NuxUserGroups: workaround, anyone? References: <6D50509D.07993DFA.00923364@netscape.net> Message-ID: <003c01c2e469$34b4ac30$c901a8c0@salome> you have either a standard acl_users folder or a user folder with groups. So you have to create a nuxeo user folder some place, recreate your existing users there, erase the old folder, and move the new one to its place. If you have lots of users (and want to keep their passwords) you have to move them with a script. I think on zopelabs there is a receipe to do it. If not I can send you one. Robert ----- Original Message ----- From: To: Sent: Thursday, March 06, 2003 8:58 PM Subject: [Zope] NuxUserGroups: workaround, anyone? > My zope site is already created, and I did not create it with the idea that I would be implementing user groups. Therefore, I already have an acl_users folder at the top level of my site. All of my users are defined in that folder, and all access throughout the site is inherited, except for a few local roles assigned here and there. > > Now that I want to use NuxUserGroups, I have a problem: I cannot create groups at the top level. Since I already have an acl_users folder, I get an error when I try to create a "User Folder with Groups" at the root level. So I can't simply move all my existing users into a different type of user folder that supports groups. > > And when I create a "User Folder with Groups"at any other level, of course my users from my root level acl_users folder are not recognized so they cannot be added to groups. So if I want to add groups at any level, I have to re-create all my users. > > Does anyone have a workaround to this? Or am I overlooking a product that will let me do what I want (add groups to an existing site at the root level)? > > __________________________________________________________________ > The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp > > Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.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 ) > > From edwardam@interlix.com Fri Mar 7 05:22:35 2003 From: edwardam@interlix.com (Edward Muller) Date: 06 Mar 2003 23:22:35 -0600 Subject: [Zope] VHM, siteroot, et. al. In-Reply-To: <71650A6F73F1D411BE8000805F65E3CB3B3122@SRV-03> References: <71650A6F73F1D411BE8000805F65E3CB3B3122@SRV-03> Message-ID: <1047014555.4949.31.camel@localhost.localdomain> yes, and you probably don't need to use siteroot with VHM. Just use VHM. On Wed, 2003-03-05 at 10:06, jwsacksteder@ramprecision.com wrote: > If I run three sites at- > > www.mydomain.com > intranet.mydomain.com > extranet.mydomain.com > > And I map them to the following locations in my Zope using either VHM or > siteroot- > > /www > /intranet > /extranet > > Will I still be able to accquire objects in the root container? For example, > a shared database connection? > > _______________________________________________ > 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 ) -- Edward Muller Interlix - President Web Hosting - PC Service & Support Custom Programming - Network Service & Support Phone: 417-862-0573 Cell: 417-844-2435 Fax: 417-862-0572 http://www.interlix.com From edwardam@interlix.com Fri Mar 7 05:26:39 2003 From: edwardam@interlix.com (Edward Muller) Date: 06 Mar 2003 23:26:39 -0600 Subject: [Zope] Re: squirting variable definitions into macros using fill-slot In-Reply-To: <3E664E31.9030700@4-am.com> References: <3E664E31.9030700@4-am.com> Message-ID: <1047014798.4948.34.camel@localhost.localdomain> I'm a moron! I've been wondering how to pass variables to macros for a month now! I use tal:define a bunch when needing to do various large lookups multiple times (state select boxes for instance) ... It just never dawned on me to combine the two! Whack! Whack! Whack! Arg! On Wed, 2003-03-05 at 13:21, Evan Simpson wrote: > Felix Ulrich-Oltean wrote: > > I have a macro > ... > > I will be using it several times from the same template. I want to be > > able to pass in values for chosen_thing and the_name, but I can't > > think how. > > You can do this as follows: > > >
    > > tal:attributes="name the_name; > checked python:chosen_thing=='a' or nothing;" > value="a" /> a
    > tal:attributes="name the_name; > checked python:chosen_thing=='b' or nothing;" > value="b" /> b
    >
    > > >
    > >
    > > If you wanted to look in 'request' and 'here' if the template doesn't > supply the value, put the
    back inside the macro definition, but > change the defines to 'the_name | request/the_name | here/the_name'. > > Cheers, > > Evan @ 4-am > > > _______________________________________________ > 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 ) -- Edward Muller Interlix - President Web Hosting - PC Service & Support Custom Programming - Network Service & Support Phone: 417-862-0573 Cell: 417-844-2435 Fax: 417-862-0572 http://www.interlix.com From edwardam@interlix.com Fri Mar 7 05:28:36 2003 From: edwardam@interlix.com (Edward Muller) Date: 06 Mar 2003 23:28:36 -0600 Subject: [Zope] sending form data offsite In-Reply-To: References: Message-ID: <1047014916.4949.37.camel@localhost.localdomain> I use something like the following to do the exact a same thing... import string, urllib from M2Crypto import m2urllib encodedParams = urllib.urlencode(params) url = m2urllib.FancyURLopener() u =url.open('https://secure.post/location',encodedParams) data = u.read() In an external method ... I use m2crypto because of good SSL support ... You could probably use the regular httplib if you don't need SSL support. On Wed, 2003-03-05 at 19:12, Ed Colmar wrote: > Hi fellow zope hackers! > > I'm building a site for someone who wants to have the entire site within > zope, to connect to dbs, etc... But they use a service that requires them > to post form data to a master server. > > Is there an easy way (in dtml or python) to do this without seeing the > data transfer or ending up at th other server's pages? > > So far I've considered making an external method that uses lynx and dumps > the return data. Is this the best way? > > Thanks for the help! > > -ed- -- Edward Muller Interlix - President Web Hosting - PC Service & Support Custom Programming - Network Service & Support Phone: 417-862-0573 Cell: 417-844-2435 Fax: 417-862-0572 http://www.interlix.com From edwardam@interlix.com Fri Mar 7 05:33:31 2003 From: edwardam@interlix.com (Edward Muller) Date: 06 Mar 2003 23:33:31 -0600 Subject: [Zope] context of a for loop In-Reply-To: <20030306011249.52852.qmail@web21408.mail.yahoo.com> References: <20030306011249.52852.qmail@web21408.mail.yahoo.com> Message-ID: <1047015211.4949.40.camel@localhost.localdomain> Do all of the objects returned by getattr(context, item) have a .editMetadata method. Or perhaps security is 'getting in the way' (i.e. do you have rights to .editMetadata) On Wed, 2003-03-05 at 19:12, Fearless Froggie wrote: > Hi, > > When you are going through a for loop, are you in the > context of that for loop variable? Can you drop out of > that for loop context and into the context of the > script? > > Example: > > If I loop through a list of id's with a for loop and > do something to each of these objects, I get a "You > are not allowed to access editMetadata in this > context". Here's the code (here I'm just changing the > title of each of my items in my list 'id' to 'bob'): > > for item in id: > item_object = getattr(context, item) > item_object.editMetadata(title='bob') > > But if I do these changes directly, it works fine: > > item_object = getattr(context, id[0]) > item_object.editMetadata(title='bob') > > So I'm guessing that the for loops puts me into > another context. How do I get into the context of the > object I want to edit? I've tried > "context.item_object.editMetadata(title='bob')" and > "container.item_object.editMetadata(title='bob')", but > they didn't work either. > > My script in all these cases is my custom skins > directory. > > Many thanks for any ideas on this. (And thank you once > again for all the great ideas I've received for my > past emails :) > > Rita. > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.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 ) -- Edward Muller Interlix - President Web Hosting - PC Service & Support Custom Programming - Network Service & Support Phone: 417-862-0573 Cell: 417-844-2435 Fax: 417-862-0572 http://www.interlix.com From edwardam@interlix.com Fri Mar 7 05:35:53 2003 From: edwardam@interlix.com (Edward Muller) Date: 06 Mar 2003 23:35:53 -0600 Subject: [Zope] Zope vs Twiki - Can someone provide a comparison In-Reply-To: References: Message-ID: <1047015353.4948.42.camel@localhost.localdomain> This will show my utter ignorance wrt Twiki ... but isn't Twiki just an over-glorified wiki with some plugin interface to make it do non-Wiki things? On Wed, 2003-03-05 at 19:44, Nesbitt, Steve wrote: > All: > > I'm expecting a showdown between those who want to standardize on > Twiki and me, who doesn't mind Twiki, but doesn't want to move away > from Zope/Plone. > > Can anyone provide a quick overview between the two systems. In > particular: > 1) What problem space do the two systems address? Are they the same > space or different space? > 2) Where does Twiki shine in comparison to Zope (with Plone) > 3) What things are hard to do in Twiki that are easy to do in Zope and > vice versa? > > I need a compelling argument for not converting my existing site to > Twiki. Any help would be appreciated! > > Thanks! > > -steve > > Steve Nesbitt > Configuration Manager > The Cobalt Group, Inc. > 2200 First Avenue South > Seattle, WA 98134 > snesbitt@cobaltgroup.com > www.cobaltgroup.com > If it's automotive and it's Internet, it's Cobalt. -- Edward Muller Interlix - President Web Hosting - PC Service & Support Custom Programming - Network Service & Support Phone: 417-862-0573 Cell: 417-844-2435 Fax: 417-862-0572 http://www.interlix.com From edwardam@interlix.com Fri Mar 7 05:42:44 2003 From: edwardam@interlix.com (Edward Muller) Date: 06 Mar 2003 23:42:44 -0600 Subject: [Zope] ZPT newbie Q In-Reply-To: <200303060747.39492.gcw-python@rezidew.net> References: <200303052138.58030.gcw-python@rezidew.net> <48541845262.20030306024706@Vex.Net> <200303060747.39492.gcw-python@rezidew.net> Message-ID: <1047015764.4948.49.camel@localhost.localdomain> Don't let that lull you. ZPTs help in the separation of logic (sorting the list) and data (the list) and presentation (showing the sorted list). If you want a sorted list the best way to do it is to create a python script to do the sorting of the list and return it.. This keeps the tal:define/tal:conditions down to a minimum. On Thu, 2003-03-06 at 07:47, G. Clifford Williams wrote: > hrmm looks like my enthusiasm for ZPT has hit a lull. Thanks for the help, > It's greatly appreciated. > > > On Thursday 06 March 2003 01:47 am, you wrote: > > G. wrote on Wednesday, March 5, 2003, 10:38:58 PM: > > > I'd like to generate a list of links that does not include the index_html > > > page. > > > > Notice the tal:condition="python:item.getId()<>'index_html'" below. > > Also notice the general use of object/title_or_id instead of just > > object/title. > > > > > My second question is: Is there any way to sort the list that's > > > generated? > > > > Sort is a bit awkward inside page templates. The sort part of this > > code is basically ripped from the API reference in the Zope Book. > > It does an insensitive sort on the title, then date. > > > > Title > >
      > tal:define="objects here/objectValues; > > sort_on python:(('title', 'nocase', 'asc'), > > ('bobobase_modification_time', 'cmp', > > 'desc')); sorted_objects python:sequence.sort(objects, sort_on)">
    • > tal:repeat="item sorted_objects"> > > > tal:condition="python:item.getId()<>'index_html'" > > tal:replace="i">ITEM > >
    • > >
    > > > > If you're wanting to do anything very complicated with lists, i'd just > > write a python script to generate the list the way you want it, then > > loop over that. > > > _______________________________________________ > 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 ) -- Edward Muller Interlix - President Web Hosting - PC Service & Support Custom Programming - Network Service & Support Phone: 417-862-0573 Cell: 417-844-2435 Fax: 417-862-0572 http://www.interlix.com From edwardam@interlix.com Fri Mar 7 06:07:32 2003 From: edwardam@interlix.com (Edward Muller) Date: 07 Mar 2003 00:07:32 -0600 Subject: [Zope] How to convert string to object? In-Reply-To: References: Message-ID: <1047017252.4949.61.camel@localhost.localdomain> If your asking that question there is a possibility that you don't understand zope acquisition. Which is all right ... I think we all didn't get it at one point. I assume you want to use index_html as a template (or wrapper) for the content in some deeper folder? If so all you need to do (sorry this is in zpt ... don't use dtml much anymore)... in a zpt in your root folder ..
    or table or what not containing whatever you want to appear before the "content"
    or table or what not containing whatever you want to appear after the "content"
    Now just create folders ... and stick a file (dtml or zpt or python script or whatever) called 'content' wherever you want it to appear. So if I had a folder layout like the following: /articles/linux/2003/03/07/01 I would put a zpt (or dtml document/method) called 'content' in the /articles/linux/2003/03/07/01 folder. And when I surfed to: http://server/articles/linux/2003/03/07/01 I would get the content file 'wrapped' with the index_html somewhere up the folder 'path'. You can further customize things by using macros and slots and all the zpt goodies. Plus if you ever need to 'override' your index_html file deeper in you folder 'tree' just create a new one at the highest level you want to start using it. Hope this helps On Thu, 2003-03-06 at 08:49, Lubos Culen wrote: > Hi! > > Maybe this is more Python question, but because I'm using it with Zope, I'm > posting it here. > > Let's suppose I have DTML Method called e.g. 'index_html' . It has one > input parameter 'obj' which contains name of existing file object inside > the directory tree. For example, the index_html file would be called as: > > www.mysite.com/path/index_html?obj=path.to.object.file > > Then in folder www.mysite.com/path/path/to/object/file in this example > would be the DTML document I'd like to be displayed. I have to make proper > code in the index_html file do do this. > > I tried do following in index_html: > > > > But this echoes only plain text ('path.to.object.file') and not the > object's content. I need to find some way how to convert this string to > object, so Zope (or Python) can understand it as an object and display its > content. Is there some way? > > Thanks a lot for any answer! -- Edward Muller Interlix - President Web Hosting - PC Service & Support Custom Programming - Network Service & Support Phone: 417-862-0573 Cell: 417-844-2435 Fax: 417-862-0572 http://www.interlix.com From edwardam@interlix.com Fri Mar 7 06:08:26 2003 From: edwardam@interlix.com (Edward Muller) Date: 07 Mar 2003 00:08:26 -0600 Subject: [Zope] Invalid Page Template? In-Reply-To: <8049925.1046976520@[192.168.0.3]> References: <3E677A00.A1D6D08D@uleth.ca> <8049925.1046976520@[192.168.0.3]> Message-ID: <1047017306.4949.63.camel@localhost.localdomain> Call me stupid if you want ... But can you tell me how to do this. :-) Sorry ... I love vim ... but am still learning it's features. On Thu, 2003-03-06 at 11:48, Andreas Jung wrote: > My favourite is to run tidy against page templates using the -xml option. > I mapped it to a function so I can check the template from within my editor > (vim of course). > > -aj > > --On Donnerstag, 6. März 2003 09:40 -0700 Edward Pollard > wrote: > > > Is there an easy way to tell if a Page Template is valid/invalid? > > (Meaning the same check that gets done to see if the red exclaimation > > mark should show up in the ZMI) > > > > Ed > > > > > > _______________________________________________ > > 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 ) > -- Edward Muller Interlix - President Web Hosting - PC Service & Support Custom Programming - Network Service & Support Phone: 417-862-0573 Cell: 417-844-2435 Fax: 417-862-0572 http://www.interlix.com From edwardam@interlix.com Fri Mar 7 06:13:02 2003 From: edwardam@interlix.com (Edward Muller) Date: 07 Mar 2003 00:13:02 -0600 Subject: External Editor on the MAC ? Was: Re: [Zope] External Editor In-Reply-To: <69585360563.20030306145221@Vex.Net> References: <69585360563.20030306145221@Vex.Net> Message-ID: <1047017582.4949.67.camel@localhost.localdomain> Does an External Editor helper application exist? I have a client I recently did a bunch of zope work for and their HTML designers are getting a little annoyed with