[Zope-dev] zpatterns-0.4: creating an item in virtual mode

2000-07-05 Thread Jephte CLAIN
Hello, I use virtual attribute access to provide access to my SQL database. However, I want to use the Rack.newItem facility to create new records in the database. But it fails because in virtual mode, an item always exists. This patch solves the problem, at least for me --- Rack.py.orig

[Zope-dev] Proposed interface: Restricted creation

2000-07-05 Thread Itamar Shtull-Trauring
(URL: http://www.zope.org/Members/michel/Projects/Interfaces/RestrictedCreation) Restricted Creation of Objects The problem - certain types of objects should not be added except in certain places or with certain restrictions. For example, we may want to make sure Laundry objects are only added

[Zope-dev] ZClass inheriting from ObjectManager and DataSkin?

2000-07-05 Thread Itamar Shtull-Trauring
Are there (or better yet, what are) any potential problems here? My gut feeling was that it wouldn't work, but you can at the very least add objects in instances of the ZClass - deleting and renaming don't work though. -- Itamar S.T. [EMAIL PROTECTED] Fingerprint = D365 7BE8 B81E 2B18 6534

[Zope-dev] How to use document templates

2000-07-05 Thread Jarkko Veijalainen
Hi! Where can i find S_I_M_P_L_E example of using document templates with zope/python. I have this external method, wich return several variables from object class. I want to embed to results in DTML page. The method is called from Zope by HTML form with 3 input attributes. Right now i have

Re: [Zope-dev] How to use document templates

2000-07-05 Thread Steve Alexander
Jarkko Veijalainen wrote: Hi! Where can i find S_I_M_P_L_E example of using document templates with zope/python. I have this external method, wich return several variables from object class. I want to embed to results in DTML page. The method is called from Zope by HTML form with 3

Re: [Zope-dev] Proposed interface: Restricted creation

2000-07-05 Thread Shane Hathaway
Itamar Shtull-Trauring wrote: I propose a Restricted Creation Interface - when an ObjectManager constructs it's Add list in manage_main, it first checks with each addable class if it's instances can be added in this specific ObjectManager. The place where this is needed most (IMHO) is for

Re: [Zope-dev] Proposed interface: Restricted creation

2000-07-05 Thread Itamar Shtull-Trauring
Shane Hathaway wrote: The place where this is needed most (IMHO) is for ZClass factories. So there needs to be a way to create meta type filters through the Web. Yes, but in Python products too, where you have Items that should only go in specific ItemHolders. This is very common. On the

[Zope-dev] Searching in a MySQL-Database

2000-07-05 Thread Andre Schubert
Hi, i have a very important question. Is there a way to search in a mysql-database with the ZCatalog. Could i create a temporary file from a table and search it with the ZCatalog. If there are any Ideas please tell me. Thanks, as ___ Zope-Dev

[Zope-dev] why does my externalmethod generate a ZODB transaction

2000-07-05 Thread Joachim Schmitz
Hi, I wrote an external method from which I call a ZSQL-method, this runs fine and returns the correct results, but when I look at the ZODB transactions, I see that for each call of the method a transaction is recorded. Even worse, when I make an error in my method, the folder from which I

Re: [Zope-dev] ZPatterns: DropZone example

2000-07-05 Thread Phillip J. Eby
At 03:12 PM 7/5/00 -0500, Jimmie Houchin wrote: "Phillip J. Eby" wrote: [snip] Peter Coad's design approach (which ZPatterns is heavily based on/biased towards) emphasizes four major layers of classes in an application: 1) User Interface (GUI, forms, etc.) 2) Problem Domain (the actual

[Zope-dev] ExtensionClass and __radd__()?

2000-07-05 Thread Greg Ward
Hi all -- looks like ExtensionClass doesn't recognize/implement the '__radd__()' protocol. Speculation below; first, a demonstration. Normal case: a regular class Number that knows how to add itself to other number-like things: class Number: def __init__ (self, n): self.n =

[Zope-dev] Yesterdays CVS: I can add broken products! :/

2000-07-05 Thread Bill Anderson
OK, I am working on a CVS dump from yesterday of Zope2. I am upgrading from 2.1.6. I did so by making new folder, copying products that I actually used over, and building Zope, then bringing over the Data.fs. Oh, and ZEO is there too (Damn that thing is cool!). And now I have a very weird

[Zope-dev] Looking for Zope webmaster or web developer job

2000-07-05 Thread Loren Stafford
I'm looking for a new job where I can continue to use Zope for website management and applications development. Contract or full-time. Silicon Valley California or telecommute. If you know of any openings, please let me know. -- Thanks -- Loren Stafford [EMAIL PROTECTED]

Re: [Zope-dev] Proposed interface: Restricted creation

2000-07-05 Thread Phillip J. Eby
At 12:01 PM 7/5/00 -0400, Shane Hathaway wrote: Itamar Shtull-Trauring wrote: I propose a Restricted Creation Interface - when an ObjectManager constructs it's Add list in manage_main, it first checks with each addable class if it's instances can be added in this specific ObjectManager. The

Re: [Zope-dev] ZClass inheriting from ObjectManager and DataSkin?

2000-07-05 Thread Phillip J. Eby
At 01:58 PM 7/5/00 +0300, Itamar Shtull-Trauring wrote: Are there (or better yet, what are) any potential problems here? My gut feeling was that it wouldn't work, but you can at the very least add objects in instances of the ZClass - deleting and renaming don't work though. When you say

Re: [Zope-dev] zpatterns-0.4: creating an item in virtual mode

2000-07-05 Thread Phillip J. Eby
At 11:14 AM 7/5/00 +0400, Jephte CLAIN wrote: Hello, I use virtual attribute access to provide access to my SQL database. However, I want to use the Rack.newItem facility to create new records in the database. But it fails because in virtual mode, an item always exists. This patch solves the

[Zope-dev] ZEO and Mountable Fses?

2000-07-05 Thread Bill Anderson
Subject carries the question. Anyone tried this yet, or have any insights about it? I am considering giving a go this week, thought I'd see if there are any heads-up notices I should be aware of. :) Back-to-the-migrations-to-ZEO-ly y'rs Bill -- "Linux: the operating system with a CLUE...

Re: [Zope-dev] ZEO and Mountable Fses?

2000-07-05 Thread Anthony Baxter
It's on my list, but I'm not going to get to it for a week or so. Anthony, building a MountRegistry... Bill Anderson wrote Subject carries the question. Anyone tried this yet, or have any insights about it? I am considering giving a go this week, thought I'd see if there are any

Re: [Zope-dev] More comments on ZPatterns

2000-07-05 Thread Scott Parish
Thus spake Phillip J. Eby ([EMAIL PROTECTED]): and when I ask one of my TableInfo instances for their footnote it comes right out of MySQL! Cool. Now.. I can't seem to figure out how to *change* the data in the database when the user 'edits' the Here's some more top-secret documentation...