[Zope-dev] dtml-in: sort is not locale-aware

2000-06-20 Thread Oleg Broytmann
Hello! Currently dtml-in does not use locale when sorting the sequence. Before creating a patch I want to discuss a way dtml-in should handle this. The problem is that list.sort() does not sort according to koi8-r cyrillic locale; to make sort locale-aware I need to list.sort(locale.strcoll).

Re: [Zope-dev] dtml-in: sort is not locale-aware

2000-06-20 Thread Oleg Broytmann
On Tue, 20 Jun 2000, mike wrote: But how I could ask dtml-in to use locale.strcoll? Should I add another option to dtml-in? Something like dtml-in somesequence sort=name use_locale ? I use dtml-in "ru_sort( somesequence)" A bit slower but works like hammer. I want to use all

[Zope-dev] Catalog acquisition problems?

2000-06-20 Thread Martijn Faassen
Hi there, We've been experiencing some odd interactions between the ZCatalog and acquisition. Inside the dtml-in catalog .. tags things seem to go screwy. It's picking up the properties in the root folder instead of in the subfolder (the context), where the dtml-in catalog .. is used. Why

RE: [Zope-dev] Unpickleable Error

2000-06-20 Thread Brian Lloyd
The product isn't using cStringIO. I didn't even know it existed until now ;) I stepped through the code, and in lib/python/ZODB/Connection.py in the commit() function, when it gets to the line dump(state) on line 347 where state is (apparently) all the correct information for my

[Zope-dev] ZPatterns alpha 3 released (was re: ZPatterns 0.4.0a2 bug fixes)

2000-06-20 Thread Phillip J. Eby
At 11:54 AM 6/20/00 +0300, Itamar Shtull-Trauring wrote: "Phillip J. Eby" wrote: * The missing _objectChanged() message - it was very hard to track down, because everything appeared to be working right, except for the fact that it wasn't working. Turns out that _v_status_ (the variable, not

Re: [Zope-dev] Test request: ZSession - ZPatterns based session manager

2000-06-20 Thread Phillip J. Eby
At 08:58 PM 6/19/00 +0800, mike wrote: http://www.zope.org/Members/RainDog/ZSession/ZSession-0.0.2.tar.gz/view Comments? Now that I've had a chance to really look at this (while tracking down one of the bugs you found), I do have a few comments. First, nice job... It's a good adaptation use

Re: [Zope-dev] ZPatterns alpha 3 released (was re: ZPatterns0.4.0a2 bug fixes)

2000-06-20 Thread Phillip J. Eby
At 10:25 PM 6/20/00 +0800, mike wrote: "Phillip J. Eby" wrote: Huh? Oh, %#()@%... I fixed that in my working copy, but didn't check it into CVS before building a release .tgz yesterday... Argh. Line 137 of DataSkins.py *should* read: if self._v_status_ is not ChangedStatus:

[Zope-dev] Re: Objet : Re: ZScheduler-0.0.5 problem

2000-06-20 Thread Loren Stafford
This is going to be hard to debug remotely. Can you help me out? First try getting ZScheduler 0.0.6 which fixes a problem of non-responsive Zope, though there the problem was on shut-down not on start-up. Be sure you have STUPID_LOG_FILE working. Then uncomment some of my debugging statements

Re: [Zope-dev] Test request: ZSession - ZPatterns basedsession manager

2000-06-20 Thread mike
"Phillip J. Eby" wrote: At 08:58 PM 6/19/00 +0800, mike wrote: http://www.zope.org/Members/RainDog/ZSession/ZSession-0.0.2.tar.gz/view Comments? Now that I've had a chance to really look at this (while tracking down one of the bugs you found), I do have a few comments. First,

[Zope-dev] Announce: ZSession-0.0.3a

2000-06-20 Thread mike
In short: 1. URL = http://www.zope.org/Members/RainDog/ZSession 2. It works. 3. I need more comments/suggestions Mike ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! **

Re: [Zope-dev] Test request: ZSession - ZPatterns basedsession manager

2000-06-20 Thread Phillip J. Eby
At 10:51 PM 6/20/00 +0800, mike wrote: "Phillip J. Eby" wrote: example. Think of someone creating a Session subclass called "Shopping Cart", with methods for viewing, checking out, adding/deleting items, etc. Or, if they have many subsystems which want to share the same Session objects, they

Re: [Zope-dev] ZPatterns alpha 3 released (was re: ZPatterns0.4.0a2 bug fixes)

2000-06-20 Thread Phillip J. Eby
At 05:49 PM 6/20/00 +0300, Itamar Shtull-Trauring wrote: Huh? Oh, %#()@%... I fixed that in my working copy, but didn't check it into CVS before building a release .tgz yesterday... Argh. Line 137 of DataSkins.py *should* read: Great, it works! Tell me, were you able to use

[Zope-dev] SOAP?

2000-06-20 Thread David Wilcoxen
I'm trying to find some information about using the SOAP protocol to communicate with the Zope server. Not having much luck at this point; any hints or suggestions would be appreciated. Thanks. David Wilcoxen Austin, Texas ___ Zope-Dev maillist -

RE: [Zope-dev] SOAP?

2000-06-20 Thread Brian Lloyd
I'm trying to find some information about using the SOAP protocol to communicate with the Zope server. Not having much luck at this point; any hints or suggestions would be appreciated. Thanks. David Wilcoxen Austin, Texas Hi David, Zope doesn't yet support SOAP, though this is

[Zope-dev] censemble communication toolkit and distributed lock manager

2000-06-20 Thread Mark Hayden
I recently announced the availability of censemble communication toolkit and a distributed lock manager built using it. After reading about ZEO and the plans to turn the Zope Storage Service into a replicated service, I thought you might find this work useful. regards, Mark Hayden CEnsemble

[Zope-dev] DA for postgresql?

2000-06-20 Thread Jephte CLAIN
Hello, Can anyone tell me about the various Postgresql DA currently available? I don't know which to take between ZPoPyDA and ZPyGreSQLDA. I installed both of them, and I can't tell the difference between the two... This will be for a production server. Is PostgreSQL a good choice? Actually, I

[Zope-dev] LoginManager add trouble

2000-06-20 Thread Scott Parish
Using: Zope2 (cvs) ZPatterns 0.3.0 LoginManger 0.8.6 When I try to add a LoginManager, I get the following error and traceback. Any ideas? sRp - Error Type: KeyError Error Value: _owner Traceback (innermost last): File /a4/srp/Zope2/lib/python/ZPublisher/Publish.py, line 222, in

[Zope] ZServer+SiteAccess+Apache+SSL

2000-06-20 Thread Wayne Izatt
I've just managed to get ZServer running behind Apache with SiteAccess (thanks for the how-to, anser!) Now, has anyone managed to configure SSL into a mix like this? Seems to me I should be able to go through the standard SSL setup for Apache, and not worry too much more abou the ZServer

[Zope] 2.2.0 zclass weirdness

2000-06-20 Thread Roman Milner
I've created a ZClass call HomeDirContainer that inherits from ObjectManager. In that ZClass I created another ZClass called HomeDir. The idea being that HomeDirs can only exist in HomeDirContainers. So, I add an instance of HomeDirContainer, then go into it and click "Add" - which is

Re: [Zope] 2.2.0 zclass weirdness

2000-06-20 Thread Roman Milner
Well, I figure this out. HomeDir_factory was getting its Use Factory permission set to (disabled). I think this was becuase HomeDirContaine didn't automatically have "Add HomeDirs" in its list. Is this a bug? ^Roman "RM" == Roman Milner [EMAIL PROTECTED] writes: RM I've created a

[Zope] comercial products using zope

2000-06-20 Thread Terry Kerr
Hi, I am researching using zope as a framework for a product that I am going develop and sell. I will develop a python product for zope. The product will not be open source, so I will only be distributing the byte code .pyc files, and not the source. However I understand that it is possible

Re: [Zope] Problem with adding items to ZClass instance

2000-06-20 Thread Rik Hoekstra
I don't think there's anything "special" about my ZClass. It's derived from Catalog Aware and ObjectManager. I believe I reproduced it without the Catalog Aware and got the same results. I'm using Andy Dustman's version of the MySQLDA and TinyTable v0.8.2. They both work just fine

Re: [Zope] comercial products using zope

2000-06-20 Thread Oleg Broytmann
On Tue, 20 Jun 2000, Terry Kerr wrote: I am researching using zope as a framework for a product that I am going develop and sell. I will develop a python product for zope. The product will not be open source, so I will only be distributing the byte code .pyc files, and not the source.

Re: [Zope] comercial products using zope

2000-06-20 Thread Anthony Baxter
Terry Kerr wrote Basically I want to know if anyone else has used zope for a commercial product b4, and how they did it. Is there anything in particular that I should know about. Should I just rely on a good software license to protect my code? Also...are .pyc files as platform

[Zope] scared

2000-06-20 Thread josh on
when things happen that I have no understanding of their cause I get a little scared. I started up zope this morning, it seemed to open normally. (I am running zserver and zope on a win98 machine) However when I went to access the site through the web, the server would shut down. I have

Re: [Zope] scared

2000-06-20 Thread josh on
Would it be a bad idea to just install another copy of zope in a different directory? Would that clash somehow? josh ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! **

Re: [Zope] scared

2000-06-20 Thread Chris Withers
josh on wrote: Would it be a bad idea to just install another copy of zope in a different directory? Would that clash somehow? Maybe, but not in any bad way, the worst I can see happenign is that they try and get the same ports on your machine. Just run up one instance at a tiem to make sure

Re: [Zope] scared

2000-06-20 Thread josh on
Thanks Chris, As for your error, it looks like something bad happened when zope tried to write to the log file. Did you do any funny configuration fro your logging? What version of Zope are you using? I haven't changed anything to my knowledge. It did stop working after a crash though.

[Zope] ANN: First public release of ZEO

2000-06-20 Thread Paul Everitt
ZEO 0.2, an alpha version of ZEO, is now publicly available from the "ZEO page", http://www.zope.org/Products/ZEO/. ZEO is the clustering code for Zope. This version does *not* contain the multiplexing code that was holding up the release. Be sure to check the page for performance numbers

Re: [Zope] Expressing expressions

2000-06-20 Thread Tino Wildenhain
Hi RC, RC Compaan wrote: Simple addition seems a bit tricky in zope dtml-var expr="counter=counter+value" --// Here i tried to Try dtml-call "REQUEST.set('counter',counter+value)" HTH Tino Wildenhain ___ Zope maillist - [EMAIL

[Zope] Basic site management using zope and other queries

2000-06-20 Thread Rajil Saraswat
On Tue, 20 Jun 2000, Rajil Saraswat wrote: hi , i had sent this message. may be some of you had overlooked it,so here it is again. please answer to this, as it is very important for me to switch to zope. 1. Can zope do basic site management. for example missing link checks. say if we

Re: [Zope] scared

2000-06-20 Thread josh on
I have reinstalled zope and zodb, and copied the data.fs across. It was about two days old. All the changes that I had made were gone. Luckily I made a backup of my app yesterday by exporting it. I must have a bad understanding of how this works. I had imagined that everytime I hit CHANGE,

Re: [Zope] scared

2000-06-20 Thread Evan Simpson
- Original Message - From: josh on [EMAIL PROTECTED] I have reinstalled zope and zodb, and copied the data.fs across. It was about two days old. All the changes that I had made were gone. Luckily I made a backup of my app yesterday by exporting it. I must have a bad understanding

[Zope] Re: LocalFS cross platform bug

2000-06-20 Thread Dan L. Pierson
Jonothan Farr writes: That's a good point. Although, your patch actually does the backslash replacement regardless of whether the drive specification is present. How about this: +drive,rest=os.path.splitdrive(path) +if drive: +path = string.replace(rest,

[Zope] ProxyPass

2000-06-20 Thread RC Compaan
Is there anyway to get around the fact that the remote ip is the server's ip if you use Apache's ProxyPass directive to pass requests on to Zope? Roché ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross

[Zope] Re: LocalFS w/ annotation data

2000-06-20 Thread Dan L. Pierson
Jonothan Farr writes: That sounds like a mess. LocalDirectory objects are not persistent, they are created each time they are requested. So you'll have nowhere to put your PersistentMappings except in the top-level LocalFS object. Trying to make the LocalDirectories persistent would be

[Zope] DCOracle on AIX

2000-06-20 Thread Friedrich, Robin K
Hi guys, I know this isn't Zope related but this list is the closest thing I know of. We are attempting to get DCOracle 1.3.0 working on our IBM AIX 4.2 platform talking to Oracle 8.1.5 and we are running into a problem. We can get things to compile into the shared object extension fine but it

Re: [Zope] scared

2000-06-20 Thread Jim Sanford
If I were running any remotely critical application on WIN98 I would be scared too. Because of legacy data issues we run Zope on NT and that just makes me nervous. Jim Sanford - Original Message - From: josh on [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 20, 2000 5:38

Re: [Zope] Re: LocalFS w/ annotation data

2000-06-20 Thread Jim Sanford
I would suggest putting an extra text box on the upload form for the filename in ZOPE. You could include javascript to automatically fill in the text box whenever the ZOPE name in the file box changed. The javaScript code could use the C:\ or D:\ or whatever pattern at the beginning to

[Zope] PoPy Licence

2000-06-20 Thread Eric Bianchi
Dear PoPy and zpopyda users, there has been a lot of discussion lately concerning the GPL issue of PoPy on zope mailing list, python mailing list and even in the Mixadlive itself. We have been thinking a lot since there. On one hand, we are very concerned about using and developing free

[Zope] Internationalization 2nd post

2000-06-20 Thread Dan Rusch
How are my fellow Zopers handling Internationalization, especially text. We have a site that is composed of several hunderd pages. We don't use classes but we have made heavy use of aquistion though. For example we have one back button that is aquired thoughout the site etc etc. Basically if the

Re: [Zope] TAG for file date

2000-06-20 Thread CURTIS David
Greeting, Thanks Tino for your reply, but alas I am still not able to achieve what I want. Perhaps I do not understand what you are teaching. I am trying to display the date of a document in an HTML document. Here is what I tried. Step 1.) CREATE A FILE OBJECT I used the menu to create a

RE: [Zope] Embedding authentication in a Zope Website

2000-06-20 Thread Chris McDonough
Chris, Thanks for the speedy reply. I appreciate it. The questions I have now is how do you: 1) give users the opportunity to log in... where do you actually do authentication? is there a url they must point to? should I be calling any python functions, or perhaps writing my own

RE: [Zope] Basic site management using zope and other queries

2000-06-20 Thread Chris McDonough
1. Can zope do basic site management. for example missing link checks. say if we call an object which doesnt exist. can zope show us where we have gone wrong.(without actually checking each and every object manually) No. 2. I have large number of small html documents(17,000). I

Re: [Zope] comercial products using zope

2000-06-20 Thread Martijn Pieters
On Tue, Jun 20, 2000 at 07:00:40PM +1000, Terry Kerr wrote: Basically I want to know if anyone else has used zope for a commercial product b4, and how they did it. Is there anything in particular that I should know about. Should I just rely on a good software license to protect my code?

[Zope] Change Notification

2000-06-20 Thread Bob Barter
Is there a way for an object to be notified that it has been modified? In particular, I want to create Relation objects that relate two arbitrary Folders. Creating the Relation object with a ZClass is easy (even for a newbie like me :-) ), but I need to update the relation links if the

[Zope] Pointers in zope ??? object1 -- object2

2000-06-20 Thread NABETH Thierry
Title: Pointers in zope ??? object1 -- object2 Hello, I am trying to figure out how I can find a way to implement pointers in Zope. In other words, I would like to be able that the content of an attribute reference another object. object1 -- object2 and say for instance: object1.aaa :=

Re: [Zope] Pointers in zope ??? object1 -- object2

2000-06-20 Thread R. David Murray
On Tue, 20 Jun 2000, NABETH Thierry wrote: I had also thought that I could store in this field, the url of the object. From this url, I would then be able to get the object. (since you can call an kind of method by url-of-the-object/mymethod) But it didn't work. For instance dtml-with

Re: [Zope] Internationalization 2nd post

2000-06-20 Thread R. David Murray
On Tue, 20 Jun 2000, Dan Rusch wrote: How are my fellow Zopers handling Internationalization, especially text. Check out the list of mailing lists in the resources section of zope.org. You'll find a mailing list for ZIP, the Zope Internationalization Project, complete with archives. --RDM

[Zope] dtml-sendmail tag that worked in 2.1.6 appears broken in 2.1.7

2000-06-20 Thread Shaw, Mark
Hello, I have a site that contains the following tag: dtml-sendmail smtphost="localhost" mailto="zope" mailfrom="[EMAIL PROTECTED]" subject="SITE.COM EMAIL" ... /dtml-sendmail This worked fine when my server was running Zope 2.1.6. After upgrading to 2.1.7, I get the following error: Error

[Zope] Re: LocalFS cross platform bug

2000-06-20 Thread Jonothan Farr
How about this: +drive,rest=os.path.splitdrive(path) +if drive: +path = string.replace(rest, '\\', '/') Oops, looks like this doesn't work after all. The Linux version of splitdrive doesn't actually do the split :-(. Doh! Looks like we'll need to roll our

[Zope] Re: LocalFS w/ annotation data

2000-06-20 Thread Jonothan Farr
What about just storing your meta-data in files in the local file system? Then you wouldn't need to modify the LocalFS product at all. Just write a ZClass that can read/write you meta-data file format. Might well be a better approach. I'll think about it. Unfortunately, it doesn't

Re: [Zope] Internationalization 2nd post

2000-06-20 Thread Rik Hoekstra
How are my fellow Zopers handling Internationalization, especially text. We have a site that is composed of several hunderd pages. We don't use classes but we have made heavy use of aquistion though. For example we have one back button that is aquired thoughout the site etc etc. Basically if

Re: [Zope] scared

2000-06-20 Thread Rik Hoekstra
I have reinstalled zope and zodb, and copied the data.fs across. It was about two days old. All the changes that I had made were gone. Luckily I made a backup of my app yesterday by exporting it. I must have a bad understanding of how this works. I had imagined that everytime I hit

[Zope] Creating a ZClass within a folder

2000-06-20 Thread Aaron Payne
Hi all, I am trying to create a zclass instance within a newly added folder. Here is the sequence of events 1. get name from a form, vendor 2. add a folder with id of vendor 3. within the new folder create a CouponProduct The following add method (snipped) puts the zclass instance at the same

[Zope] Select Box Problem

2000-06-20 Thread Kenny Flegal
I have a form that pulls back previous order information from a customer. This form has a select box for with a list of customers in the database so that a user can easily select who made the order. Everything in this form works fine except for the select box. The select box shows the option

[Zope] Does dtml-sendmail work with 2.1.7?

2000-06-20 Thread Shaw, Mark
Just thought I'd rephrase the question after doing more troubleshooting. Does anyone have this tag working for them when using Zope 2.1.6??? Thanks again. -Mark -Original Message- From: Shaw, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 20, 2000 2:39 PM To: [EMAIL

Re: [Zope] dtml-sendmail tag that worked in 2.1.6 appears broken in 2.1.7

2000-06-20 Thread Jim Sanford
The error is saying that Zope is seeing localHost (CAPITAL H) where your snippet of code reads localhost (small h). Does your actual code have a typo? Jim - Original Message - From: Shaw, Mark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 20, 2000 1:39 PM Subject: [Zope]

Re: [Zope] How can I upload files to mySQL

2000-06-20 Thread Dieter Maurer
I am using Zope and mySQL and want to load up text and Images to text or = blob fields. How can I upload file content to TEXT (plain text)=20 and BLOB (images: jpg, gif) using DTML? I can answer only part of your question. Uploaded files are "ZPublisher.FileUpload" objects which you

Re: [Zope] Internationalization

2000-06-20 Thread Dieter Maurer
Dan Rusch writes: We have a site that is composed of several hunderd pages. We don't use classes but we have made heavy use of aquistion though. For example we have one back button that is aquired thoughout the site etc etc. Basically if the functionality (or code) is used in more than

Re: [Zope] TAG for file date

2000-06-20 Thread Dieter Maurer
CURTIS David writes: I have a database file that gets copied via a cron job at night. I would to display the new the new file date in an htlm document using Zope. What I would like is a tag that displays the date of a specific file. Is there such a dynamic tag? I am thinking something

Re: [Zope] brain hurts regarding dynamic fcn args in Python

2000-06-20 Thread Dieter Maurer
Jeff Sasmor writes: Is there a (straightforward?) way to dynamically compose function argument lists? For example, in C, you can write" f(arg1, arg2, (conditional expression)?(val for TRUE state):(val for FALSE state)). Others have pointed out, that you can use "and" and "or" to emulate

Re: [Zope] sifting through python sub-objects

2000-06-20 Thread Dieter Maurer
ed colmar writes: I've succesfully gotten the catalog to work (thanks everyone!), but in doing so, I've created a problem. Squishdot uses this code like this in order to add an item: id=self.createId()# make a datestamp id msg=PromoterPost(id,title)

Re: [Zope] Basic site management using zope and other queries

2000-06-20 Thread Dieter Maurer
Rajil Saraswat writes: On Tue, 20 Jun 2000, Rajil Saraswat wrote: i had sent this message. may be some of you had overlooked it,so here it is again. please answer to this, as it is very important for me to switch to zope. You seem not to be patient ;-) 1. Can zope do basic site

Re: [Zope] Need to use a 'date' data type in sqltest

2000-06-20 Thread Dieter Maurer
Jones, David H writes: I need to include a test of a date in a DTML variable referenced in a sqltest tag in ZSQL. From reading documentation and testing, it does not appear that the 'date' data type is supported. As fas as I know, SQL databases vary greatly in the representation of times

Re: [Zope] TAG for file date

2000-06-20 Thread Dieter Maurer
CURTIS David writes: I tried to add dtml-var "GuideFile.bobobase_modification_time" But I do not get an output displayed!!! "bobobase_modification_time" is a method not an attribute. You must call it: dtml-var "GuideFile.bobobase_modification_time()" You can resolve problems

[Zope] ZDiscussions Problem

2000-06-20 Thread Pete Black
I have a problem using ZDiscussions - First up, i'd like to whine a bit. WHINE-MODE ONWhich product should i use to add a Discussion component to my site? Confera? ZDConfera? ZDiscussions? ZUBB? Squishdot? PTK? Was the Zope 'Portal' deliberately designed to obfuscate the choices

[Zope] Looking into folders

2000-06-20 Thread Felipe Alvarez Harnecker
Hi, zopistas I need to query if one folder has sub-folders in it or not. The query must be into an dtml-tree tag. The idea is to make clickeable only "leave" folders. --- Here's another, Supose this dtml-tree bla bla .. /dtml-tree I want to manipulate every object

[Zope] python product - newbie

2000-06-20 Thread Bak @ kedai
hi all, Newbie alert blaring i'm messing around with Boring product, and now wants to do more. i have problems when i got more than one class in a product. this is what i wanted to do. create a guestbook (what else :)) product. GB.py with two classes - GB and GBitem. i can now load GB

RE: [Zope] Problem with adding items to ZClass instance (semi-solved)

2000-06-20 Thread Ron Bickers
Thanks a lot for your help on this weird one! Now that I know what to look into, I'll do that. ___ Ron Bickers Logic Etc, Inc. [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Rik Hoekstra Sent: Tuesday, June

Re: [Zope] Change Notification

2000-06-20 Thread Tino Wildenhain
Hi, Bob Barter wrote: Is there a way for an object to be notified that it has been modified? In particular, I want to create Relation objects that relate two arbitrary Folders. Creating the Relation object with a ZClass is easy (even for a newbie like me :-) ), but I need to update the