[Zope] manage_listLocalRoles user entry needed
I've read that some people are at least thinking about user management systems that go beyond the "handful of users" systems currently supported by Zope. (I'm working on one today.) As a baby step toward supporting these systems, I propose that manage_listLocalRoles provide a text box for entering users in addition to (or, in my case, instead of) allowing them to be chosen from the select list. The kludge I've been using is another form that is defined in the root folder that imitates manage_listLocalRoles, but has the text input instead of the select list. This works, but it requires the user to know to use it instead of just selecting "local roles." Times like this make me think about an infrastructure that would easily allow admins to override pages without changing them every time a package is installed. Hmmm... Thank you. --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] terrible kludge to set password
I was unsuccessful at finding any examples of changing a user's password from DTML, but I did see a few requests for such functionality. I bumped around quite awhile today trying to figure out how to do it. I didn't come up with a good way, but I did find something that works. So, although it's terribly ugly, I thought I'd throw my example out. Perhaps it'll save someone else some time. --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] date: Are month and day required?
We just ran into some strange behavior with date properties. Although hour, minute, second, timezone, ... are not required, day and month seem to be. Is there a way to specify only the year or only the year and month? (The ZQR was referenced, but I didn't find info there.) Thank you. --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Turn Off Rampant Capitalization?
On Thu, 28 Dec 2000 13:34:57 -0500 you wrote: >AFAIK, there is no routine which capitalizes the words in management tabs. >They just all happen to be capitalized literally. Is this what you mean? Yeah, tabs and everywhere else. I was guessing that some routine was responsible because I see things like "id" changed to "Id". I wouldn't expect a human to do that. Oh, well. I wanted to know if there was an obvious answer that I was missing. It wasn't the answer I wanted, but I appreciate it. Thanks. --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Turn Off Rampant Capitalization?
It Seems That Zope Likes To Capitalize Just About Every Word It Gets Hold Of. Is There A Good Way To Turn This Off? I Can Think Of Some Kludges, But I'd Like To Avoid Them. Thanks. --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Turn Off Rampant Capitalization?
On Thu, 28 Dec 2000 12:44:24 -0500 you wrote: >> It Seems That Zope Likes To Capitalize Just About Every >> Word It Gets Hold Of. Is There A Good Way To Turn This >> Off? I Can Think Of Some Kludges, But I'd Like To >> Avoid Them. >How do you mean? Which of the following is a proper noun or acronym? Zope Contents View Properties Import/Export Security Undo Ownership Find Rename Cut Copy Delete Export Available Objects Add Help Property Name Type Value Digital Creations I should look at the code, but I'm hoping that everything like this is generated by some routine that has a "capitalize" flag turned on. I'd just like to turn it off. Note that I'm mostly whining. I really should look in the code and get a clue, but it'd be great if someone would say something like "Oh, yeah, just set 'capitalize_everything' to 'off'..." (I suspect that'd be right next to the "random apostrophe's" setting.) Can you tell I'm getting bogged down right before a deadline? Thanks. --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] turning off inheritance
On Wed, 13 Dec 2000 19:39:43 +0300 (MSK) you wrote: >On Wed, 13 Dec 2000, Kyler B. Laird wrote: >> Units and people both have contact information >> stored in their properties. How do I detect if a >> person has, for example, 'contact_email' set? >> >> I've tried >> > > Something like > > (untested, but I use this in External Methods) Consider it tested. It works great from DTML. Now that I know what to seek, I found a couple of old messages that reference this. I'm still honing my ability to get Zope clues. Thanks for the quick and effective answer! --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] turning off inheritance
I am working on generating a directory from Zope objects. There is a folder full of units (other folders). These units contain people (more folders). Units and people both have contact information stored in their properties. How do I detect if a person has, for example, 'contact_email' set? I've tried It succeeds if the person doesn't have contact_email set but its unit does. I've also tried variations of , with no success. Any pointers? Where could I have found the answer to this on my own? Thank you. --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Why is acl_users "Contents" hidden?
I've been planning on using roles to control access to folders. Unfortunately, I find that if a user doesn't have the "Manage" role, requests to acl_users/manage_workspace will get redirected to acl_users/manage_access and no "Contents" tab will be shown. The user can still go to acl_users/manage_main and manage users, but he must know how to get there. Is there a simple fix? Thanks. --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] change object ownership from DTML?
I'm allowing users to initialize their own folders, but I've run into a problem with ownership. If I simply do manage_addFolder(), the folder is created "unowned". I feel like I've looked everywhere for a clue on how to set the ownership, but I haven't caught it. Surely I'm missing something incredibly obvious (to everyone else). Anyone want to enlighten me? I'd especially appreciate a pointer to how I should have figured this out on my own. Thank you. --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] manage_addFolder unusable from DTML-call?
> > > > Unauthorized I finally got to the bottom of this. I was running into a ZopeSecurityPolicy problem. It wanted to check the roles of the owner of the executable, but I had deleted the root user folder when I created a Login Manager in the root folder. I was doing some strange things for testing, but now I know better. Thank you for the help. --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] clean way to change AUTHENTICATED_USER?
My users need to login with a simple alias ("kyler") which could change. As part of the (PH/X.500) login procedure, I want to set AUTHENTICATED_USER to a better ID ("kyler.b.laird.1"). This will allow the users to continue to change aliases at will without necessitating ownership changes in Zope. (I've done this for years under Apache.) I'm using LoginManager and a PH kludge I wrote to do the authentication for now. I realize I will need to continue to use the alias (as supplied by the user) for indexing there in orcer to use the cache. I just want everything else to see the full ID. I don't have a good grasp of The Big Picture yet, so I'm hesitant to jump right in and add a setUserName method. I'm hoping there's a better way. Any suggestions? Thank you. --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] manage_addFolder unusable from DTML-call?
On Sun, 26 Nov 2000 23:22:17 +0100 (CET) you wrote: >When I tried to reproduce your problem (ZopeCVS rather than >Zope 2.2.4b1), everything worked as it should -- no >Unauthorized exception. Indeed, it works for me using a simple CVS version too. Thank you. --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] manage_addFolder unusable from DTML-call?
I have a simple DTML method: This is the Document in the Folder. Welcome, ! You have these roles: . I created a folder! It requires "Manager" to view. When I run it with the commented out, it correctly returns my role as "Manager". 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) I get: Zope Error Zope has encountered an error while publishing this resource. Unauthorized You are not authorized to access manage_addFolder. Traceback (innermost last): File /data/www/Zope/42/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /data/www/Zope/42/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /data/www/Zope/42/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /data/www/Zope/42/Zope-2.2.4b1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: make_folder) File /data/www/Zope/42/Zope-2.2.4b1-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: make_folder) File /data/www/Zope/42/Zope-2.2.4b1-src/lib/python/OFS/DTMLMethod.py, line 172, in __call__ (Object: make_folder) File /data/www/Zope/42/Zope-2.2.4b1-src/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: make_folder) File /data/www/Zope/42/Zope-2.2.4b1-src/lib/python/DocumentTemplate/DT_Util.py, line 331, in eval (Object: manage_addFolder('Folder', 'my new folder')) (Info: manage_addFolder) File /data/www/Zope/42/Zope-2.2.4b1-src/lib/python/OFS/DTMLMethod.py, line 194, in validate (Object: make_folder) File /data/www/Zope/42/Zope-2.2.4b1-src/lib/python/AccessControl/SecurityManager.py, line 139, in validate File /data/www/Zope/42/Zope-2.2.4b1-src/lib/python/AccessControl/ZopeSecurityPolicy.py, line 183, in validate Unauthorized: (see above) I expected trouble when trying to use proxy roles for this, but it seems like running as a Manager should be simple. I see a similar DTML method in use in a message from early October. Am I missing something or did the security model change get me? Thank you. --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] user-owned products?
Over the last few months I've been getting much more comfortable advocating Zope as our supported Web application environment. I'm *finally* getting around to building my own products, however, and I just realized how limited they appear to be. It *seems* that Zope products are at the evolutionary point that CGI handling was years ago. Remember when we had to use "cgi-bin" for a CGI script? Any user who wanted to run a script would require some setup by the admin. Then we got smart and got rid of cgi-bin directories and put CGI scripts where they belong - in the hands of the user (and in the users' directories along with everything else). Looking at Zope products, I see this happening again - only worse. Instead of simply creating a directory for someone to fill with CGI scripts, I have to personally maintain every product that anyone wants to add to the Control Panel (or give that person way too much authority). Also, every product will be available to every user. With tens of thousands of developers working on their own projects, this is *not* a Good Thing. [Is there/Will there be] a way to allow users to create their own products for their own use? I want people to freely whip up ZClasses and use them throughout their sites. I don't want them to bother me or other users with their creations. I haven't tried Python methods yet, but from what little I've picked up about them, I think they will be a huge step forward in giving users safe power. This doesn't solve the products issue, though, does it? Can a user make his own class without other users seeing it? Any insight will be appreciated. Thank you. --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] PoPy
On Mon, 30 Oct 2000 10:43:16 +1030 (CST) you wrote: >ImportError: ./PoPymodule.so: Undefined symbol "sem_wait" Take a look at the man page for sem_wait(). Take the library/libraries listed there and put them on the configure line for PoPy. In my case (Solaris 2.6), I added "--with-libs=-lposix4". It'd be nice if PoPy would do this on its own. --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Search and replace
On Sun, 19 Nov 2000 15:03:46 -0500 you wrote: >Is there any way to do a 'search and replace' in a Zope folder (and it's >subfolders)? Ha! Funny you'd mention this in this way. I've thought that a search and replace could be used on www.zope.org to help force Zope documenters to use "it's" correctly by replacing each occurrence with "it is" in all documents. Think it'd work? --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Passing paramaters for form processing
On Fri, 17 Nov 2000 00:50:50 +1100 you wrote: >How do I set some parameters for use in a form processing method? I have a >HTML "FORM" tag referencing a DTML method name, and I want that method to >have visibilty of some variables from the calling methods space. I've tried >passing them with the url (eg, "ACTION=/someurl?fred=") and >by using REQUEST.set syntax in the calling method. Neither seems to result >in the variable being visible to the form processing method. Any ideas? (Make sure that "fred" doesn't contain a double quote.) --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZopeLDAP 1.0b4 breaks the root directory security tab
On Fri, 6 Oct 2000 15:53:14 -0400 you wrote: >Since installing ZopeLDAP 1.0b4, I get the following error when trying to >access the security tab at the root directory: >Zope Error > > Zope has encountered an error while publishing this resource. > > Error Type: TypeError > Error Value: string member test needs char left operand Remember the satellite that blew up because of a missed comma? (O.k., something like that. Is it an urban legend?) lib/python/Products/ZLDAPConnection/ZLDAP.py, line 51: ('Browse Connection Entries', ('manage_browse',),('Manager')), should be ('Browse Connection Entries', ('manage_browse',),('Manager',)), (This is for ZopeLDAP 1.0b5.) Gotta love Open Source. --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] LoginManager UserSources
On Wed, 2 Aug 2000 15:13:45 -0400 you wrote: >I've gotten it working with >Postgres (with crypted passwords no less!) It took me a couple of weeks on >and off to finally get that going. Yes, it was painful, especially having >no prior experience with GUF (or much experience with Zope, for that >matter...) I've not made it a very high priority, but I'm working on a >LoginManager/PostgreSQL walkthrough hoping that I might save someone else >some grief. That info should be easy to translate for any other datasource >full of users you might have in mind. Interested? What I read: "I see you're starving. Are you interested in some food?" Yes! I'm desperate for a way to use Oracle and/or X.500 databases for authentication (and authorization and ...). I would be happy to pay someone to hold my hand through creating such a product. (This is one of the first things I built into Apache so many years ago.) I'm a bit fuzzy on this, though. Shouldn't there be an easy way to generalize databases for this purpose? Why do we need PostgreSQL, Oracle, Gadfly, ... versions? I'd like to be able to just choose a connection ID and go. Thank you. --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] dtml-sqltest to support SOUNDEX?
I think I've determined that there's no clean way to specify a function to be used on a sqltest variable. I'd like to be able to do something like but it doesn't seem possible. I hope that I am missing something. Yes, I know there are lots of kludges to get around this, but then I lose the clean design of sqltest - especially if I want to use "optional" or "multiple". Any suggestions? Thank you. --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope 2.2.0a1 permission problems
>>I just installed release 2.2.0a1 on a glibc Linux box, but I keep >>getting a permission problem when accessing a database query. > >I have encountered the same problem using ZOracleDA >under SPARC Solaris. >File /data/www/Zope/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_In.py, > line 602, in renderwb > (Object: jis_query) > Unauthorized: 0 I've been especially frustrated by this. I just brought up Zope 2.2.0a1 because we have a few projects that need to be developed and I want them all using Zope. I don't want to have a lot of conversion pain going from 2.1.6, so I took a chance on using alpha software in this environment. I know the risks. That doesn't make this any less painful. I often tell our students that one of the best features of Open Source software is that if there's an error, it can be fixed (by the user or by a helper of the user's choosing) without waiting on the company who controls the source. I'm just starting to learn Python, so I didn't feel like I was up to the task of doing anything usful in this case. I was wrong. After beating on this over the last day or so trying to understand what was happening at the Web interface level (thinking that I must have just screwed up a permissions setting somewhere), I finally looked at the code and simply commented out line 602 in /data/www/Zope/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_In.py # raise ValidationError, index Ta da! It works...for now. This little patch will get me up and going. I trust that someone will fix whatever problem necessitated this in a future release and I won't need this awful kludge, but it sure is nice to be able to use it now. --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope 2.2.0a1 permission problems
On Tue, 16 May 2000 12:06:29 -0400 (EDT) you wrote: >I just installed release 2.2.0a1 on a glibc Linux box, but I keep >getting a permission problem when accessing a database query. I have encountered the same problem using ZOracleDA under SPARC Solaris. My full traceback is File /data/www/Zope/Zope-2.2.0a1-src/lib/python/ZPublisher/Publish.py, line 224, in publish_module File /data/www/Zope/Zope-2.2.0a1-src/lib/python/ZPublisher/Publish.py, line 189, in publish File /data/www/Zope/Zope-2.2.0a1-src/lib/python/ZPublisher/Publish.py, line 175, in publish File /data/www/Zope/Zope-2.2.0a1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: jis_report) File /data/www/Zope/Zope-2.2.0a1-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: jis_report) File /data/www/Zope/Zope-2.2.0a1-src/lib/python/OFS/DTMLMethod.py, line 160, in __call__ (Object: jis_report) File /data/www/Zope/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_String.py, line 500, in __call__ (Object: jis_report) File /data/www/Zope/Zope-2.2.0a1-src/lib/python/DocumentTemplate/DT_In.py, line 602, in renderwb (Object: jis_query) Unauthorized: 0 --kyler ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )