Re: [Zope-dev] [ZPatterns] DataSkin object ownership
At 08:04 PM 12/12/00 -0500, BS wrote: >Do DataSkins have ownership? I want to give multiple users the ability to >add objects to a rack and only allow the 'owner' to view/edit the object. >When a user adds a DataSkin to a rack does he get ownership of the object? >I can't seem to get the ownership information for these objects. Is there a >way to do this? DataSkins stored in Racks do not participate in the Zope ownership mechanism, nor the creation of the 'Owner' role. This is because they are not being stored via the normal ObjectManager protocols. If you want this behavior, you'll need to use Folders w/Customizer support, which let you use most of DataSkins' dynamic features with "almost ordinary" Zope objects. >BTW - I'm talking about virtual object that totally live in MySQL. Folders w/Customizer Support require the DataSkins' primary storage to be in the ZODB. ___ 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 )
[Zope-dev] [ZPatterns] DataSkin object ownership
Do DataSkins have ownership? I want to give multiple users the ability to add objects to a rack and only allow the 'owner' to view/edit the object. When a user adds a DataSkin to a rack does he get ownership of the object? I can't seem to get the ownership information for these objects. Is there a way to do this? BTW - I'm talking about virtual object that totally live in MySQL. Thanks, -Ben ___ 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-dev] ZPatterns: persistant objects hold DataSkin-Items -> KeyError: _v_dm_
At 07:23 PM 12/12/00 +0100, Ulrich Eck wrote: > >I can deal arround that if i reget the DSO from the specialist in every >function which deals with DSO's. This is the correct way to do it if you are using Specialists rather than Folder w/Customization Support. > >is there a better way to > >a) tell my TransactionManager that my attribute "ds_object" is not pickeable >(e.g. call it _v_ds_object) > and how to know if zope is restarted ?!?!? >or >b) store this object persistantly in my TO without showing it in the >folder-structure but behave like a DSO > set/get attributes through Skinscripts Yes. Use a Folder w/Customization Support above your transactions. When you access TO.ds_object, the DataSkin will search for a DataManager and find one in the FwCS, assuming you've configured one. Note that this is mutually exlcusive to using Specialists to store the DataSkins. In the FwCS approach, you configure Customizers for each meta_type of objects you'll be dealing with. You can then give them SkinScript, etc. to configure behaviors. Also, this approach requires use of the ZODB to store at least the "shell" (class reference and ID) of each DataSkin. But since your application is ZODB-dependent already, this is not an issue. Personally, I'd suggest that if you want to take advantage of ZPatterns' database independence, you should instead restructure your app so that your TO's are themselves DataSkins, stored in a Specialist. Right now, you have a very heavy dependence on the ZODB. ___ 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 )
[Zope-dev] Python 2 (Zope Unicode) support for 2.2.4
Hi Folks, I've modified Toby Dickenson's patch to let Zope work with Python 2 so that it patches against Zope 2.2.4. http://www.zope.org/Members/stevea/unicode_for_224.patch.gz Toby's page about using unicode and Python 2 with Zope is here: http://www.zope.org/Members/htrd/wstring -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ 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 )
[Zope-dev] ZPatterns: persistant objects hold DataSkin-Items -> KeyError: _v_dm_
hi out there, i use zpatterns/specialists for a Network-Documentation Tool. I'm writing a Product which controls the relations between specialists and manages multible actions (edit/new/delete) for ZPatterns DataSkinObjects (DSO). I have a Product-Instance of ZTWM (ZTransactionWorkflowManager) in my application root which is a Folder by itself and holds as folder-objects its 'Transactions' (in this case a Transaction starts at the first edit-action and lasts til the last submit of a form with valid entries - e.g finish transaction.) It behaves like a Wizard (PTK) with next/back/cancel/finish buttons and reads out the DataSkinPropertysheet for creating the edit/new forms on the fly. One can also define relations between the specialists an they are used to edit Foreign Keys. small painting here: \application-root --\(specialist for persons) --\ (specialist for komponents) --\(my TransactionWorkflowMangager - Folder) \<1>(first transaction -Folder) ---\<1> (first transaction object - Folder) | ds_object (attribute which references the DSO) | more info on the current Transaction object ---\<2> (second Transaction object) | ds_object (attribute which references the DSO) | more info on the current Transaction object \<2> (second Transaction) ... so far about how it should work .. For each TransactionObject (TO) I save the Object I retrieved with "specialist.getItem(id) == DataSkinObject(DSO)" as attribute "ds_object" to the TransactionObject. After I restarted Zope and want to replay/finish a transaction, i get an KeyError, Value _v_dm_ the prefix _v_ stands for not pickeable (afaik) dm for datamanager ?!? ok .. i put a TO in the Transaction, get the actual DSO, call the transactionmanagers editor function and a form with correct values is displayed, i can edit this form and call the DSO manage_changeProperties method from the transactionmanager. when i don't finish a transaction and restart zope i still have my transactions with proper values saved in my TransactionManager - except the property "ds_object" wich was assigned to the DSO at TO-creation when i try to set/get an attribute i get the KeyError of "_v_dm " ... I can deal arround that if i reget the DSO from the specialist in every function which deals with DSO's. is there a better way to a) tell my TransactionManager that my attribute "ds_object" is not pickeable (e.g. call it _v_ds_object) and how to know if zope is restarted ?!?!? or b) store this object persistantly in my TO without showing it in the folder-structure but behave like a DSO set/get attributes through Skinscripts hope that i described clearly enough where my problem is ... thanks for your reply Ulrich Eck net-labs ___ 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 )
[Zope-dev] Converters.py field2date() and :ignore_empty
If I have ignore_empty set in a variable name of type date, field2date() fails if the returned value is truly empty. I think field2date() should return None rather than trying to call DateTime with an empty string. I keep making this patch to each Zope release, but would like to talk about a more permanant and "correct" solution. What do others think? Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ 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-dev] Pending bugs in collector - how do I send this patch?
On Mon, Dec 11, 2000 at 03:16:51PM -0500, Brad Clements wrote: > I have found a bug in ZSQL methods that is describe by this collector > item: > > http://classic.zope.org:8080/Collector/718/view > > This item was posted over a year ago! The bug is still in the program, so > I'm guessing that DC folks are too busy to get to this. Hi Brad, That looks like a damn good catch! The best thing you can do is create a new Collector entry and just say that this is a fix to collector item 718. This way your fix will not be overlooked so easily. -- Martijn Pieters | Software Engineer mailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ - ___ 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 )
[Zope-dev] Re: ZPatterns, ObjectDomain, UML and all that.....
Itai, I think this is a brilliant idea! I'm sure there are sixteen ways to implement each of these... but having one concrete way would be a big help to a novice -steve > > >Object relationship| > (Pattern) | Implementation > > > 1 1 | Add prop to A: b_id > A - B | In A call Bs (Specialist of B): my_b = > Bs.getItem(b_id) > > > n 1 | Add prop to B: a_id > A - B | Add method to Bs (Specialist of B): getBsForA(a_id) > | In A call Bs: my_b_list = Bs.getBsForA(a_id) > > > n n | ? > A - B | > > > n [XOR A] 1| Add Specialist Xs implementing role of A and B > A -| Add prop to C: x_id > n [XOR A] 1 C | In A, B call Xs: my_x = Xs.getItem(x_id) > B --| > (Participant-Transaction)| (A and B - Participants, C - Transaction) > > > [XOR A] 1 n | Add prop to B, C: a_id > B| In B, C call As (Specialist of A): my_a = > As.getItem(a_id) > A [XOR A] 1 n | > C| (can't do reverse connection?) > > > > > Does anyone think this would be useful? Can we get the experts to > expand/correct/verify this? Obviously more relationship types need to > be added, and also some extra information is needed (such as who's > responsible to set the id attributes and how, when and how reverse > connections are done, etc.). > > Itai > -- > Itai Tavor"Je sautille, donc je suis." > C3Works[EMAIL PROTECTED] - Kermit the Frog > > "If you haven't got your health, you haven't got anything" > ___ 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 )
[Zope-dev] zIRCon is now IRCGate
Since Ty Sarna pointed out that there is another thingy out there labeled as Zircon, I have changed the products name to the original project ID, IRCGate. Yes, I know, I should have checked. (oops, I did it again ;) ) Thank you, Ty Sarna, and my apologies to anyone who already got zIRCon. -- "Kill processes, not people." - Larry Cohen Carlos Neves [EMAIL PROTECTED] ___ 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 )