[Zope-dev] Re: [Zope] Container Class questions
Robin Becker writes: I would like to add properties in a property sheet, but cannot find a neat way to see the properties on the base object and on the propertySheet. So I would like my properties to show id title and the properties on my basic properties sheet. I can easily add properties directly to the object during the Thing_add and Thing_addForm and these appear on the properties tab for added objects. How do I get a tab for the property sheets? I am not sure, I understand precisely, what you want to reach. ZClass properties are managed on distinct property sheets. I do not know of a neat way to present (and change) properties from different property sheets (other than adapting the "manage_PropertiesForm" manually). To get a tab for a single property sheet (other than the default one), you define a "View" (in the ZClass) for it. I agree with you, that there should be a way to add properties to the "inherited" or "default" property sheet (or, more generally, any inherited property sheets, e.g. from inherited ZClasses). When I read the code, I had the impression that access to the default property sheet should be able via the property sheet name 'default'. Unfortunately, it did not work (Zope 2.2.2). Apparently, there is some missing link. 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 )
Re: [Zope-dev] Re: [Zope] Container Class questions
Dieter Maurer wrote: Robin Becker writes: I would like to add properties in a property sheet, but cannot find a neat way to see the properties on the base object and on the propertySheet. So I would like my properties to show id title and the properties on my basic properties sheet. I can easily add properties directly to the object during the Thing_add and Thing_addForm and these appear on the properties tab for added objects. How do I get a tab for the property sheets? I am not sure, I understand precisely, what you want to reach. ZClass properties are managed on distinct property sheets. I do not know of a neat way to present (and change) properties from different property sheets (other than adapting the "manage_PropertiesForm" manually). I wrote up some code (dated) to present generic forms for changing zclass properties, code to follow. i generally use it just to get a fast prototype for a system, example: picking a property sheet and harding coding a link to the second method. yes this code does find base class properties (including stuff like webdav, etc), or at least it did last time i used it (era 2.1.6). hope this helps Kapil three methods one to select a property sheet one to edit a property one to change a property sheet 1. edit_properties dtml-var standard_html_header centerbPlease Pick A Property Category/b/center table align="center" form action="edit_propertyCategory" method="POST" trtd SELECT name="PropertyCategory" dtml-in "propertysheets.items()" OPTION value="dtml-var sequence-key"dtml-var sequence-key/OPTION /dtml-in /SELECT /tr/td trtdINPUT TYPE="SUBMIT" value="Edit Properties"/td/tr /form /table dtml-var standard_html_footer 2. edit_PropertyCategory dtml-var standard_html_header dtml-if "REQUEST.has_key('PropertyCategory')" dtml-in "propertysheets.items()" dtml-let y=sequence-key dtml-if "REQUEST.PropertyCategory==y" dtml-let x=sequence-item table border="1" align="center" cellspacing="0" cellpadding="4" trth colspan="2" align="center"Edit dtml-var y Properties/th/tr form action="edit_propertiesChange" method="POST" dtml-in "x.propertyItems()" trtd dtml-var sequence-key /tdtd input type="text" name="dtml-var sequence-key" value="dtml-var sequence-item" /td/tr /dtml-in trtd colspan="2" align="center"input type="SUBMIT" value="Change Properties"/td/tr input type=hidden name="PropertyCategory" value="dtml-var PropertyCategory" /form /table /dtml-let /dtml-if /dtml-let /dtml-in dtml-else You have reached this page in error /dtml-if dtml-var standard_html_footer 3. edit_propertiesChange dtml-var standard_html_header dtml-if "REQUEST.has_key('PropertyCategory')" dtml-in "propertysheets.items()" dtml-let y=sequence-key dtml-if "REQUEST.PropertyCategory==y" dtml-let x=sequence-item dtml-call "x.manage_changeProperties(REQUEST)" dtml-var PropertyCategory Properties Changedbr a href="dtml-var URL1"Back To Object/abr a href="dtml-var URL2"Back To Container/a /dtml-let /dtml-if /dtml-let /dtml-in dtml-else You have reached this page in error /dtml-if dtml-var standard_html_footer ___ 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 design questions
At 12:50 PM 10/7/00 -0700, Michael Bernstein wrote: "Phillip J. Eby" wrote: Presentation logic lives with an object's class, and deals with what that object knows about presenting itself. UI implementation is "glue" presentation that lives in a Specialist for use by any object that needs to present UI related to objects of the kind the Specialist handles. The terms used here are "official" terminology with precise definitions, btw. I am just trying to answer your questions as best I know how. I'm not sure, but did you mean 'are not' in that last sentence? Whoops. :( Yes, you're correct, I lost the 'not' somewhere along the way there. Here is where my 'Specialist/Generalist' confusion came from. It seems to me, that the simple implementation (you might also call it the default implementation) for the selector UI in your example should be contained in a 'Generalist' object that could be overridden by a 'Specialist'. This would help make crystal clear the line between Presentation Logic and Implementation UI, and would also serve as a useful starting point for creating the overriding methods in the 'Specialist' by the framework customizer. Hm. It seems to me to add too many entities without any real advantages. It's straightforward to have overrideable default implementations in a Specialist - note LoginManager's login, logout, and forbidden pages, which are UI snippets of this sort. Okay, you've got me there. I tend not to think of it that way, if only because there are many things less than satisfactory about its current state of implementation. For example, if we had it to do over again, I would re-work the internal API so that roles, domains, authentication, etc., could be controlled by plug-ins on the user sources. At that point there would be no need for different kinds of user sources, as they would all be fully generic. But anyway, I digress. In light of my own dificulties in adding SMB authentication to PersistentUserSouce.py, and Bill Andersons dificulties with password encryption on some Unices, I think that this would be a *very* worthwhile effort. Such a project might also give you the mandate to get DC to fix the Zope internal acl_users interfaces that were getting in your way. How large of a project would this be? Not very hard, I think. Basically I think we'd warp the "Data Plug-Ins" plug-in group on UserSource to allow what I'll call "authorization plug-ins" to be included. And, we'd complement that with some of the work Ty's already done on mapping roles, domains, etc. back onto plain object attributes so that you can just use regular attribute providers or SkinScript to compute them. I'm not sure, but I think I recall that we even came up with a way to securely manage a password attribute, which we needed for one of our own applications a month or two ago. ___ 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] Accessors for DataSkin attributes (was Re: [Zope-dev] Success!
At 09:14 PM 10/6/00 -0500, Steve Spicklemire wrote: OK.. allow me to summarize my very latest thought. Subclassing is OK withing my own framework. Yep. It's OK to require users of my framework to create ZClasses that subclass from my core logic Python classes, and from DataSkin. Sort of. To be more precise, as a framework provider you may require that participating objects provide a particular interface. The framework user may 1) create a subclass of one of your classes, 2) add an implementation of your interface to an existing class of theirs, or 3) use your class as is, using SkinScript or other means to form an "adapter" between your desired interface and their existing objects. ___ 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] Socket.error problem
I'm getting the exact same socket.error message that appeared on this list in March, 2000. (See the attached problem.txt file.) Specifically, this is the error message that I get when I start zope. The person who kindly identified the problem didn't provide a solution. I have my netstat -a results attached as netstat.txt. Could someone tell me how I can resolve this port conflict? Incidentally, I'm using Mandrake 7.1 in a fairly standard configuration. Thanks in advance, Ron ./. This is the reply that was provided to the first person who encountered this problem (and submitted it to the list): MESSAGE You have another process that is "bind" to port 98... this is the registered port for "tacnews". try "netstat -a" under the shell... - Message d'origine - De : Ulf Byskov [EMAIL PROTECTED] À : [EMAIL PROTECTED] Envoyé : lundi 13 mars 2000 11:28 Objet : [Zope] socket problem When I try to start Z Server i get the following error messages: File "/WWW/Docs/product_development/teams/AMD_framework/dev/Zope/ZServer/medusa/a syncore.py", line 205, in bind return self.socket.bind (addr) socket.error: (98, 'Address already in use') I don't use the number 98 in any address or port (http=80, ftp='' and monitor='') so what could this error be about ? /MESSAGE [nobody@localhost Zope-2.2.2-linux2-x86]$ ./start -- 2000-10-08T-5:31:03 PROBLEM(100) ZServer Computing default hostname -- 2000-10-08T-5:31:03 INFO(0) ZServer Medusa (V1.16.4.3) started at Sun OCt 8 00:31:03 2000 Hostname: localhost.localdomain Port:8080 Traceback (innermost last): File ?/usr/local/Zope-2.2.2-linux2-x86/z2.py?, line 634, in ? logger_object=lg) File "/usr/local/Zope-2.2.2-linux2-x86/ZServer/FTPServer.py?, line 619, in __init__ apply(ftp_server.__init__, (self, None) + args, kw) File ?/usr/local/Zope-2.2.2-linux2-x86/ZServer/medusa/ftp_server.py?, line 725, in __init__ self.bind ((self.ip, self.port)) File ?/usr/local/Zope-2.2.2-linux2-x86/ZServer/medusa/asyncore.py?, line 242, in bind return self.socket.bind (addr) socket.error: (98, ?Address already in use?) Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp0 0 *:6000 *:* LISTEN tcp0 0 *:3053 *:* LISTEN tcp0 0 *:8021 *:* LISTEN tcp0 0 *:postgres *:* LISTEN tcp0 0 *:www *:* LISTEN tcp0 0 *:smtp *:* LISTEN tcp0 0 *:printer *:* LISTEN tcp0 0 *:pop3 *:* LISTEN tcp0 0 *:telnet*:* LISTEN tcp0 0 *:ftp *:* LISTEN tcp0 0 *:auth *:* LISTEN tcp0 0 *:sunrpc*:* LISTEN udp0 0 *:xdmcp *:* udp0 0 *:sunrpc*:* raw0 0 *:icmp *:* 7 raw0 0 *:tcp *:* 7 Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node Path unix 1 [ ] STREAM CONNECTED 26342 @00d9 unix 0 [ ACC ] STREAM LISTENING 1402 public/showq unix 0 [ ACC ] STREAM LISTENING 1398 private/smtp unix 0 [ ACC ] STREAM LISTENING 1389 private/bounce unix 0 [ ] STREAM CONNECTED 194@001d unix 1 [ ] STREAM CONNECTED 26259 @00cb unix 0 [ ACC ] STREAM LISTENING 2816 /var/run/pcgi.soc unix 0 [ ACC ] STREAM LISTENING 1406 private/error unix 9 [ ] DGRAM382/dev/log unix 0 [ ACC ] STREAM LISTENING 2792 /tmp/.font-unix/fs-1 unix 0 [ ACC ] STREAM LISTENING 1687 /dev/gpmctl unix 0 [ ACC ] STREAM LISTENING 1410 private/local unix 0 [ ACC ] STREAM LISTENING 1414 private/cyrus unix 1 [ ] STREAM CONNECTED 26267 @00ce unix 1 [ ] STREAM CONNECTED 26253 @00c8 unix 0 [ ACC ] STREAM LISTENING 2848 /tmp/.X11-unix/X0 unix 0 [ ACC ] STREAM LISTENING 1418 private/uucp unix 1 [ ] STREAM
[Zope] Can you specify user/group to run Zope as during install
I would like to run Zope not as user 'nobody' but as something else. Is this possible somehow, also is it possible to install the Zope tree in a location other than that untarred into [something like ./configure --prefix=/usr/local/site/Zope] Regards, Yusuf -- Yusuf Goolamabbas [EMAIL PROTECTED] ___ 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] Socket.error problem
Hi Ronald, "Ronald L. Chichester" wrote: I'm getting the exact same socket.error message that appeared on this list in March, 2000. (See the attached problem.txt file.) Specifically, this is the error message that I get when I start zope. The person who kindly identified the problem didn't provide a solution. I have my netstat -a results attached as netstat.txt. Could someone tell me how I can resolve this port conflict? Incidentally, I'm using Mandrake 7.1 in a fairly standard configuration. Thanks in advance, Ron ./. This is the reply that was provided to the first person who encountered this problem (and submitted it to the list): MESSAGE You have another process that is "bind" to port 98... this is the registered port for "tacnews". try "netstat -a" under the shell... - Message d'origine - De : Ulf Byskov [EMAIL PROTECTED] À : [EMAIL PROTECTED] Envoyé : lundi 13 mars 2000 11:28 Objet : [Zope] socket problem When I try to start Z Server i get the following error messages: File "/WWW/Docs/product_development/teams/AMD_framework/dev/Zope/ZServer/medusa/a syncore.py", line 205, in bind return self.socket.bind (addr) socket.error: (98, 'Address already in use') I don't use the number 98 in any address or port (http=80, ftp='' and monitor='') so what could this error be about ? tcp0 0 *:8021 *:* LISTEN I suspect this line to be the offending one. IIRC the number "98" isnt actually a port number but a error number of the socket-lib. Your zope-ftp-server probably tries to bind 8021 which is not possible. HTH Tino Wildenhain ___ 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] Can you specify user/group to run Zope as during install
Hi Yusuf, Yusuf Goolamabbas wrote: I would like to run Zope not as user 'nobody' but as something else. Is this possible somehow, also is it possible to install the Zope tree in a location other than that untarred into [something like ./configure --prefix=/usr/local/site/Zope] Regards, Yusuf You can Zope install whereever you want. For the user look in z2.py for "UID". Regards Tino ___ 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] Creating Member folders with the Membership Product
Hi, I have been trying to mimic the way the PTK (and zope.org) automatically creates a Member folder with specific objects, when someone signs up. I want to do something similar, but call it something other than Members/ and have 5 objects in a subfolder copied over to the User's directory that is created. Currently I am using the PTK, but am also interested in Bill's Membership Product. So, if anyone could guide me as to how I can achieve this with either, I would be very grateful. -- best regards, tav [EMAIL PROTECTED] ___ 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] DTML: fetch an object by its url?
Hi, I don't know why, but dtml-var "REQUEST.resolve_url('/some/folder/and/path/wotsit')" doesn't work in my zope installation (2.2.2) well, dtml-var "REQUEST.resolve_url(REQUEST.BASE0+'/some/folder/and/path/wotsit')" works. Maybe it is because that zope want to get ready for RPC. Iap, Singuan - Original Message - From: "Phil Harris" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; "Scott Shepherd" [EMAIL PROTECTED] Sent: Wednesday, August 16, 2000 3:57 PM Subject: Re: [Zope] DTML: fetch an object by its url? dtml-var "REQUEST.resolve_url('/some/folder/and/path/wotsit')" - Original Message - From: "Scott Shepherd" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 16, 2000 5:06 AM Subject: [Zope] DTML: fetch an object by its url? In DTML is it possible to get an object using its url? Something like dtml-with "get_object( '/some/local/url' )".../dtml-with Similar to dtml-with "_.getitem( name )".../dtml-with but what I have is the object's zserver url, not its name in the current namespace. TIA, Scott ___ 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 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 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 - how does it work?
On Sat, 7 Oct 2000, ed colmar wrote: I've managed to get loginManager to install, but I am very confused as to what to do with it. I was confused too :) Now I have working instalation of LoginManager-0-8-7a1. It retrieves users' data from ZODB, but it may be helpfull to understand how to implement any other source, i.e. MySQL. Probably I did it very dirty way, but it works ;) First, I created my own UserSource class, adding it to source file lib/python/Products/LoginManager/UserSources.py. Here comes the diff: 7c7 from Products.ZPatterns.PlugIns import defaultConstructors --- from Products.ZPatterns.PlugIns import defaultConstructors, PlugIn 478a479,496 class OloloUserSource(BasicUserSource): """Moje wasne rdo uytkownikw""" meta_type = "Ololo User Source" __plugin_kind__ = "User Source" def retrieveItem(self,name): Uzytkownicy=getattr(self.aq_parent, 'Uzytkownicy', None) return getattr(Uzytkownicy, name, None) 489a508,514 ) context.registerPlugInClass( OloloUserSource, permission = 'Add Ololo User Source', constructors = defaultConstructors(OloloUserSource, globals()), Method retrieveItem have to return user object with given name. I have users inside folder Uzytkownicy beside acl_users. Next thing to do is to create class representing users. It must have LoginManager:LoginUser as a base class. So I made such ZClass. This class has methods authenticateUser, domainsForUser, rolesForUser, which do real work. (Users in folder Uzytkownicy are instances of that ZClass.) This class contains some properties of user - login (it's just object's id), name, other data. (Currently I store passwords externally, because I need them to do POP3 authentication.) Then, on management tab "User Sources" of your LoginManager instance, add instance of your UserSource class. Check also for proper settings on LoginMethods tab. [EMAIL PROTECTED] /--\ | `long long long' is too long for GCC | \--/ ___ 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] Newbie question : ZopeTime permissions
Aaron Straup Cope writes: My problem is that I can't seem to figure out, specifically, which permissions to give a user that will allow them to read ZopeTime(). Strange... "DateTime.DateTime" objects (and therefore "ZopeTime") are explicitely unprotected (and can be used by everyone). I tried your example as "Anonymous" (Zope 2.2.2) and it worked as expected (i.e. no NameError). Dieter ___ 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] A DTML problem using Namespaces
tav writes: i have a dtml method called "parseit", and i have three dtml documents, called "tav", "noa" and "Bill". however i get stuck when in parseit, as i dont know how to do dtml-var Bill, i tried to set Bill in the namespace by using dtml-with Billdtml-var parseit, and then tried to call dtml-var id within "parseit" but that doesn't work :/ It does not work, because dtml-with Bill renders "Bill" (leading to a string which does not have an attribute "id"). It will work, when you use: dtml-with "Bill".../dtml-with Note the "...". They prevent automatic rendering. and, again, i want this to be done automatically, so i dont want to have to manually list Bill, tav, noa, etc This is an FAQ. You want computed variable access. You use "_.getitem(...)" (if you want the object itself) or "_[...]" (if you want a rendered result) for this. Thus, if you want to process all owners, you could do: dtml-in owners dtml-let owner=sequence-item dtml-with "_.getitem(owner)" dtml-var parseit /dtml-with /dtml-let /dtml-in Dieter ___ 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] overriding __str__ method?
Hi, What I'd really like to do is have inline content-management. I don't know if I'm completely up the wrong tree, and some advice would be much appreciated. My reason: Correct me if I'm wrong, but the zope security model does not allow me exclude an authenticated user from knowing that an application-logic object (e.g. 'view_status') exists, when she's in the 'manage' interface. This means she gets to see lots of horrible things which it would be better to hide from her. Apart from that, the whole interface-skinning project doesn't seem to have happened yet, and I think the present interface is a bit ugly. My strategy: Each element that I want the user to be able to edit is a ZClass with a manage_content method. This provides the custom management view (e.g. combines properties and title/data into a single form). Now I want a way to give the user access to this screen. I could do a new version of the folders tree view (manage_menu), but what I'd really like to do is have a button next to each of these elements ("edit this") which calls its manage_content method. The button would only appear when the user was authenticated / authorised. My problem: The only place I can think of doing this is in each object's __str__ method. But AFAIK there's no convenient way of overriding its default behaviour. What I'd like to do is override it in the ZClass views interface. I can override the 'View' method (from the ZClass 'views' tab), but that doesn't get called in the course of rendering a component in a page. The problem would seem to be that there's no equivalent of the __str__ method available to override... Or is there? Otherwise, I suppose I'd have to edit each object type's __str__ method directly. Or patch the publishing mechanism, but I've not had the guts to look at that yet. yuk. I'd rather not. Can anyone shed any light? Cheers, seb ___ 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] Xen login
What is the password I have to use for my first login in Xen? I never was asked for a password while installing. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ 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 in Windows is faster than Linux ???
There's a big difference in the number of requests per second, four times more in the Windows machine. Anyone knows why? Does it mean that Zope running in Windows is better than in Linux? When you think that this is the reality in the web, then yes. But, if you think of the following scenario: 1 file accessed: windows very fast linux normal speed 1 file accessed by 10 peoples at the same time: windows very fast linux normal speed 1 file accessed by 100 peoples at the same time: windows fast linux normal speed 100 files accessed by 1000 peoples at the same time: windows, stalled linux, umm, normal speed A windows web server is nothing but a bad emulation of a Unix system. -goe- _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ 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 in Windows is faster than Linux ???
Correct me, if i am wrong, but AFAIK ZServer (coming with Zope) is multi-threaded by default, whereas Apache/Zope uses PCGI or FCGI and is *not* multi-treaded. You can use Apache/Zope without PCGI or FCGI (via ProxyPass) too. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ 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 Method not working
I took some code that was in the (work-in-progress) O'Riley book on Zope. In that example, then had a DTML Method used for identifying folders and hyperlinking to them. The code is as follows: ul dtml-in expr="objectValues('Folder')" lia href="dtml-absolute_url;"dtml-var title_or_id/abr/li /dtml-in /ul The problem is, it doesn't work. I know the method is being invoked because there is some other text that is indeed being inserted. Moreover, there are sub-folders in the folder that calls the method. Does anyone know what the problem is? Is it a permission issue. The standard_html_header and _footer, show up just fine, along with logos and such. The only part that isn't showing up is the stuff that was supposed to be generated by the dtml-in block. Any hints? Thanks in advance. Ron ./. ___ 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] DTML Method not working
Is the code you used in a DTML Method or a DTML Document? Is it in a DTML Method being called from a DTML Document? If the answer to either of these is 'yes' then it's doing as you ask! The thing that gets most new zope users is that a DTML Document is itself a container. This means that anytime you use code similar to yours or when using a dtml-tree ... it will probably return a blank, as the DTML Dopcument has no children(?!?). Solutions: 1.Try moving the code into a DTML Method. 2.Use a dtml-with around it. The second one works most places but if in the root then it's slightly more difficult as the top object is hard to reference (please someone tell me I'm wrong here). You could try something like: dtml-with expr="resolve_url(BASE0+'/')" ul dtml-in expr="objectValues('Folder')" lia href="dtml-absolute_url;"dtml-var title_or_id/abr/li /dtml-in /ul /dtml-with The resolve_url(BASE0+'/') should give you a reference to the top Zope object (root). hth Phil [EMAIL PROTECTED] - Original Message - From: "Ronald L. Chichester" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, October 08, 2000 8:58 PM Subject: [Zope] DTML Method not working I took some code that was in the (work-in-progress) O'Riley book on Zope. In that example, then had a DTML Method used for identifying folders and hyperlinking to them. The code is as follows: ul dtml-in expr="objectValues('Folder')" lia href="dtml-absolute_url;"dtml-var title_or_id/abr/li /dtml-in /ul The problem is, it doesn't work. I know the method is being invoked because there is some other text that is indeed being inserted. Moreover, there are sub-folders in the folder that calls the method. Does anyone know what the problem is? Is it a permission issue. The standard_html_header and _footer, show up just fine, along with logos and such. The only part that isn't showing up is the stuff that was supposed to be generated by the dtml-in block. Any hints? Thanks in advance. Ron ./. ___ 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 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] DTML Method not working
Oops: That should be: dtml-with expr="REQUEST.resolve_url(BASE0+'/')" ul dtml-in expr="objectValues('Folder')" lia href="dtml-absolute_url;"dtml-var title_or_id/abr/li /dtml-in /ul /dtml-with hth Phil [EMAIL PROTECTED] - Original Message - From: "Phil Harris" [EMAIL PROTECTED] To: "Ronald L. Chichester" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, October 07, 2000 9:38 PM Subject: Re: [Zope] DTML Method not working Is the code you used in a DTML Method or a DTML Document? Is it in a DTML Method being called from a DTML Document? If the answer to either of these is 'yes' then it's doing as you ask! The thing that gets most new zope users is that a DTML Document is itself a container. This means that anytime you use code similar to yours or when using a dtml-tree ... it will probably return a blank, as the DTML Dopcument has no children(?!?). Solutions: 1.Try moving the code into a DTML Method. 2.Use a dtml-with around it. The second one works most places but if in the root then it's slightly more difficult as the top object is hard to reference (please someone tell me I'm wrong here). You could try something like: dtml-with expr="resolve_url(BASE0+'/')" ul dtml-in expr="objectValues('Folder')" lia href="dtml-absolute_url;"dtml-var title_or_id/abr/li /dtml-in /ul /dtml-with The resolve_url(BASE0+'/') should give you a reference to the top Zope object (root). hth Phil [EMAIL PROTECTED] - Original Message - From: "Ronald L. Chichester" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, October 08, 2000 8:58 PM Subject: [Zope] DTML Method not working I took some code that was in the (work-in-progress) O'Riley book on Zope. In that example, then had a DTML Method used for identifying folders and hyperlinking to them. The code is as follows: ul dtml-in expr="objectValues('Folder')" lia href="dtml-absolute_url;"dtml-var title_or_id/abr/li /dtml-in /ul The problem is, it doesn't work. I know the method is being invoked because there is some other text that is indeed being inserted. Moreover, there are sub-folders in the folder that calls the method. Does anyone know what the problem is? Is it a permission issue. The standard_html_header and _footer, show up just fine, along with logos and such. The only part that isn't showing up is the stuff that was supposed to be generated by the dtml-in block. Any hints? Thanks in advance. Ron ./. ___ 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 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 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] Xen login
I don't think xen is safe to use yet. Stephan Goeldi wrote: What is the password I have to use for my first login in Xen? I never was asked for a password while installing. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ 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 ) -- Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions Pty Ltd (www.adroit.net) Phone: +613 9563 4461 Fax: +613 9563 3856 Mobile: +61 414 708 124 ICQ: 79303381 ___ 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] overriding __str__ method?
Seb Bacon wrote: My strategy: Each element that I want the user to be able to edit is a ZClass with a manage_content method. This provides the custom management view (e.g. combines properties and title/data into a single form). Now I want a way to give the user access to this screen. I could do a new version of the folders tree view (manage_menu), but what I'd really like to do is have a button next to each of these elements ("edit this") which calls its manage_content method. The button would only appear when the user was authenticated / authorised. My problem: The only place I can think of doing this is in each object's __str__ method. But AFAIK there's no convenient way of overriding its default behaviour. What I'd like to do is override it in the ZClass views interface. I can override the 'View' method (from the ZClass 'views' tab), but that doesn't get called in the course of rendering a component in a page. The problem would seem to be that there's no equivalent of the __str__ method available to override... Or is there? Either I don't understand the problem or you're making it too complicated. g You have a form to edit the properties. ... input type="text" name="last_name" value="dtml-last_name;" ... The action method of this form sets the REQUEST variables to the property names: ... dtml-call "REQUEST.set('last_name', REQUEST['last_name'])" ... (I generally use the same names for form vars and property names to avoid confusing myself) then: dtml-call "manage_changeProperties(REQUEST)" Does this help? -- Tim Cook -- Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT * It's easy to stop making mistakes. Just stop having ideas. * FreePM Project Coordinator http://www.freepm.org OSHCA Founding Supporter http://www.oshca.org ___ 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] Login Manager
Hi I've been tring to install Login Manager. I installed ZPattens ok and it works but i am unable to get login manager going. file "/home/markt/Zope/lib/python/Products/LoginManager/LoginManager.py", line 9, in ? from Products.ZPatterns.SheetProviders import SheetProviderContainer ImportError: cannot import name SheetProviderContainer any help would be great Thanks Mark ___ 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 )