[Zope-dev] More ZPatterns confusion

2000-11-26 Thread bentzion
I am trying to add a ZClass with a DataSkin Property sheet to a Virtual Rack. So I call the following: dtml-let ni="newItem(key=REQUEST['key'])" props="ni.propertysheets.get('Basic')" dtml-call "props.manage_changeProperties(REQUEST.form)" /dtml-let I assume this should call

[Zope-dev] How to get rid of obsolete Permissions

2000-11-26 Thread Joachim Schmitz
how can I get rid of the permissions defined for a ZClass, after I deleted the ZClass, all permissions for all ZClasses I ever created are still around and pollute my security or permission management screens. Mit freundlichen Grüßen Joachim Schmitz AixtraWare, Ing. Büro für

[Zope-dev] SQL-Methods Through-the-FileSystem

2000-11-26 Thread Johan Carlsson
Hi all, Does anybody have a good suggestion how to develope SQL Method ftfs (through the filesystem) rather than ttw. Perferably in someway similare to the HTMLFile way to include DTML methods in Zope classes. Regards, Johan (One problem I recently discovered was the fact that SQl methods

Re: [Zope-dev] SQL-Methods Through-the-FileSystem

2000-11-26 Thread Ender
Johan Carlsson wrote: Seb: Does anybody have a good suggestion how to develope SQL Method ftfs (through the filesystem) rather than ttw. Perferably in someway similare to the HTMLFile way try something like this: from Products.ZSQLMethods.SQL import SQL import

Re: [Zope-dev] RFC: Python/Zope Interfaces

2000-11-26 Thread Dieter Maurer
Michel Pelletier writes: Also, defining the interface seperately keep the two things apart, impementation and interface, and doesn't allow you to sneak in a new method unless you also sneak it into the interface, thus making a stronger "contract" with the user. I am a bit astonished by

Re: [Zope-dev] SQL-Methods Through-the-FileSystem

2000-11-26 Thread Johan Carlsson
Johan Carlsson wrote: Seb: Does anybody have a good suggestion how to develope SQL Method ftfs (through the filesystem) rather than ttw. Perferably in someway similare to the HTMLFile way try something like this: from Products.ZSQLMethods.SQL import SQL

[Zope] manage_addFolder unusable from DTML-call?

2000-11-26 Thread Kyler B. Laird
I have a simple DTML method: dtml-var standard_html_header h2dtml-var title_or_id dtml-var document_title/h2 p This is the dtml-var document_id Document in the dtml-var title_and_id Folder. /p p Welcome, dtml-var

[Zope] ZClass within ZClass

2000-11-26 Thread Daryl Stultz
Hi folks, I am yet another Zope newbie. I am trying to create a ZClass hierarchy. Let's say I have a CDLibrary. Every CDLibrary has a CDManager (just one) and the CDManger holds all the CDEntry items. (The CDLibrary may have parts other than the CDManager, like a label maker or something- but

Re: [Zope] Python Script demo site

2000-11-26 Thread Evan Simpson
From: "Steinar Rune Eriksen" [EMAIL PROTECTED] Would it be useful to (or rather, is it possible to) let one of these scripts call up another one ? Sure. From one of the Python Scripts you just write something like: answer = context.otherscript(1.3, 'foo') ...where context is bound to the

Re: [Zope] Python Script comments

2000-11-26 Thread Evan Simpson
From: "Chris Withers" [EMAIL PROTECTED] Is there going to be a python methdos help tab eventually? Help is on the way. If I specify parameters 'wibble, fish', and then do: dtml-var "mypythonmethod('wibble',1)" ...will wibble='wibble' and fish=1 in the method? Yep. Parameters work

Re: [Zope] How to checkout PythonMethod from CVS

2000-11-26 Thread Evan Simpson
From: "Jochen Knuth" [EMAIL PROTECTED] Products/DC/PythonMethod at the moment, i don't know if the new name will result in a new directory. I expect to check it into the Zope2 core trunk under lib/python/Products/PythonScripts when I get back from Thanksgiving vacation. Cheers, Evan @

Re: [Zope] PoPy and system tables

2000-11-26 Thread Andreas
Chris Gray wrote: I can pinpoint the problem a bit more. select relname, relowner, relpages, reltuples, relhasindex, relisshared, relkind, relnatts, relchecks, reltriggers, relukeys, relfkeys, relrefs, relhaspkey, relhasrules, relacl from pg_class works fine but select reltype

[Zope] CURRENT MEMBERSHIP PRODUCT IS COOL -- was: [Zope] LoginManager / Membership / ZODB as UserSource

2000-11-26 Thread Danny William Adair
Hello Bill, Now this _is_ cool. I had tried 0.75 in the past and had lots of problems. Version 0.78 is a real drop-in, like what I was dreaming of. Thank you very much for your efforts so far. I recommend the Membership product to everyone looking for a ready-to-use authentication and

RE: [Zope] Special behavior or bug?

2000-11-26 Thread Chris Gray
I've discovered another possible solution to your problem. In a DTML Method change dtml-var standard_html_header to dtml-var "standard_html_header(client=foo)" where foo is the id of a DTML Method. Then within standard_html_header, the variables title and id will refer to foo's id and

Re: [Zope] ZClass within ZClass

2000-11-26 Thread Tim Cook
Daryl Stultz wrote: Hi folks, I am yet another Zope newbie. I am trying to create a ZClass hierarchy. Let's say I have a CDLibrary. Every CDLibrary has a CDManager (just one) and the CDManger holds all the CDEntry items. (The CDLibrary may have parts other than the CDManager, like a

[Zope] Re: [Zope-dev] SQL-Methods Through-the-FileSystem

2000-11-26 Thread seb bacon
Hi Johan, Does anybody have a good suggestion how to develope SQL Method ftfs (through the filesystem) rather than ttw. Perferably in someway similare to the HTMLFile way try something like this: from Products.ZSQLMethods.SQL import SQL import PoPy def

Re: [Zope] ZClass within ZClass

2000-11-26 Thread Daryl Stultz
Tim Cook wrote: But, If you subclass OFS:Folder when building CDLibrary and CDManager then they can 'contain' other objects. A HOWTO that really helped me was the one on building a Job Board. Yes, that's precisely where I started, however, the actual product is a job_board_entry. What I

[Zope] getattr in Python Method problem

2000-11-26 Thread Peter Bengtsson
In the folder where dosomething_pym (Python Method) is located, is also a string property set called 'en' with the value 'English' The Python Method object is called with no parameters, but is defined with the 'self' parameter inside the Python Method object. In a DTML Method this works fine:

[Zope] LoginManager Help.

2000-11-26 Thread Jason C. Leach
hi, So I have LoginManager installed. The easy part. Now I'd like to know how to use it. To start with, I'd like to authenticate against a standard acl_users folder or a plane text file w/ username/passwords in it. I just have no idea how to get cracking on this since the documentation on

Re: [Zope] Python and EJB (J2EE)

2000-11-26 Thread Nitin Borwankar
All, I have been tracking this discussion for a while and need to point out some major facts about EJB's that seem to have been missed. Yes, EJB's are componentized and run in a container but that's not all. 1) EJB's are TRANSACTIONAL components (MTS components are also transactional) That

[Zope] Instance within Instance

2000-11-26 Thread Daryl Stultz
Hi Folks, I have a product folder called "TestClass" with 2 ZClasses: class1 and class2. The following is an exerpt from the class1 constructor: dtml-with "class1.createInObjectManager(REQUEST['id'], REQUEST)" dtml-call "REQUEST.set('id', 'myClass2')" dtml-call "class2_add(_.None, _,

Re: [Zope] ZClass within ZClass

2000-11-26 Thread Tim Cook
Daryl Stultz wrote: Tim Cook wrote: But, If you subclass OFS:Folder when building CDLibrary and CDManager then they can 'contain' other objects. A HOWTO that really helped me was the one on building a Job Board. Yes, that's precisely where I started, however, the actual product is

Re: [Zope] Python and EJB (J2EE)

2000-11-26 Thread Hung Jung Lu
1) EJB's are TRANSACTIONAL components (MTS components are also transactional) Thanks for your comments. Transaction certainly is one of the important features of EJB. But my personal opinion is that instance pooling (multi-threading) is even more important. If you have to implement a

[Zope] Re: Re[2]: [Zope] view DTML source

2000-11-26 Thread Dieter Maurer
Anders Eriksson writes: DM ... use "document_src" to view the source ... AFAIU there is two problems with using document_src directly 1) I can't use the html_quote param You do not need to (unless you are interested in standard wrapping for e.g. corporate identity or navigation).

Re: [Zope] Instance within Instance

2000-11-26 Thread Tim Cook
Daryl Stultz wrote: I want class2 to be created INSIDE of the class 1 instance. Instead, class2 (always with an id of "myClass2") is created at the same level as the class1 instance. How do I change the namespace to get the class2 instance inside class1? NOT TESTED, but simialr to

Re: [Zope] manage_addFolder unusable from DTML-call?

2000-11-26 Thread Dieter Maurer
Kyler B. Laird writes: I have a simple DTML method: dtml-call "manage_addFolder('Folder', 'my new folder')" I can go through the management interface to create and destroy folders, but as soon as I view this method, (it tries to reauthenticate me and)

Re: [Zope] Authenticating Users.

2000-11-26 Thread Dieter Maurer
Jason C. Leach writes: How can I authenticate a user from a form. Pretty much exactly how zope.org logges you in? I have looked at both zope.org's login and logged_in (the action for login) and don't see where it actually goes and checks the username/password? This check is performed

Re: [Zope] Python and EJB (J2EE)

2000-11-26 Thread Nitin Borwankar
If you know where to get more info on XA/TX, could you provide some pointers? Search for XA on Amazon - you can buy a copy of the Spec. It takes a while to ship 2-3 weeks I think. Also look at the specs for the JTA, Java Transaction API. There are some references there. Nitin.

Re: [Zope] Python and EJB (J2EE)

2000-11-26 Thread Nitin Borwankar
I've mentioned two-phase commit to Digicool people. Not sure whether it's already inside Zope or not, but it seems not. Zope's TM (Transaction Machinery) does not seem to be two-phase. See the TM.py file itself: it only has def _finish(self): self.db.commit() That is, I

Re: [Zope] LoginManager Help.

2000-11-26 Thread seb bacon
* Jason C. Leach [EMAIL PROTECTED] [001126 20:46]: hi, So I have LoginManager installed. The easy part. Now I'd like to know how to use it. To start with, I'd like to authenticate against a standard acl_users folder or a plane text file w/ username/passwords in it. OK, I've just

[Zope] security

2000-11-26 Thread Bowyer, Alex
Can some one explain how the Define Permissions screen works. I really don't understand the concept behind it, what does it mean for a permission setting to own a permission? All I need to do is to make certain ZClass methods have a certain level of security and the other methods of the class

Re: [Zope] Instance within Instance

2000-11-26 Thread Daryl Stultz
Tim Cook wrote: NOT TESTED, but simialr to something I do: dtml-call expr="class1.createInObjectManager(REQUEST['id'], REQUEST)" dtml-with "_.getitem(id)" dtml-call "REQUEST.set('id', 'myClass2')" dtml-call "class2_add(_.None, _, NoRedir=1)" /dtml-with Hmmm, doesn't seem to be

Re: [Zope] Python and EJB (J2EE)

2000-11-26 Thread Ender
Nitin Borwankar wrote: I've mentioned two-phase commit to Digicool people. Not sure whether it's already inside Zope or not, but it seems not. Zope's TM (Transaction Machinery) does not seem to be two-phase. See the TM.py file itself: it only has def _finish(self):

[Zope] client argument to python function calls?

2000-11-26 Thread Randall Kern
I'm trying to emulate some DTML methods with python code in my (python) product. Let's say I have two Python classes, one named Foo, the other Bar. Something like this: class Foo(Folder.Folder, Persistent, Implicit): meta_type = "Foo" def magic(self, client=None): "magic method!"

Re: [Zope] LoginManager Help.

2000-11-26 Thread Jason C. Leach
hi, Those instructions got the ball roling. I have not got it going yet, but am getting close. Where do I put my login forms? In the same folder as the acl_users (LoginManager), or inside the acl_users (LoginManager)? I have just taken your example and hard coded a user in for now: def

Re: [Zope] LoginManager Help.

2000-11-26 Thread Jason C. Leach
hi, Also, I'm not sure what this instruction ment: - If you want to log in a user from another page, create a form which posts fields called __ac_name and __ac_password to a method which doesn't have anonymous user access. (see the example loginForm for an example) Thanks, j.

Re: [Zope] LoginManager Help.

2000-11-26 Thread Dirksen
You can gain some enlightenment from these two documents: http://www.zope.org/Members/Zen/GenericUserFolder/walkthrough http://www.zope.org/Members/jok/SQL_based_LoginManager --- "Jason C. Leach" [EMAIL PROTECTED] wrote: hi, So I have LoginManager installed. The easy part. Now I'd like to

Re: [Zope] Python and EJB (J2EE)

2000-11-26 Thread Ender
assuming no errors, in which case you'll get rollback method calls, or subtransactions. a call to tpc_begin signals the begin of the two-phase commit. than comes a call to commit, next tpc_vote, and finally tpc_finish. kapil Ender wrote: Nitin Borwankar wrote: I've mentioned