Re: [Zope-dev] LoginManager ownership bug!

2000-10-06 Thread Jonas Juselius
Cheers! I actually tried to implement support for local roles in almost exactly the same way as you did, but for some reason I didn't get it to work. Perhaps I should look into the matter again... I just threw in the user_names(), and getUserNames() into the LoginManager, added some dtml to

[Zope-dev] Removing uninstalled Prods from ZODB?

2000-10-06 Thread Jonas Juselius
Hola, I would like to know how to remove removed Products from the ZODB. This might sound silly, but I tried out POPMail and the PTK-0.8, then I uninstalled them and removed all the files. After I restarted Zope everything looked fine, no trace of the Products in the Control Panel Products

[Zope-dev] automatical login procedure

2000-10-06 Thread Loibl Johann
Hi, now I know how to generate a user in the acl_user folder via dtml-var "acl_users.manage_users('Add',REQUEST,RESPONSE)" Now, how to login a user automatically via DTML? Thanks to all readers and perhaps writers :-) ___ Zope-Dev maillist -

[Zope-dev] ToDoManager exampleworks for me on NT/win98

2000-10-06 Thread James Johnson
I'm using Zope 2.2.2 and ZPatterns-0-4-2a2(3). Now I'm REALLY looking forward to ZPatterns-0-4-3 ;-) I can't wait until this weekend. Get your Free E-mail at http://tacoma.zzn.com Get your own Web-Based E-mail Service at

Re: [Zope-dev] ZPatterns design questions

2000-10-06 Thread Steve Spicklemire
I should point out a couple of things that might not be obvious (that I noticed only on a second 'read' of the explaination): 1) getPersistentItemIds() can be a pain. dtml-in "defaultRack.getPersistentItemIDs()" sort is straightforward enough... but what if I don't care if they are sorted, or

Re: [Zope-dev] ToDoManager ZPatterns example not working

2000-10-06 Thread Steve Spicklemire
Erp! Sorry... I think the ZClass and the Rack got out of sync... I'll upload a new 'consistent' pair.. sorry! -steve "Itai" == Itai Tavor [EMAIL PROTECTED] writes: Itai Hi, Itai I installed the ToDoManager/ToDoProduct example Itai

Re: [Zope-dev] ZPatterns design questions

2000-10-06 Thread Steve Spicklemire
Ack.. sorry... I was making little changes last night to make sure the ZClass was completely consistent with my explaination, and to make sure I could start 'from scratch'. I created a 'new' ZClass, and a 'new' rack. This confused the 'old' Rack. (I didn't update the ToDoManager.zexp, so if you

Re: [Zope-dev] cookies ie5.5 win

2000-10-06 Thread Sebastian Luehnsdorf
On Thu, 5 Oct 2000, Chris Withers wrote: 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

[Zope-dev] Re: Zope static html

2000-10-06 Thread ross
Yours is the third enquiry I've had about this in the past week !!! You can do this in a very general way using wget which is freely available and very configurable. Another option is to look at ZMirror in http://www.zope.org/Members/rossl/ZMirror - not because it will solve all your problems,

[Zope-dev] Re: [Zope] Re: [Zope-dev] cookies ie5.5 win

2000-10-06 Thread Sebastian Luehnsdorf
wow, that's a relly ugly bug! did you find a solution? is there a way to set the timestamp "manually" for a cookie? ciao, basti On Fri, 6 Oct 2000, Terry Kerr wrote: I had a problem like this once, and worked out that it was because the system time was incorrect in IE somehow. The time

[Zope-dev] Re: [Zope-ZEO] How to get rid of the cPickle and asyncore dependencyhassleshassles

2000-10-06 Thread Jim Fulton
Toby Dickenson wrote: [cc to zope-dev.] Ive been using Zope only with Python 2.0 recently. That's great to hear. I'm frankly a bit surprised that this works. 2.0 is a suprisingly conservative upgrade from 1.5.2 Did you have to make many changes to Zope? All my critical

[Zope-dev] Re: Python 2.0; Garbage Collection

2000-10-06 Thread Toby Dickenson
[Toby] It looks like a little work is needed to support 2.0's garbage collection of cyclic trash [Neil] Which 2.0 are you using? I was basing my comments on my last attempt in mid July. Ive just tried enabling WITH_CYCLE_GC again (and with the patch below) and it does all seem to be

[Zope-dev] ZSQL returns integer only

2000-10-06 Thread Walter Miller
The Oracle8i recordset I'm retrieving includes a few columns which are NUMBER(10,0) format which are milliseconds. I would like to divide each by 1000 and use the ROUND function to return a result with one decimal place, e.g. ROUND(column1/1000, 1) returns 3.1 where column1 == 3080. This works

Re: [Zope-dev] LoginManager ownership bug!

2000-10-06 Thread Phillip J. Eby
At 04:01 PM 10/6/00 +, Ty Sarna wrote: I think this is due to Shane's fix for allowing LM's as non-top-level acl_users. I had it originally so that _owner was a class attribute, which works fine. With the change, it was added as an instance attribute. Now, UnownableOwner is just an empty

Re: [Zope-dev] LoginManager ownership bug!

2000-10-06 Thread Jonas Juselius
Thanks! I actually tried to make _owner a class attrib, but then I tried to add a LM to a sub-folder ;-) It didn't work out... Would it be an ugly solution to check whether the LM _is_ top-level, and if it is, make _owner a class attrib? Would it work? Or is this solution only curing the

[Zope-dev] Is this a ZClass/Propertysheet bug?

2000-10-06 Thread Paul Erickson
If I delete a property from a ZClass, the property still exists for each instance of the class (I can do a dtml-var to show it), but it doesn't show up on the management screens for either the class or the instance. I cannot add it back with the Properties tab - zope tells me that it is in use.

Re: [Zope-dev] ZSQL returns integer only

2000-10-06 Thread Christopher Petrilli
On 10/6/00 12:19 PM, "Walter Miller" [EMAIL PROTECTED] wrote: The Oracle8i recordset I'm retrieving includes a few columns which are NUMBER(10,0) format which are milliseconds. I would like to divide each by 1000 and use the ROUND function to return a result with one decimal place, e.g.

[Zope-dev] Locking (supercedes original writelocking proposal)

2000-10-06 Thread Jeffrey P Shell
This supercedes the original WriteLocking proposal which was initially just to cover WebDAV's current write locking ability. http://dev.zope.org/Wikis/DevSite/Proposals/WriteLocking -- Jeffrey P Shell, [EMAIL PROTECTED] http://www.zope.org/

Re: [Zope-dev] Is this a ZClass/Propertysheet bug?

2000-10-06 Thread Morten W. Petersen
Is this behavior correct? See http://www.zope.org/Members/paulabrams/howto_deleteundeadzclassprops for help. It is not a bug per se, Python (upon which ZOPE is based) is built this way, i.e. if you create a class with certain attributes, every instance will keep those attributes, even if they

Re: [Zope-dev] Is this a ZClass/Propertysheet bug?

2000-10-06 Thread Morten W. Petersen
On Fri, 6 Oct 2000, Morten W. Petersen wrote: It is not a bug per se, Python (upon which ZOPE is based) is built this way, i.e. if you create a class with certain attributes, every instance will keep those attributes, even if they are deleted from the class itself, and new instances that are

Re: [Zope-dev] ZPatterns design questions

2000-10-06 Thread Michael Bernstein
Steve Spicklemire wrote: Ack.. sorry... I was making little changes last night to make sure the ZClass was completely consistent with my explaination, and to make sure I could start 'from scratch'. Ok, I just got through stepping through the walkthrough. Thanks! That *was* a really simple

Re: [Zope-dev] Re: Zpatterns design questions

2000-10-06 Thread Phillip J. Eby
At 10:09 AM 10/5/00 -0700, James Johnson wrote: I heard that it's possible to have a dtml only zpatterns based example. I would like something like Product specialist addObj Zclass index_html readObj Factory Permission Would this be a correct way to proceed? Yes, except

Re: [Zope-dev] ZPatterns design questions

2000-10-06 Thread Phillip J. Eby
At 07:59 AM 10/5/00 -0700, Michael Bernstein wrote: "Phillip J. Eby" wrote: Domain logic: methods which implement the basic behavior of an object, by manipulating its attributes and by calling methods on itself or other objects. (Including delegation to a Specialist, its own or another.)

Re: [Zope-dev] Accessors for DataSkin attributes (was Re: [Zope-dev] Success!

2000-10-06 Thread Phillip J. Eby
At 02:24 PM 10/5/00 -0500, Steve Spicklemire wrote: You're not using propertysheet providers, but DataSkin propertysheets 'installed' in a ZClass that directly inherits from DataSkin. Your use of the "Data Skin Attribute Property Sheets" is primarily to associate permissions with groupings of

Re: [Zope-dev] ZPatterns design questions

2000-10-06 Thread Phillip J. Eby
At 03:44 PM 10/6/00 -0500, Michael Bernstein wrote: Steve Spicklemire wrote: Ack.. sorry... I was making little changes last night to make sure the ZClass was completely consistent with my explaination, and to make sure I could start 'from scratch'. Ok, I just got through stepping through

Re: [Zope-dev] ZPatterns design questions

2000-10-06 Thread Steve Spicklemire
"pje" == Phillip J Eby [EMAIL PROTECTED] writes: - Propertysheets: You don't expressly say that Shared needs to be a 'Common Instance Property Sheet'. pje Actually, if it's intended to be shared across all instances, pje there seems to me to be little reason to have it in

Re: [Zope-dev] Accessors for DataSkin attributes (was Re: [Zope-dev] Success!

2000-10-06 Thread Steve Spicklemire
"pje" == Phillip J Eby [EMAIL PROTECTED] writes: pje It is *not* undesirable to have ZClasses be subclasses of pje your core logic base class. Just make sure they *also* pje subclass DataSkin, or that you use the metaclass definition pje stuff above. You've actually got a