Re: [Zope-dev] LoginManager.
Terje Malmedal wrote: [Bill Anderson] Terje Malmedal wrote: Can anybody please provide a simple example of a working usersource written in python? Look at the UserSource source for LoginManager and Membership. I did that. I feel I am missing something obvious. What I do is: * create a folder named "/test" * inside /test I choose login manager from the "avaliable objects" drop down. * select "solid user source" from the menu. * press "add" * create an index_html which Anonymous is not allowed to see. When I access /test from an unauthenticated webbrowser it finds that it can't view it and pops up the username/password window, but neither retreiveItem nor anything else gets called. Is your login form even calling the authenticate method? check your login method. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. ___ 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] Logs stamped with wrong time
I just checked, and my copy of Apache logs in local time (my last example). So I agree that following the convention and logging in localtime is best. FYI - I've checked in the fix for this for 2.2.1 (we've been offline for a few days though, and I have to catch up on reply notifications to bug submitters...) Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ 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] Voting for Patches?
Adam Karpierz wrote: There is a patch for it: http://classic.zope.org:8080/Collector/1540/view I wonder whether it'd be worth enabling people to vote on what patches they'd like integreated and what bugs they'd like solved in the collector? Sorry ChrisW but I dont understand what you mean :( ? (probably my horrible poor english is a cause..) I dont want enabling people, I dont want any votes. It only was my reply for _your_ problem. Below is my full post: -- Adam Karpierz wrote: ChrisW wrote: Okay, firstly, I notice dtml-tree doesn't support the standard abbreviation: dtml-TAG "x" - dtml-TAG expr="x" As the following: dtml-tree "_.getitem('sequence-item',0)" branches="postingValues" gives me: Error Type: KeyError Error Value: "_.getitem('sequence-item',0)" There is a patch for it: http://classic.zope.org:8080/Collector/1540/view [...] Where you see any problems in my reply ? I made patch earlier for my private use (likewise as _all_ other patches posted by me) and according to your suggestion on IRC I stuck it into collector... My post was only notification for you. The one for me is the ability, in effect, to shout 'Me too!' when I see a bug that I've experienced too. Heh funny... Ability for such simple and trivial things as my patches ? Experience ? Eh... Sorry but this eventually would was true 20 years ago when I'd started my adventure with programming of stupid computers :) How you think ? What is my motivation to produce patches etc ?. Answer is very simple... Maybe this would help filter down the collector or at least give anotehr way that it could be prioritised? What way ?. It was a little bug and inconsistence it tree tag and I dont see any better way then very simple and safe (without any influence for compatibility) patch. Best Regards -- Adam Karpierz [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 )
Re: [Zope-dev] bug in CatalogAwareness?
Shane Hathaway wrote: Does it work with SiteAccess? Untested, but it should work, yes. I hope so, Squishdot uses exactly the same code now ;-) cheers, Chris ___ 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.. Property sheets... once and for all. ;-)
Hi Folks, OK.. I didn't hear much from my last plea for advice... I thought perhaps such a concrete problem would product lots of sage advice... but there's good news: here's another chance! Really Really Basic: If I have a class like so: class Shopper( OFS.SimpleItem.Item, ZPatterns.DataSkins.DataSkin, Acquisition.Implicit, AccessControl.Role.RoleManager, ): """ A Shopper """ # Specify a name for the item type: meta_type='Shopper' and let's say I define some attributes in the class id = 'default' email = '' _passwd = '' Now... let's further say that I want a developer using this class to be able to add propertysheets to instances of this class after I'm finished... to make customized versions of these objects. Also.. perhaps I want to take advantage of the 'automatic' nature of property sheets to provide a usable interface so that users can edit various properties. I was successful in adding a propertysheet using the /specialist/anobject/propertysheets/manage_addPropertySheet?id=foons= technique.. which I'm pretty sure I could also implement programattically. ;-). But when I try: /specialist/anobject/propertysheets/foo/manage I get an attribute error looking for 'a_'. I get the same error when I try: /specialist/anobject/propertysheets/foo/manage_addProperty?id=blahvalue=hhtype=string Any idea what's up with that? But no matter... I can't add 'email' to *any* propertysheet, even those in the ZClass, since it's already used in the class. So do I leave it out of the class and "hope" that someone defines it in some propertysheet somewhere? Do I do lots of: if hassattr(self, 'email') and so on.. in case somehow it didn't get taken care of? I *know* I missing something deep. I'm sure I'll say something dumb enough here soon.. and someone will point out my basic misunderstanding. ;-) thanks! -steve ___ 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: Voting for patches?
This is already being setup as part of the patch and small change integration page... more details once it's up this weekend ;P you will like. Message: 9 Date: Thu, 24 Aug 2000 15:09:32 +0100 From: Chris Withers [EMAIL PROTECTED] Organization: New Information Paradigms To: Adam Karpierz [EMAIL PROTECTED] CC: "[EMAIL PROTECTED]" [EMAIL PROTECTED] Subject: [Zope-dev] Voting for Patches? Adam Karpierz wrote: There is a patch for it: http://classic.zope.org:8080/Collector/1540/view I wonder whether it'd be worth enabling people to vote on what patches they'd like integreated and what bugs they'd like solved in the collector? The one for me is the ability, in effect, to shout 'Me too!' when I see a bug that I've experienced too. Maybe this would help filter down the collector or at least give anotehr way that it could be prioritised? cheers, Chris ___ 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.. Property sheets... once and for all. ;-)
Steve, Ok, it is a bug in manage_tabs. Here's a proper fix: dtml-if manage_options dtml-with "_(option=manage_options[a_])" dtml-if "option.has_key('help')" td align="right" valign="top" dtml-var "HelpSys.button(HelpSys, REQUEST, product=option['help'][0], topic=option['help'][1])" /td /dtml-if/dtml-with/dtml-if Replace the dtml-comment with dtml-if manage_options and /dtml-comment with /dtml-if. I'm putting this in the Collector. -- 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 )
Re: [Zope-dev] Zope as CGI with IIS Windows 2000 Server
URGENT! Need assistance with Zope as a PCGI with IIS 5 on Windows 2000 server. After configuring Zope for use as a PCGI, and configuring IIS to use the pcgi-wrapper.exe, etc... The test link:http://localhost/Scripts/Zope.pcgi ...is returning the following message within the "Temporarily Unavailable" error response page: !-- Error parsing pcgi info file pcgi-wrapper-version 2.0a4 -- I have tested the file using parseinfo and get no response. what do you mean by no response? Is it not returning anything or just no errors? A theory, at this point has been that there is a conflict/incompatibility with Zope as a PCGI with IIS 5.0 on Windows 2000. This seems to be a pcgi (Zope) error though. Only used it on NT4 and IIS4 but from the above a basic incompatibility seems unlikely (to me). Rik ___ 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.. Property sheets... once and for all. ;-)
Cool! Thanks Steve.. I'll give that a try. I guess the question behind the question though is is this a reasonable way to handle property sheets? Is this how the designers of ZPatterns envision property sheets will be used? I keep getting the feeling that I'm missing a basic 'grokism' of the technology and I keep expecting to get hit over the head with it but I don't. Anyway.. thanks for tracking down the traceback... -steve ___ 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] Zope Content Management System
Hi there, I am working on a project and have been looking at the Zope Content Management System as part of the solution. However, I have a couple of questions. From what I have seen so far, the page generation is all done through the Zope Management Interface, and the content of the page is done through a textarea requiring the user to have knowledge of the zope system(DTML) and HTML. With type type of solution I am looking for however, I need page content to be generated be users that have little or no knowledge of HTML. What I am wondering is if it is possible to integrate the Zope content management system with Cold Fusion as I can allow users with no knowledge of HTML to use an interface designed with Cold Fusion to create page content. I do not wish to build a content management system from scratch with Cold Fusion. Any suggestions and/or comments would be very helpful. Um, intergration with Cold Fusion would be strange I think. WHat your question is, probably, is whether you can you wysiwyg HTML editors with Zope. Some minor inconveniences aside that mostly have to do with file extensions, the answer is yes. As Zope speaks ftp and WebDAV and a host of other protocols, you can easily prepare Zope content with tools like HomeSite and Dreamweaver (and many other tools). Just try it out on a Zope installation hth Rik ___ 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 bug: Specialist does not implement _PropertySheetsFor(client)
I'm using ZPatterns 0.4.1snap1. The LinkToParentProviders datamanager doesn't work properly because it assumes that the Specialist it lives in has a _PropertySheetsFor(client) method. However, Specialists (and DataManagers) don't provide this method. This stops /specialist/object/propertysheets/manage from working. It also stops _v_currentSheets from returning all the sheets a Dataskin might have. Phillip, is this fixed in your internal version? If not, I'll add the method over the weekend. -- 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 )
Re: [Zope-dev] Zope Content Management System
Troy Coburn writes: I need page content to be generated be users that have little or no knowledge of HTML Any suggestions and/or comments would be very helpful. You may want to look at Wiki's, especially the ZWiki product. You find it (and information about Wiki) at zope.org. Dieter ___ 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.. Property sheets... once and for all. ;-)
Steve Spicklemire wrote: Cool! Thanks Steve.. I'll give that a try. I guess the question behind the question though is is this a reasonable way to handle property sheets? Is this how the designers of ZPatterns envision property sheets will be used? I think so. You add PropertySheets to a DataSkin, and the sheets' data get handled by SheetProviders. You can use triggers or custom sheet providers to add sheets to an object if that object meets certain criteria. The object need not know it has had those sheets added. The object plays different roles with different specialists. -- 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 )
Re: [Zope-dev] ZPatterns bug: Specialist does not implement _PropertySheetsFor(client)
At 09:23 PM 8/24/00 +0100, Steve Alexander wrote: I'm using ZPatterns 0.4.1snap1. The LinkToParentProviders datamanager doesn't work properly because it assumes that the Specialist it lives in has a _PropertySheetsFor(client) method. However, Specialists (and DataManagers) don't provide this method. This stops /specialist/object/propertysheets/manage from working. It also stops _v_currentSheets from returning all the sheets a Dataskin might have. Phillip, is this fixed in your internal version? If not, I'll add the method over the weekend. Ouch. That's not the problem. This is fallout from making DataSkins more "personally responsible"; the bug is in the propertysheet providers that expect to acquire from a parent. They need to be rewritten to work the way dataskins do now, or else configured to find the parent providers, and provide those instead. :( I'll have to take a closer look at this later. By the way, I've been away from the list a while due to day-to-day business concerns and travel. I'm hoping to start the process of catching up soon, but I saw this and since it's a bug I'm going to tackle it first before trying to answer any other unanswered questions that might be floating around out there. Sorry. ___ 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] Product release: ExtFile/ExtImage 0.91
Version 0.91 of the ExtFile/ExtImage Software Product has just been released. The ExtFile and ExtImage Products store large files in an external file-repository and are able to display icons for different MIME-Types. The ExtImage Product additionally creates preview-thumbnails from images and displays them. ExtFile and ExtImage basically work like the Zope File and Image products but the (binary) file is not stored inside the ZODB, but in an external file-repository. Only meta data (like title and description) are stored in the ZODB. This prevents the Database swelling up quickly, when many large files are uploaded and thus increasing database performance. Version 0.91 fixes an important security issue, that allowed read access to any file in the local filesystem (readeable for the UID of the zope process). The Product is avaliable at http://www.zope.org/Members/MacGregor/ExtFile/ MacGregor! ___ 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 )