Re: [Zope] sudden ZClass breakage
Timothy Wilson wrote: > > Hi everyone, > > I've been working away on a ZClass-based product that will provide a > searchable job board for our Human Resources Dept. here at school. Things > were going along fine until, it seemed, out of the blue I started getting an > error message about an "Invalid Date-Time String" and a lengthy > traceback. I'm wondering if anyone can glean anything from the > traceback. Is this one of those obvious errors that I'm just missing? I'm > really puzzled. Any advice would be appreciated. Here's the traceback: You're trying to change the zclass properties after creating it but you're not passing in a valid date time string and hence you're getting this error. Make sure the string you're passing in conforms to a date time format. (check ZOPE_HOME/lib/python/DateTime/DateTime.py for the supported formats), or just cast it explicitly like . I've noticed some behavior earlier today where i change all my zclass properties in a manage_changeProperties (depends on where) even ones not listed in the request. if this is your problem and you don't have date_time string set in the REQUEST you can try explicitly passing in a dummy date time string (ZopeTime or distant past), or setting it to its default value, i'd chuck this into the Collector/Tracker. i'm sure others have good solutions. > > > -Tim > > -- > Tim Wilson | Visit Sibley online: | Check out: > Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ > W. St. Paul, MN | | http://slashdot.org/ > [EMAIL PROTECTED] || http://linux.com/ > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] status of SOAP for Zope?
On Thu, Oct 05, 2000 at 01:25:44PM -0700, Michel Pelletier wrote: > > > What is the status of SOAP on Zope, I need to know if I can use ROPE.. > > > > Hi Brad - > > > > SOAP is still something we want to do, but it is on hold right > > now (we just don't have the resources at the moment). I've been > > hoping that someone might take the lead and start a project on > > dev.zope.org, but so far that hasn't happened :( > > Take a look at: > > http://classic.zope.org:8080/Collector/1360/view > > I remember glancing at it for a bit, it might be a good start to at > least get it to the same level of support as xml-rpc. Glad to see that people finally show some interest in that :) That patch was the result of a long night, but I'm sure it can be gotten to work properly (right now I think it has problems with exception handling). -- Petru Paler, mailto:[EMAIL PROTECTED] http://www.ppetru.net - ICQ: 41817235 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] sudden ZClass breakage
Hi everyone, I've been working away on a ZClass-based product that will provide a searchable job board for our Human Resources Dept. here at school. Things were going along fine until, it seemed, out of the blue I started getting an error message about an "Invalid Date-Time String" and a lengthy traceback. I'm wondering if anyone can glean anything from the traceback. Is this one of those obvious errors that I'm just missing? I'm really puzzled. Any advice would be appreciated. Here's the traceback: -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ [EMAIL PROTECTED] || http://linux.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] external method database connection
Hi ya Another newbe question sorry. How do I get a zope database connection from an enternal method? Thanks Mark ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Container Class questions
A hopefully simple Zope question from a relative newbie: This is for a project desiged to demonstrate the power of Zopish content management to potential customer, and right now I'm trying to create a simple product with a few attributes and that can contain (or be associated with) an image. Not all products will have associated images. The general idea is to create a catalog of items that potential customers can manipulate as if it was thiers. I can easily create a product like the CD class demonstrated in the Zope documentation. I can iterate over all of my catalog items and display all the attributes I give them. But I'm at a bit of a loss about how to associate an image with my sample catalog objects. Should I create a product that can contain said images? If so, how do I do this? Should I simply force a naming conventions for the images and tie them together with the sample catalog items that way? Can anyone out there point me towards a good source of documentation for this sort of thing? Many thanks for any help, //glw ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Container Class questions
A hopefully simple Zope question from a relative newbie: This is for a project desiged to demonstrate the power of Zopish content management to potential customer, and right now I'm trying to create a simple product with a few attributes and that can contain (or be associated with) an image. Not all products will have associated images. The general idea is to create a catalog of items that potential customers can manipulate as if it was thiers. I can easily create a product like the CD class demonstrated in the Zope documentation. I can iterate over all of my catalog items and display all the attributes I give them. But I'm at a bit of a loss about how to associate an image with my sample catalog objects. Should I create a product that can contain said images? If so, how do I do this? Should I simply force a naming conventions for the images and tie them together with the sample catalog items that way? Can anyone out there point me towards a good source of documentation for this sort of thing? Many thanks for any help, //glw ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] improvement to ZEO/Zope how-to
Thanks, kedai, for putting this together - it really helped. Now for an improvement - please note that custom_zodb.py needs to go in INSTANCE_HOME, which is not necessarily the same as the Zope installation directory. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] redirect to user's folder not working
On Fri, 06 Oct 2000, Andy McKay wrote: > AUTHENTICATED_USER is not a string so need to cast it before doing the > string operation: > > > > effectively does the same thing, it calls the > string representation of AUTHENTICATED_USER. > A more 'polite' way to get the user name is to use AUTHENTICATED_USER.getUserName(). Not as short, true, but definitely more explicit. Have a better one, Curtis ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Subtracting DateTimes?????
On Fri, 06 Oct 2000, Daniel Rusch wrote: > We backup our database every night at 3:00 AM CT. 15 minutes prior to > this (i.e. 2:45 AM) I would like to display a warning. > How do I compare the current time "(ZopeTime()).toZone('US/Central')"> to 3:00 AM Central Time ? > > doesn't work. > > Any thoughts??? > Either convert to Unix time (seconds since the epoch) by coercing the date to an integer, or try something like: _.DateTime('%s 3:00 US/Central' % (_.DateTime().toZone('US/Central'))) works for me to create '3am today' US/Central time... > > Dan > Curtis ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Calling Product Method
HI, Following with the new product user tutorial, i have a little question: How can i call a method of a product from a dtml-method? Suppose the Following: Any idea of how to do this? thanks, -- Nestor A. Diaz Ingeniero de Desarrollo Engendro.com - Comercio Electronico sobre Linux Email: [EMAIL PROTECTED] - WWW: http://www.engendro.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] status of SOAP for Zope?
Brian Lloyd wrote: > > > MS has released ROPE for client-side SOAP development (finally). > > > > I can't seem to find anything in Zope for doing SOAP, but it was > > announced in Dec 1999 as "upcoming". > > > > What is the status of SOAP on Zope, I need to know if I can use ROPE.. > > Hi Brad - > > SOAP is still something we want to do, but it is on hold right > now (we just don't have the resources at the moment). I've been > hoping that someone might take the lead and start a project on > dev.zope.org, but so far that hasn't happened :( Take a look at: http://classic.zope.org:8080/Collector/1360/view I remember glancing at it for a bit, it might be a good start to at least get it to the same level of support as xml-rpc. -Michel ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Sorry LocalFS manage_addLocalFS not manage_addFolder
Sorry I want to write manage_addLocalFS not manage_addFolder Hi all, I want to create an LocalFS object. I use but that doesn´t work. Simular to that works Error Type: NameError Error Value: manage_addLocalFS Traceback (innermost last): File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 179, in publish File /home/zope/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 165, in publish File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: addlocalfs) File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: addlocalfs) File /home/zope/Zope-2.1.6-src/lib/python/OFS/DTMLMethod.py, line 150, in __call__ (Object: addlocalfs) File /home/zope/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: addlocalfs) File /home/zope/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_Util.py, line 335, in eval (Object: manage_addLocalFS('localfsfolder', 'title', '/home/zope')) (Info: manage_addLocalFS) File, line 0, in ?NameError: (see above) Thanks Jens
[Zope] LocalFS manage_addFolder solution?
Hi all, I want to create an LocalFS object. I use but that doesn´t work. Simular to that works Error Type: NameError Error Value: manage_addLocalFS Traceback (innermost last): File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 179, in publish File /home/zope/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 165, in publish File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: addlocalfs) File /home/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: addlocalfs) File /home/zope/Zope-2.1.6-src/lib/python/OFS/DTMLMethod.py, line 150, in __call__ (Object: addlocalfs) File /home/zope/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: addlocalfs) File /home/zope/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_Util.py, line 335, in eval (Object: manage_addLocalFS('localfsfolder', 'title', '/home/zope')) (Info: manage_addLocalFS) File, line 0, in ?NameError: (see above) Thanks Jens
Re: [Zope] Subtracting DateTimes?????
Try... = 45"> Time to show backup warning! Daniel Rusch wrote: > We backup our database every night at 3:00 AM CT. 15 minutes prior to > this (i.e. 2:45 AM) I would like to display a warning. > How do I compare the current time "(ZopeTime()).toZone('US/Central')"> to 3:00 AM Central Time ? > > doesn't work. > > Any thoughts??? > > Dan > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Migrating from 2.1.6 to 2.2.2
I have a Zope based web site running under 2.1.6. I want to move it to a different machine which will be running 2.2.2. Can someone identify the steps I need to take to make this move? What things do I need to be aware of in moving between these versions? Do I just need to copy the data.fs along with any required product files, or do I need move/configure other things. Thanks. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] status of SOAP for Zope?
Okay, has anything been done at all? Where would I start? What's left to do? Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] status of SOAP for Zope?
> MS has released ROPE for client-side SOAP development (finally). > > I can't seem to find anything in Zope for doing SOAP, but it was > announced in Dec 1999 as "upcoming". > > What is the status of SOAP on Zope, I need to know if I can use ROPE.. Hi Brad - SOAP is still something we want to do, but it is on hold right now (we just don't have the resources at the moment). I've been hoping that someone might take the lead and start a project on dev.zope.org, but so far that hasn't happened :( Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Detecting Roles not working
Kapil Thangavelu <[EMAIL PROTECTED]> wrote > Jonathan Cheyne wrote: > > > > Hi all > > > > I have built the basis of a site with full, form-based webediting of > > objects. Coming round to cleanup time and I wanted to remove certain > > visible functions from the default object views unless you have already > > logged in (with various possible roles) > > > > in the index_html of my zclass i have > > > > > > edit this > > > > so if the user is anonymous or logged in without the Staff role assigne > > they should not see the "edit this" link ... > > > > Doesn't work! It basically never returns a 'true' response thus never > > displays the edit this link even when logged in. > > try (untested) > > > or (tested) > > Application code should focus on *permissions*, not on *roles*; the mapping between roles and permissions is essentially arbitrary, and testing for roles sets the application up for strange and mysterious failures. The preferred test would be something like:: edit this Note as well that, if the user has not yet authenticated, suppressing the display of a link which would trigger authentication (if the edit method is guarded, as it should be, by the same "Edit Foo" permission) can leave that user in a Catch-22: they aren't authenticated, and they can't trigger authentication! Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Site search with squishdot and own products
One day with nothing better to do I wrote an external method to merge catalogs, but I got stuck on the simple problem that you still have to load the whole query into memory and realised it got very inefficient. In the end I decided it was easier to have one more catalog do everything. - Original Message - From: "Anders Holmbech Nielsen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 05, 2000 9:00 AM Subject: [Zope] Site search with squishdot and own products > Hi, > > I'm having a "small" problem here. I would like to have a site search that > searches everything within a directoty on the Zope server. I'm only using > the ZODB but I have two Squishdot's installed and several ZClasses which is > indexed in a catalog. How do I approach this problem ? > > Is there a Zopish/dtml/catalog way or is it the dirty way ? > > Thanks in advance > > Anders Nielsen > System Developer > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Newbie with little questions about Zope
> From: Antonio Navarro Navarro <[EMAIL PROTECTED]> > Date: Thu, 05 Oct 2000 16:35:37 +0200 > To: [EMAIL PROTECTED] > Subject: [Zope] Newbie with little questions about Zope > > Hi All ! > > I am a newbie in the Zope world. I've benn working several years with IIS, > Apache, Perl, ASP, PHP, etc.. in Windows and Unix environments, and want to > try Zope, but have some questions about it. > > 1.- Can I made virtual hosts (www.domain1.com, www.domain2.com, and so on) > using the Zope web server, or must I use Apache and install pcgi ? Yes. The product to do this is called SiteAccess and I have been running it for 10 months (5 sites) with no problems. > > 2.- Where can I find information about running Zope + Zserver + Php + > PostgreSQL under Linux ? Search for PHP on Zope.org. Zserver is Zope (part of) and there are database connectors (a couple) for PostgreSQL (been using that for 10 months as well). > 3.- I have installed Zope from the rpms and works fine, but I'm unable to > change the HTTP port from 8080 to 80. When I made the change and then > restart Zope, I can see during a few seconds two processes running with the > new port (-w 80) but after a few seconds the server stpos. Send the error but my 90% guess is that you already have apache running on the system at port 80 and they are fighting for the port. Look for 'httpd' under top. Cheers, J ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Newbie with little questions about Zope
- Original Message - From: "Antonio Navarro Navarro" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 05, 2000 7:35 AM Subject: [Zope] Newbie with little questions about Zope > Hi All ! > > I am a newbie in the Zope world. I've benn working several years with IIS, > Apache, Perl, ASP, PHP, etc.. in Windows and Unix environments, and want to > try Zope, but have some questions about it. > > 1.- Can I made virtual hosts (www.domain1.com, www.domain2.com, and so on) > using the Zope web server, or must I use Apache and install pcgi ? Have a look at SiteAccess http://www.zope.org/SiteIndex/search?text_content=SiteAccess > 2.- Where can I find information about running Zope + Zserver + Php + > PostgreSQL under Linux ? http://www.zope.org/SiteIndex/search?text_content=PHP+PostgreSQL > 3.- I have installed Zope from the rpms and works fine, but I'm unable to > change the HTTP port from 8080 to 80. When I made the change and then > restart Zope, I can see during a few seconds two processes running with the > new port (-w 80) but after a few seconds the server stpos. > > Best regards, > > Antonio Navarro Navarro > BemarNet Management > http://www.bemarnet.es > [EMAIL PROTECTED] > Tlf. +34-96-1656644 > Fax. +34-96-1656514 > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] redirect to user's folder not working
AUTHENTICATED_USER is not a string so need to cast it before doing the string operation: effectively does the same thing, it calls the string representation of AUTHENTICATED_USER. - Original Message - From: "Erik Myllymaki" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 05, 2000 8:48 AM Subject: [Zope] redirect to user's folder not working > I am using this line in my index_html DTML method in the base root folder to > redirect users to their proper folder so content can be specialized for each > of them: > > > > I get an error: > > Error Type: TypeError > Error Value: illegal argument type for built-in operation > > It works fine like hard-coded like this: > > > > > I can use on the page and get the appropriate > username though?! > > Any help appreciated. > > -- > Erik Myllymaki > [EMAIL PROTECTED] > > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] re: redirect to user's folder not working
To answer my own question ;-)) -- Erik Myllymaki [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Site search with squishdot and own products
Hi, I'm having a "small" problem here. I would like to have a site search that searches everything within a directoty on the Zope server. I'm only using the ZODB but I have two Squishdot's installed and several ZClasses which is indexed in a catalog. How do I approach this problem ? Is there a Zopish/dtml/catalog way or is it the dirty way ? Thanks in advance Anders Nielsen System Developer ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Problem with
Hi I am trying to get a I am trying to create a variable called TOTALDEVIATION and assign the value of fSTART (passed through the documents POST or GET value). If I do there is no problem, but with the first one, i get Error Type: TypeError Error Value: number coercion failed Now, I am assuming (I could be wrong) that this is a problem with the type of the variable - it needs to handle floating point numbers such as 1.25 or 5.75 etc. Anyone have any idea - this has really got me stumpped. Please reply to [EMAIL PROTECTED] as well as the list as I dont get the time to search through the list every day. Cheers Tim Gildersleeve [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Subtracting DateTimes?????
We backup our database every night at 3:00 AM CT. 15 minutes prior to this (i.e. 2:45 AM) I would like to display a warning. How do I compare the current time to 3:00 AM Central Time ? doesn't work. Any thoughts??? Dan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] In a python method, I want to convert a XML string into a dictionary...
0. There is an XML parser in the python standard library (package xmllib, you find it in the python documentation), there also exist alternative xml parsers. 1. Take a look at www.xml-rpc.com, you find a lot of iternnformation there. 2. check out the xmlrpclib by Frederic Lundh (it comes also with Zope, look in the lib/python/xmlrpclib.h) 3. in the xmlrpclib.py you can see how the xml parser is used 4. there are several how-to's at zope.org concerning xml-rpc - just serch zope.org for 'xmlrpc' good luck phil *** REPLY SEPARATOR *** On 05.10.2000 at 10:52 Frederic Quin wrote: >Hi all, > > >I would like to create a python method which take a parameter xml_string >and return a dictionary containing all tags, values and attributes. I >know that it exists some modules for xml conversions but I don't know >very much how to use them. I am novice in Python so it's a little bite >difficult for me to understand the codes... > > >Thanks > > >Fred > >___ >Zope maillist - [EMAIL PROTECTED] >http://lists.zope.org/mailman/listinfo/zope >** No cross posts or HTML encoding! ** >(Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] redirect to user's folder not working
I am using this line in my index_html DTML method in the base root folder to redirect users to their proper folder so content can be specialized for each of them: I get an error: Error Type: TypeError Error Value: illegal argument type for built-in operation It works fine like hard-coded like this: I can use on the page and get the appropriate username though?! Any help appreciated. -- Erik Myllymaki [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] IMAP and Zope!
Hi ! Joachim Werner wrote: > > Thanks for the input I got! > > Just a small wrap-up of what I learned: > > - The NotMail and old IMAP Adapter code don't seem to be seriously used by >anybody > > - WorldPilot could be a solution, but it only if it was more modular. Ryan >Hughes promised to integrate it into Zope by release 2 (incl. a ZODB-based >document storage > > - There is a similar project by Morten W. Petersen that also will feature a >ZODB-based message storage that will be searchable, Catalog-aware etc. I have summarized this under: http://zdp.zope.org/portals/developers/products/mail/ If you find out more you can add to this and refer to it later. Best regards, Maik Röder -- Uzopia - Digging la vida Zopa - http://uzopia.editthispage.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Newbie with little questions about Zope
Hi All ! I am a newbie in the Zope world. I've benn working several years with IIS, Apache, Perl, ASP, PHP, etc.. in Windows and Unix environments, and want to try Zope, but have some questions about it. 1.- Can I made virtual hosts (www.domain1.com, www.domain2.com, and so on) using the Zope web server, or must I use Apache and install pcgi ? 2.- Where can I find information about running Zope + Zserver + Php + PostgreSQL under Linux ? 3.- I have installed Zope from the rpms and works fine, but I'm unable to change the HTTP port from 8080 to 80. When I made the change and then restart Zope, I can see during a few seconds two processes running with the new port (-w 80) but after a few seconds the server stpos. Best regards, Antonio Navarro Navarro BemarNet Management http://www.bemarnet.es [EMAIL PROTECTED] Tlf. +34-96-1656644 Fax. +34-96-1656514 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] _ in a product
On Thu, 05 Oct 2000 16:03:24 +0200, Pierre-Julien Grizel <[EMAIL PROTECTED]> wrote: >Correcting my earlier post, I'd "simply" like to have a way to get the _ >(namespace) variable in a product method. >Currently, I use the following syntax : > > > >to pass _ to my product. > >It works, but. Reminds me of the great times when my hammer was the >dtml-method.. > > > > >Has anyone a way to acquire _ in a product without constrainging the >user to pass it explicitly ?? Have a look at http://www.zope.org/Members/htrd/howto/FunctionTemplate Its a wrapper object for python functions that gives them *exactly* the same calling convention as dtml methods. I developed this as a way to replace overworked dtml without having to modify every other bit of dtml that called it. define your function as def my_method(self,_): stuff goes in here to invoke it from dtml use Toby Dickenson [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] installation error.
hi, i installed zope 2.2.0 (src.tgz). when i run the start script, it gives me the foll error : IOError: [Errno 13] Permission denied: '/home/sagar/progs/zope/Zope-2.2.0-src/var/Z2.pid' the ownership of the complete directory is 'root' except "var" which is 'nobody'. any clues on why its throwing me this error ?? cheerio, sagar. G.Sagar / Sys Admin, Puretech Internet Pvt. Ltd ([EMAIL PROTECTED]) - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] _ in a product
Hi, Correcting my earlier post, I'd "simply" like to have a way to get the _ (namespace) variable in a product method. Currently, I use the following syntax : to pass _ to my product. It works, but. Reminds me of the great times when my hammer was the dtml-method.. Has anyone a way to acquire _ in a product without constrainging the user to pass it explicitly ?? blub-blub-blub-blub.. P.-J. -- If the only tool you have is a hammer, you tend to see every problem as a nail. Si le seul outil dont vous disposez est un marteau, vous avez tendance à voir chaque problème comme un clou. --Abraham Maslow ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZClass, Product comparison
Hi Nestor ! "Nestor A. Diaz L." wrote: > > HI, thanks you for the latest answer on testing products, however i have a > doubt i know how to make ZClass however i think they are more restrictive, > can anyone telling me advantanges or disadvantes of using Zclass instead > of products? Have a look at: http://zdp.zope.org/portals/developers/designstrategies All about the different tradeoffs between developing your class as a Zope product in Python, as a ZClass, and mixing the two approaches. Add to this portal subject if you find out more. Regards, Maik Röder -- Uzopia - Digging la vida Zopa - http://uzopia.editthispage.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZClass, Product comparison
HI, thanks you for the latest answer on testing products, however i have a doubt i know how to make ZClass however i think they are more restrictive, can anyone telling me advantanges or disadvantes of using Zclass instead of products? Thank you, -- Nestor A. Diaz Ingeniero de Desarrollo Engendro.com - Comercio Electronico sobre Linux Email: [EMAIL PROTECTED] - WWW: http://www.engendro.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] status of SOAP for Zope?
MS has released ROPE for client-side SOAP development (finally). I can't seem to find anything in Zope for doing SOAP, but it was announced in Dec 1999 as "upcoming". What is the status of SOAP on Zope, I need to know if I can use ROPE.. Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] A temporary python object defined in a dtml-let tag ???
Frederic Quin wrote: > I wonder if it's possible to create temporary a python object in a > dtml-let tag. If someone knows more about how to do this, please, help > me... The first element of myvar is In both the dtml-let and the dtml-var tags, the stuff between quotes is Python. Shane ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ANNOUNCE mailForm 1.0 beta
I have made a zClass product for making mailforms with simple validation easy. Se more in the How-To at: http://www.zope.org/Members/maxm/HowTo/mailForm/index_html download the zClass at: http://www.zope.org/Members/maxm/HowTo/mailForm/products/mailForm/view regards max ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Name lookup emulation with a Product
Chris Withers wrote: > > Pierre-Julien Grizel wrote: > > > > I want my product to be callable with two method, say "m1" and "m2", > > that perform different tasks. > > How would these methods be called? > > Chris Well, I've got my product P somewhere in my object hierarchy. Its methods _should_ be called )"> where is a string parameter my method needs to know. I'd like to avoid the _.None and _ stuff if there is a way to do so. I looked at the __call__ method (and read the 'isDocTemp' thread ;-) ) and, if I must, I can replace m1 and m2 with a __call__ method taking another parameter specifying what kind of action it has to do. Many thanks, P.-J. -- If the only tool you have is a hammer, you tend to see every problem as a nail. Si le seul outil dont vous disposez est un marteau, vous avez tendance à voir chaque problème comme un clou. --Abraham Maslow ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Name lookup emulation with a Product
Pierre-Julien Grizel wrote: > > I want my product to be callable with two method, say "m1" and "m2", > that perform different tasks. How would these methods be called? Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Name lookup emulation with a Product
Chris Withers wrote: > > Pierre-Julien Grizel wrote: > > > > Hi, > > > > I'd like to perform a name lookup inside a product, relying on > > acquisition, property and REQUEST lookups. > > Are you talking about a python product's __call__ method, by any chance? > > Chris Ahem... Not exactly... I want my product to be callable with two method, say "m1" and "m2", that perform different tasks. And, inside those methods, I need to check some variables, which may be of several kinds (REQUEST, properties & so on). If found little help in the mailing list history : http://www.egroups.com/message/zope/40811 It references a mysterious (for me !) "md" attribute, which relates to the namespace. Uh, uh... Maybe is there a way to do what I want with this ?... ...But how ?. Thanks, P.-J. -- If the only tool you have is a hammer, you tend to see every problem as a nail. Si le seul outil dont vous disposez est un marteau, vous avez tendance à voir chaque problème comme un clou. --Abraham Maslow ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] database connection problem (halting Zope)
Yes, it is indeed the same here and in Spain, thankfully. I have read the DARoadmap already. And thanks to Ayhan Ergul <[EMAIL PROTECTED]> I now have binaries for OracleDA which works as supposed - i.e. fine. Is there somebody with nt binaries of SybaseDA? I will probably get it running on Linux anyway, but for now I have to use NT. Best regards, Petr Hrasky -Original Message- From: Francisco José Esteban Risueño [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 05, 2000 12:01 PM To: Hrasky Petr Cc: '[EMAIL PROTECTED]' Subject: Re: [Zope] database connection problem (halting Zope) In this document: http://www.zope.org/Members/petrilli/DARoadmap the behaviour of different database adapters in a multithreaded environment is discussed. We've observered in our Zope instalation that a long query via ZODBCDA halts (this is similar in the Czech Republic and in Spain). Howerver, if we issue the same query via ZOracleDA, the server still responds while the quere is executing (like a multithreaded server should do) Hrasky Petr escribió: > thanks again, > yes, the python versions I use are compiled for threads, they link > against libpthread under linux. I have also found ZmxODBCDA adapter and > it does not work for me yet - it shows in Zope as broken product. > I also spoke to local Oracle hotline and they said that ODBC access is > not thread safe until 8.1.6.1.1 due to some error in OCI libs. Now I am > downloading Oracle for Linux and Sybase for Linux and I will try to > compile OracleDA and SybaseDA. > > Thanks a lot all. > > Regards, > > Petr > > -Original Message- > From: Dieter Maurer [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 03, 2000 11:17 PM > To: Hrasky Petr > Cc: '[EMAIL PROTECTED]' > Subject: RE: [Zope] database connection problem (halting Zope) > > Hrasky Petr writes: > > thank you for answers. To clarify: > > I run Zope-2.2.2/Linux2.2.14/MySQL-ZMySQLDA1.1.3nonbin at home and > > Zope-2.2.2-binary/NT4.0Workstation/ZODBCDA3.1.0b2 (Oracle 8i ODBC, > > Sybase11.5)at work. Oracle connection at work and MySQL (at home just > > for testing) run looong queries and halt Zope. I have no such queries > > for Sybase yet. > > I will try to recompile python for linux, but I can't do so for > WinNT > > as I have no compiler. Anyway I thought the python distributed with > > binary release of Zope is threaded, no? > If Python is compiled without threads, there is no module > "thread". Zope relies on this module. It dies immediately, > if it is not there. Thus, you can be sure, your > Python has thread support compiled in. > > > So, does anybody know of either binary and threaded Zope driver for > > Oracle , Sybase etc. or the same ODBC driver? And what is the state > of > > python threading on WinNT paltform? > The Python that comes with Zope has thread support compiled in. > > Maybe, your Python-ODBC connection "forgets" to release > Python's interpreter lock. > > We, once, had such a problem. >Accidentally, the DCOracle module had been set up with a standard >Python distribution (with threading disabled) rather >than the Zope Python. As a consequence, the >DCOracle did not call "releaseLock" and >"acquireLock" (as they would not be present >in a non-threaded Python). >And, of course, database operations blocked Zope. > > Dieter > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Name lookup emulation with a Product
Pierre-Julien Grizel wrote: > > Hi, > > I'd like to perform a name lookup inside a product, relying on > acquisition, property and REQUEST lookups. Are you talking about a python product's __call__ method, by any chance? Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Name lookup emulation with a Product
Hi, I'd like to perform a name lookup inside a product, relying on acquisition, property and REQUEST lookups. In fact, I want to use the DTML Reference / Table 7 schema to look-up variables. I know how to perform REQUEST lookups. I know how to perform object properties lookups. I know how to perform acquisition lookups. I could write a method of my own to try to imitate the Zope process, but is there an already existing method (that would be used by the dtml-var source code, for example), that already does the job for me ? I found the BaseRequest / traverse method that seems to do it, but is there a convinient way to call it ? Many thanks, Pierre-Julien -- If the only tool you have is a hammer, you tend to see every problem as a nail. Si le seul outil dont vous disposez est un marteau, vous avez tendance à voir chaque problème comme un clou. --Abraham Maslow ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Detecting Roles not working
Thanks to Kapil, Geir and Daniel for their various syntaxes. Very enlightening. I did cure it but by accident while experimenting with the solutions offered (so they *were* worth it) The zclass title is displayed a la slashdot or freshmeat in boxes as clickable links drawn from the catalog. If (logged in) I selected them then I was always anonymous. If I manually typed the url/manage then deleted the /manage then I am recognised. Very odd. So I tried a different way of prompting for login - I protected a file in the root. Hey presto, now when I login it is fine. Or seem fine so far. (All syntaxes seem to work, btw) So, a tip for login/recognition issues would be to try authenticating a different way, perhaps further up the tree etc. I had protected the factory and used a link /myfolder/manage_addProduct/blah... to prompt for authentication. Worked for actually *being* authenticated but not for being *detected* as such. Is this a bug? Cheers Jonathan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] database connection problem (halting Zope)
In this document: http://www.zope.org/Members/petrilli/DARoadmap the behaviour of different database adapters in a multithreaded environment is discussed. We've observered in our Zope instalation that a long query via ZODBCDA halts (this is similar in the Czech Republic and in Spain). Howerver, if we issue the same query via ZOracleDA, the server still responds while the quere is executing (like a multithreaded server should do) Hrasky Petr escribió: > thanks again, > yes, the python versions I use are compiled for threads, they link > against libpthread under linux. I have also found ZmxODBCDA adapter and > it does not work for me yet - it shows in Zope as broken product. > I also spoke to local Oracle hotline and they said that ODBC access is > not thread safe until 8.1.6.1.1 due to some error in OCI libs. Now I am > downloading Oracle for Linux and Sybase for Linux and I will try to > compile OracleDA and SybaseDA. > > Thanks a lot all. > > Regards, > > Petr > > -Original Message- > From: Dieter Maurer [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 03, 2000 11:17 PM > To: Hrasky Petr > Cc: '[EMAIL PROTECTED]' > Subject: RE: [Zope] database connection problem (halting Zope) > > Hrasky Petr writes: > > thank you for answers. To clarify: > > I run Zope-2.2.2/Linux2.2.14/MySQL-ZMySQLDA1.1.3nonbin at home and > > Zope-2.2.2-binary/NT4.0Workstation/ZODBCDA3.1.0b2 (Oracle 8i ODBC, > > Sybase11.5)at work. Oracle connection at work and MySQL (at home just > > for testing) run looong queries and halt Zope. I have no such queries > > for Sybase yet. > > I will try to recompile python for linux, but I can't do so for > WinNT > > as I have no compiler. Anyway I thought the python distributed with > > binary release of Zope is threaded, no? > If Python is compiled without threads, there is no module > "thread". Zope relies on this module. It dies immediately, > if it is not there. Thus, you can be sure, your > Python has thread support compiled in. > > > So, does anybody know of either binary and threaded Zope driver for > > Oracle , Sybase etc. or the same ODBC driver? And what is the state > of > > python threading on WinNT paltform? > The Python that comes with Zope has thread support compiled in. > > Maybe, your Python-ODBC connection "forgets" to release > Python's interpreter lock. > > We, once, had such a problem. >Accidentally, the DCOracle module had been set up with a standard >Python distribution (with threading disabled) rather >than the Zope Python. As a consequence, the >DCOracle did not call "releaseLock" and >"acquireLock" (as they would not be present >in a non-threaded Python). >And, of course, database operations blocked Zope. > > Dieter > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Accessing a Zclass' method needs authentication of the superuser
hello, i created a zclass "myzclass" inside a product "myprod". inside of the zclass i created a dtml-method "mymethod_html" which can be found by the tab "Methods". in the root folder i have created a dtml-method "gimme_html" conatinintg the following code to access the method "mymethod_html" : this code will bring me up a login-screen. i am logged in as manager with the role Manager. i have no permission to access "mymethod_html". WHY ? WHERE DO I HAVE TO DEFINE THAT ? when i type in "superuser" and the password for the superuser I DO HAVE access to the dtml-method "mymethod_html". I use Zope 2.2.0. In zope 2.1.6. i do not get any login screen when i am trying to access "mymethod_html". thank you in advance, nico ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] In a python method, I want to convert a XML string into a dictionary...
Hi all, I would like to create a python method which take a parameter xml_string and return a dictionary containing all tags, values and attributes. I know that it exists some modules for xml conversions but I don't know very much how to use them. I am novice in Python so it's a little bite difficult for me to understand the codes... Thanks Fred ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope-dev] cookies & ie5.5 win
Sebastian Luehnsdorf wrote: > i'm having a strange problem with cookie based user authentication with > ms internet explorer 5.5 on windows. it seems that the browser (but only > this version and only under windows!) seems to "forget" its cookies, which > results in an immediate logout. does anybody have similar experiences or a > even solution? I've had this problem occasionally with other versions of IE. I wonder whether you're setting the path on cookies correctly? That's all I can think of... Anyone else noticed this? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope] Product Testing
http://www.zope.org/Members/hathawsh/Refresh is the only way I know of to take away the pain of testing products. Seb -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Nestor A. Diaz L. Sent: 05 October 2000 01:06 Cc: [EMAIL PROTECTED] Subject: [Zope] Product Testing HI, i'm trying to learn how to make products, i have been able to modify the poll product that comes with the product tutorial, and now i'm creating a new product however i need to restart zope for the changes to take effect, i think i can omit this if i can compile (generate the *.pyc) in the product directory, can anybody send me a few bits of how can i made that? thanks, -- Nestor A. Diaz Ingeniero de Desarrollo Engendro.com - Comercio Electronico sobre Linux Email: [EMAIL PROTECTED] - WWW: http://www.engendro.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )